Files
qianbian/analysis/apk/decomp/qbsg_top_ble_BleSession$sendEpdBytes$2.java

114 lines
4.2 KiB
Java

package qbsg.top.ble;
final class BleSession$sendEpdBytes$2 extends kotlin.coroutines.jvm.internal.SuspendLambda implements a7.e {
final synthetic android.bluetooth.BluetoothGattCharacteristic $char;
final synthetic byte[] $data;
int I$0;
int I$1;
Object L$0;
Object L$1;
Object L$2;
Object L$3;
int label;
final synthetic qbsg.top.ble.BleSession this$0;
public BleSession$sendEpdBytes$2(qbsg.top.ble.BleSession p1, android.bluetooth.BluetoothGattCharacteristic p2, byte[] p3, kotlin.coroutines.Continuation p4)
{
this.this$0 = p1;
this.$char = p2;
this.$data = p3;
super(2, p4);
return;
}
public final kotlin.coroutines.Continuation create(Object p4, kotlin.coroutines.Continuation p5)
{
return new qbsg.top.ble.BleSession$sendEpdBytes$2(this.this$0, this.$char, this.$data, p5);
}
public bridge synthetic Object invoke(Object p1, Object p2)
{
return this.invoke(((kotlinx.coroutines.CoroutineScope) p1), ((kotlin.coroutines.Continuation) p2));
}
public final Object invoke(kotlinx.coroutines.CoroutineScope p1, kotlin.coroutines.Continuation p2)
{
return ((qbsg.top.ble.BleSession$sendEpdBytes$2) this.create(p1, p2)).invokeSuspend(p6.a0.a);
}
public final Object invokeSuspend(Object p11)
{
Boolean v11_1;
qbsg.top.ble.BleSession v7_0;
Throwable v0_2;
int v4_1;
android.bluetooth.BluetoothGattCharacteristic v6_0;
Object v1_2;
Throwable v0_0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED();
Object v1_1 = this.label;
try {
if (v1_1 == null) {
q6.y.Y(p11);
v11_1 = qbsg.top.ble.BleSession.access$getWriteMutex$p(this.this$0);
v7_0 = this.this$0;
v6_0 = this.$char;
Object v1_0 = this.$data;
this.L$0 = v11_1;
this.L$1 = v7_0;
this.L$2 = v6_0;
this.L$3 = v1_0;
this.I$0 = 0;
this.label = 1;
if (v11_1.lock(0, this) != v0_0) {
v4_1 = v1_0;
v1_2 = 0;
try {
this.L$0 = v11_1;
this.L$1 = 0;
this.L$2 = 0;
this.L$3 = 0;
this.I$0 = v1_2;
this.I$1 = 0;
this.label = 2;
Object v1_3 = qbsg.top.ble.BleSession.access$executeWrite(v7_0, v6_0, v4_1, this);
} catch (Throwable v0_1) {
v0_2 = v11_1;
Boolean v11_2 = v0_1;
}
if (v1_3 != v0_0) {
v0_2 = v11_1;
p11 = v1_3;
Boolean v11_7 = kotlin.coroutines.jvm.internal.Boxing.boxBoolean(((Boolean) p11).booleanValue());
v0_2.unlock(0);
return v11_7;
} else {
return v0_0;
}
}
} else {
if (v1_1 == 1) {
v1_2 = this.I$0;
v4_1 = ((byte[]) this.L$3);
v6_0 = ((android.bluetooth.BluetoothGattCharacteristic) this.L$2);
v7_0 = ((qbsg.top.ble.BleSession) this.L$1);
kotlinx.coroutines.sync.Mutex v8_1 = ((kotlinx.coroutines.sync.Mutex) this.L$0);
q6.y.Y(p11);
v11_1 = v8_1;
} else {
if (v1_1 != 2) {
throw new IllegalStateException("call to \'resume\' before \'invoke\' with coroutine");
} else {
v0_2 = ((kotlinx.coroutines.sync.Mutex) this.L$0);
q6.y.Y(p11);
v11_7 = kotlin.coroutines.jvm.internal.Boxing.boxBoolean(((Boolean) p11).booleanValue());
v0_2.unlock(0);
return v11_7;
}
}
}
} catch (Boolean v11_2) {
}
v0_2.unlock(0);
throw v11_2;
}
}