//
// PlayerObject::updatePlayerSpriteExtra from 0x1404fcf80 to 0x1404fd07f (255 bytes)
//
// 6 xrefs:
// > PlayerObject::init @ 0x1404e50e0
// > PlayerObject::updatePlayerFrame @ 0x1404fc1bf
// > PlayerObject::updatePlayerRollFrame @ 0x1404fcb01
// > PlayerObject::updatePlayerSwingFrame @ 0x1404fcd2e
// > PlayerObject::updatePlayerDartFrame @ 0x1404fcf5e
// > ??> @ 0x14092a4a0
//
// This function is hookable on this platform (idp: pc, 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:33:23 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall PlayerObject::updatePlayerSpriteExtra(__int64 a1, const char *a2)
{
const char *v4; // rbx
cocos2d::CCSpriteFrameCache *v5; // rax
struct cocos2d::CCSpriteFrame *v6; // rax
__int64 *v7; // rcx
__int64 v8; // r8
__int64 v9; // rdx
const struct cocos2d::CCSize *v10; // rax
__int64 *v11; // rdi
__int64 v12; // rbx
__int64 v13; // rax
float v14[2]; // [rsp+20h] [rbp-28h] BYREF
_BYTE v15[8]; // [rsp+28h] [rbp-20h] BYREF
const char *v16; // [rsp+30h] [rbp-18h]
v16 = a2;
v4 = a2;
if ( *((_QWORD *)a2 + 3) > 0xFu )
v4 = *(const char **)a2;
v5 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(a1, a2);
v6 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, v4);
v7 = *(__int64 **)(a1 + 1872);
v8 = *v7;
if ( v6 )
{
(*(void (__fastcall **)(__int64 *, struct cocos2d::CCSpriteFrame *))(v8 + 1008))(v7, v6);
LOBYTE(v9) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1872) + 336LL))(*(_QWORD *)(a1 + 1872), v9);
v10 = (const struct cocos2d::CCSize *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1856) + 320LL))(*(_QWORD *)(a1 + 1856));
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v14, v10);
v11 = *(__int64 **)(a1 + 1872);
v12 = *v11;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, v14[0] * 0.5, v14[1] * 0.5);
(*(void (__fastcall **)(__int64 *, __int64))(v12 + 184))(v11, v13);
}
else
{
(*(void (__fastcall **)(__int64 *, _QWORD))(v8 + 336))(v7, 0);
}
sub_14003D310((__int64)a2);
}