// // GJBaseGameLayer::createGroundLayer from 0x100278644 to 0x100278718 (212 bytes) // // 5 xrefs: // > PlayLayer::setupHasCompleted @ 0x10013f740 // > LevelSettingsLayer::selectArtClosed @ 0x10020d948 // > GJBaseGameLayer::asyncGLoaded @ 0x100278630 // > GJBaseGameLayer::syncBGTextures @ 0x10029ef14 // > LevelEditorLayer::init @ 0x1003f70f0 // // 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 11:01:51 +0000 // __int64 __fastcall GJBaseGameLayer::createGroundLayer(__int64 a1, int a2, __int64 a3) { __int64 v4; // x21 __int64 v6; // x0 void *v7; // x0 void *v8; // x0 LODWORD(v4) = a2; v6 = *(_QWORD *)(a1 + 3960); if ( v6 ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 520LL))(v6); *(_QWORD *)(a1 + 3960) = 0; (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3968) + 520LL))(*(_QWORD *)(a1 + 3968)); *(_QWORD *)(a1 + 3968) = 0; } if ( (int)v4 >= 22 ) v4 = 22; else v4 = (unsigned int)v4; v7 = GJGroundLayer::create(v4, a3); *(_QWORD *)(a1 + 3960) = v7; (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v7 + 72LL))(v7, v4); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 3896) + 464LL))( *(_QWORD *)(a1 + 3896), *(_QWORD *)(a1 + 3960), 40); v8 = GJGroundLayer::create(v4, a3); *(_QWORD *)(a1 + 3968) = v8; (*(void (__fastcall **)(_QWORD, void *, __int64))(**(_QWORD **)(a1 + 3896) + 464LL))(*(_QWORD *)(a1 + 3896), v8, 40); return (*(__int64 (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 3968) + 144LL))(*(_QWORD *)(a1 + 3968), -1.0); }