//
// PlayerObject::updatePlayerSpriteExtra from 0x100218854 to 0x100218920 (204 bytes)
//
// 5 xrefs:
// > PlayerObject::init @ 0x100217b48
// > PlayerObject::updatePlayerSwingFrame @ 0x10022a64c
// > PlayerObject::updatePlayerFrame @ 0x10022a894
// > PlayerObject::updatePlayerDartFrame @ 0x10022ad94
// > PlayerObject::updatePlayerRollFrame @ 0x10022b088
//
// 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 *v4; // x0
cocos2d::CCSpriteFrame *v5; // x0
__int64 v6; // x8
double *v7; // x0
__n128 v8; // q0
__int64 v9; // x19
__n128 v10; // q1
int v12; // [xsp+0h] [xbp-20h] BYREF
__int64 v13; // [xsp+8h] [xbp-18h] BYREF
v4 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
if ( a2[23] < 0 )
a2 = *(const char **)a2;
v5 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v4, a2);
v6 = **(_QWORD **)(a1 + 1816);
if ( !v5 )
return (*(__int64 (**)(void))(v6 + 328))();
(*(void (**)(void))(v6 + 1144))();
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1816) + 328LL))(*(_QWORD *)(a1 + 1816), 1);
v7 = (double *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1800) + 312LL))(*(_QWORD *)(a1 + 1800));
v8.n128_f64[0] = sub_100022AFC(&v13, v7);
v9 = *(_QWORD *)(a1 + 1816);
v8.n128_f32[0] = *(float *)&v13 * 0.5;
v10.n128_f32[0] = *((float *)&v13 + 1) * 0.5;
sub_100022980(v8, v10, &v12);
return (*(__int64 (__fastcall **)(__int64, int *))(*(_QWORD *)v9 + 184LL))(v9, &v12);
}