//
// GJGroundLayer::updateShadowXPos from 0x140387aa0 to 0x140387b64 (196 bytes)
//
// 9 xrefs:
// > GJBaseGameLayer::updateGroundShadows @ 0x1403125ca
// > GJBaseGameLayer::updateGroundShadows @ 0x1403125e8
// > GJBaseGameLayer::preUpdateVisibility @ 0x14033f527
// > GJBaseGameLayer::preUpdateVisibility @ 0x14033f545
// > GJBaseGameLayer::resetLevelVariables @ 0x1403456b9
// > GJBaseGameLayer::resetLevelVariables @ 0x1403456d7
// > ??> @ 0x1408bd9a8
// > ??> @ 0x1408bd9b8
// > ??> @ 0x140922bb0
//
// 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
//
_QWORD *__fastcall GJGroundLayer::updateShadowXPos(__int64 a1, float a2, float a3)
{
_QWORD *v4; // rax
_QWORD *v5; // rsi
__int64 v6; // rbx
__int64 v7; // rax
_QWORD *result; // rax
_QWORD *v9; // rdi
__int64 v10; // rbx
__int64 v11; // rax
char v12; // [rsp+50h] [rbp+8h] BYREF
(*(void (**)(void))(*(_QWORD *)a1 + 128LL))();
v4 = (_QWORD *)(*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 472LL))(a1, 0);
v5 = v4;
if ( v4 )
{
v6 = *v4;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, a2 - 1.0, 0.0);
(*(void (__fastcall **)(_QWORD *, __int64))(v6 + 184))(v5, v7);
}
result = (_QWORD *)(*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 472LL))(a1, 1);
v9 = result;
if ( result )
{
v10 = *result;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, a3 + 1.0, 0.0);
return (_QWORD *)(*(__int64 (__fastcall **)(_QWORD *, __int64))(v10 + 184))(v9, v11);
}
return result;
}