//
// PlayerObject::updateShipSpriteExtra from 0x753214 to 0x753324 (272 bytes)
//
// 5 xrefs:
// > PlayerObject::updatePlayerShipFrame @ 0x756fd0
// > PlayerObject::updatePlayerJetpackFrame @ 0x7571e8
// > PlayerObject::updatePlayerBirdFrame @ 0x75746c
// > PlayerObject::init @ 0x767614
// > ??> @ 0xcd288
//
// 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 12:52:56 +0000
//
__int64 __fastcall PlayerObject::updateShipSpriteExtra(__int64 a1, __int64 a2)
{
cocos2d::CCSpriteFrameCache *v4; // x0
const char *v5; // x1
__int64 v6; // x0
__int64 v7; // x2
const cocos2d::CCSize *v8; // x0
__int64 v9; // x20
void (__fastcall *v10)(__int64, _BYTE *); // x21
float v12[2]; // [xsp+48h] [xbp+48h] BYREF
_BYTE v13[8]; // [xsp+50h] [xbp+50h] BYREF
v4 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(_stack_chk_guard);
v5 = (const char *)(a2 + 1);
if ( (*(_BYTE *)a2 & 1) != 0 )
v5 = *(const char **)(a2 + 16);
v6 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v4, v5);
v7 = *(_QWORD *)(a1 + 1856);
if ( v6 )
{
(*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)v7 + 1160LL))(*(_QWORD *)(a1 + 1856), v6);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1856) + 344LL))(*(_QWORD *)(a1 + 1856), 1);
v8 = (const cocos2d::CCSize *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1832) + 328LL))(*(_QWORD *)(a1 + 1832));
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v12, v8);
v9 = *(_QWORD *)(a1 + 1856);
v10 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v9 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, v12[0] * 0.5, v12[1] * 0.5);
v10(v9, v13);
}
else
{
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v7 + 344LL))(*(_QWORD *)(a1 + 1856), 0);
}
return _stack_chk_guard;
}