// // GJMGLayer::updateGroundWidth from 0x1006bf680 to 0x1006bf75a (218 bytes) // // 1 xrefs: // > GJMGLayer::scaleGround @ 0x1006bf65a // // 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:35:31 +0000 // __int64 __fastcall GJMGLayer::updateGroundWidth(__int64 a1) { __int64 v1; // rbx __int64 result; // rax __int64 v3; // rsi __int64 v4; // rax __int64 v5; // rcx void (__fastcall **v6)(__int64); // rcx float v7; // xmm0_4 __m128 v8; // xmm1 int v9; // r14d float v10[6]; // [rsp+8h] [rbp-18h] BYREF v1 = a1; result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 512LL))(a1); if ( result ) { v3 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v10, v3); v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 512LL))(a1); v5 = *(_QWORD *)a1; if ( v4 ) { v6 = (void (__fastcall **)(__int64))(v5 + 136); } else { a1 = (*(__int64 (__fastcall **)(__int64))(v5 + 512))(a1); v6 = (void (__fastcall **)(__int64))(*(_QWORD *)a1 + 168LL); } (*v6)(a1); v7 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v1 + 136LL))(v1); v8 = (__m128)LODWORD(v10[0]); v8.f32[0] = (float)(v10[0] / v7) + 10.0; *(_DWORD *)(v1 + 444) = v8.i32[0]; v8.f32[0] = v8.f32[0] / *(float *)(v1 + 424); v9 = (int)(float)(_mm_round_ss((__m128)0LL, v8, 10).f32[0] + 1.0) + *(unsigned __int8 *)(v1 + 456); GJMGLayer::loadGroundSprites(v1, v9, 1u); return GJMGLayer::loadGroundSprites(v1, v9, 0); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source