//
// PlayerObject::updatePlayerArt from 0x752044 to 0x7523ec (936 bytes)
//
// 7 xrefs:
// > PlayerObject::rotateGameplayOnly @ 0x752400
// > PlayerObject::doReversePlayer @ 0x75466c
// > PlayerObject::doReversePlayer @ 0x7546d8
// > PlayerObject::flipGravity @ 0x754f2c
// > PlayerObject::rotateGameplay @ 0x755fa4
// > PlayerObject::modeDidChange @ 0x756210
// > ??> @ 0x104a88
//
// 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 12:52:55 +0000
//
__int64 __fastcall PlayerObject::updatePlayerArt(PlayerObject *this)
{
__int64 v2; // x20
void (__fastcall *v3)(__int64, float); // x21
int v4; // w0
long double v5; // q0
__int64 v6; // x20
void (__fastcall *v7)(__int64, long double); // x21
long double v8; // q0
int v9; // w0
float v10; // s8
int v11; // w0
int v12; // w1
int v13; // w1
int v14; // w0
float v15; // s8
long double v16; // q0
int v17; // w1
long double v18; // q0
int v19; // w1
float v21; // s8
int v22; // [xsp+40h] [xbp+40h] BYREF
int v23; // [xsp+44h] [xbp+44h]
int v24; // [xsp+48h] [xbp+48h] BYREF
int v25; // [xsp+4Ch] [xbp+4Ch]
_BYTE v26[8]; // [xsp+50h] [xbp+50h] BYREF
v2 = *((_QWORD *)this + 170);
v3 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v2 + 128LL);
v4 = PlayerObject::reverseMod(this);
v3(v2, (float)v4);
if ( *((_BYTE *)this + 2428) || *((_BYTE *)this + 2419) || (unsigned __int8)PlayerObject::isInNormalMode(this) )
{
v6 = *((_QWORD *)this + 170);
LODWORD(v5) = 1.0;
v7 = *(void (__fastcall **)(__int64, long double))(*(_QWORD *)v6 + 144LL);
}
else
{
v6 = *((_QWORD *)this + 170);
if ( *((_BYTE *)this + 2427) )
v21 = -1.0;
else
v21 = 1.0;
v7 = *(void (__fastcall **)(__int64, long double))(*(_QWORD *)v6 + 144LL);
*(float *)&v5 = v21 * (float)(int)PlayerObject::flipMod(this);
}
v7(v6, v5);
LODWORD(v8) = 0;
if ( *((_BYTE *)this + 2427) )
LODWORD(v8) = -1028390912;
(*(void (__fastcall **)(_QWORD, long double))(**((_QWORD **)this + 170) + 360LL))(*((_QWORD *)this + 170), v8);
v9 = PlayerObject::flipMod(this);
if ( *((_BYTE *)this + 2427) )
{
v10 = 0.0;
if ( *((_BYTE *)this + 2423) )
v10 = 180.0;
}
else
{
v10 = (float)(90 * v9);
}
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 270) + 1008LL))(*((_QWORD *)this + 270), v10);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 271) + 1008LL))(*((_QWORD *)this + 271), v10);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 272) + 1008LL))(*((_QWORD *)this + 272), v10);
v11 = PlayerObject::flipMod(this);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, 0.0, (float)(-300 * v11));
if ( *((_BYTE *)this + 2427) )
{
v12 = v22;
v22 = v23;
v23 = v12;
}
(*(void (__fastcall **)(_QWORD, int *))(**((_QWORD **)this + 270) + 1048LL))(*((_QWORD *)this + 270), &v22);
(*(void (__fastcall **)(_QWORD, int *))(**((_QWORD **)this + 271) + 1048LL))(*((_QWORD *)this + 271), &v22);
(*(void (__fastcall **)(_QWORD, int *))(**((_QWORD **)this + 272) + 1048LL))(*((_QWORD *)this + 272), &v22);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v24, 0.0, 2.0);
if ( *((_BYTE *)this + 2427) )
{
v13 = v24;
v24 = v25;
v25 = v13;
}
(*(void (__fastcall **)(_QWORD, int *))(**((_QWORD **)this + 271) + 960LL))(*((_QWORD *)this + 271), &v24);
(*(void (__fastcall **)(_QWORD, int *))(**((_QWORD **)this + 272) + 960LL))(*((_QWORD *)this + 272), &v24);
v14 = PlayerObject::flipMod(this);
if ( *((_BYTE *)this + 2427) )
{
if ( *((_BYTE *)this + 2423) )
v15 = 60.0;
else
v15 = 240.0;
}
else
{
v15 = (float)(330 * v14);
}
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 274) + 1008LL))(*((_QWORD *)this + 274), v15);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 275) + 1008LL))(*((_QWORD *)this + 275), v15);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, 5.0, 1.0);
*(__n128 *)&v16 = cocos2d::CCPoint::operator=(&v24, v26);
if ( *((_BYTE *)this + 2427) )
{
v17 = v24;
v24 = v25;
v25 = v17;
}
(*(void (__fastcall **)(_QWORD, int *, long double))(**((_QWORD **)this + 274) + 960LL))(
*((_QWORD *)this + 274),
&v24,
v16);
(*(void (__fastcall **)(_QWORD, int *))(**((_QWORD **)this + 275) + 960LL))(*((_QWORD *)this + 275), &v24);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, 5.0, 1.0);
*(__n128 *)&v18 = cocos2d::CCPoint::operator=(&v24, v26);
if ( *((_BYTE *)this + 2421) || *((_BYTE *)this + 2422) )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, 15.0, 0.0);
*(__n128 *)&v18 = cocos2d::CCPoint::operator=(&v24, v26);
}
if ( *((_BYTE *)this + 2427) )
{
v19 = v24;
v24 = v25;
v25 = v19;
}
(*(void (__fastcall **)(_QWORD, int *, long double))(**((_QWORD **)this + 270) + 960LL))(
*((_QWORD *)this + 270),
&v24,
v18);
return _stack_chk_guard;
}