//
// GJGroundLayer::updateShadows from 0x10002c57c to 0x10002c610 (148 bytes)
//
// 5 xrefs:
// > GJGroundLayer::scaleGround @ 0x10002c3fc
// > GJBaseGameLayer::preUpdateVisibility @ 0x1001fd7ec
// > GJBaseGameLayer::preUpdateVisibility @ 0x1001fd804
// > GJBaseGameLayer::resetLevelVariables @ 0x100202674
// > GJBaseGameLayer::resetLevelVariables @ 0x10020268c
//
// 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
//
void __fastcall GJGroundLayer::updateShadows(GJGroundLayer *a1)
{
float v2; // s8
cocos2d::CCDirector *v3; // x0
__int64 v4; // x0
__n128 v5; // q0
__n128 v6; // q1
__int64 v7; // x19
float v8; // [xsp+8h] [xbp-28h] BYREF
cocos2d::CCSize WinSize; // 0:kr00_8.8
v2 = ((float (__fastcall *)(GJGroundLayer *))a1->getScaleX)(a1);
v3 = cocos2d::CCDirector::sharedDirector();
WinSize = cocos2d::CCDirector::getWinSize(v3);
v4 = ((__int64 (__fastcall *)(GJGroundLayer *, __int64, float, float))a1->getChildByTag)(
a1,
1,
WinSize.width,
WinSize.height);
if ( v4 )
{
v7 = v4;
v5.n128_f32[0] = (float)(v8 / v2) + 1.0;
v6.n128_u32[0] = 0;
sub_100022980(v5, v6, &v8);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v7 + 184LL))(v7, &v8);
}
}