//
// sub_10002FE5C from 0x10002fe5c to 0x10002fef0 (148 bytes)
//
// 5 xrefs:
// > GJGroundLayer::scaleGround @ 0x10002fcdc
// > GJBaseGameLayer::preUpdateVisibility @ 0x100299924
// > GJBaseGameLayer::preUpdateVisibility @ 0x10029993c
// > GJBaseGameLayer::resetLevelVariables @ 0x10029f3ec
// > GJBaseGameLayer::resetLevelVariables @ 0x10029f404
//
// 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 10:57:30 +0000
//
__int64 __fastcall sub_10002FE5C(__int64 a1)
{
__int64 v2; // x0
float v3; // s0
float v4; // s8
__int64 v5; // x0
float v6; // s9
__int64 result; // x0
__int64 v8; // x19
__int64 v9; // [xsp+8h] [xbp-28h] BYREF
v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 136LL))(a1);
v4 = v3;
v5 = cocos2d::CCDirector::sharedDirector(v2);
cocos2d::CCDirector::getWinSize(&v9, v5);
v6 = *(float *)&v9;
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 480LL))(a1, 1);
if ( result )
{
v8 = result;
sub_1000262BC((float *)&v9, (float)(v6 / v4) + 1.0, 0.0);
return (*(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v8 + 184LL))(v8, &v9);
}
return result;
}