//
// GJGroundLayer::updateShadows from 0x546460 to 0x5464d6 (118 bytes)
//
// 5 xrefs:
// > GJGroundLayer::scaleGround @ 0x546524
// > GJBaseGameLayer::preUpdateVisibility @ 0x5ae8c8
// > GJBaseGameLayer::preUpdateVisibility @ 0x5ae8dc
// > GJBaseGameLayer::resetLevelVariables @ 0x5b9914
// > GJBaseGameLayer::resetLevelVariables @ 0x5b9928
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:23 +0000
//
int __fastcall GJGroundLayer::updateShadows(GJGroundLayer *this)
{
float v2; // s16
float v3; // s16
int result; // r0
int v5; // r6
int (__fastcall *v6)(int, float *); // r7
float v7[2]; // [sp+4h] [bp-10h] BYREF
v2 = COERCE_FLOAT((*(int (__fastcall **)(GJGroundLayer *))(*(_DWORD *)this + 68))(this));
cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v2));
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v7);
v3 = v7[0] / v2;
result = (*(int (__fastcall **)(GJGroundLayer *, int))(*(_DWORD *)this + 240))(this, 1);
v5 = result;
if ( result )
{
v6 = *(int (__fastcall **)(int, float *))(*(_DWORD *)result + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, v3 + 1.0, 0.0);
return v6(v5, v7);
}
return result;
}