//
// PlayerObject::updatePlayerArt from 0x1404f6bb0 to 0x1404f6f4b (923 bytes)
//
// 15 xrefs:
// > GJBaseGameLayer::setupLevelStart @ 0x1403193fe
// > GJBaseGameLayer::collisionCheckObjects @ 0x14031c2bf
// > GJBaseGameLayer::loadStartPosObject @ 0x14033e4ed
// > PlayerObject::doReversePlayer @ 0x1404f68d8
// > PlayerObject::rotateGameplay @ 0x1404f8079
// > PlayerObject::flipGravity @ 0x1404f85c9
// > PlayerObject::toggleFlyMode @ 0x1404f8aa7
// > PlayerObject::toggleBirdMode @ 0x1404f8d9d
// > PlayerObject::toggleSwingMode @ 0x1404f905a
// > PlayerObject::toggleDartMode @ 0x1404f9583
// > PlayerObject::toggleRollMode @ 0x1404f99a4
// > PlayerObject::toggleRobotMode @ 0x1404f9d39
// > PlayerObject::toggleSpiderMode @ 0x1404fa05b
// > PlayerObject::loadFromCheckpoint @ 0x140500ff5
// > ??> @ 0x14092a224
//
// 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:20 +0000
//
__int64 __fastcall PlayerObject::updatePlayerArt(__int64 a1)
{
int v2; // eax
int v3; // xmm1_4
int v4; // xmm1_4
__int64 v5; // rax
int v6; // xmm1_4
__int64 v7; // rax
__int64 v8; // rax
int v9; // xmm1_4
int v11; // [rsp+50h] [rbp+20h] BYREF
int v12; // [rsp+54h] [rbp+24h]
int v13; // [rsp+58h] [rbp+28h] BYREF
int v14; // [rsp+5Ch] [rbp+2Ch]
char v15; // [rsp+60h] [rbp+30h] BYREF
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1368) + 120LL))(*(_QWORD *)(a1 + 1368));
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1368) + 136LL))(*(_QWORD *)(a1 + 1368));
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1368) + 352LL))(*(_QWORD *)(a1 + 1368));
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 2240) + 1000LL))(*(_QWORD *)(a1 + 2240));
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 2248) + 1000LL))(*(_QWORD *)(a1 + 2248));
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 2256) + 1000LL))(*(_QWORD *)(a1 + 2256));
v2 = 300;
if ( !*(_BYTE *)(a1 + 2503) )
v2 = -300;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v13, 0.0, (float)v2);
if ( *(_BYTE *)(a1 + 2507) )
{
v3 = v13;
v13 = v14;
v14 = v3;
}
(*(void (__fastcall **)(_QWORD, int *))(**(_QWORD **)(a1 + 2240) + 1040LL))(*(_QWORD *)(a1 + 2240), &v13);
(*(void (__fastcall **)(_QWORD, int *))(**(_QWORD **)(a1 + 2248) + 1040LL))(*(_QWORD *)(a1 + 2248), &v13);
(*(void (__fastcall **)(_QWORD, int *))(**(_QWORD **)(a1 + 2256) + 1040LL))(*(_QWORD *)(a1 + 2256), &v13);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v11, 0.0, 2.0);
if ( *(_BYTE *)(a1 + 2507) )
{
v4 = v11;
v11 = v12;
v12 = v4;
}
(*(void (__fastcall **)(_QWORD, int *))(**(_QWORD **)(a1 + 2248) + 952LL))(*(_QWORD *)(a1 + 2248), &v11);
(*(void (__fastcall **)(_QWORD, int *))(**(_QWORD **)(a1 + 2256) + 952LL))(*(_QWORD *)(a1 + 2256), &v11);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 2272) + 1000LL))(*(_QWORD *)(a1 + 2272));
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 2280) + 1000LL))(*(_QWORD *)(a1 + 2280));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, 5.0, 1.0);
cocos2d::CCPoint::operator=(&v11, v5);
if ( *(_BYTE *)(a1 + 2507) )
{
v6 = v11;
v11 = v12;
v12 = v6;
}
(*(void (__fastcall **)(_QWORD, int *))(**(_QWORD **)(a1 + 2272) + 952LL))(*(_QWORD *)(a1 + 2272), &v11);
(*(void (__fastcall **)(_QWORD, int *))(**(_QWORD **)(a1 + 2280) + 952LL))(*(_QWORD *)(a1 + 2280), &v11);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, 5.0, 1.0);
cocos2d::CCPoint::operator=(&v11, v7);
if ( *(_BYTE *)(a1 + 2501) || *(_BYTE *)(a1 + 2502) )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, 15.0, 0.0);
cocos2d::CCPoint::operator=(&v11, v8);
}
if ( *(_BYTE *)(a1 + 2507) )
{
v9 = v11;
v11 = v12;
v12 = v9;
}
return (*(__int64 (__fastcall **)(_QWORD, int *))(**(_QWORD **)(a1 + 2240) + 952LL))(*(_QWORD *)(a1 + 2240), &v11);
}