//
// sub_1002B53E0 from 0x1002b53e0 to 0x1002b54ac (204 bytes)
//
// 4 xrefs:
// > PlayerObject::init @ 0x1002b4800
// > PlayerObject::updatePlayerShipFrame @ 0x1002c6760
// > PlayerObject::updatePlayerJetpackFrame @ 0x1002c6914
// > PlayerObject::updatePlayerBirdFrame @ 0x1002c6f54
//
// 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 11:02:22 +0000
//
__int64 __fastcall sub_1002B53E0(__int64 a1, __int64 *a2)
{
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x8
double *v7; // x0
__int64 v8; // x19
float v10; // [xsp+0h] [xbp-20h] BYREF
__int64 v11; // [xsp+8h] [xbp-18h] BYREF
v4 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(a1);
if ( *((char *)a2 + 23) < 0 )
a2 = (__int64 *)*a2;
v5 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v4, a2);
v6 = **(_QWORD **)(a1 + 1856);
if ( !v5 )
return (*(__int64 (**)(void))(v6 + 344))();
(*(void (**)(void))(v6 + 1160))();
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1856) + 344LL))(*(_QWORD *)(a1 + 1856), 1);
v7 = (double *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1832) + 328LL))(*(_QWORD *)(a1 + 1832));
sub_100026438(&v11, v7);
v8 = *(_QWORD *)(a1 + 1856);
sub_1000262BC(&v10, *(float *)&v11 * 0.5, *((float *)&v11 + 1) * 0.5);
return (*(__int64 (__fastcall **)(__int64, float *))(*(_QWORD *)v8 + 184LL))(v8, &v10);
}