// // GJGroundLayer::scaleGround from 0x1005eb560 to 0x1005eb661 (257 bytes) // // 6 xrefs: // > GJBaseGameLayer::preUpdateVisibility @ 0x10014f78b // > GJBaseGameLayer::preUpdateVisibility @ 0x10014f7a6 // > GJBaseGameLayer::resetLevelVariables @ 0x100159805 // > GJBaseGameLayer::resetLevelVariables @ 0x100159820 // > GJBaseGameLayer::updateCameraBGArt @ 0x10015b802 // > GJBaseGameLayer::updateCameraBGArt @ 0x10015b81b // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // local variable allocation has failed, the output may be wrong! float __fastcall GJGroundLayer::scaleGround(GJGroundLayer *a1, float a2) { __m128 v3; // xmm0 __m128 v4; // xmm0 __int64 v5; // rax __int64 v6; // rbx __m128 v8; // [rsp+0h] [rbp-40h] float m_groundWidth; // [rsp+0h] [rbp-40h] float 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 = *(__m128 *)&a2; ((void (__fastcall *)(GJGroundLayer *))a1->setScaleX)(a1); *(double *)v3.i64 = ((double (__fastcall *)(GJGroundLayer *))a1->getScaleY)(a1); v4 = _mm_cmplt_ss(v3, (__m128)0LL); ((void (__fastcall *)(GJGroundLayer *, double))a1->setScaleY)( a1, COERCE_DOUBLE(_mm_andnot_ps(v4, v8).u64[0] | (v8.i64[0] ^ 0x8000000080000000LL) & v4.i64[0])); m_groundWidth = a1->m_groundWidth; GJGroundLayer::updateGroundWidth(a1, 1); v11 = a1->m_groundWidth; v12 = ((float (__fastcall *)(GJGroundLayer *))a1->getScaleX)(a1); cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v10); v13 = v10; v5 = ((__int64 (__fastcall *)(GJGroundLayer *, __int64))a1->getChildByTag)(a1, 1); if ( v5 ) { v6 = v5; sub_10028CBE0(&v10, (float)(v13 / v12) + 1.0, 0.0); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v6 + 184LL))(v6, &v10); } return v11 - m_groundWidth; }
GD Web Decomp Icon

GD Web Decomp

Raw Source