//
// GJGroundLayer::updateShadows from 0x434ba8 to 0x434c1e (118 bytes)
//
// 5 xrefs:
// > GJGroundLayer::scaleGround @ 0x434c6c
// > GJBaseGameLayer::preUpdateVisibility @ 0x489178
// > GJBaseGameLayer::preUpdateVisibility @ 0x48918c
// > GJBaseGameLayer::resetLevelVariables @ 0x491e2e
// > GJBaseGameLayer::resetLevelVariables @ 0x491e42
//
// 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 GJGroundLayer::updateShadows(GJGroundLayer *a1)
{
float v2; // s16
cocos2d::CCDirector *v3; // r0
float v4; // s16
cocos2d::CCNode *v5; // r0
cocos2d::CCNode *v6; // r6
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7
cocos2d::CCPoint v8; // [sp+4h] [bp-10h] BYREF
v2 = COERCE_FLOAT(((int (__fastcall *)(GJGroundLayer *))a1->getScaleX)(a1));
v3 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize((cocos2d::CCSize *)&v8, v3);
v4 = v8.x / v2;
v5 = a1->getChildByTag(a1, 1);
v6 = v5;
if ( v5 )
{
setPosition = v5->setPosition;
cocos2d::CCPoint::CCPoint(&v8, v4 + 1.0, 0.0);
setPosition(v6, &v8);
}
}