; ; sub_4ADB4 from 0x4adb4 to 0x4ae6a (182 bytes) ; ; 3 xrefs: ; > sub_4A7D4 @ 0x4a8d6 ; > sub_65494 @ 0x656ea ; > sub_65494 @ 0x6582e ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; PUSH {R4-R7,LR} ; +0x0, 0x4adb4 ADD R7, SP, #0xC ; +0x2, 0x4adb6 PUSH.W {R11} ; +0x4, 0x4adb8 SUB SP, SP, #0x10 ; +0x8, 0x4adbc MOV R5, R0 ; +0xa, 0x4adbe LDR R0, [R0] ; +0xc, 0x4adc0 MOV R4, R1 ; +0xe, 0x4adc2 LDR R1, [R1] ; +0x10, 0x4adc4 LDR R2, [R0,#0x48] ; +0x12, 0x4adc6 MOV R0, R5 ; +0x14, 0x4adc8 BLX R2 ; +0x16, 0x4adca LDR.W R1, [R5,#0x184] ; +0x18, 0x4adcc MOV R0, R5 ; +0x1c, 0x4add0 BL sub_4A40A ; +0x1e, 0x4add2 LDR R0, [R5] ; +0x22, 0x4add6 LDR R1, [R5,#0x1C] ; +0x24, 0x4add8 LDR R2, [R0,#0x24] ; +0x26, 0x4adda MOV R0, R5 ; +0x28, 0x4addc BLX R2 ; +0x2a, 0x4adde LDRD.W R1, R3, [R4,#8] ; +0x2c, 0x4ade0 MOVS R0, #2 ; +0x30, 0x4ade4 STR R0, [SP,#0x10+var_10] ; +0x32, 0x4ade6 MOV R0, R5 ; +0x34, 0x4ade8 MOVS R2, #2 ; +0x36, 0x4adea BL sub_4B174 ; +0x38, 0x4adec LDR R1, [R4,#0x14] ; +0x3c, 0x4adf0 MOV R0, R5 ; +0x3e, 0x4adf2 BL sub_4B278 ; +0x40, 0x4adf4 LDR R1, [R4,#4] ; +0x44, 0x4adf8 MOV R0, R5 ; +0x46, 0x4adfa MOVS R2, #2 ; +0x48, 0x4adfc BL sub_4B298 ; +0x4a, 0x4adfe LDR R0, [R5] ; +0x4e, 0x4ae02 MOVS R2, #0 ; +0x50, 0x4ae04 LDR R1, [R5,#0x18] ; +0x52, 0x4ae06 MOVS R6, #0 ; +0x54, 0x4ae08 LDR R3, [R0,#0x10] ; +0x56, 0x4ae0a MOV R0, R5 ; +0x58, 0x4ae0c BLX R3 ; +0x5a, 0x4ae0e CMP R6, #4 ; +0x5c, 0x4ae10 BEQ loc_4AE22 ; +0x5e, 0x4ae12 LDR R0, [R5] ; +0x60, 0x4ae14 MOV R1, R6 ; +0x62, 0x4ae16 LDR R2, [R0,#0x3C] ; +0x64, 0x4ae18 MOV R0, R5 ; +0x66, 0x4ae1a BLX R2 ; +0x68, 0x4ae1c ADDS R6, #1 ; +0x6a, 0x4ae1e B loc_4AE10 ; +0x6c, 0x4ae20 LDR.W R0, [R5,#0x114] ; +0x6e, 0x4ae22 CBZ R0, loc_4AE4E ; +0x72, 0x4ae26 LDR R0, [R5] ; +0x74, 0x4ae28 SUB.W R1, R7, #-(-0x10+var_1) ; +0x76, 0x4ae2a LDR.W R2, [R0,#0xF8] ; +0x7a, 0x4ae2e MOV R0, R5 ; +0x7e, 0x4ae32 BLX R2 ; +0x80, 0x4ae34 LDR R1, [R5,#0x2C] ; +0x82, 0x4ae36 MOVS R2, #0 ; +0x84, 0x4ae38 LDRB.W R0, [R7,#-0x10+var_1] ; +0x86, 0x4ae3a MOVS R3, #1 ; +0x8a, 0x4ae3e STRD.W R0, R2, [SP,#0x10+var_10] ; +0x8c, 0x4ae40 MOV R0, R5 ; +0x90, 0x4ae44 MOVS R2, #0 ; +0x92, 0x4ae46 BL sub_479CC ; +0x94, 0x4ae48 CBNZ R0, loc_4AE62 ; +0x98, 0x4ae4c LDR R0, [R4,#0x10] ; +0x9a, 0x4ae4e LDR R1, [R0] ; +0x9c, 0x4ae50 LDR R1, [R1,#0x68] ; +0x9e, 0x4ae52 BLX R1 ; +0xa0, 0x4ae54 LDR R0, [R4,#0x10] ; +0xa2, 0x4ae56 LDR R1, [R0,#0x20] ; +0xa4, 0x4ae58 BIC.W R1, R1, #0x8000 ; +0xa6, 0x4ae5a STR R1, [R0,#0x20] ; +0xaa, 0x4ae5e MOVS R0, #0 ; +0xac, 0x4ae60 ADD SP, SP, #0x10 ; +0xae, 0x4ae62 POP.W {R11} ; +0xb0, 0x4ae64 POP {R4-R7,PC} ; +0xb4, 0x4ae68