; ; CharacterColorPage::createColorMenu from 0x69d3b0 to 0x69d634 (644 bytes) ; ; 1 xrefs: ; > CharacterColorPage::init @ 0x69dc4a ; ; 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:56:20 +0000 ; PUSH.W {R4-R11,LR} ; +0x0, 0x69d3b0 MOV R5, R0 ; +0x4, 0x69d3b4 VPUSH {D8} ; +0x6, 0x69d3b6 MOVS R7, #3 ; +0xa, 0x69d3ba LDR R4, =(__stack_chk_guard_ptr - 0x69D3C4) ; +0xc, 0x69d3bc LDR R6, =(aGjSelect001Png - 0x69D3CE); "GJ_select_001.png" ; +0xe, 0x69d3be ADD R4, PC; __stack_chk_guard_ptr ; +0x10, 0x69d3c0 LDR R4, [R4]; __stack_chk_guard ; +0x12, 0x69d3c2 VMOV.F32 S16, #0.5 ; +0x14, 0x69d3c4 SUB SP, SP, #0x6C ; +0x18, 0x69d3c8 ADD R6, PC; "GJ_select_001.png" ; +0x1a, 0x69d3ca LDR R3, [R4] ; +0x1c, 0x69d3cc STR R3, [SP,#0x6C+var_8] ; +0x1e, 0x69d3ce BL _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x20, 0x69d3d0 MOV R1, R0 ; +0x24, 0x69d3d4 ADD R0, SP, #0x6C+var_4C; this ; +0x26, 0x69d3d6 BL _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x28, 0x69d3d8 VLDR S15, [SP,#0x6C+var_4C] ; +0x2c, 0x69d3dc ADD R3, SP, #0x6C+var_44 ; +0x30, 0x69d3e0 STR R3, [SP,#0x6C+var_60] ; +0x32, 0x69d3e2 VLDR S14, [SP,#0x6C+var_48] ; +0x34, 0x69d3e4 MOV R0, R3; this ; +0x38, 0x69d3e8 VMUL.F32 S15, S15, S16 ; +0x3a, 0x69d3ea VMOV R1, S15; float ; +0x3e, 0x69d3ee VLDR S15, =59.0 ; +0x42, 0x69d3f2 VNMLS.F32 S15, S14, S16 ; +0x46, 0x69d3f6 VMOV R2, S15; float ; +0x4a, 0x69d3fa BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x4e, 0x69d3fe BL _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x52, 0x69d402 STR.W R0, [R5,#0x220] ; +0x56, 0x69d406 BL _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x5a, 0x69d40a STR R4, [SP,#0x6C+var_54] ; +0x5e, 0x69d40e MOV R0, R6; this ; +0x60, 0x69d410 BL _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0x62, 0x69d412 LDR R1, =0x3F333333 ; +0x66, 0x69d416 LDR R3, [R0] ; +0x68, 0x69d418 MOV R4, R0 ; +0x6a, 0x69d41a LDR R3, [R3,#0x50] ; +0x6c, 0x69d41c BLX R3 ; +0x6e, 0x69d41e LDR.W R0, [R5,#0x1CC] ; +0x70, 0x69d420 MOV R1, R4 ; +0x74, 0x69d424 MOVS R2, #0xB ; +0x76, 0x69d426 LDR R3, [R0] ; +0x78, 0x69d428 LDR.W R3, [R3,#0xE8] ; +0x7a, 0x69d42a BLX R3 ; +0x7e, 0x69d42e LDR.W R0, [R5,#0x220]; this ; +0x80, 0x69d430 MOV R1, R4; cocos2d::CCObject * ; +0x84, 0x69d434 BL _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x86, 0x69d436 SUBS R7, #1 ; +0x8a, 0x69d43a BNE loc_69D410 ; +0x8c, 0x69d43c BL _ZN7cocos2d12CCDictionary6createEv; cocos2d::CCDictionary::create(void) ; +0x8e, 0x69d43e MOV R4, R7 ; +0x92, 0x69d442 STR.W R0, [R5,#0x21C] ; +0x94, 0x69d444 BL _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x98, 0x69d448 LDR R3, =(aGjLockgray001P - 0x69D452); "GJ_lockGray_001.png" ; +0x9c, 0x69d44c ADD R3, PC; "GJ_lockGray_001.png" ; +0x9e, 0x69d44e STR R3, [SP,#0x6C+var_50] ; +0xa0, 0x69d450 MOVS R1, #0x12 ; +0xa2, 0x69d452 MOV R0, R4 ; +0xa4, 0x69d454 BLX __aeabi_idiv ; +0xa6, 0x69d456 VMOV S15, R0 ; +0xaa, 0x69d45a VCVT.F32.S32 S15, S15 ; +0xae, 0x69d45e VMOV R0, S15; x ; +0xb2, 0x69d462 BLX floorf ; +0xb6, 0x69d466 MOV R1, R4; int ; +0xba, 0x69d46a VMOV S15, R0 ; +0xbc, 0x69d46c MOV R0, R5; this ; +0xc0, 0x69d470 VCVT.S32.F32 S17, S15 ; +0xc2, 0x69d472 BL _ZN18CharacterColorPage13colorForIndexEi; CharacterColorPage::colorForIndex(int) ; +0xc6, 0x69d476 SUBS.W R10, R0, #0 ; +0xca, 0x69d47a BLT.W loc_69D608 ; +0xce, 0x69d47e BL _ZN18ColorChannelSprite6createEv; ColorChannelSprite::create(void) ; +0xd2, 0x69d482 MOV R2, R10; int ; +0xd6, 0x69d486 ADD.W R9, SP, #0x6C+var_14 ; +0xd8, 0x69d488 MOV R6, R0 ; +0xdc, 0x69d48c LDR.W R0, [R5,#0x21C]; this ; +0xde, 0x69d48e MOV R1, R6; cocos2d::CCObject * ; +0xe2, 0x69d492 BL _ZN7cocos2d12CCDictionary9setObjectEPNS_8CCObjectEi; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,int) ; +0xe4, 0x69d494 LDR R3, [R6] ; +0xe8, 0x69d498 MOV R0, R6 ; +0xea, 0x69d49a LDR R1, =0x3F266666 ; +0xec, 0x69d49c LDR R3, [R3,#0x50] ; +0xee, 0x69d49e BLX R3 ; +0xf0, 0x69d4a0 MOV R0, R9 ; +0xf2, 0x69d4a2 LDR R1, [SP,#0x6C+var_50] ; +0xf4, 0x69d4a4 MOVS R2, #0x13 ; +0xf6, 0x69d4a6 MOVS R3, #0 ; +0xf8, 0x69d4a8 STR R3, [SP,#0x6C+var_14] ; +0xfa, 0x69d4aa STR R3, [SP,#0x6C+var_10] ; +0xfc, 0x69d4ac STR R3, [SP,#0x6C+var_C] ; +0xfe, 0x69d4ae BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x100, 0x69d4b0 LDRB.W R3, [SP,#0x6C+var_14] ; +0x104, 0x69d4b4 LSLS R3, R3, #0x1F ; +0x108, 0x69d4b8 ITE PL ; +0x10a, 0x69d4ba ADDPL.W R0, SP, #0x6C+var_14+1 ; +0x10c, 0x69d4bc LDRMI R0, [SP,#0x6C+var_C]; this ; +0x110, 0x69d4c0 BL _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0x112, 0x69d4c2 LDR R3, [R0] ; +0x116, 0x69d4c6 MOV R7, R0 ; +0x118, 0x69d4c8 LDR R1, =0x3F4CCCCD ; +0x11a, 0x69d4ca LDR R3, [R3,#0x50] ; +0x11c, 0x69d4cc BLX R3 ; +0x11e, 0x69d4ce LDR R3, [R7] ; +0x120, 0x69d4d0 MOV R0, R7 ; +0x122, 0x69d4d2 MOVS R1, #0x64 ; 'd' ; +0x124, 0x69d4d4 LDR R3, [R3,#0x24] ; +0x126, 0x69d4d6 BLX R3 ; +0x128, 0x69d4d8 LDR R3, [R6] ; +0x12a, 0x69d4da MOV R0, R6 ; +0x12c, 0x69d4dc MOV R1, R7 ; +0x12e, 0x69d4de LDR.W R3, [R3,#0xE4] ; +0x130, 0x69d4e0 BLX R3 ; +0x134, 0x69d4e4 VLDR S14, [R6,#0x158] ; +0x136, 0x69d4e6 ADD.W R8, SP, #0x6C+var_24 ; +0x13a, 0x69d4ea LDR R3, [R7] ; +0x13e, 0x69d4ee MOV R0, R8; this ; +0x140, 0x69d4f0 VLDR S15, [R6,#0x15C] ; +0x142, 0x69d4f2 LDR.W R11, [R3,#0x5C] ; +0x146, 0x69d4f6 VMUL.F32 S14, S14, S16 ; +0x14a, 0x69d4fa VMUL.F32 S15, S15, S16 ; +0x14e, 0x69d4fe VMOV R1, S14; float ; +0x152, 0x69d502 VMOV R2, S15; float ; +0x156, 0x69d506 BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x15a, 0x69d50a MOV R0, R7 ; +0x15e, 0x69d50e MOV R1, R8 ; +0x160, 0x69d510 BLX R11 ; +0x162, 0x69d512 LDR R3, =(_ZN18CharacterColorPage13onPlayerColorEPN7cocos2d8CCObjectE_ptr - 0x69D520) ; +0x164, 0x69d514 MOVS R1, #0 ; +0x166, 0x69d516 MOV R0, R6 ; +0x168, 0x69d518 STR R1, [SP,#0x6C+var_6C] ; +0x16a, 0x69d51a ADD R3, PC; _ZN18CharacterColorPage13onPlayerColorEPN7cocos2d8CCObjectE_ptr ; +0x16c, 0x69d51c LDR R3, [R3]; CharacterColorPage::onPlayerColor(cocos2d::CCObject *) ; +0x16e, 0x69d51e MOV R2, R5 ; +0x170, 0x69d520 STR R3, [SP,#0x6C+var_1C] ; +0x172, 0x69d522 STR R1, [SP,#0x6C+var_18] ; +0x174, 0x69d524 BL _ZN21CCMenuItemSpriteExtra6createEPN7cocos2d6CCNodeES2_PNS0_8CCObjectEMS3_FvS4_E; CCMenuItemSpriteExtra::create(cocos2d::CCNode *,cocos2d::CCNode *,cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0x176, 0x69d526 LDR R3, [R0] ; +0x17a, 0x69d52a MOV R1, R10 ; +0x17c, 0x69d52c MOV R7, R0 ; +0x17e, 0x69d52e LDR R3, [R3,#0x24] ; +0x180, 0x69d530 BLX R3 ; +0x182, 0x69d532 LDR.W R0, [R5,#0x1BC] ; +0x184, 0x69d534 MOV R1, R7 ; +0x188, 0x69d538 LDR R3, [R0] ; +0x18a, 0x69d53a LDR.W R3, [R3,#0xE4] ; +0x18c, 0x69d53c BLX R3 ; +0x190, 0x69d540 MOV R0, R8; this ; +0x192, 0x69d542 MOV R1, R5; int ; +0x194, 0x69d544 MOV R2, R4 ; +0x196, 0x69d546 BL _ZN18CharacterColorPage14offsetForIndexEi; CharacterColorPage::offsetForIndex(int) ; +0x198, 0x69d548 ADD R0, SP, #0x6C+var_3C ; +0x19c, 0x69d54c MOV R1, R8 ; +0x19e, 0x69d54e LDR R2, =0x41400000 ; +0x1a0, 0x69d550 BL _ZNK7cocos2d7CCPointmlEf; cocos2d::CCPoint::operator*(float) ; +0x1a2, 0x69d552 LDR R3, [R7] ; +0x1a6, 0x69d556 MOV R0, R4 ; +0x1a8, 0x69d558 MOVS R1, #0x12 ; +0x1aa, 0x69d55a VCVT.F32.S32 S17, S17 ; +0x1ac, 0x69d55c ADD.W R8, SP, #0x6C+var_34 ; +0x1b0, 0x69d560 LDR R3, [R3,#0x5C] ; +0x1b4, 0x69d564 STR R3, [SP,#0x6C+var_5C] ; +0x1b6, 0x69d566 LDR.W R3, [R5,#0x1BC] ; +0x1b8, 0x69d568 STR R3, [SP,#0x6C+var_58] ; +0x1bc, 0x69d56c BLX __aeabi_idivmod ; +0x1be, 0x69d56e VMOV.F32 S13, #24.0 ; +0x1c2, 0x69d572 MOV R0, R8; this ; +0x1c6, 0x69d576 VMOV S15, R1 ; +0x1c8, 0x69d578 VCVT.F32.S32 S14, S15 ; +0x1cc, 0x69d57c VLDR S15, =204.0 ; +0x1d0, 0x69d580 VNMLS.F32 S15, S14, S13 ; +0x1d4, 0x69d584 VLDR S14, [SP,#0x6C+var_3C] ; +0x1d8, 0x69d588 VADD.F32 S15, S15, S14 ; +0x1dc, 0x69d58c VLDR S14, =96.0 ; +0x1e0, 0x69d590 VMLS.F32 S14, S17, S13 ; +0x1e4, 0x69d594 VMOV.F32 S13, #6.0 ; +0x1e8, 0x69d598 VADD.F32 S15, S15, S13 ; +0x1ec, 0x69d59c VMOV R1, S15; float ; +0x1f0, 0x69d5a0 VLDR S15, [SP,#0x6C+var_38] ; +0x1f4, 0x69d5a4 VADD.F32 S15, S14, S15 ; +0x1f8, 0x69d5a8 VMOV R2, S15; float ; +0x1fc, 0x69d5ac BL _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x200, 0x69d5b0 ADD.W R11, SP, #0x6C+var_2C ; +0x204, 0x69d5b4 LDR R1, [SP,#0x6C+var_60] ; +0x208, 0x69d5b8 MOV R2, R8 ; +0x20a, 0x69d5ba MOV R0, R11 ; +0x20c, 0x69d5bc BL _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x20e, 0x69d5be ADD.W R8, SP, #0x6C+var_24 ; +0x212, 0x69d5c2 LDR R1, [SP,#0x6C+var_58]; cocos2d::CCPoint * ; +0x216, 0x69d5c6 MOV R2, R11 ; +0x218, 0x69d5c8 MOV R0, R8; this ; +0x21a, 0x69d5ca BL _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0x21c, 0x69d5cc MOV R0, R7 ; +0x220, 0x69d5d0 MOV R1, R8 ; +0x222, 0x69d5d2 LDR R3, [SP,#0x6C+var_5C] ; +0x224, 0x69d5d4 BLX R3 ; +0x226, 0x69d5d6 LDR R3, [R6] ; +0x228, 0x69d5d8 LDR.W R7, [R3,#0x1E0] ; +0x22a, 0x69d5da BL _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x22e, 0x69d5de MOV R1, R10; int ; +0x232, 0x69d5e2 BL _ZN11GameManager11colorForIdxEi; GameManager::colorForIdx(int) ; +0x234, 0x69d5e4 UBFX.W R3, R0, #8, #8 ; +0x238, 0x69d5e8 STRB.W R0, [SP,#0x6C+var_24] ; +0x23c, 0x69d5ec STRB.W R3, [SP,#0x6C+var_23] ; +0x240, 0x69d5f0 UBFX.W R0, R0, #0x10, #8 ; +0x244, 0x69d5f4 MOV R1, R8 ; +0x248, 0x69d5f8 STRB.W R0, [SP,#0x6C+var_22] ; +0x24a, 0x69d5fa MOV R0, R6 ; +0x24e, 0x69d5fe BLX R7 ; +0x250, 0x69d600 MOV R0, R9 ; +0x252, 0x69d602 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x254, 0x69d604 ADDS R4, #1 ; +0x258, 0x69d608 CMP R4, #0x90 ; +0x25a, 0x69d60a BNE.W loc_69D452 ; +0x25c, 0x69d60c B loc_69D61C ; +0x260, 0x69d610 MOV R0, R9 ; +0x262, 0x69d612 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x264, 0x69d614 BL __cxa_end_cleanup ; +0x268, 0x69d618 LDR R3, [SP,#0x6C+var_54] ; +0x26c, 0x69d61c LDR R2, [SP,#0x6C+var_8] ; +0x26e, 0x69d61e LDR R3, [R3] ; +0x270, 0x69d620 CMP R2, R3 ; +0x272, 0x69d622 BEQ loc_69D62A ; +0x274, 0x69d624 BLX __stack_chk_fail ; +0x276, 0x69d626 ADD SP, SP, #0x6C ; 'l' ; +0x27a, 0x69d62a VPOP {D8} ; +0x27c, 0x69d62c POP.W {R4-R11,PC} ; +0x280, 0x69d630