; ; CharacterColorPage::updateIconColors from 0x565404 to 0x565520 (284 bytes) ; ; 3 xrefs: ; > CharacterColorPage::toggleGlow @ 0x565544 ; > CharacterColorPage::onPlayerColor @ 0x5656ba ; > CharacterColorPage::init @ 0x565ca4 ; ; 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, 0x565404 SUB SP, SP, #0x14 ; +0x4, 0x565408 LDR R6, =(__stack_chk_guard_ptr - 0x56541A) ; +0x6, 0x56540a MOV R4, R0 ; +0x8, 0x56540c ADD.W R10, SP, #0x14+var_10 ; +0xa, 0x56540e ADD.W R11, SP, #8 ; +0xe, 0x565412 ADD R6, PC; __stack_chk_guard_ptr ; +0x12, 0x565416 LDR R6, [R6]; __stack_chk_guard ; +0x14, 0x565418 MOV.W R8, #0 ; +0x16, 0x56541a MOV R9, SP ; +0x1a, 0x56541e LDR R3, [R6] ; +0x1c, 0x565420 STR R3, [SP,#0x14+var_8] ; +0x1e, 0x565422 BL _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x20, 0x565424 LDRB.W R5, [R0,#0x290] ; +0x24, 0x565428 BL _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x28, 0x56542c MOV R7, R0 ; +0x2c, 0x565430 BL _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x2e, 0x565432 LDR.W R3, [R0,#0x230] ; +0x32, 0x565436 LDR.W R1, [R0,#0x22C] ; +0x36, 0x56543a MOV R0, R7; this ; +0x3a, 0x56543e SUBS R1, R1, R3; int ; +0x3c, 0x565440 BL _ZN11GameManager11colorForIdxEi; GameManager::colorForIdx(int) ; +0x3e, 0x565442 UBFX.W R3, R0, #8, #8 ; +0x42, 0x565446 STRB.W R0, [SP,#0x14+var_14] ; +0x46, 0x56544a STRB.W R3, [SP,#0x14+var_13] ; +0x4a, 0x56544e UBFX.W R0, R0, #0x10, #8; this ; +0x4e, 0x565452 STRB.W R0, [SP,#0x14+var_12] ; +0x52, 0x565456 BL _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x56, 0x56545a MOV R7, R0 ; +0x5a, 0x56545e BL _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x5c, 0x565460 LDR.W R3, [R0,#0x23C] ; +0x60, 0x565464 LDR.W R1, [R0,#0x238] ; +0x64, 0x565468 MOV R0, R7; this ; +0x68, 0x56546c SUBS R1, R1, R3; int ; +0x6a, 0x56546e BL _ZN11GameManager11colorForIdxEi; GameManager::colorForIdx(int) ; +0x6c, 0x565470 UBFX.W R3, R0, #8, #8 ; +0x70, 0x565474 STRB.W R0, [SP,#0x14+var_10] ; +0x74, 0x565478 STRB.W R3, [SP,#0x14+var_F] ; +0x78, 0x56547c UBFX.W R0, R0, #0x10, #8; this ; +0x7c, 0x565480 STRB.W R0, [SP,#0x14+var_E] ; +0x80, 0x565484 BL _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x84, 0x565488 LDR.W R3, [R0,#0x244] ; +0x88, 0x56548c LDR.W R7, [R0,#0x248] ; +0x8c, 0x565490 SUBS R7, R3, R7 ; +0x90, 0x565494 BL _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x92, 0x565496 MOV R1, R7; int ; +0x96, 0x56549a BL _ZN11GameManager11colorForIdxEi; GameManager::colorForIdx(int) ; +0x98, 0x56549c UBFX.W R3, R0, #8, #8 ; +0x9c, 0x5654a0 STRB.W R0, [SP,#0x14+var_C] ; +0xa0, 0x5654a4 STRB.W R3, [SP,#0x14+var_B] ; +0xa4, 0x5654a8 UBFX.W R0, R0, #0x10, #8 ; +0xa8, 0x5654ac STRB.W R0, [SP,#0x14+var_A] ; +0xac, 0x5654b0 LDR.W R0, [R4,#0x1FC]; this ; +0xb0, 0x5654b4 BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xb4, 0x5654b8 CMP R8, R0 ; +0xb8, 0x5654bc BCS loc_56550E ; +0xba, 0x5654be MOV R1, R8; unsigned int ; +0xbc, 0x5654c0 LDR.W R0, [R4,#0x1FC]; this ; +0xbe, 0x5654c2 BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xc2, 0x5654c6 MOV R1, R9 ; +0xc6, 0x5654ca LDR R3, [R0] ; +0xc8, 0x5654cc MOV R7, R0 ; +0xca, 0x5654ce LDR.W R3, [R3,#0x1D8] ; +0xcc, 0x5654d0 BLX R3 ; +0xd0, 0x5654d4 MOV R0, R7 ; +0xd2, 0x5654d6 MOV R1, R10 ; +0xd4, 0x5654d8 BL _ZN12SimplePlayer14setSecondColorERKN7cocos2d10_ccColor3BE; SimplePlayer::setSecondColor(cocos2d::_ccColor3B const&) ; +0xd6, 0x5654da STRB.W R5, [R7,#0x21C] ; +0xda, 0x5654de BL _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0xde, 0x5654e2 LDR.W R3, [R0,#0x244] ; +0xe2, 0x5654e6 LDR.W R2, [R0,#0x248] ; +0xe6, 0x5654ea MOV R0, R7; this ; +0xea, 0x5654ee SUBS R3, R3, R2 ; +0xec, 0x5654f0 CMP R3, #0 ; +0xee, 0x5654f2 BLT loc_5654FE ; +0xf0, 0x5654f4 MOV R1, R11 ; +0xf2, 0x5654f6 BL _ZN12SimplePlayer21enableCustomGlowColorERKN7cocos2d10_ccColor3BE; SimplePlayer::enableCustomGlowColor(cocos2d::_ccColor3B const&) ; +0xf4, 0x5654f8 B loc_565502 ; +0xf8, 0x5654fc BL _ZN12SimplePlayer22disableCustomGlowColorEv; SimplePlayer::disableCustomGlowColor(void) ; +0xfa, 0x5654fe MOV R0, R7; this ; +0xfe, 0x565502 ADD.W R8, R8, #1 ; +0x100, 0x565504 BL _ZN12SimplePlayer12updateColorsEv; SimplePlayer::updateColors(void) ; +0x104, 0x565508 B loc_5654B4 ; +0x108, 0x56550c LDR R2, [SP,#0x14+var_8] ; +0x10a, 0x56550e LDR R3, [R6] ; +0x10c, 0x565510 CMP R2, R3 ; +0x10e, 0x565512 BEQ loc_56551A ; +0x110, 0x565514 BLX __stack_chk_fail ; +0x112, 0x565516 ADD SP, SP, #0x14 ; +0x116, 0x56551a POP.W {R4-R11,PC} ; +0x118, 0x56551c