; ; FMOD::Sound::getLoopCount from 0xb6118 to 0xb6198 (128 bytes) ; ; 1 xrefs: ; > FMOD::Sound::getLoopCount @ 0xe0698 ; ; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:41:43 +0000 ; PUSH {R4-R7,LR} ; +0x0, 0xb6118 ADD R7, SP, #0xC ; +0x2, 0xb611a PUSH.W {R8} ; +0x4, 0xb611c SUB SP, SP, #0x108 ; +0x8, 0xb6120 MOV R8, R1 ; +0xa, 0xb6122 ADD R1, SP, #0x108+var_4 ; +0xc, 0xb6124 MOVS R2, #0 ; +0xe, 0xb6126 MOV R4, R0 ; +0x10, 0xb6128 BL sub_54E84 ; +0x12, 0xb612a MOV R6, R0 ; +0x16, 0xb612e CBNZ R0, loc_B6162 ; +0x18, 0xb6130 LDR R0, [SP,#0x108+var_4] ; +0x1a, 0xb6132 LDR.W R0, [R0,#0xBC] ; +0x1c, 0xb6134 DMB.W ISH ; +0x20, 0xb6138 CBZ R0, loc_B614C ; +0x24, 0xb613c LDR R0, [SP,#0x108+var_4] ; +0x26, 0xb613e LDR.W R0, [R0,#0xBC] ; +0x28, 0xb6140 DMB.W ISH ; +0x2c, 0xb6144 CMP R0, #7 ; +0x30, 0xb6148 BNE loc_B6160 ; +0x32, 0xb614a LDR R0, [SP,#0x108+var_4] ; +0x34, 0xb614c LDR R1, [R0] ; +0x36, 0xb614e LDR.W R2, [R1,#0x98] ; +0x38, 0xb6150 MOV R1, R8 ; +0x3c, 0xb6154 BLX R2 ; +0x3e, 0xb6156 MOV R6, R0 ; +0x40, 0xb6158 CBNZ R0, loc_B6162 ; +0x42, 0xb615a MOVS R6, #0 ; +0x44, 0xb615c B loc_B618E ; +0x46, 0xb615e MOVS R6, #0x2E ; '.' ; +0x48, 0xb6160 LDR R0, =(off_E6144 - 0xB6168) ; +0x4a, 0xb6162 ADD R0, PC; off_E6144 ; +0x4c, 0xb6164 LDR R0, [R0]; off_E8000 ; +0x4e, 0xb6166 LDR R0, [R0]; dword_F2488 ; +0x50, 0xb6168 LDRB R0, [R0,#(dword_F249C - 0xF2488)] ; +0x52, 0xb616a LSLS R0, R0, #0x18 ; +0x54, 0xb616c BPL loc_B618E ; +0x56, 0xb616e ADD R5, SP, #0x108+var_104 ; +0x58, 0xb6170 MOV.W R1, #0x100 ; +0x5a, 0xb6172 MOV R2, R8 ; +0x5e, 0xb6176 MOV R0, R5 ; +0x60, 0xb6178 BL sub_5C9EC ; +0x62, 0xb617a STR R5, [SP,#0x108+var_108] ; +0x66, 0xb617e MOV R0, R6 ; +0x68, 0xb6180 LDR R3, =(aSoundGetloopco - 0xB618C); "Sound::getLoopCount" ... ; +0x6a, 0xb6182 MOVS R1, #5 ; +0x6c, 0xb6184 MOV R2, R4 ; +0x6e, 0xb6186 ADD R3, PC; "Sound::getLoopCount" ; +0x70, 0xb6188 BL sub_BAB40 ; +0x72, 0xb618a MOV R0, R6 ; +0x76, 0xb618e ADD SP, SP, #0x108 ; +0x78, 0xb6190 POP.W {R8} ; +0x7a, 0xb6192 POP {R4-R7,PC} ; +0x7e, 0xb6196