//
// PlayerObject::updateShipSpriteExtra from 0x341110 to 0x3411a8 (152 bytes)
//
// 4 xrefs:
// > PlayerObject::updatePlayerShipFrame @ 0x3412c4
// > PlayerObject::updatePlayerJetpackFrame @ 0x341418
// > PlayerObject::updatePlayerBirdFrame @ 0x3415b6
// > PlayerObject::init @ 0x350fde
//
// 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
//
int __fastcall PlayerObject::updateShipSpriteExtra(int a1, const char **a2)
{
cocos2d::CCSpriteFrameCache *v4; // r0
cocos2d::CCSpriteFrame *v5; // r0
int v6; // r3
const cocos2d::CCSize *v7; // r0
int v8; // r6
int (__fastcall *v9)(int, cocos2d::CCPoint *); // r7
cocos2d::CCSize v11; // [sp+4h] [bp-18h] BYREF
cocos2d::CCPoint v12; // [sp+Ch] [bp-10h] BYREF
v4 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v5 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v4, *a2);
v6 = **(_DWORD **)(a1 + 1528);
if ( !v5 )
return (*(int (**)(void))(v6 + 164))();
(*(void (**)(void))(v6 + 572))();
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 1528) + 164))(*(_DWORD *)(a1 + 1528), 1);
v7 = (const cocos2d::CCSize *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 1516) + 156))(*(_DWORD *)(a1 + 1516));
cocos2d::CCSize::CCSize(&v11, v7);
v8 = *(_DWORD *)(a1 + 1528);
v9 = *(int (__fastcall **)(int, cocos2d::CCPoint *))(*(_DWORD *)v8 + 92);
cocos2d::CCPoint::CCPoint(&v12, v11.width * 0.5, v11.height * 0.5);
return v9(v8, &v12);
}