//
// GJGroundLayer::updateShadows from 0x1006be880 to 0x1006be909 (137 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::preUpdateVisibility @ 0x10012d752
// > GJBaseGameLayer::preUpdateVisibility @ 0x10012d770
// > GJBaseGameLayer::resetLevelVariables @ 0x100138cfe
// > GJBaseGameLayer::resetLevelVariables @ 0x100138d1c
//
// 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::updateShadows(__int64 a1)
{
__int64 v1; // rax
__int64 result; // rax
__int64 v3; // rbx
__int64 v4; // [rsp+0h] [rbp-20h] BYREF
float v5; // [rsp+8h] [rbp-18h]
float v6; // [rsp+Ch] [rbp-14h]
v5 = (*(float (__fastcall **)(__int64))(*(_QWORD *)a1 + 136LL))(a1);
v1 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v4, v1);
v6 = *(float *)&v4;
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 480LL))(a1, 1);
if ( result )
{
v3 = result;
sub_100278250((float *)&v4, (float)(v6 / v5) + 1.0, 0.0);
return (*(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v3 + 184LL))(v3, &v4);
}
return result;
}