//
// PlayerObject::copyAttributes from 0x1404fea30 to 0x1404febd4 (420 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::toggleDualMode @ 0x14031df44
// > GJBaseGameLayer::toggleDualMode @ 0x14031e175
// > ??> @ 0x14092a644
//
// 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
//
__int64 __fastcall PlayerObject::copyAttributes(__int64 a1, __int64 a2)
{
__int64 v4; // rbx
__int64 v5; // rax
__int64 v6; // r8
__int64 v7; // rdx
__int64 v8; // rdx
__int64 result; // rax
char v10; // [rsp+30h] [rbp+8h] BYREF
*(_BYTE *)(a1 + 2025) = 1;
*(_QWORD *)(a1 + 2728) = *(_QWORD *)(a2 + 2728);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v10, (const struct cocos2d::CCPoint *)(a2 + 2712));
cocos2d::CCPoint::operator=(a1 + 2712, &v10);
v4 = *(_QWORD *)a1;
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 200LL))(a2);
(*(void (__fastcall **)(__int64, __int64))(v4 + 184))(a1, v5);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v10, (const struct cocos2d::CCPoint *)(a2 + 2560));
cocos2d::CCPoint::operator=(a1 + 2560, &v10);
PlayerObject::flipGravity(a1, *(_BYTE *)(a2 + 2503), 1);
PlayerObject::doReversePlayer(a1, *(unsigned __int8 *)(a2 + 2506), v6);
PlayerObject::toggleFlyMode(a1, *(_BYTE *)(a2 + 2497), 0);
PlayerObject::toggleBirdMode(a1, *(_BYTE *)(a2 + 2498), 0);
PlayerObject::toggleRollMode(a1, *(_BYTE *)(a2 + 2499), 0);
PlayerObject::toggleDartMode(a1, *(_BYTE *)(a2 + 2500), 0);
PlayerObject::toggleRobotMode(a1, *(_BYTE *)(a2 + 2501), 0);
PlayerObject::toggleSpiderMode(a1, *(_BYTE *)(a2 + 2502), 0);
PlayerObject::toggleSwingMode(a1, *(_BYTE *)(a2 + 2508), 0);
PlayerObject::updateTimeMod(a1, v7, 0);
if ( *(float *)(a2 + 2552) == 1.0 )
v8 = 0;
else
LOBYTE(v8) = 1;
PlayerObject::togglePlayerScale(a1, v8, 0);
PlayerObject::setYVelocity(a1, *(double *)(a2 + 2472));
*(_BYTE *)(a1 + 2025) = 0;
*(_BYTE *)(a1 + 2445) = *(_BYTE *)(a2 + 2445);
result = *(unsigned __int8 *)(a2 + 2446);
*(_BYTE *)(a1 + 2446) = result;
return result;
}