package com.google.android.play.core.integrity;

import android.os.Bundle;
import android.os.Handler;
import android.os.ResultReceiver;

/* JADX INFO: loaded from: classes3.dex */
final class ar extends ResultReceiver {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    final /* synthetic */ as f13618a;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public ar(as asVar, Handler handler) {
        super(handler);
        this.f13618a = asVar;
    }

    @Override // android.os.ResultReceiver
    public final void onReceiveResult(int i6, Bundle bundle) {
        if (i6 == 1) {
            this.f13618a.f13619a.trySetResult(3);
        } else if (i6 == 2) {
            this.f13618a.f13619a.trySetResult(2);
        } else {
            if (i6 != 3) {
                return;
            }
            this.f13618a.f13619a.trySetResult(1);
        }
    }
}
