// // GJGroundLayer::scaleGround from 0x1006be5f0 to 0x1006be6f1 (257 bytes) // // 6 xrefs: // > GJBaseGameLayer::preUpdateVisibility @ 0x10012d6ab // > GJBaseGameLayer::preUpdateVisibility @ 0x10012d6c6 // > GJBaseGameLayer::resetLevelVariables @ 0x100138cc5 // > GJBaseGameLayer::resetLevelVariables @ 0x100138ce0 // > GJBaseGameLayer::updateCameraBGArt @ 0x10013ad22 // > GJBaseGameLayer::updateCameraBGArt @ 0x10013ad3b // // 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:30 +0000 // float __fastcall GJGroundLayer::scaleGround(float *a1, __m128 a2) { __m128 v3; // xmm0 __int64 v4; // rax __int64 v5; // rax __int64 v6; // rbx __m128 v8; // [rsp+0h] [rbp-40h] float v9; // [rsp+0h] [rbp-40h] __int64 v10; // [rsp+1Ch] [rbp-24h] BYREF float v11; // [rsp+24h] [rbp-1Ch] float v12; // [rsp+28h] [rbp-18h] float v13; // [rsp+2Ch] [rbp-14h] v8 = a2; (*(void (__fastcall **)(float *))(*(_QWORD *)a1 + 128LL))(a1); *(double *)a2.i64 = (*(double (__fastcall **)(float *))(*(_QWORD *)a1 + 152LL))(a1); v3 = _mm_cmplt_ss(a2, (__m128)0LL); (*(void (__fastcall **)(float *, double))(*(_QWORD *)a1 + 144LL))( a1, COERCE_DOUBLE(_mm_andnot_ps(v3, v8).u64[0] | (v8.i64[0] ^ 0x8000000080000000LL) & v3.i64[0])); v9 = a1[113]; GJGroundLayer::updateGroundWidth(a1, 1); v11 = a1[113]; v12 = (*(float (__fastcall **)(float *))(*(_QWORD *)a1 + 136LL))(a1); v4 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v10, v4); v13 = *(float *)&v10; v5 = (*(__int64 (__fastcall **)(float *, __int64))(*(_QWORD *)a1 + 480LL))(a1, 1); if ( v5 ) { v6 = v5; sub_100278250((float *)&v10, (float)(v13 / v12) + 1.0, 0.0); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v6 + 184LL))(v6, &v10); } return v11 - v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source