//
// GJGroundLayer::updateShadowXPos from 0x1006bea50 to 0x1006beb03 (179 bytes)
//
// 6 xrefs:
// > GJBaseGameLayer::updateGroundShadows @ 0x1000f1621
// > GJBaseGameLayer::updateGroundShadows @ 0x1000f1640
// > GJBaseGameLayer::preUpdateVisibility @ 0x10012d746
// > GJBaseGameLayer::preUpdateVisibility @ 0x10012d764
// > GJBaseGameLayer::resetLevelVariables @ 0x100138cf2
// > GJBaseGameLayer::resetLevelVariables @ 0x100138d10
//
// 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:31 +0000
//
__int64 __fastcall GJGroundLayer::updateShadowXPos(__int64 a1, float a2, float a3)
{
__int64 v3; // rax
__int64 v4; // r14
__int64 result; // rax
__int64 v6; // rbx
float v7; // [rsp+8h] [rbp-28h] BYREF
float v8; // [rsp+10h] [rbp-20h]
float v9; // [rsp+14h] [rbp-1Ch]
v8 = a3;
v9 = a2;
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 136LL))(a1);
v3 = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 480LL))(a1, 0);
if ( v3 )
{
v4 = v3;
sub_100278250(&v7, v9 + -1.0, 0.0);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v4 + 184LL))(v4, &v7);
}
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 480LL))(a1, 1);
if ( result )
{
v6 = result;
sub_100278250(&v7, v8 + 1.0, 0.0);
return (*(__int64 (__fastcall **)(__int64, float *))(*(_QWORD *)v6 + 184LL))(v6, &v7);
}
return result;
}