; ; ColorSelectPopup::textChanged from 0x4e2128 to 0x4e2354 (556 bytes) ; ; 1 xrefs: ; > `non-virtual thunk to'ColorSelectPopup::textChanged @ 0x4e2364 ; ; 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:51:02 +0000 ; PUSH.W {R4-R8,LR} ; +0x0, 0x4e2128 MOV R4, R0 ; +0x4, 0x4e212c VPUSH {D8} ; +0x6, 0x4e212e MOV R5, R1 ; +0xa, 0x4e2132 LDR R3, =(__stack_chk_guard_ptr - 0x4E213A) ; +0xc, 0x4e2134 ADD R3, PC; __stack_chk_guard_ptr ; +0xe, 0x4e2136 LDR R3, [R3]; __stack_chk_guard ; +0x10, 0x4e2138 SUB SP, SP, #0x10 ; +0x12, 0x4e213a LDR R2, [R3] ; +0x14, 0x4e213c MOV R7, R3 ; +0x16, 0x4e213e STR R2, [SP,#0x10+var_4] ; +0x18, 0x4e2140 LDRB.W R2, [R0,#0x238] ; +0x1a, 0x4e2142 CMP R2, #0 ; +0x1e, 0x4e2146 BNE.W def_4E215C; jumptable 004E215C default case, cases 6,7 ; +0x20, 0x4e2148 LDR R3, [R1] ; +0x24, 0x4e214c MOV R0, R1 ; +0x26, 0x4e214e LDR R3, [R3,#0x20] ; +0x28, 0x4e2150 BLX R3 ; +0x2a, 0x4e2152 SUBS R0, #3; switch 9 cases ; +0x2c, 0x4e2154 CMP R0, #8 ; +0x2e, 0x4e2156 BHI.W def_4E215C; jumptable 004E215C default case, cases 6,7 ; +0x30, 0x4e2158 TBH.W [PC,R0,LSL#1]; switch jump ; +0x34, 0x4e215c DCW 9; jump table for switch statement ; +0x38, 0x4e2160 DCW 0x2E ; +0x3a, 0x4e2162 DCW 0x50 ; +0x3c, 0x4e2164 DCW 0xEF ; +0x3e, 0x4e2166 DCW 0xEF ; +0x40, 0x4e2168 DCW 0x94 ; +0x42, 0x4e216a DCW 0x94 ; +0x44, 0x4e216c DCW 0x94 ; +0x46, 0x4e216e DCW 0xBA ; +0x48, 0x4e2170 MOV R1, R5; jumptable 004E215C case 3 ; +0x4a, 0x4e2172 MOV R0, SP; this ; +0x4c, 0x4e2174 BL _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x4e, 0x4e2176 LDRB.W R3, [SP,#0x10+var_10] ; +0x52, 0x4e217a LSLS R5, R3, #0x1F ; +0x56, 0x4e217e ITE PL ; +0x58, 0x4e2180 ADDPL.W R0, SP, #0x10+var_F ; +0x5a, 0x4e2182 LDRMI R0, [SP,#0x10+var_8]; char * ; +0x5e, 0x4e2186 BLX atoi ; +0x60, 0x4e2188 STR.W R0, [R4,#0x320] ; +0x64, 0x4e218c MOV R0, SP ; +0x68, 0x4e2190 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x6a, 0x4e2192 LDR.W R3, [R4,#0x320] ; +0x6e, 0x4e2196 MOVW R2, #0x3E7 ; +0x72, 0x4e219a MOV R0, R4; this ; +0x76, 0x4e219e BIC.W R3, R3, R3,ASR#31 ; +0x78, 0x4e21a0 CMP R3, R2 ; +0x7c, 0x4e21a4 ITE LE ; +0x7e, 0x4e21a6 STRLE.W R3, [R4,#0x320] ; +0x80, 0x4e21a8 STRGT.W R2, [R4,#0x320] ; +0x84, 0x4e21ac BL _ZN16ColorSelectPopup20updateCustomColorIdxEv; ColorSelectPopup::updateCustomColorIdx(void) ; +0x88, 0x4e21b0 MOV R0, R4; this ; +0x8c, 0x4e21b4 BL _ZN17SetupTriggerPopup17updateEditorLabelEv; SetupTriggerPopup::updateEditorLabel(void) ; +0x8e, 0x4e21b6 B def_4E215C; jumptable 004E215C default case, cases 6,7 ; +0x92, 0x4e21ba MOV R0, SP; jumptable 004E215C case 4 ; +0x94, 0x4e21bc MOV R1, R5 ; +0x96, 0x4e21be BL _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x98, 0x4e21c0 LDRB.W R3, [SP,#0x10+var_10] ; +0x9c, 0x4e21c4 LSLS R0, R3, #0x1F ; +0xa0, 0x4e21c8 ITE PL ; +0xa2, 0x4e21ca ADDPL.W R0, SP, #0x10+var_F ; +0xa4, 0x4e21cc LDRMI R0, [SP,#0x10+var_8]; char * ; +0xa8, 0x4e21d0 BLX atoi ; +0xaa, 0x4e21d2 STR.W R0, [R4,#0x328] ; +0xae, 0x4e21d6 MOV R0, SP ; +0xb2, 0x4e21da BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xb4, 0x4e21dc LDR.W R3, [R4,#0x328] ; +0xb8, 0x4e21e0 MOVW R2, #0x3E7 ; +0xbc, 0x4e21e4 MOV R0, R4; this ; +0xc0, 0x4e21e8 BIC.W R3, R3, R3,ASR#31 ; +0xc2, 0x4e21ea CMP R3, R2 ; +0xc6, 0x4e21ee ITE LE ; +0xc8, 0x4e21f0 STRLE.W R3, [R4,#0x328] ; +0xca, 0x4e21f2 STRGT.W R2, [R4,#0x328] ; +0xce, 0x4e21f6 BL _ZN16ColorSelectPopup15updateCopyColorEv; ColorSelectPopup::updateCopyColor(void) ; +0xd2, 0x4e21fa B def_4E215C; jumptable 004E215C default case, cases 6,7 ; +0xd6, 0x4e21fe MOV R0, SP; jumptable 004E215C case 5 ; +0xd8, 0x4e2200 MOV R1, R5 ; +0xda, 0x4e2202 BL _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0xdc, 0x4e2204 LDRB.W R3, [SP,#0x10+var_10] ; +0xe0, 0x4e2208 LSLS R1, R3, #0x1F ; +0xe4, 0x4e220c ITE PL ; +0xe6, 0x4e220e ADDPL.W R0, SP, #0x10+var_F ; +0xe8, 0x4e2210 LDRMI R0, [SP,#0x10+var_8]; char * ; +0xec, 0x4e2214 BLX atof ; +0xee, 0x4e2216 VMOV D8, R0, R1 ; +0xf2, 0x4e221a MOV R0, SP ; +0xf6, 0x4e221e BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xf8, 0x4e2220 LDR R0, =(a02f_0 - 0x4E222E); "%.02f" ; +0xfc, 0x4e2224 VCVT.F32.F64 S16, D8 ; +0xfe, 0x4e2226 ADD R0, PC; "%.02f" ; +0x102, 0x4e222a VCVT.F64.F32 D7, S16 ; +0x104, 0x4e222c VMOV R2, R3, D7 ; +0x108, 0x4e2230 BL _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x10c, 0x4e2234 BL _ZNK7cocos2d8CCString10floatValueEv; cocos2d::CCString::floatValue(void) ; +0x110, 0x4e2238 STR.W R0, [R4,#0x300] ; +0x114, 0x4e223c MOV R0, R4; this ; +0x118, 0x4e2240 BL _ZN16ColorSelectPopup14updateDurationEv; ColorSelectPopup::updateDuration(void) ; +0x11a, 0x4e2242 VMOV.F32 S14, #10.0 ; +0x11e, 0x4e2246 VLDR S15, [R4,#0x300] ; +0x122, 0x4e224a LDR.W R0, [R4,#0x2DC]; this ; +0x126, 0x4e224e VDIV.F32 S15, S15, S14 ; +0x12a, 0x4e2252 VMOV.F32 S14, #1.0 ; +0x12e, 0x4e2256 VCMPE.F32 S15, S14 ; +0x132, 0x4e225a VMRS APSR_nzcv, FPSCR ; +0x136, 0x4e225e BPL loc_4E2278 ; +0x13a, 0x4e2262 VCMPE.F32 S15, #0.0 ; +0x13c, 0x4e2264 VLDR S14, =0.0 ; +0x140, 0x4e2268 VMRS APSR_nzcv, FPSCR ; +0x144, 0x4e226c IT LE ; +0x148, 0x4e2270 VMOVLE.F32 S15, S14 ; +0x14a, 0x4e2272 B loc_4E227E ; +0x14e, 0x4e2276 IT PL ; +0x150, 0x4e2278 VMOVPL.F32 S15, S14 ; +0x152, 0x4e227a VMOV R1, S15; float ; +0x156, 0x4e227e BL _ZN6Slider8setValueEf; Slider::setValue(float) ; +0x15a, 0x4e2282 B def_4E215C; jumptable 004E215C default case, cases 6,7 ; +0x15e, 0x4e2286 MOV R0, SP; jumptable 004E215C cases 8-10 ; +0x160, 0x4e2288 MOV R1, R5 ; +0x162, 0x4e228a BL _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x164, 0x4e228c LDRB.W R3, [SP,#0x10+var_10] ; +0x168, 0x4e2290 LSLS R2, R3, #0x1F ; +0x16c, 0x4e2294 ITE PL ; +0x16e, 0x4e2296 ADDPL.W R0, SP, #0x10+var_F ; +0x170, 0x4e2298 LDRMI R0, [SP,#0x10+var_8]; char * ; +0x174, 0x4e229c BLX atoi ; +0x176, 0x4e229e MOV R6, R0 ; +0x17a, 0x4e22a2 MOV R0, SP ; +0x17c, 0x4e22a4 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x17e, 0x4e22a6 LDR R3, [R5] ; +0x182, 0x4e22aa MOV R0, R5 ; +0x184, 0x4e22ac USAT.W R6, #8, R6 ; +0x186, 0x4e22ae LDR R3, [R3,#0x20] ; +0x18a, 0x4e22b2 BLX R3 ; +0x18c, 0x4e22b4 CMP R0, #9 ; +0x18e, 0x4e22b6 BEQ loc_4E22C8 ; +0x190, 0x4e22b8 CMP R0, #0xA ; +0x192, 0x4e22ba BEQ loc_4E22CE ; +0x194, 0x4e22bc CMP R0, #8 ; +0x196, 0x4e22be BNE loc_4E2328 ; +0x198, 0x4e22c0 STRB.W R6, [R4,#0x2F8] ; +0x19a, 0x4e22c2 B loc_4E2328 ; +0x19e, 0x4e22c6 STRB.W R6, [R4,#0x2F9] ; +0x1a0, 0x4e22c8 B loc_4E2328 ; +0x1a4, 0x4e22cc STRB.W R6, [R4,#0x2FA] ; +0x1a6, 0x4e22ce B loc_4E2328 ; +0x1aa, 0x4e22d2 MOV R0, SP; jumptable 004E215C case 11 ; +0x1ac, 0x4e22d4 LDR.W R1, [R4,#0x36C] ; +0x1ae, 0x4e22d6 BL _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x1b2, 0x4e22da LDRB.W R3, [SP,#0x10+var_10] ; +0x1b6, 0x4e22de MOV R5, SP ; +0x1ba, 0x4e22e2 LSLS R3, R3, #0x1F ; +0x1bc, 0x4e22e4 ITE PL ; +0x1be, 0x4e22e6 ADDPL.W R0, SP, #0x10+var_F ; +0x1c0, 0x4e22e8 LDRMI R0, [SP,#0x10+var_8]; char * ; +0x1c4, 0x4e22ec BLX strlen ; +0x1c6, 0x4e22ee MOV R6, R0 ; +0x1ca, 0x4e22f2 MOV R0, SP ; +0x1cc, 0x4e22f4 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x1ce, 0x4e22f6 CMP R6, #6 ; +0x1d2, 0x4e22fa BNE def_4E215C; jumptable 004E215C default case, cases 6,7 ; +0x1d4, 0x4e22fc MOV R0, SP; this ; +0x1d6, 0x4e22fe LDR.W R1, [R4,#0x36C] ; +0x1d8, 0x4e2300 BL _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x1dc, 0x4e2304 MOV R0, SP ; +0x1e0, 0x4e2308 BL _ZN16ColorSelectPopup10hexToColorENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; ColorSelectPopup::hexToColor(std::string) ; +0x1e2, 0x4e230a UBFX.W R3, R0, #8, #8 ; +0x1e6, 0x4e230e STRB.W R0, [R4,#0x2F8] ; +0x1ea, 0x4e2312 STRB.W R3, [R4,#0x2F9] ; +0x1ee, 0x4e2316 UBFX.W R0, R0, #0x10, #8 ; +0x1f2, 0x4e231a STRB.W R0, [R4,#0x2FA] ; +0x1f6, 0x4e231e MOV R0, SP ; +0x1fa, 0x4e2322 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x1fc, 0x4e2324 MOV R0, R4 ; +0x200, 0x4e2328 LDR.W R1, [R4,#0x2F8] ; +0x202, 0x4e232a BL _ZN16ColorSelectPopup11selectColorEN7cocos2d10_ccColor3BE; ColorSelectPopup::selectColor(cocos2d::_ccColor3B) ; +0x206, 0x4e232e B def_4E215C; jumptable 004E215C default case, cases 6,7 ; +0x20a, 0x4e2332 MOV R0, R5 ; +0x20c, 0x4e2334 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x20e, 0x4e2336 BL __cxa_end_cleanup ; +0x212, 0x4e233a LDR R2, [SP,#0x10+var_4]; jumptable 004E215C default case, cases 6,7 ; +0x216, 0x4e233e LDR R3, [R7] ; +0x218, 0x4e2340 CMP R2, R3 ; +0x21a, 0x4e2342 BEQ loc_4E234A ; +0x21c, 0x4e2344 BLX __stack_chk_fail ; +0x21e, 0x4e2346 ADD SP, SP, #0x10 ; +0x222, 0x4e234a VPOP {D8} ; +0x224, 0x4e234c POP.W {R4-R8,PC} ; +0x228, 0x4e2350