rendered paste body__text:00014CA6 AppleBasebandDriver_ResetModem ; DATA XREF: __const:00049888o
__text:00014CA6
__text:00014CA6 var_20 = -0x20
__text:00014CA6 var_1C = -0x1C
__text:00014CA6 pService = -0x18
__text:00014CA6 var_8 = -8
__text:00014CA6
__text:00014CA6 this = R6
__text:00014CA6 PUSH {R4-R7,LR}
__text:00014CA8 ADD R7, SP, #0x14+var_8
__text:00014CAA SUB SP, SP, #0xC
__text:00014CAC ADD this, R0, #0
__text:00014CAE MOV R3, #1
__text:00014CB0 NEG R3, R3
__text:00014CB2 LDR R0, [R0,#0x2C]
__text:00014CB4 STR R3, [this,#0x2C]
__text:00014CB6 BLX _close
__text:00014CBA LDR R3, =(_kIOMasterPortDefault_ptr - 0x14CC2)
__text:00014CBC LDR R5, =(aApplebaseband - 0x14CC4)
__text:00014CBE ADD R3, PC
__text:00014CC0 ADD R5, PC ; "AppleBaseband"
__text:00014CC2 LDR R0, [R3]
__text:00014CC4 LDR R4, [R0]
__text:00014CC6 ADD R0, R5, #0
__text:00014CC8 BLX _IOServiceMatching
__text:00014CCC ADD R1, R0, #0
__text:00014CCE ADD R0, R4, #0
__text:00014CD0 BLX _IOServiceGetMatchingService
__text:00014CD4 CMP R0, #0
__text:00014CD6 BNE loc_14CE6
__text:00014CD8 BL Logger_getInstance
__text:00014CDC LDR R2, =(aCouldNotFindSS - 0x14CE4)
__text:00014CDE MOV R1, #0x12
__text:00014CE0 ADD R2, PC ; "Could not find %s service\n"
__text:00014CE2 ADD R3, R5, #0
__text:00014CE4 B loc_14D08
__text:00014CE6 ; ---------------------------------------------------------------------------
__text:00014CE6
__text:00014CE6 loc_14CE6 ; CODE XREF: AppleBasebandDriver_ResetModem+30j
__text:00014CE6 LDR R1, =(_mach_task_self__ptr - 0x14CEE)
__text:00014CE8 ADD R3, SP, #0x20+pService
__text:00014CEA ADD R1, PC
__text:00014CEC MOV R2, #0
__text:00014CEE LDR R1, [R1]
__text:00014CF0 LDR R1, [R1]
__text:00014CF2 BLX _IOServiceOpen
__text:00014CF6 SUB R3, R0, #0
__text:00014CF8 BEQ loc_14D0E
__text:00014CFA BL Logger_getInstance
__text:00014CFE LDR R2, =(aCouldNotOpenSS - 0x14D06)
__text:00014D00 LDR R3, =(aApplebaseband - 0x14D08)
__text:00014D02 ADD R2, PC ; "Could not open %s service\n"
__text:00014D04 ADD R3, PC ; "AppleBaseband"
__text:00014D06 MOV R1, #0x12
__text:00014D08
__text:00014D08 loc_14D08 ; CODE XREF: AppleBasebandDriver_ResetModem+3Ej
__text:00014D08 BL LogF
__text:00014D0C B loc_14D6E
__text:00014D0E ; ---------------------------------------------------------------------------
__text:00014D0E
__text:00014D0E loc_14D0E ; CODE XREF: AppleBasebandDriver_ResetModem+52j
__text:00014D0E STR R3, [SP]
__text:00014D10 STR R3, [SP,#4]
__text:00014D12 LDR R0, [SP,#0x20+pService]
__text:00014D14 MOV R1, #0
__text:00014D16 MOV R2, #0
__text:00014D18 MOV R3, #0
__text:00014D1A BLX _IOConnectCallScalarMethod
__text:00014D1E CMP R0, #0
__text:00014D20 BEQ loc_14D34
__text:00014D22 BL Logger_getInstance
__text:00014D26 LDR R2, =(aCouldNotCallFu - 0x14D2E)
__text:00014D28 LDR R3, =(aApplebaseband - 0x14D30)
__text:00014D2A ADD R2, PC ; "Could not call function kAppleBasebandC"...
__text:00014D2C ADD R3, PC ; "AppleBaseband"
__text:00014D2E MOV R1, #0x12
__text:00014D30 BL LogF
__text:00014D34
__text:00014D34 loc_14D34 ; CODE XREF: AppleBasebandDriver_ResetModem+7Aj
__text:00014D34 LDR R0, [SP,#0x20+pService]
__text:00014D36 BLX _IOServiceClose
__text:00014D3A MOVL R0, 0x7D0
__text:00014D3E BL sleep
__text:00014D42 LDR R3, [this]
__text:00014D44 ADD R0, this, #0
__text:00014D46 LDR R3, [R3,#0x34]
__text:00014D48 BLX R3
__text:00014D4A BL Logger_getInstance
__text:00014D4E LDR R2, =(aClosedReaderFd - 0x14D56)
__text:00014D50 MOV R1, #0x12
__text:00014D52 ADD R2, PC ; "closed reader fd, reopening...\n"
__text:00014D54 BL LogF
__text:00014D58 ADD R0, this, #0
__text:00014D5A BL loc_14974
__text:00014D5E LDR R3, [this]
__text:00014D60 ADD R0, this, #0
__text:00014D62 LDR R3, [R3,#0x18]
__text:00014D64 BLX R3
__text:00014D66 ADD R0, this, #0
__text:00014D68 ADD R0, #0x34
__text:00014D6A BL sub_12018
__text:00014D6E
__text:00014D6E loc_14D6E ; CODE XREF: AppleBasebandDriver_ResetModem+66j
__text:00014D6E ADD SP, SP, #0xC
__text:00014D70 POP {R4-R7,PC}
__text:00014D70 ; End of function AppleBasebandDriver_ResetModem