; ; ColorSelectLiveOverlay::onSelectTab from 0x4cf548 to 0x4cf618 (208 bytes) ; ; 0 xrefs: ; ; 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 ; LDR R3, [R1] ; +0x0, 0x4cf548 PUSH.W {R0,R1,R4-R10,LR} ; +0x2, 0x4cf54a MOV R4, R0 ; +0x6, 0x4cf54e LDR R3, [R3,#0x20] ; +0x8, 0x4cf550 MOV R0, R1 ; +0xa, 0x4cf552 MOV R6, R1 ; +0xc, 0x4cf554 BLX R3 ; +0xe, 0x4cf556 LDRB.W R3, [R4,#0x26C] ; +0x10, 0x4cf558 ADDS.W R0, R0, #0xFFFFFFFF ; +0x14, 0x4cf55c IT NE ; +0x18, 0x4cf560 MOVNE R0, #1 ; +0x1a, 0x4cf562 CMP R3, R0 ; +0x1c, 0x4cf564 BEQ loc_4CF612 ; +0x1e, 0x4cf566 LDR.W R2, [R4,#0x1FC] ; +0x20, 0x4cf568 MOVS R5, #0 ; +0x24, 0x4cf56c LDR.W R3, [R4,#0x200] ; +0x26, 0x4cf56e STRB.W R0, [R4,#0x26C] ; +0x2a, 0x4cf572 CMP R0, #0 ; +0x2e, 0x4cf576 IT EQ ; +0x30, 0x4cf578 MOVEQ R3, R2 ; +0x32, 0x4cf57a MOV R0, R4 ; +0x34, 0x4cf57c LDR.W R9, =(aGjButton01Png - 0x4CF58C); "GJ_button_01.png" ; +0x36, 0x4cf57e LDR R2, [R3,#0x5C] ; +0x3a, 0x4cf582 LDR.W R10, =(aGjButton04Png - 0x4CF592); "GJ_button_04.png" ; +0x3c, 0x4cf584 ADD R9, PC; "GJ_button_01.png" ; +0x40, 0x4cf588 STR.W R2, [R4,#0x21C] ; +0x42, 0x4cf58a ADD R10, PC; "GJ_button_04.png" ; +0x46, 0x4cf58e LDRB.W R1, [R3,#0x45] ; +0x48, 0x4cf590 LDRB.W R2, [R3,#0x46] ; +0x4c, 0x4cf594 LDRB.W R3, [R3,#0x44] ; +0x50, 0x4cf598 STRB.W R1, [SP,#8+var_4+1] ; +0x54, 0x4cf59c STRB.W R2, [SP,#8+var_4+2] ; +0x58, 0x4cf5a0 STRB.W R3, [SP,#8+var_4] ; +0x5c, 0x4cf5a4 LDR R1, [SP,#8+var_4] ; +0x60, 0x4cf5a8 BL _ZN22ColorSelectLiveOverlay11selectColorEN7cocos2d10_ccColor3BE; ColorSelectLiveOverlay::selectColor(cocos2d::_ccColor3B) ; +0x62, 0x4cf5aa LDR.W R0, [R4,#0x1F8]; this ; +0x66, 0x4cf5ae BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x6a, 0x4cf5b2 CMP R5, R0 ; +0x6e, 0x4cf5b6 BCS loc_4CF5EA ; +0x70, 0x4cf5b8 MOV R1, R5; unsigned int ; +0x72, 0x4cf5ba LDR.W R0, [R4,#0x1F8]; this ; +0x74, 0x4cf5bc BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x78, 0x4cf5c0 LDR R3, [R6] ; +0x7c, 0x4cf5c4 ADDS R5, #1 ; +0x7e, 0x4cf5c6 LDR R3, [R3,#0x20] ; +0x80, 0x4cf5c8 MOV R7, R0 ; +0x82, 0x4cf5ca MOV R0, R6 ; +0x84, 0x4cf5cc BLX R3 ; +0x86, 0x4cf5ce LDR R3, [R7] ; +0x88, 0x4cf5d0 LDR R3, [R3,#0x20] ; +0x8a, 0x4cf5d2 MOV R8, R0 ; +0x8c, 0x4cf5d4 MOV R0, R7 ; +0x8e, 0x4cf5d6 BLX R3 ; +0x90, 0x4cf5d8 CMP R8, R0 ; +0x92, 0x4cf5da MOV R0, R7; this ; +0x94, 0x4cf5dc ITE EQ ; +0x96, 0x4cf5de MOVEQ R1, R9 ; +0x98, 0x4cf5e0 MOVNE R1, R10; char * ; +0x9a, 0x4cf5e2 BL _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x9c, 0x4cf5e4 B loc_4CF5AE ; +0xa0, 0x4cf5e8 LDR.W R0, [R4,#0x23C] ; +0xa2, 0x4cf5ea LDRB.W R2, [R4,#0x26C] ; +0xa6, 0x4cf5ee LDR R3, [R0] ; +0xaa, 0x4cf5f2 LDR.W R3, [R3,#0x1D8] ; +0xac, 0x4cf5f4 CBZ R2, loc_4CF600 ; +0xb0, 0x4cf5f8 ADDW R1, R4, #0x207 ; +0xb2, 0x4cf5fa B loc_4CF604 ; +0xb6, 0x4cf5fe ADD.W R1, R4, #0x204 ; +0xb8, 0x4cf600 BLX R3 ; +0xbc, 0x4cf604 MOV R0, R4; this ; +0xbe, 0x4cf606 ADD SP, SP, #8 ; +0xc0, 0x4cf608 POP.W {R4-R10,LR} ; +0xc2, 0x4cf60a B.W _ZN22ColorSelectLiveOverlay16updateColorLabelEv; ColorSelectLiveOverlay::updateColorLabel(void) ; +0xc6, 0x4cf60e ADD SP, SP, #8 ; +0xca, 0x4cf612 POP.W {R4-R10,PC} ; +0xcc, 0x4cf614