// // PlayLayer::prepareCreateObjectsFromSetup from 0x1403ace40 to 0x1403ad0f0 (688 bytes) // // 2 xrefs: // > PlayLayer::init @ 0x1403a665e // > @ 0x1406d6c80 // // 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 // // Hidden C++ exception states: #wind=2 __int64 __fastcall PlayLayer::prepareCreateObjectsFromSetup(__int64 a1, __int64 *a2) { __int64 *v2; // rdi unsigned __int64 v4; // r15 char v5; // bp const void *v6; // rcx unsigned __int64 v7; // rbx size_t v8; // r8 __int64 v9; // rdx __int64 v10; // rcx const void *v11; // rcx size_t v12; // r8 void *v13; // rcx cocos2d::CCDictionary *v14; // rax LevelSettingsObject *v15; // rax __int64 v16; // rax __int16 v17; // r8 char v18; // r9 __int16 v19; // r10 char v20; // r11 __int64 v21; // rax __int64 v22; // rax __int64 i; // rcx __int64 v24; // rax int v25; // edx GameManager *v26; // rcx cocos2d::CCObject *v27; // rax __int64 result; // rax void *v29; // [rsp+20h] [rbp-78h] __int128 Buf2; // [rsp+28h] [rbp-70h] BYREF __int64 v31; // [rsp+38h] [rbp-60h] __int64 v32; // [rsp+40h] [rbp-58h] void *Block[2]; // [rsp+48h] [rbp-50h] BYREF __int64 v34; // [rsp+58h] [rbp-40h] __int64 v35; // [rsp+60h] [rbp-38h] v2 = a2; Buf2 = 0; v31 = 1; v4 = 15; v32 = 15; LOWORD(Buf2) = (unsigned __int8)asc_140518984[0]; v5 = 1; v6 = a2; if ( (unsigned __int64)a2[3] > 0xF ) v6 = (const void *)*a2; v7 = a2[2]; v8 = v7; if ( v7 > 1 ) v8 = 1; if ( !memcmp(v6, &Buf2, v8) && v7 == 1 ) { v4 = v35; LOBYTE(v7) = 0; } else { *(_OWORD *)Block = 0; v34 = 0; v35 = 15; LOBYTE(Block[0]) = 0; v5 = 3; v11 = v2; if ( (unsigned __int64)v2[3] > 0xF ) v11 = (const void *)*v2; v12 = v7; if ( v7 ) v12 = 0; if ( memcmp(v11, Block, v12) || v7 ) LOBYTE(v7) = 1; } if ( (v5 & 2) != 0 && v4 > 0xF ) { v13 = Block[0]; if ( v4 + 1 >= 0x1000 ) { v13 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v13 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v13); } if ( (_BYTE)v7 ) { sub_1403A46E0(v2, v9, (__int64 *)(a1 + 14280)); v14 = (cocos2d::CCDictionary *)GameToolbox::stringSetupToDict(*(_QWORD **)(a1 + 14280)); v15 = LevelSettingsObject::objectFromDict(v14); *(_QWORD *)(a1 + 3504) = v15; cocos2d::CCObject::retain(v15); *(_QWORD *)(*(_QWORD *)(a1 + 3504) + 384LL) = *(_QWORD *)(a1 + 2168); GJBaseGameLayer::loadLevelSettings((GJBaseGameLayer *)a1); v16 = *(_QWORD *)(a1 + 3488); v17 = *(_WORD *)(v16 + 2701); v18 = *(_BYTE *)(v16 + 2703); v19 = *(_WORD *)(v16 + 2698); v20 = *(_BYTE *)(v16 + 2700); v21 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 3504) + 320LL) + 328LL); if ( v21 ) { v22 = *(_QWORD *)(v21 + 56); if ( v22 ) { for ( i = *(_QWORD *)(v22 + 288); ; i = *(_QWORD *)(i + 288) ) { v24 = *(_QWORD *)(v22 + 264); v25 = *(_DWORD *)(v24 + 88); if ( v25 == 1 ) { *(_WORD *)(v24 + 72) = v19; *(_BYTE *)(v24 + 74) = v20; } else if ( v25 == 2 ) { *(_WORD *)(v24 + 72) = v17; *(_BYTE *)(v24 + 74) = v18; } v22 = i; if ( !i ) break; } } } v26 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v29 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v29); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v26 = (GameManager *)qword_1406C2ED8; } GameManager::loadFont(v26, *(_DWORD *)(*(_QWORD *)(a1 + 3504) + 360LL)); } v27 = (cocos2d::CCObject *)cocos2d::CCArray::create(v10); *(_QWORD *)(a1 + 14304) = v27; cocos2d::CCObject::retain(v27); result = 14316; *(_DWORD *)(a1 + 14316) = 1; v2[2] = 0; if ( (unsigned __int64)v2[3] > 0xF ) v2 = (__int64 *)*v2; *(_BYTE *)v2 = 0; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source