//
// PlayerObject::updatePlayerSpriteExtra from 0x627960 to 0x627a68 (264 bytes)
//
// 6 xrefs:
// > PlayerObject::updatePlayerFrame @ 0x627bfc
// > PlayerObject::updatePlayerRollFrame @ 0x627e54
// > PlayerObject::updatePlayerSwingFrame @ 0x6280a4
// > PlayerObject::updatePlayerDartFrame @ 0x6282fc
// > PlayerObject::init @ 0x63d8a4
// > ??> @ 0x3b4f0
//
// 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::updatePlayerSpriteExtra(__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 + 1832);
if ( v4 )
{
(*(void (__fastcall **)(_QWORD, cocos2d::CCSpriteFrame *))(*(_QWORD *)v5 + 1144LL))(*(_QWORD *)(a1 + 1832), v4);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1832) + 328LL))(*(_QWORD *)(a1 + 1832), 1);
v6 = (const cocos2d::CCSize *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1816) + 312LL))(*(_QWORD *)(a1 + 1816));
cocos2d::CCSize::CCSize(&v11, v6);
v7 = *(_QWORD *)(a1 + 1832);
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 + 1832), 0);
}
return _stack_chk_guard;
}