//
// sub_1001485C0 from 0x1001485c0 to 0x100148674 (180 bytes)
//
// 1 xrefs:
// > PlayLayer::postUpdate @ 0x100148a30
//
// 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:59:35 +0000
//
__int64 __fastcall sub_1001485C0(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x20
__int64 result; // x0
__int64 v5; // x20
__int64 v6; // x0
float v7; // [xsp+0h] [xbp-20h] BYREF
__int64 v8; // [xsp+8h] [xbp-18h] BYREF
v2 = cocos2d::CCDirector::sharedDirector(a1);
cocos2d::CCDirector::getWinSize(&v8, v2);
v3 = *(_QWORD *)(a1 + 12640);
sub_1000262BC(
&v7,
*(float *)(a1 + 992) + (float)((float)(*(float *)&v8 * 0.5) / *(float *)(a1 + 424)),
*(float *)(a1 + 996) + (float)((float)(*((float *)&v8 + 1) * 0.5) / *(float *)(a1 + 424)));
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v3 + 184LL))(v3, &v7);
result = sub_1002E757C(*(_QWORD *)(a1 + 14296));
if ( (_DWORD)result )
{
v5 = 0;
do
{
v6 = sub_1002E75A0(*(_QWORD *)(a1 + 14296), v5);
sub_1001FA77C(v6, 0.0);
v5 = (unsigned int)(v5 + 1);
result = sub_1002E757C(*(_QWORD *)(a1 + 14296));
}
while ( (unsigned int)v5 < (unsigned int)result );
}
return result;
}