//
// GJGroundLayer::updateShadowXPos from 0x546534 to 0x5465d0 (156 bytes)
//
// 6 xrefs:
// > GJBaseGameLayer::updateGroundShadows @ 0x58c4a0
// > GJBaseGameLayer::updateGroundShadows @ 0x58c4c0
// > GJBaseGameLayer::preUpdateVisibility @ 0x5ae8c0
// > GJBaseGameLayer::preUpdateVisibility @ 0x5ae8d4
// > GJBaseGameLayer::resetLevelVariables @ 0x5b990c
// > GJBaseGameLayer::resetLevelVariables @ 0x5b9920
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:23 +0000
//
int __fastcall GJGroundLayer::updateShadowXPos(GJGroundLayer *this, float a2, float a3)
{
int v6; // r0
int v7; // r6
void (__fastcall *v8)(int, _BYTE *); // r8
int result; // r0
int v10; // r4
int (__fastcall *v11)(int, _BYTE *); // r7
_BYTE v12[8]; // [sp+4h] [bp-Ch] BYREF
(*(void (__fastcall **)(GJGroundLayer *, _DWORD, _DWORD))(*(_DWORD *)this + 68))(this, LODWORD(a2), LODWORD(a3));
v6 = (*(int (__fastcall **)(GJGroundLayer *, _DWORD))(*(_DWORD *)this + 240))(this, 0);
v7 = v6;
if ( v6 )
{
v8 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v6 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, a2 - 1.0, 0.0);
v8(v7, v12);
}
result = (*(int (__fastcall **)(GJGroundLayer *, int))(*(_DWORD *)this + 240))(this, 1);
v10 = result;
if ( result )
{
v11 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)result + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, a3 + 1.0, 0.0);
return v11(v10, v12);
}
return result;
}