; ; ColorSelectPopup::onPlayerColor2 from 0x3d9dea to 0x3d9e60 (118 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 ; PUSH {R4-R6,LR} ; +0x0, 0x3d9dea MOVS R1, #0; bool ; +0x2, 0x3d9dec MOV R5, R0 ; +0x4, 0x3d9dee LDR.W R0, [R0,#0x2C4]; this ; +0x6, 0x3d9df0 BL _ZN17CCMenuItemToggler6toggleEb; CCMenuItemToggler::toggle(bool) ; +0xa, 0x3d9df4 LDR.W R3, [R5,#0x2E4] ; +0xe, 0x3d9df8 LDR.W R4, [R5,#0x1FC] ; +0x12, 0x3d9dfc CMP R3, #2 ; +0x16, 0x3d9e00 ITE NE ; +0x18, 0x3d9e02 MOVNE R3, #2 ; +0x1a, 0x3d9e04 MOVEQ R3, #0 ; +0x1c, 0x3d9e06 STR.W R3, [R5,#0x2E4] ; +0x1e, 0x3d9e08 CBZ R4, loc_3D9E20 ; +0x22, 0x3d9e0c ADDS R3, #0 ; +0x24, 0x3d9e0e IT NE ; +0x26, 0x3d9e10 MOVNE R3, #1 ; +0x28, 0x3d9e12 STRB.W R3, [R4,#0x512] ; +0x2a, 0x3d9e14 MOVS R3, #0 ; +0x2e, 0x3d9e18 STRB.W R3, [R4,#0x511] ; +0x30, 0x3d9e1a POP {R4-R6,PC} ; +0x34, 0x3d9e1e LDR.W R2, [R5,#0x200] ; +0x36, 0x3d9e20 CBZ R2, loc_3D9E56 ; +0x3a, 0x3d9e24 MOV R6, R4 ; +0x3c, 0x3d9e26 LDR.W R0, [R5,#0x200]; this ; +0x3e, 0x3d9e28 BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x42, 0x3d9e2c CMP R4, R0 ; +0x46, 0x3d9e30 BCS locret_3D9E54 ; +0x48, 0x3d9e32 MOV R1, R4; unsigned int ; +0x4a, 0x3d9e34 LDR.W R0, [R5,#0x200]; this ; +0x4c, 0x3d9e36 BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x50, 0x3d9e3a LDR.W R3, [R5,#0x2E4] ; +0x54, 0x3d9e3e ADDS R4, #1 ; +0x58, 0x3d9e42 SUBS R2, R3, #2 ; +0x5a, 0x3d9e44 NEGS R3, R2 ; +0x5c, 0x3d9e46 ADCS R3, R2 ; +0x5e, 0x3d9e48 STRB.W R6, [R0,#0x511] ; +0x60, 0x3d9e4a STRB.W R3, [R0,#0x512] ; +0x64, 0x3d9e4e B loc_3D9E28 ; +0x68, 0x3d9e52 POP {R4-R6,PC} ; +0x6a, 0x3d9e54 LDR.W R2, [R5,#0x2F0] ; +0x6c, 0x3d9e56 CBZ R2, locret_3D9E5E ; +0x70, 0x3d9e5a STR R3, [R2,#0x54] ; +0x72, 0x3d9e5c POP {R4-R6,PC} ; +0x74, 0x3d9e5e