//
// PlayerObject::updateShipSpriteExtra from 0x6283c4 to 0x6284cc (264 bytes)
//
// 5 xrefs:
// > PlayerObject::updatePlayerShipFrame @ 0x62865c
// > PlayerObject::updatePlayerJetpackFrame @ 0x6288b4
// > PlayerObject::updatePlayerBirdFrame @ 0x628b74
// > PlayerObject::init @ 0x63da80
// > ??> @ 0x7bcf0
//
// 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
//
__int64 __fastcall PlayerObject::updateShipSpriteExtra(__int64 a1, const char **a2)
{
cocos2d::CCSpriteFrameCache *v3; // x0
cocos2d::CCSpriteFrame *v4; // x0
__int64 v5; // x2
const cocos2d::CCSize *v6; // x0
__int64 v7; // x20
void (__fastcall *v8)(__int64, cocos2d::CCPoint *); // x21
cocos2d::CCSize v11; // [xsp+48h] [xbp+48h] BYREF
cocos2d::CCPoint v12; // [xsp+50h] [xbp+50h] BYREF
v3 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v4 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v3, *a2);
v5 = *(_QWORD *)(a1 + 1872);
if ( v4 )
{
(*(void (__fastcall **)(_QWORD, cocos2d::CCSpriteFrame *))(*(_QWORD *)v5 + 1144LL))(*(_QWORD *)(a1 + 1872), v4);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1872) + 328LL))(*(_QWORD *)(a1 + 1872), 1);
v6 = (const cocos2d::CCSize *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1848) + 312LL))(*(_QWORD *)(a1 + 1848));
cocos2d::CCSize::CCSize(&v11, v6);
v7 = *(_QWORD *)(a1 + 1872);
v8 = *(void (__fastcall **)(__int64, cocos2d::CCPoint *))(*(_QWORD *)v7 + 184LL);
cocos2d::CCPoint::CCPoint(&v12, v11.width * 0.5, v11.height * 0.5);
v8(v7, &v12);
}
else
{
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v5 + 328LL))(*(_QWORD *)(a1 + 1872), 0);
}
return _stack_chk_guard;
}