; ; CreateStartPosPopup::onCreate from 0x491c9c to 0x491e6c (464 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:49:38 +0000 ; PUSH.W {R4-R9,LR} ; +0x0, 0x491c9c SUB SP, SP, #0x54 ; +0x4, 0x491ca0 LDR R6, =(__stack_chk_guard_ptr - 0x491CAE) ; +0x6, 0x491ca2 ADD R4, SP, #0x54+var_50 ; +0x8, 0x491ca4 LDR R1, =(unk_B6B226 - 0x491CB4) ; +0xa, 0x491ca6 MOVS R2, #0 ; +0xc, 0x491ca8 ADD R6, PC; __stack_chk_guard_ptr ; +0xe, 0x491caa LDR R6, [R6]; __stack_chk_guard ; +0x10, 0x491cac MOV R7, R0 ; +0x12, 0x491cae ADD R1, PC; unk_B6B226 ; +0x14, 0x491cb0 MOV R0, R4 ; +0x16, 0x491cb2 LDR R3, [R6] ; +0x18, 0x491cb4 STR R2, [SP,#0x54+var_50] ; +0x1a, 0x491cb6 STR R2, [SP,#0x54+var_4C] ; +0x1c, 0x491cb8 STR R3, [SP,#0x54+var_8] ; +0x1e, 0x491cba STR R2, [SP,#0x54+var_48] ; +0x20, 0x491cbc BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x22, 0x491cbe LDR.W R0, [R7,#0x240]; this ; +0x26, 0x491cc2 MOV.W R1, #0xFFFFFFFF; int ; +0x2a, 0x491cc6 BL _ZN7cocos2d12CCDictionary12objectForKeyEi; cocos2d::CCDictionary::objectForKey(int) ; +0x2e, 0x491cca MOV R1, R0 ; +0x32, 0x491cce CMP R0, #0 ; +0x34, 0x491cd0 BEQ loc_491DD4 ; +0x36, 0x491cd2 ADD.W R8, SP, #0x54+var_44 ; +0x38, 0x491cd4 MOV R0, R8; this ; +0x3c, 0x491cd8 BL _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x3e, 0x491cda LDRB.W R3, [SP,#0x54+var_50] ; +0x42, 0x491cde MOV R0, R4 ; +0x46, 0x491ce2 MOVS R1, #0 ; +0x48, 0x491ce4 MOVS R5, #0 ; +0x4a, 0x491ce6 ANDS.W R3, R3, #1 ; +0x4c, 0x491ce8 ITTEE EQ ; +0x50, 0x491cec STRBEQ.W R3, [SP,#0x54+var_50+1] ; +0x52, 0x491cee STRBEQ.W R3, [SP,#0x54+var_50] ; +0x56, 0x491cf2 LDRNE R2, [SP,#0x54+var_48] ; +0x5a, 0x491cf6 MOVNE R3, #0 ; +0x5c, 0x491cf8 ITT NE ; +0x5e, 0x491cfa STRBNE R3, [R2] ; +0x60, 0x491cfc STRNE R3, [SP,#0x54+var_4C] ; +0x62, 0x491cfe BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEj; std::string::reserve(uint) ; +0x64, 0x491d00 LDM.W R8, {R0-R2} ; +0x68, 0x491d04 STR R5, [SP,#0x54+var_44] ; +0x6c, 0x491d08 STR R5, [SP,#0x54+var_40] ; +0x6e, 0x491d0a STR R5, [SP,#0x54+var_3C] ; +0x70, 0x491d0c STM.W R4, {R0-R2} ; +0x72, 0x491d0e MOV R0, R8 ; +0x76, 0x491d12 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x78, 0x491d14 LDRB.W R2, [SP,#0x54+var_50] ; +0x7c, 0x491d18 ANDS.W R3, R2, #1 ; +0x80, 0x491d1c BEQ loc_491D2C ; +0x84, 0x491d20 LDR R3, [SP,#0x54+var_4C] ; +0x86, 0x491d22 CMP R3, #0x14 ; +0x88, 0x491d24 BHI.W loc_491E5C ; +0x8a, 0x491d26 B loc_491D7E ; +0x8e, 0x491d2a CMP R2, #0x29 ; ')' ; +0x90, 0x491d2c BLS loc_491D7E ; +0x92, 0x491d2e ADD.W R1, SP, #0x54+var_50+1 ; +0x94, 0x491d30 STR R3, [SP,#0x54+var_38] ; +0x98, 0x491d34 STR R3, [SP,#0x54+var_34] ; +0x9a, 0x491d36 STR R3, [SP,#0x54+var_30] ; +0x9c, 0x491d38 ADD R5, SP, #0x54+var_38 ; +0x9e, 0x491d3a MOVS R2, #0x14 ; +0xa0, 0x491d3c MOV R0, R5 ; +0xa2, 0x491d3e BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0xa4, 0x491d40 LDRB.W R3, [SP,#0x54+var_50] ; +0xa8, 0x491d44 MOV R0, R4 ; +0xac, 0x491d48 MOVS R1, #0 ; +0xae, 0x491d4a ANDS.W R3, R3, #1 ; +0xb0, 0x491d4c ITTEE EQ ; +0xb4, 0x491d50 STRBEQ.W R3, [SP,#0x54+var_50+1] ; +0xb6, 0x491d52 STRBEQ.W R3, [SP,#0x54+var_50] ; +0xba, 0x491d56 LDRNE R2, [SP,#0x54+var_48] ; +0xbe, 0x491d5a MOVNE R3, #0 ; +0xc0, 0x491d5c ITT NE ; +0xc2, 0x491d5e STRBNE R3, [R2] ; +0xc4, 0x491d60 STRNE R3, [SP,#0x54+var_4C] ; +0xc6, 0x491d62 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEj; std::string::reserve(uint) ; +0xc8, 0x491d64 LDM.W R5, {R0-R2} ; +0xcc, 0x491d68 MOVS R3, #0 ; +0xd0, 0x491d6c STR R3, [SP,#0x54+var_38] ; +0xd2, 0x491d6e STR R3, [SP,#0x54+var_34] ; +0xd4, 0x491d70 STR R3, [SP,#0x54+var_30] ; +0xd6, 0x491d72 STM.W R4, {R0-R2} ; +0xd8, 0x491d74 MOV R0, R5 ; +0xdc, 0x491d78 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xde, 0x491d7a ADD.W R8, SP, #0x54+var_2C ; +0xe2, 0x491d7e MOV R1, R4 ; +0xe6, 0x491d82 MOV R0, R8 ; +0xe8, 0x491d84 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0xea, 0x491d86 ADD R5, SP, #0x54+var_20 ; +0xee, 0x491d8a MOV R1, R8 ; +0xf0, 0x491d8c MOV R0, R5 ; +0xf2, 0x491d8e BL _ZN10LevelTools18base64EncodeStringENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; LevelTools::base64EncodeString(std::string) ; +0xf4, 0x491d90 LDRB.W R3, [SP,#0x54+var_50] ; +0xf8, 0x491d94 MOV R0, R4 ; +0xfc, 0x491d98 MOVS R1, #0 ; +0xfe, 0x491d9a ANDS.W R3, R3, #1 ; +0x100, 0x491d9c ITTEE EQ ; +0x104, 0x491da0 STRBEQ.W R3, [SP,#0x54+var_50+1] ; +0x106, 0x491da2 STRBEQ.W R3, [SP,#0x54+var_50] ; +0x10a, 0x491da6 LDRNE R2, [SP,#0x54+var_48] ; +0x10e, 0x491daa MOVNE R3, #0 ; +0x110, 0x491dac ITT NE ; +0x112, 0x491dae STRBNE R3, [R2] ; +0x114, 0x491db0 STRNE R3, [SP,#0x54+var_4C] ; +0x116, 0x491db2 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEj; std::string::reserve(uint) ; +0x118, 0x491db4 LDM.W R5, {R0-R2} ; +0x11c, 0x491db8 MOVS R3, #0 ; +0x120, 0x491dbc STR R3, [SP,#0x54+var_20] ; +0x122, 0x491dbe STR R3, [SP,#0x54+var_1C] ; +0x124, 0x491dc0 STR R3, [SP,#0x54+var_18] ; +0x126, 0x491dc2 STM.W R4, {R0-R2} ; +0x128, 0x491dc4 MOV R0, R5 ; +0x12c, 0x491dc8 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x12e, 0x491dca MOV R0, R8 ; +0x132, 0x491dce BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x134, 0x491dd0 BL _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x138, 0x491dd4 LDR.W R0, [R0,#0x194]; this ; +0x13c, 0x491dd8 BL _ZN15GJBaseGameLayer24createLiveStartPosObjectEv; GJBaseGameLayer::createLiveStartPosObject(void) ; +0x140, 0x491ddc ADD R5, SP, #0x54+var_14 ; +0x144, 0x491de0 MOV R8, R0 ; +0x146, 0x491de2 LDR.W R9, [R0,#0x670] ; +0x148, 0x491de4 MOV R1, R4 ; +0x14c, 0x491de8 MOV R0, R5 ; +0x14e, 0x491dea BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x150, 0x491dec ADD.W R0, R9, #0x190; int ; +0x154, 0x491df0 CMP R0, R5 ; +0x158, 0x491df4 BNE loc_491E0E ; +0x15a, 0x491df6 MOV R0, R5 ; +0x15c, 0x491df8 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x15e, 0x491dfa BL _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x162, 0x491dfe LDR.W R0, [R0,#0x194]; this ; +0x166, 0x491e02 MOV R1, R8; StartPosObject * ; +0x16a, 0x491e06 BL _ZN9PlayLayer21addLiveStartPosObjectEP14StartPosObject; PlayLayer::addLiveStartPosObject(StartPosObject *) ; +0x16c, 0x491e08 B loc_491E20 ; +0x170, 0x491e0c LDRB.W R2, [SP,#0x54+var_14] ; +0x172, 0x491e0e LSLS R3, R2, #0x1F ; +0x176, 0x491e12 BPL loc_491E54 ; +0x178, 0x491e14 LDR R1, [SP,#0x54+var_C]; int ; +0x17a, 0x491e16 LDR R2, [SP,#0x54+var_10]; size_t ; +0x17c, 0x491e18 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKcj; std::string::assign(char const*,uint) ; +0x17e, 0x491e1a B loc_491DF8 ; +0x182, 0x491e1e LDR R3, [R7] ; +0x184, 0x491e20 MOV R0, R7 ; +0x186, 0x491e22 MOVS R1, #0 ; +0x188, 0x491e24 LDR.W R3, [R3,#0x2AC] ; +0x18a, 0x491e26 BLX R3 ; +0x18e, 0x491e2a MOV R0, R4 ; +0x190, 0x491e2c BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x192, 0x491e2e LDR R2, [SP,#0x54+var_8] ; +0x196, 0x491e32 LDR R3, [R6] ; +0x198, 0x491e34 CMP R2, R3 ; +0x19a, 0x491e36 BEQ loc_491E66 ; +0x19c, 0x491e38 BLX __stack_chk_fail ; +0x19e, 0x491e3a MOV R0, R8 ; +0x1a2, 0x491e3e B loc_491E44 ; +0x1a4, 0x491e40 MOV R0, R5 ; +0x1a6, 0x491e42 BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x1a8, 0x491e44 B loc_491E4A ; +0x1ac, 0x491e48 MOV R0, R4 ; +0x1ae, 0x491e4a BL _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x1b0, 0x491e4c BL __cxa_end_cleanup ; +0x1b4, 0x491e50 ASRS R2, R2, #1 ; +0x1b8, 0x491e54 ADD.W R1, SP, #0x54+var_13 ; +0x1ba, 0x491e56 B loc_491E1A ; +0x1be, 0x491e5a STR R5, [SP,#0x54+var_38] ; +0x1c0, 0x491e5c STR R5, [SP,#0x54+var_34] ; +0x1c2, 0x491e5e STR R5, [SP,#0x54+var_30] ; +0x1c4, 0x491e60 LDR R1, [SP,#0x54+var_48] ; +0x1c6, 0x491e62 B loc_491D3A ; +0x1c8, 0x491e64 ADD SP, SP, #0x54 ; 'T' ; +0x1ca, 0x491e66 POP.W {R4-R9,PC} ; +0x1cc, 0x491e68