; ; ColorSelectPopup::onDefault from 0x4df3c8 to 0x4df55e (406 bytes) ; ; 0 xrefs: ; ; 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:50:59 +0000 ; PUSH.W {R4-R9,LR} ; +0x0, 0x4df3c8 SUB SP, SP, #0x2C ; +0x4, 0x4df3cc LDR R6, =(__stack_chk_guard_ptr - 0x4DF3D6) ; +0x6, 0x4df3ce MOV R4, R0 ; +0x8, 0x4df3d0 ADD R6, PC; __stack_chk_guard_ptr ; +0xa, 0x4df3d2 LDR R6, [R6]; __stack_chk_guard ; +0xc, 0x4df3d4 LDR R3, [R6] ; +0xe, 0x4df3d6 STR R3, [SP,#0x2C+var_8] ; +0x10, 0x4df3d8 BL _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x12, 0x4df3da LDR.W R3, [R0,#0x198] ; +0x16, 0x4df3de CMP R3, #0 ; +0x1a, 0x4df3e2 BEQ.W loc_4DF54C ; +0x1c, 0x4df3e4 LDR.W R3, [R4,#0x210] ; +0x20, 0x4df3e8 CMP R3, #0 ; +0x24, 0x4df3ec BEQ loc_4DF46C ; +0x26, 0x4df3ee BL _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x28, 0x4df3f0 LDR.W R3, [R0,#0x198] ; +0x2c, 0x4df3f4 LDR.W R2, [R3,#0x824] ; +0x30, 0x4df3f8 LDR.W R3, [R4,#0x210] ; +0x34, 0x4df3fc LDR.W R0, [R2,#0x108]; this ; +0x38, 0x4df400 LDR.W R1, [R3,#0x378]; int ; +0x3c, 0x4df404 BL _ZN15GJEffectManager14getColorActionEi; GJEffectManager::getColorAction(int) ; +0x40, 0x4df408 MOV R5, R0 ; +0x44, 0x4df40c CMP R0, #0 ; +0x46, 0x4df40e BEQ.W loc_4DF54C ; +0x48, 0x4df410 LDRB.W R2, [R0,#0x45] ; +0x4c, 0x4df414 LDRB.W R3, [R0,#0x46] ; +0x50, 0x4df418 LDRB.W R1, [R0,#0x44] ; +0x54, 0x4df41c MOV R0, R4 ; +0x58, 0x4df420 STRB.W R2, [SP,#0x2C+var_24+1] ; +0x5a, 0x4df422 STRB.W R3, [SP,#0x2C+var_24+2] ; +0x5e, 0x4df426 STRB.W R1, [SP,#0x2C+var_24] ; +0x62, 0x4df42a LDR R1, [SP,#0x2C+var_24] ; +0x66, 0x4df42e BL _ZN16ColorSelectPopup11selectColorEN7cocos2d10_ccColor3BE; ColorSelectPopup::selectColor(cocos2d::_ccColor3B) ; +0x68, 0x4df430 LDRB.W R3, [R5,#0x50] ; +0x6c, 0x4df434 LDR.W R2, [R4,#0x308] ; +0x70, 0x4df438 CMP R2, R3 ; +0x74, 0x4df43c BEQ loc_4DF448 ; +0x76, 0x4df43e MOV R0, R4; this ; +0x78, 0x4df440 MOVS R1, #0; cocos2d::CCObject * ; +0x7a, 0x4df442 BL _ZN16ColorSelectPopup16onToggleTintModeEPN7cocos2d8CCObjectE; ColorSelectPopup::onToggleTintMode(cocos2d::CCObject *) ; +0x7c, 0x4df444 LDR R3, [R5,#0x5C] ; +0x80, 0x4df448 MOV R0, R4; this ; +0x82, 0x4df44a STR.W R3, [R4,#0x30C] ; +0x84, 0x4df44c BL _ZN16ColorSelectPopup13updateOpacityEv; ColorSelectPopup::updateOpacity(void) ; +0x88, 0x4df450 MOV R0, R4; this ; +0x8c, 0x4df454 BL _ZN16ColorSelectPopup18updateOpacityLabelEv; ColorSelectPopup::updateOpacityLabel(void) ; +0x8e, 0x4df456 LDR.W R0, [R4,#0x2E0]; this ; +0x92, 0x4df45a CMP R0, #0 ; +0x96, 0x4df45e BEQ loc_4DF54C ; +0x98, 0x4df460 LDR.W R1, [R4,#0x30C]; float ; +0x9a, 0x4df462 BL _ZN6Slider8setValueEf; Slider::setValue(float) ; +0x9e, 0x4df466 B loc_4DF54C ; +0xa2, 0x4df46a LDR.W R3, [R4,#0x214] ; +0xa4, 0x4df46c CMP R3, #0 ; +0xa8, 0x4df470 BEQ loc_4DF54C ; +0xaa, 0x4df472 LDR R3, [R3,#0x34] ; +0xac, 0x4df474 LDR R0, [R3]; this ; +0xae, 0x4df476 CBNZ R0, loc_4DF4AE ; +0xb0, 0x4df478 LDR R3, [R4] ; +0xb2, 0x4df47a ADD R7, SP, #0x2C+var_20 ; +0xb4, 0x4df47c LDR R1, =(aDefaultsLoaded - 0x4DF48A); "Defaults Loaded" ; +0xb6, 0x4df47e MOVS R2, #0xF ; +0xb8, 0x4df480 MOV R0, R7 ; +0xba, 0x4df482 MOVS R5, #0 ; +0xbc, 0x4df484 ADD R1, PC; "Defaults Loaded" ; +0xbe, 0x4df486 LDR.W R9, [R3,#0xE8] ; +0xc0, 0x4df488 STR R5, [SP,#0x2C+var_20] ; +0xc4, 0x4df48c ADD.W R8, SP, #0x2C+var_14 ; +0xc6, 0x4df48e STR R5, [SP,#0x2C+var_1C] ; +0xca, 0x4df492 STR R5, [SP,#0x2C+var_18] ; +0xcc, 0x4df494 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0xce, 0x4df496 LDR R1, =(unk_B6B226 - 0x4DF4A6) ; +0xd2, 0x4df49a MOV R0, R8 ; +0xd4, 0x4df49c MOV R2, R5 ; +0xd6, 0x4df49e STR R5, [SP,#0x2C+var_14] ; +0xd8, 0x4df4a0 ADD R1, PC; unk_B6B226 ; +0xda, 0x4df4a2 STR R5, [SP,#0x2C+var_10] ; +0xdc, 0x4df4a4 STR R5, [SP,#0x2C+var_C] ; +0xde, 0x4df4a6 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0xe0, 0x4df4a8 B loc_4DF4C8 ; +0xe4, 0x4df4ac ADD.W R5, R0, #0x40000000 ; +0xe6, 0x4df4ae LDR R3, [R3,#0xC] ; +0xea, 0x4df4b2 SUBS R5, #1 ; +0xec, 0x4df4b4 ADD.W R7, R3, R5,LSL#2 ; +0xee, 0x4df4b6 MOV R8, R3 ; +0xf2, 0x4df4ba CMP R8, R7 ; +0xf4, 0x4df4bc BHI loc_4DF47A ; +0xf6, 0x4df4be LDR.W R5, [R8],#4 ; +0xf8, 0x4df4c0 CBNZ R5, loc_4DF502 ; +0xfc, 0x4df4c4 B loc_4DF47A ; +0xfe, 0x4df4c6 STR.W R8, [SP,#0x2C+var_2C] ; +0x100, 0x4df4c8 MOV R0, R7 ; +0x104, 0x4df4cc MOV.W R1, #0x3F000000 ; +0x106, 0x4df4ce LDR R2, =0x3F19999A ; +0x10a, 0x4df4d2 MOVS R3, #0x96 ; +0x10c, 0x4df4d4 BL _ZN14TextAlertPopup6createENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEffiS6_; TextAlertPopup::create(std::string,float,float,int,std::string) ; +0x10e, 0x4df4d6 MOV R1, R0 ; +0x112, 0x4df4da MOVS R2, #0x64 ; 'd' ; +0x114, 0x4df4dc MOV R0, R4 ; +0x116, 0x4df4de BLX R9 ; +0x118, 0x4df4e0 MOV R0, R8 ; +0x11a, 0x4df4e2 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x11c, 0x4df4e4 MOV R0, R7 ; +0x120, 0x4df4e8 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x122, 0x4df4ea B loc_4DF54C ; +0x126, 0x4df4ee MOV R0, R8 ; +0x128, 0x4df4f0 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x12a, 0x4df4f2 B loc_4DF4F8 ; +0x12e, 0x4df4f6 MOV R0, R7 ; +0x130, 0x4df4f8 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x132, 0x4df4fa BL __cxa_end_cleanup ; +0x136, 0x4df4fe BL _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x13a, 0x4df502 LDR.W R1, [R5,#0x378]; int ; +0x13e, 0x4df506 LDR.W R2, [R0,#0x198] ; +0x142, 0x4df50a LDR.W R2, [R2,#0x824] ; +0x146, 0x4df50e LDR.W R0, [R2,#0x108]; this ; +0x14a, 0x4df512 BL _ZN15GJEffectManager14getColorActionEi; GJEffectManager::getColorAction(int) ; +0x14e, 0x4df516 CMP R0, #0 ; +0x152, 0x4df51a BEQ loc_4DF4BC ; +0x154, 0x4df51c LDRB.W R2, [R0,#0x45] ; +0x156, 0x4df51e ADDW R5, R5, #0x4FC ; +0x15a, 0x4df522 LDRB.W R3, [R0,#0x46] ; +0x15e, 0x4df526 LDRB.W R1, [R0,#0x44] ; +0x162, 0x4df52a STRB.W R2, [R5,#-7] ; +0x166, 0x4df52e STRB.W R3, [R5,#-6] ; +0x16a, 0x4df532 STRB.W R1, [R5,#-8] ; +0x16e, 0x4df536 LDRB.W R3, [R0,#0x50] ; +0x172, 0x4df53a STRB R3, [R5,#0x1F] ; +0x176, 0x4df53e LDR R3, [R0,#0x5C] ; +0x178, 0x4df540 STR R3, [R5] ; +0x17a, 0x4df542 LDR R2, [R0,#0x5C] ; +0x17c, 0x4df544 STR.W R2, [R4,#0x30C] ; +0x17e, 0x4df546 B loc_4DF4BC ; +0x182, 0x4df54a LDR R2, [SP,#0x2C+var_8] ; +0x184, 0x4df54c LDR R3, [R6] ; +0x186, 0x4df54e CMP R2, R3 ; +0x188, 0x4df550 BEQ loc_4DF558 ; +0x18a, 0x4df552 BLX __stack_chk_fail ; +0x18c, 0x4df554 ADD SP, SP, #0x2C ; ',' ; +0x190, 0x4df558 POP.W {R4-R9,PC} ; +0x192, 0x4df55a