; ; CharacterColorPage::createColorMenu from 0x565168 to 0x5653d8 (624 bytes) ; ; 1 xrefs: ; > CharacterColorPage::init @ 0x565caa ; ; 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.W {R4-R11,LR} ; +0x0, 0x565168 MOV R5, R0 ; +0x4, 0x56516c LDR R4, =(__stack_chk_guard_ptr - 0x56517A) ; +0x6, 0x56516e MOVS R7, #3 ; +0x8, 0x565170 VPUSH {D8} ; +0xa, 0x565172 ADD R4, PC; __stack_chk_guard_ptr ; +0xe, 0x565176 LDR R4, [R4]; __stack_chk_guard ; +0x10, 0x565178 LDR R6, =(aGjSelect001Png - 0x565188); "GJ_select_001.png" ; +0x12, 0x56517a LDR R3, [R4] ; +0x14, 0x56517c VMOV.F32 S16, #0.5 ; +0x16, 0x56517e SUB SP, SP, #0x64 ; +0x1a, 0x565182 ADD R6, PC; "GJ_select_001.png" ; +0x1c, 0x565184 STR R3, [SP,#0x64+var_8] ; +0x1e, 0x565186 BL _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x20, 0x565188 MOV R1, R0 ; +0x24, 0x56518c ADD R0, SP, #0x64+var_40; this ; +0x26, 0x56518e BL _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x28, 0x565190 VLDR S15, [SP,#0x64+var_40] ; +0x2c, 0x565194 ADD R3, SP, #0x64+var_38 ; +0x30, 0x565198 STR R3, [SP,#0x64+var_58] ; +0x32, 0x56519a VLDR S14, [SP,#0x64+var_3C] ; +0x34, 0x56519c MOV R0, R3; this ; +0x38, 0x5651a0 VMUL.F32 S15, S15, S16 ; +0x3a, 0x5651a2 VMOV R1, S15; float ; +0x3e, 0x5651a6 VLDR S15, =59.0 ; +0x42, 0x5651aa VNMLS.F32 S15, S14, S16 ; +0x46, 0x5651ae VMOV R2, S15; float ; +0x4a, 0x5651b2 BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x4e, 0x5651b6 BL _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x52, 0x5651ba STR.W R0, [R5,#0x208] ; +0x56, 0x5651be BL _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x5a, 0x5651c2 STR R4, [SP,#0x64+var_4C] ; +0x5e, 0x5651c6 MOV R0, R6; this ; +0x60, 0x5651c8 BL _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0x62, 0x5651ca LDR R1, =0x3F333333 ; +0x66, 0x5651ce LDR R3, [R0] ; +0x68, 0x5651d0 MOV R4, R0 ; +0x6a, 0x5651d2 LDR R3, [R3,#0x50] ; +0x6c, 0x5651d4 BLX R3 ; +0x6e, 0x5651d6 LDR.W R0, [R5,#0x1C8] ; +0x70, 0x5651d8 MOV R1, R4 ; +0x74, 0x5651dc MOVS R2, #0xB ; +0x76, 0x5651de LDR R3, [R0] ; +0x78, 0x5651e0 LDR.W R3, [R3,#0xE0] ; +0x7a, 0x5651e2 BLX R3 ; +0x7e, 0x5651e6 LDR.W R0, [R5,#0x208]; this ; +0x80, 0x5651e8 MOV R1, R4; cocos2d::CCObject * ; +0x84, 0x5651ec BL _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x86, 0x5651ee SUBS R7, #1 ; +0x8a, 0x5651f2 BNE loc_5651C8 ; +0x8c, 0x5651f4 BL _ZN7cocos2d12CCDictionary6createEv; cocos2d::CCDictionary::create(void) ; +0x8e, 0x5651f6 MOV R4, R7 ; +0x92, 0x5651fa STR.W R0, [R5,#0x204] ; +0x94, 0x5651fc BL _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x98, 0x565200 LDR R3, =(aGjLockgray001P - 0x56520A); "GJ_lockGray_001.png" ; +0x9c, 0x565204 ADD R3, PC; "GJ_lockGray_001.png" ; +0x9e, 0x565206 STR R3, [SP,#0x64+var_48] ; +0xa0, 0x565208 MOVS R1, #0x12 ; +0xa2, 0x56520a MOV R0, R4 ; +0xa4, 0x56520c BLX __aeabi_idiv ; +0xa6, 0x56520e VMOV S15, R0 ; +0xaa, 0x565212 VCVT.F32.S32 S15, S15 ; +0xae, 0x565216 VMOV R0, S15; x ; +0xb2, 0x56521a BLX floorf ; +0xb6, 0x56521e MOV R1, R4; int ; +0xba, 0x565222 VMOV S15, R0 ; +0xbc, 0x565224 MOV R0, R5; this ; +0xc0, 0x565228 VCVT.S32.F32 S17, S15 ; +0xc2, 0x56522a BL _ZN18CharacterColorPage13colorForIndexEi; CharacterColorPage::colorForIndex(int) ; +0xc6, 0x56522e SUBS.W R10, R0, #0 ; +0xca, 0x565232 BLT.W loc_5653AC ; +0xce, 0x565236 BL _ZN18ColorChannelSprite6createEv; ColorChannelSprite::create(void) ; +0xd2, 0x56523a MOV R2, R10; int ; +0xd6, 0x56523e ADD.W R9, SP, #0x64+var_44 ; +0xd8, 0x565240 ADD.W R8, SP, #0x64+var_18 ; +0xdc, 0x565244 MOV R6, R0 ; +0xe0, 0x565248 LDR.W R0, [R5,#0x204]; this ; +0xe2, 0x56524a MOV R1, R6; cocos2d::CCObject * ; +0xe6, 0x56524e BL _ZN7cocos2d12CCDictionary9setObjectEPNS_8CCObjectEi; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,int) ; +0xe8, 0x565250 LDR R3, [R6] ; +0xec, 0x565254 MOV R0, R6 ; +0xee, 0x565256 LDR R1, =0x3F266666 ; +0xf0, 0x565258 LDR R3, [R3,#0x50] ; +0xf2, 0x56525a BLX R3 ; +0xf4, 0x56525c MOV R0, R9; int ; +0xf6, 0x56525e LDR R1, [SP,#0x64+var_48]; char * ; +0xf8, 0x565260 MOV R2, R8 ; +0xfa, 0x565262 BL sub_776584 ; +0xfc, 0x565264 LDR R0, [SP,#0x64+var_44]; this ; +0x100, 0x565268 BL _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0x102, 0x56526a LDR R3, [R0] ; +0x106, 0x56526e MOV R7, R0 ; +0x108, 0x565270 LDR R1, =0x3F4CCCCD ; +0x10a, 0x565272 LDR R3, [R3,#0x50] ; +0x10c, 0x565274 BLX R3 ; +0x10e, 0x565276 LDR R3, [R7] ; +0x110, 0x565278 MOV R0, R7 ; +0x112, 0x56527a MOVS R1, #0x64 ; 'd' ; +0x114, 0x56527c LDR R3, [R3,#0x24] ; +0x116, 0x56527e BLX R3 ; +0x118, 0x565280 LDR R3, [R6] ; +0x11a, 0x565282 MOV R0, R6 ; +0x11c, 0x565284 MOV R1, R7 ; +0x11e, 0x565286 LDR.W R3, [R3,#0xDC] ; +0x120, 0x565288 BLX R3 ; +0x124, 0x56528c VLDR S14, [R6,#0x158] ; +0x126, 0x56528e MOV R0, R8; this ; +0x12a, 0x565292 LDR R3, [R7] ; +0x12c, 0x565294 VLDR S15, [R6,#0x15C] ; +0x12e, 0x565296 LDR.W R11, [R3,#0x5C] ; +0x132, 0x56529a VMUL.F32 S14, S14, S16 ; +0x136, 0x56529e VMUL.F32 S15, S15, S16 ; +0x13a, 0x5652a2 VMOV R1, S14; float ; +0x13e, 0x5652a6 VMOV R2, S15; float ; +0x142, 0x5652aa BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x146, 0x5652ae MOV R0, R7 ; +0x14a, 0x5652b2 MOV R1, R8 ; +0x14c, 0x5652b4 BLX R11 ; +0x14e, 0x5652b6 LDR R3, =(_ZN18CharacterColorPage13onPlayerColorEPN7cocos2d8CCObjectE_ptr - 0x5652C4) ; +0x150, 0x5652b8 MOVS R1, #0 ; +0x152, 0x5652ba MOV R0, R6 ; +0x154, 0x5652bc STR R1, [SP,#0x64+var_64] ; +0x156, 0x5652be ADD R3, PC; _ZN18CharacterColorPage13onPlayerColorEPN7cocos2d8CCObjectE_ptr ; +0x158, 0x5652c0 LDR R3, [R3]; CharacterColorPage::onPlayerColor(cocos2d::CCObject *) ; +0x15a, 0x5652c2 MOV R2, R5 ; +0x15c, 0x5652c4 STR R3, [SP,#0x64+var_10] ; +0x15e, 0x5652c6 STR R1, [SP,#0x64+var_C] ; +0x160, 0x5652c8 BL _ZN21CCMenuItemSpriteExtra6createEPN7cocos2d6CCNodeES2_PNS0_8CCObjectEMS3_FvS4_E; CCMenuItemSpriteExtra::create(cocos2d::CCNode *,cocos2d::CCNode *,cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0x162, 0x5652ca LDR R3, [R0] ; +0x166, 0x5652ce MOV R1, R10 ; +0x168, 0x5652d0 MOV R7, R0 ; +0x16a, 0x5652d2 LDR R3, [R3,#0x24] ; +0x16c, 0x5652d4 BLX R3 ; +0x16e, 0x5652d6 LDR.W R0, [R5,#0x1B8] ; +0x170, 0x5652d8 MOV R1, R7 ; +0x174, 0x5652dc LDR R3, [R0] ; +0x176, 0x5652de LDR.W R3, [R3,#0xDC] ; +0x178, 0x5652e0 BLX R3 ; +0x17c, 0x5652e4 MOV R0, R8; this ; +0x17e, 0x5652e6 MOV R1, R5; int ; +0x180, 0x5652e8 MOV R2, R4 ; +0x182, 0x5652ea BL _ZN18CharacterColorPage14offsetForIndexEi; CharacterColorPage::offsetForIndex(int) ; +0x184, 0x5652ec ADD R0, SP, #0x64+var_30 ; +0x188, 0x5652f0 MOV R1, R8 ; +0x18a, 0x5652f2 LDR R2, =0x41400000 ; +0x18c, 0x5652f4 BL _ZNK7cocos2d7CCPointmlEf; cocos2d::CCPoint::operator*(float) ; +0x18e, 0x5652f6 LDR R3, [R7] ; +0x192, 0x5652fa MOV R0, R4 ; +0x194, 0x5652fc MOVS R1, #0x12 ; +0x196, 0x5652fe VCVT.F32.S32 S17, S17 ; +0x198, 0x565300 ADD.W R8, SP, #0x64+var_28 ; +0x19c, 0x565304 LDR R3, [R3,#0x5C] ; +0x1a0, 0x565308 STR R3, [SP,#0x64+var_54] ; +0x1a2, 0x56530a LDR.W R3, [R5,#0x1B8] ; +0x1a4, 0x56530c STR R3, [SP,#0x64+var_50] ; +0x1a8, 0x565310 BLX __aeabi_idivmod ; +0x1aa, 0x565312 VMOV.F32 S13, #24.0 ; +0x1ae, 0x565316 MOV R0, R8; this ; +0x1b2, 0x56531a VMOV S15, R1 ; +0x1b4, 0x56531c VCVT.F32.S32 S14, S15 ; +0x1b8, 0x565320 VLDR S15, =204.0 ; +0x1bc, 0x565324 VNMLS.F32 S15, S14, S13 ; +0x1c0, 0x565328 VLDR S14, [SP,#0x64+var_30] ; +0x1c4, 0x56532c VADD.F32 S15, S15, S14 ; +0x1c8, 0x565330 VLDR S14, =96.0 ; +0x1cc, 0x565334 VMLS.F32 S14, S17, S13 ; +0x1d0, 0x565338 VMOV.F32 S13, #6.0 ; +0x1d4, 0x56533c VADD.F32 S15, S15, S13 ; +0x1d8, 0x565340 VMOV R1, S15; float ; +0x1dc, 0x565344 VLDR S15, [SP,#0x64+var_2C] ; +0x1e0, 0x565348 VADD.F32 S15, S14, S15 ; +0x1e4, 0x56534c VMOV R2, S15; float ; +0x1e8, 0x565350 BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x1ec, 0x565354 ADD.W R11, SP, #0x64+var_20 ; +0x1f0, 0x565358 LDR R1, [SP,#0x64+var_58] ; +0x1f4, 0x56535c MOV R2, R8 ; +0x1f6, 0x56535e MOV R0, R11 ; +0x1f8, 0x565360 BL _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x1fa, 0x565362 ADD.W R8, SP, #0x64+var_18 ; +0x1fe, 0x565366 LDR R1, [SP,#0x64+var_50]; cocos2d::CCPoint * ; +0x202, 0x56536a MOV R2, R11 ; +0x204, 0x56536c MOV R0, R8; this ; +0x206, 0x56536e BL _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0x208, 0x565370 MOV R0, R7 ; +0x20c, 0x565374 MOV R1, R8 ; +0x20e, 0x565376 LDR R3, [SP,#0x64+var_54] ; +0x210, 0x565378 BLX R3 ; +0x212, 0x56537a LDR R3, [R6] ; +0x214, 0x56537c LDR.W R7, [R3,#0x1D8] ; +0x216, 0x56537e BL _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x21a, 0x565382 MOV R1, R10; int ; +0x21e, 0x565386 BL _ZN11GameManager11colorForIdxEi; GameManager::colorForIdx(int) ; +0x220, 0x565388 UBFX.W R3, R0, #8, #8 ; +0x224, 0x56538c STRB.W R0, [SP,#0x64+var_18] ; +0x228, 0x565390 STRB.W R3, [SP,#0x64+var_17] ; +0x22c, 0x565394 UBFX.W R0, R0, #0x10, #8 ; +0x230, 0x565398 MOV R1, R8 ; +0x234, 0x56539c STRB.W R0, [SP,#0x64+var_16] ; +0x236, 0x56539e MOV R0, R6 ; +0x23a, 0x5653a2 BLX R7 ; +0x23c, 0x5653a4 MOV R0, R9 ; +0x23e, 0x5653a6 BL sub_774008 ; +0x240, 0x5653a8 ADDS R4, #1 ; +0x244, 0x5653ac CMP R4, #0x90 ; +0x246, 0x5653ae BNE.W loc_56520A ; +0x248, 0x5653b0 B loc_5653C0 ; +0x24c, 0x5653b4 MOV R0, R9 ; +0x24e, 0x5653b6 BL sub_774008 ; +0x250, 0x5653b8 BL __cxa_end_cleanup ; +0x254, 0x5653bc LDR R3, [SP,#0x64+var_4C] ; +0x258, 0x5653c0 LDR R2, [SP,#0x64+var_8] ; +0x25a, 0x5653c2 LDR R3, [R3] ; +0x25c, 0x5653c4 CMP R2, R3 ; +0x25e, 0x5653c6 BEQ loc_5653CE ; +0x260, 0x5653c8 BLX __stack_chk_fail ; +0x262, 0x5653ca ADD SP, SP, #0x64 ; 'd' ; +0x266, 0x5653ce VPOP {D8} ; +0x268, 0x5653d0 POP.W {R4-R11,PC} ; +0x26c, 0x5653d4