// // SetupSmartBlockLayer::determineStartValues from 0x1004e1430 to 0x1004e1525 (245 bytes) // // 1 xrefs: // > SetupSmartBlockLayer::init @ 0x1004e06f8 // // This function is hookable on this platform (idp: pc, 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:31:18 +0000 // __int64 __fastcall SetupSmartBlockLayer::determineStartValues(__int64 a1, double a2) { _BYTE *v2; // rax __int64 v3; // rax __int64 v4; // rax __int64 v5; // rax __int64 result; // rax unsigned int v7; // r14d v2 = *(_BYTE **)(GameLevelManager::sharedState(a2) + 1528); if ( v2 ) { *(_BYTE *)(a1 + 673) = v2[138]; *(_BYTE *)(a1 + 674) = v2[136]; *(_BYTE *)(a1 + 675) = v2[137]; *(_BYTE *)(a1 + 678) = v2[139]; } v3 = GameManager::sharedState(); *(_BYTE *)(a1 + 676) = GameManager::getGameVariable(v3, "0131"); v4 = GameManager::sharedState(); *(_BYTE *)(a1 + 677) = GameManager::getGameVariable(v4, "0132"); v5 = *(_QWORD *)(a1 + 688); if ( v5 ) { result = *(unsigned __int8 *)(v5 + 1347); *(_BYTE *)(a1 + 672) = result; } else { *(_BYTE *)(a1 + 672) = 1; result = sub_1007FEF90(*(_QWORD *)(a1 + 696)); if ( (_DWORD)result ) { v7 = 0; do { if ( !*(_BYTE *)(sub_1007FEFE0(*(_QWORD *)(a1 + 696), v7) + 1347) ) *(_BYTE *)(a1 + 672) = 0; ++v7; result = sub_1007FEF90(*(_QWORD *)(a1 + 696)); } while ( v7 < (unsigned int)result ); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source