; ; ColorSelectPopup::updateTextInputLabel from 0x3da4dc to 0x3da57e (162 bytes) ; ; 2 xrefs: ; > ColorSelectPopup::onUpdateCustomColor @ 0x3da5dc ; > ColorSelectPopup::init @ 0x3dbbca ; ; 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 {R0-R8,LR} ; +0x0, 0x3da4dc MOV R5, R0 ; +0x4, 0x3da4e0 LDR R6, =(__stack_chk_guard_ptr - 0x3DA4EC) ; +0x6, 0x3da4e2 LDR.W R1, [R5,#0x300]; char * ; +0x8, 0x3da4e4 ADD R6, PC; __stack_chk_guard_ptr ; +0xc, 0x3da4e8 LDR R6, [R6]; __stack_chk_guard ; +0xe, 0x3da4ea LDR R3, [R6] ; +0x10, 0x3da4ec STR R3, [SP,#0x10+var_4] ; +0x12, 0x3da4ee MOVS R3, #1 ; +0x14, 0x3da4f0 STRB.W R3, [R0,#0x220] ; +0x16, 0x3da4f2 LDR R0, =(aI - 0x3DA4FC); "%i" ; +0x1a, 0x3da4f6 ADD R0, PC; "%i" ; +0x1c, 0x3da4f8 BL _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x1e, 0x3da4fa BL _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x22, 0x3da4fe LDR.W R3, [R5,#0x300] ; +0x26, 0x3da502 CMP.W R3, #0x3E8 ; +0x2a, 0x3da506 MOV R1, R0 ; +0x2e, 0x3da50a BLT loc_3DA512 ; +0x30, 0x3da50c LDR R1, =(a0 - 0x3DA514); "0" ; +0x32, 0x3da50e ADD R1, PC; "0" ; +0x34, 0x3da510 LDR.W R8, [R5,#0x2F4] ; +0x36, 0x3da512 ADD R4, SP, #0x10+var_8 ; +0x3a, 0x3da516 ADD R7, SP, #0x10+var_C ; +0x3c, 0x3da518 MOV R0, R4; int ; +0x3e, 0x3da51a MOV R2, R7 ; +0x40, 0x3da51c BL sub_776584 ; +0x42, 0x3da51e MOV R0, R8 ; +0x46, 0x3da522 MOV R1, R4 ; +0x48, 0x3da524 BL _ZN15CCTextInputNode9setStringESs; CCTextInputNode::setString(std::string) ; +0x4a, 0x3da526 MOV R0, R4 ; +0x4e, 0x3da52a BL sub_774008 ; +0x50, 0x3da52c LDR.W R0, [R5,#0x300]; this ; +0x54, 0x3da530 CMP.W R0, #0x3E8 ; +0x58, 0x3da534 BLT loc_3DA55A ; +0x5c, 0x3da538 LDR.W R8, [R5,#0x2F4] ; +0x5e, 0x3da53a BL _ZN20GJSpecialColorSelect15textForColorIdxEi; GJSpecialColorSelect::textForColorIdx(int) ; +0x62, 0x3da53e MOV R2, R7 ; +0x66, 0x3da542 MOV R1, R0; char * ; +0x68, 0x3da544 MOV R0, R4; int ; +0x6a, 0x3da546 BL sub_776584 ; +0x6c, 0x3da548 MOV R0, R8 ; +0x70, 0x3da54c MOV R1, R4 ; +0x72, 0x3da54e BL _ZN15CCTextInputNode11updateLabelESs; CCTextInputNode::updateLabel(std::string) ; +0x74, 0x3da550 MOV R0, R4 ; +0x78, 0x3da554 BL sub_774008 ; +0x7a, 0x3da556 MOVS R3, #0 ; +0x7e, 0x3da55a LDR R2, [SP,#0x10+var_4] ; +0x80, 0x3da55c STRB.W R3, [R5,#0x220] ; +0x82, 0x3da55e LDR R3, [R6] ; +0x86, 0x3da562 CMP R2, R3 ; +0x88, 0x3da564 BEQ loc_3DA578 ; +0x8a, 0x3da566 BLX __stack_chk_fail ; +0x8c, 0x3da568 B loc_3DA56E ; +0x90, 0x3da56c MOV R0, R4 ; +0x92, 0x3da56e BL sub_774008 ; +0x94, 0x3da570 BL __cxa_end_cleanup ; +0x98, 0x3da574 ADD SP, SP, #0x10 ; +0x9c, 0x3da578 POP.W {R4-R8,PC} ; +0x9e, 0x3da57a