//
// PlayerObject::updatePlayerSpriteExtra from 0x1002b5314 to 0x1002b53e0 (204 bytes)
//
// 5 xrefs:
// > PlayerObject::init @ 0x1002b4608
// > PlayerObject::updatePlayerSwingFrame @ 0x1002c7334
// > PlayerObject::updatePlayerFrame @ 0x1002c757c
// > PlayerObject::updatePlayerDartFrame @ 0x1002c7a98
// > PlayerObject::updatePlayerRollFrame @ 0x1002c7d8c
//
// 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 11:02:22 +0000
//
__int64 __fastcall PlayerObject::updatePlayerSpriteExtra(__int64 a1, __int64 *a2)
{
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x8
double *v7; // x0
__int64 v8; // x19
float v10; // [xsp+0h] [xbp-20h] BYREF
__int64 v11; // [xsp+8h] [xbp-18h] BYREF
v4 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(a1);
if ( *((char *)a2 + 23) < 0 )
a2 = (__int64 *)*a2;
v5 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v4, a2);
v6 = **(_QWORD **)(a1 + 1816);
if ( !v5 )
return (*(__int64 (**)(void))(v6 + 344))();
(*(void (**)(void))(v6 + 1160))();
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1816) + 344LL))(*(_QWORD *)(a1 + 1816), 1);
v7 = (double *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1800) + 328LL))(*(_QWORD *)(a1 + 1800));
sub_100026438(&v11, v7);
v8 = *(_QWORD *)(a1 + 1816);
sub_1000262BC(&v10, *(float *)&v11 * 0.5, *((float *)&v11 + 1) * 0.5);
return (*(__int64 (__fastcall **)(__int64, float *))(*(_QWORD *)v8 + 184LL))(v8, &v10);
}