//
// GJGroundLayer::updateShadows from 0x7ec5dc to 0x7ec6a0 (196 bytes)
//
// 6 xrefs:
// > GJGroundLayer::scaleGround @ 0x7ec70c
// > GJBaseGameLayer::preUpdateVisibility @ 0x882ce8
// > GJBaseGameLayer::preUpdateVisibility @ 0x882d00
// > GJBaseGameLayer::resetLevelVariables @ 0x88af44
// > GJBaseGameLayer::resetLevelVariables @ 0x88af5c
// > ??> @ 0xc46f8
//
// 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)
{
cocos2d::CCDirector *v2; // x0
cocos2d::CCNode *v3; // x0
cocos2d::CCNode *v4; // x20
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22
float v6; // [xsp+40h] [xbp+40h]
cocos2d::CCPoint v7; // [xsp+50h] [xbp+50h] BYREF
LODWORD(v6) = COERCE_UNSIGNED_INT128(((long double (__fastcall *)(GJGroundLayer *))a1->getScaleX)(a1));
v2 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v2);
v3 = a1->getChildByTag(a1, 1);
v4 = v3;
if ( v3 )
{
setPosition = v3->setPosition;
cocos2d::CCPoint::CCPoint(&v7, (float)(v7.x / v6) + 1.0, 0.0);
setPosition(v4, &v7);
}
}