package qbsg.top.ble; public final class BleManager$scanCallback$1 extends android.bluetooth.le.ScanCallback { final synthetic qbsg.top.ble.BleManager this$0; public BleManager$scanCallback$1(qbsg.top.ble.BleManager p1) { this.this$0 = p1; return; } public void onScanResult(int p13, android.bluetooth.le.ScanResult p14) { qbsg.top.ble.data.BleDeviceInfo v2_1; kotlin.jvm.internal.s.f(p14, "result"); kotlinx.coroutines.flow.MutableStateFlow v13_4 = qbsg.top.ble.BleManager.access$get_rawScanResults$p(this.this$0); java.util.ArrayList v0_3 = p14.getDevice().getAddress(); kotlin.jvm.internal.s.e(v0_3, "getAddress(...)"); qbsg.top.ble.data.BleDeviceInfo v2_0 = p14.getScanRecord(); if (v2_0 == null) { v2_1 = p14.getDevice().getName(); } else { v2_1 = v2_0.getDeviceName(); if (v2_1 == null) { } else { if (i7.i.x0(v2_1)) { v2_1 = 0; } if (v2_1 == null) { } } } v13_4.tryEmit(new qbsg.top.ble.data.BleScanRecord(v0_3, v2_1, p14.getRssi())); kotlinx.coroutines.flow.MutableStateFlow v13_3 = p14.getDevice().getName(); if (v13_3 == null) { v13_3 = "<\u672a\u77e5\u8bbe\u5907>"; } boolean v3_2 = v13_3; String v4_2 = p14.getDevice().getAddress(); kotlin.jvm.internal.s.e(v4_2, "getAddress(...)"); qbsg.top.ble.data.BleDeviceInfo v2_4 = new qbsg.top.ble.data.BleDeviceInfo(v3_2, v4_2, p14.getRssi(), 0, 0, 0, 0, 120, 0); kotlinx.coroutines.flow.MutableStateFlow v13_7 = qbsg.top.ble.BleManager.access$get_scannedDevices$p(this.this$0); do { boolean v14_1 = v13_7.getValue(); java.util.ArrayList v0_1 = ((java.util.List) v14_1); if ((v0_1 == null) || (!v0_1.isEmpty())) { java.util.Iterator v1_1 = v0_1.iterator(); while (v1_1.hasNext()) { if (kotlin.jvm.internal.s.b(((qbsg.top.ble.data.BleDeviceInfo) v1_1.next()).getAddress(), v2_4.getAddress())) { } } v0_1 = q6.o.y0(v0_1, v2_4); } } while(!v13_7.compareAndSet(v14_1, v0_1)); return; } }