//
// GJGroundLayer::updateShadows from 0x9173fc to 0x9174c0 (196 bytes)
//
// 6 xrefs:
// > GJGroundLayer::scaleGround @ 0x91752c
// > GJBaseGameLayer::preUpdateVisibility @ 0x9db69c
// > GJBaseGameLayer::preUpdateVisibility @ 0x9db6b4
// > GJBaseGameLayer::resetLevelVariables @ 0x9e7910
// > GJBaseGameLayer::resetLevelVariables @ 0x9e7928
// > ??> @ 0xffa30
//
// This function is hookable on this platform (idp: arm, 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:57:20 +0000
//
__int64 __fastcall GJGroundLayer::updateShadows(GJGroundLayer *this)
{
cocos2d::CCDirector *v2; // x0
float v3; // s0
cocos2d::CCDirector *v4; // x0
float v5; // s8
__int64 v6; // x0
__int64 v7; // x20
void (__fastcall *v8)(__int64, __int64 *); // x22
float v10; // [xsp+40h] [xbp+40h]
__int64 v11; // [xsp+50h] [xbp+50h] BYREF
v2 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(GJGroundLayer *))(*(_QWORD *)this + 136LL))(this);
v10 = v3;
v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v2);
cocos2d::CCDirector::getWinSize(&v11, v4);
v5 = *(float *)&v11 / v10;
v6 = (*(__int64 (__fastcall **)(GJGroundLayer *, __int64))(*(_QWORD *)this + 480LL))(this, 1);
v7 = v6;
if ( v6 )
{
v8 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v6 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v11, v5 + 1.0, 0.0);
v8(v7, &v11);
}
return _stack_chk_guard;
}