// // GJGroundLayer::scaleGround from 0x1403877c0 to 0x14038796d (429 bytes) // // 10 xrefs: // > GJBaseGameLayer::preUpdateVisibility @ 0x14033f4c7 // > GJBaseGameLayer::preUpdateVisibility @ 0x14033f4e5 // > GJBaseGameLayer::resetLevelVariables @ 0x140345689 // > GJBaseGameLayer::resetLevelVariables @ 0x1403456a7 // > GJBaseGameLayer::updateCameraBGArt @ 0x1403489b5 // > GJBaseGameLayer::updateCameraBGArt @ 0x1403489cc // > @ 0x1408bd94c // > @ 0x1408bd95c // > @ 0x140922b68 // > @ 0x140922b74 // // 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 11:31:08 +0000 // __m128 __fastcall GJGroundLayer::scaleGround(__int64 a1) { float v2; // xmm8_4 __int64 v3; // rcx __int64 v4; // rax double v5; // xmm0_8 int v6; // eax int v7; // ebx __int64 *v8; // rdi __int64 v9; // rbx __int64 v10; // rax __int64 v11; // rax __int128 v12; // xmm6 float v14; // [rsp+60h] [rbp+8h] BYREF char v15; // [rsp+70h] [rbp+18h] BYREF (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 120LL))(a1); (*(float (__fastcall **)(__int64))(*(_QWORD *)a1 + 144LL))(a1); (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 136LL))(a1); v2 = *(float *)(a1 + 452); if ( (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 504LL))(a1) ) { v4 = cocos2d::CCDirector::sharedDirector(v3); cocos2d::CCDirector::getWinSize(v4, &v14); v5 = (*(double (__fastcall **)(__int64))(*(_QWORD *)a1 + 128LL))(a1); *(float *)&v5 = (float)(v14 / *(float *)&v5) + 10.0; *(_DWORD *)(a1 + 452) = LODWORD(v5); v6 = (int)(float)(ceilf(*(float *)&v5 / *(float *)(a1 + 424)) + 1.0); v7 = v6 + 1; if ( !*(_BYTE *)(a1 + 464) ) v7 = v6; GJGroundLayer::loadGroundSprites(a1, v7, 1u); GJGroundLayer::loadGroundSprites(a1, v7, 0); (*(void (**)(void))(**(_QWORD **)(a1 + 432) + 120LL))(); v8 = *(__int64 **)(a1 + 432); v9 = *v8; v10 = (*(__int64 (__fastcall **)(__int64 *))(*v8 + 200))(v8); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, (float)(*(float *)(a1 + 452) * 0.5) - 5.0, *(float *)(v10 + 4)); (*(void (__fastcall **)(__int64 *, __int64))(v9 + 184))(v8, v11); } v12 = *(unsigned int *)(a1 + 452); *(float *)&v12 = *(float *)&v12 - v2; GJGroundLayer::updateShadows(a1); return (__m128)v12; }
GD Web Decomp Icon

GD Web Decomp

Raw Source