// // PlayLayer::prepareCreateObjectsFromSetup from 0x70075c to 0x700b64 (1032 bytes) // // 2 xrefs: // > PlayLayer::init @ 0x7125b4 // > @ 0xbb018 // // 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:52:02 +0000 // __int64 __fastcall PlayLayer::prepareCreateObjectsFromSetup(__int64 a1, unsigned __int8 *a2) { cocos2d::CCArray *Font; // x0 cocos2d::CCObject *v5; // x0 _BOOL4 v7; // w20 int v8; // w0 __int64 v9; // x24 _BYTE *v10; // x21 __int64 v11; // x20 unsigned __int64 v12; // x27 int v13; // w1 size_t v14; // x2 __int64 *v15; // x0 size_t v16; // x5 unsigned __int8 *v17; // x2 unsigned __int64 v18; // x0 unsigned __int8 *v19; // x3 unsigned __int8 *v20; // x0 cocos2d::CCObject *v21; // x0 __int64 v22; // x0 GameManager *updated; // x0 GameManager *v24; // x0 __int64 v25; // x2 _BYTE *v26; // x20 int v27; // [xsp+68h] [xbp+68h] int v28; // [xsp+70h] [xbp+70h] cocos2d::CCArray *v29[2]; // [xsp+78h] [xbp+78h] BYREF void *v30; // [xsp+88h] [xbp+88h] __int64 v31; // [xsp+90h] [xbp+90h] BYREF size_t v32; // [xsp+98h] [xbp+98h] void *v33; // [xsp+A0h] [xbp+A0h] v29[0] = nullptr; v29[1] = nullptr; v30 = nullptr; std::string::__init((__int64 *)v29, &byte_11E1A70, 1u); if ( sub_6F294C((__int64)a2, (__int64)v29) ) { Font = (cocos2d::CCArray *)LOBYTE(v29[0]); if ( ((__int64)v29[0] & 1) == 0 ) goto LABEL_3; v7 = 0; goto LABEL_33; } v31 = 0; v32 = 0; v33 = nullptr; std::string::__init(&v31, &byte_11B8890, 0); v7 = !sub_6F294C((__int64)a2, (__int64)&v31); if ( (v31 & 1) != 0 ) operator delete(v33); Font = (cocos2d::CCArray *)LOBYTE(v29[0]); if ( ((__int64)v29[0] & 1) != 0 ) LABEL_33: operator delete(v30); if ( !v7 ) goto LABEL_3; v8 = *a2; if ( (v8 & 1) == 0 ) { LODWORD(v9) = v8 >> 1; if ( !(v8 >> 1) ) goto LABEL_13; v10 = a2 + 1; v25 = (__int64)&a2[(int)v9 + 1]; if ( a2 + 1 == (unsigned __int8 *)v25 ) { v11 = -1; goto LABEL_59; } LABEL_49: v26 = v10; if ( *v10 == 59 ) { v11 = 0; } else { do { if ( (_BYTE *)v25 == ++v26 ) { v11 = -1; goto LABEL_54; } } while ( *v26 != 59 ); v11 = v26 - v10; } LABEL_54: LODWORD(v9) = v8 >> 1; if ( (v8 & 1) != 0 ) { v9 = *((_QWORD *)a2 + 1); goto LABEL_15; } LABEL_59: v9 = (int)v9; goto LABEL_15; } v9 = *((_QWORD *)a2 + 1); v10 = *((_BYTE **)a2 + 2); if ( v9 ) { v25 = (__int64)&v10[v9]; if ( v10 == &v10[v9] ) goto LABEL_14; goto LABEL_49; } LABEL_13: v9 = 0; LABEL_14: v11 = -1; LABEL_15: v12 = 0; while ( 1 ) { std::string::basic_string(&v31, (__int64)a2, v12, v11 - v12); v13 = v31 & 1; v14 = (unsigned __int8)v31 >> 1; if ( v13 ) v14 = v32; if ( v14 || v12 != v9 ) break; LABEL_26: if ( v11 == -1 ) goto LABEL_44; LABEL_27: v12 = v11 + 1; if ( (*a2 & 1) != 0 ) { v17 = *((unsigned __int8 **)a2 + 2); v18 = *((_QWORD *)a2 + 1); } else { v17 = a2 + 1; v18 = *a2 >> 1; } v11 = -1; if ( v12 < v18 ) { v19 = &v17[v12]; v20 = &v17[v18]; if ( &v17[v12] != v20 ) { if ( v17[v12] == 59 ) { LABEL_41: v11 = v19 - v17; } else { while ( v20 != ++v19 ) { if ( *v19 == 59 ) goto LABEL_41; } v11 = -1; } } } if ( v13 ) operator delete(v33); } v15 = *(__int64 **)(a1 + 14040); if ( v15 != *(__int64 **)(a1 + 14048) ) { if ( v15 ) { *v15 = 0; v15[1] = 0; v15[2] = 0; if ( (v31 & 1) != 0 ) { std::string::__init(v15, v33, v32); } else { v16 = v32; *v15 = v31; v15[1] = v16; v15[2] = (__int64)v33; } v15 = *(__int64 **)(a1 + 14040); v13 = v31 & 1; } *(_QWORD *)(a1 + 14040) = v15 + 3; goto LABEL_26; } std::vector::__push_back_slow_path((__int64 *)(a1 + 14032), &v31); v13 = v31 & 1; if ( v11 != -1 ) goto LABEL_27; LABEL_44: if ( v13 ) operator delete(v33); v21 = (cocos2d::CCObject *)LevelSettingsObject::objectFromString(*(_QWORD *)(a1 + 14032)); *(_QWORD *)(a1 + 3272) = v21; cocos2d::CCObject::retain(v21); *(_QWORD *)(*(_QWORD *)(a1 + 3272) + 384LL) = *(_QWORD *)(a1 + 1936); GJBaseGameLayer::loadLevelSettings((GJBaseGameLayer *)a1); v22 = *(_QWORD *)(a1 + 3256); LOWORD(v27) = *(_WORD *)(v22 + 2602); BYTE2(v27) = *(_BYTE *)(v22 + 2604); LOWORD(v28) = *(_WORD *)(v22 + 2605); BYTE2(v28) = *(_BYTE *)(v22 + 2607); updated = (GameManager *)GJEffectManager::updateColors(*(_QWORD *)(*(_QWORD *)(a1 + 3272) + 320LL), v27, v28); v24 = (GameManager *)GameManager::sharedState(updated); Font = (cocos2d::CCArray *)GameManager::loadFont(v24, *(_DWORD *)(*(_QWORD *)(a1 + 3272) + 360LL)); LABEL_3: v5 = (cocos2d::CCObject *)cocos2d::CCArray::create(Font); *(_QWORD *)(a1 + 14056) = v5; cocos2d::CCObject::retain(v5); *(_DWORD *)(a1 + 14068) = 1; if ( (*a2 & 1) != 0 ) { **((_BYTE **)a2 + 2) = 0; *((_QWORD *)a2 + 1) = 0; } else { a2[1] = 0; *a2 = 0; } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source