// // CreateStartPosPopup::onCreate from 0x7d9844 to 0x7d9b64 (800 bytes) // // 3 xrefs: // > @ 0xbc6c8 // > CreateStartPosPopup::init @ 0x7d761c // > @ 0x1545740 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 12:54:22 +0000 // __int64 __fastcall CreateStartPosPopup::onCreate(cocos2d::CCDictionary **this, cocos2d::CCObject *a2) { unsigned __int64 v3; // x0 char *v4; // x1 size_t v5; // x2 __int64 v6; // x0 StartPosObject *LiveStartPosObject; // x24 __int64 v8; // x21 __int64 *v9; // x0 GameManager *v10; // x0 __int64 v11; // x0 __int64 v13; // [xsp+48h] [xbp+48h] BYREF size_t v14; // [xsp+50h] [xbp+50h] void *v15; // [xsp+58h] [xbp+58h] __int64 v16[2]; // [xsp+60h] [xbp+60h] BYREF char *v17; // [xsp+70h] [xbp+70h] __int64 v18; // [xsp+78h] [xbp+78h] BYREF size_t v19; // [xsp+80h] [xbp+80h] void *v20; // [xsp+88h] [xbp+88h] __int64 v21; // [xsp+90h] [xbp+90h] BYREF size_t v22; // [xsp+98h] [xbp+98h] void *v23; // [xsp+A0h] [xbp+A0h] _QWORD v24[3]; // [xsp+A8h] [xbp+A8h] BYREF GameManager *v25; // [xsp+C0h] [xbp+C0h] BYREF size_t v26; // [xsp+C8h] [xbp+C8h] void *v27; // [xsp+D0h] [xbp+D0h] v13 = 0; v14 = 0; v15 = nullptr; std::string::__init(&v13, &byte_11B8890, 0); v3 = cocos2d::CCDictionary::objectForKey(*(this + 95), -1); if ( !v3 ) goto LABEL_12; CCTextInputNode::getString((CCTextInputNode *)v3, v16); if ( (v13 & 1) != 0 ) { *(_BYTE *)v15 = 0; v14 = 0; } else { LOWORD(v13) = 0; } std::string::reserve(&v13, 0); v13 = v16[0]; v4 = v17; v14 = v16[1]; v15 = v17; if ( (v16[0] & 1) != 0 ) { v5 = v14; if ( v14 <= 0x14 ) { v21 = 0; v22 = 0; v23 = nullptr; LABEL_7: std::string::__init(&v21, v15, v5); goto LABEL_8; } v18 = 0; v19 = 0; v20 = nullptr; } else { if ( LOBYTE(v16[0]) <= 0x29u ) goto LABEL_26; v18 = 0; v4 = (char *)&v13 + 1; v19 = 0; v20 = nullptr; } std::string::__init(&v18, v4, 0x14u); if ( (v13 & 1) != 0 ) { *(_BYTE *)v15 = 0; v14 = 0; } else { LOWORD(v13) = 0; } std::string::reserve(&v13, 0); v21 = 0; v14 = v19; v13 = v18; v15 = v20; v22 = 0; v23 = nullptr; v5 = v19; if ( (v18 & 1) != 0 ) goto LABEL_7; LABEL_26: v23 = v15; v21 = v13; v22 = v14; LABEL_8: LevelTools::base64EncodeString((__int64)&v21, v24); if ( (v13 & 1) != 0 ) { *(_BYTE *)v15 = 0; v14 = 0; } else { LOWORD(v13) = 0; } std::string::reserve(&v13, 0); v15 = (void *)v24[2]; v3 = (unsigned __int8)v21; v13 = v24[0]; v14 = v24[1]; if ( (v21 & 1) != 0 ) operator delete(v23); LABEL_12: v6 = GameManager::sharedState((GameManager *)v3); LiveStartPosObject = (StartPosObject *)GJBaseGameLayer::createLiveStartPosObject(*(GJBaseGameLayer **)(v6 + 544)); v25 = nullptr; v26 = 0; v27 = nullptr; v8 = *((_QWORD *)LiveStartPosObject + 230); if ( (v13 & 1) != 0 ) { std::string::__init((__int64 *)&v25, v15, v14); } else { v27 = v15; v25 = (GameManager *)v13; v26 = v14; } v9 = (__int64 *)(v8 + 480); if ( (GameManager **)(v8 + 480) != &v25 ) { if ( ((unsigned __int8)v25 & 1) != 0 ) std::string::assign(v9, v27, v26); else std::string::assign(v9, (char *)&v25 + 1, (unsigned __int8)v25 >> 1); } v10 = (GameManager *)(unsigned __int8)v25; if ( ((unsigned __int8)v25 & 1) != 0 ) operator delete(v27); v11 = GameManager::sharedState(v10); PlayLayer::addLiveStartPosObject(*(PlayLayer **)(v11 + 544), LiveStartPosObject); (*((void (__fastcall **)(cocos2d::CCDictionary **, _QWORD))*this + 171))(this, 0); if ( (v13 & 1) != 0 ) operator delete(v15); return _stack_chk_guard; }