//
// GJBaseGameLayer::resetPlayer from 0x100280ee8 to 0x100281014 (300 bytes)
//
// 3 xrefs:
// > PlayLayer::setupHasCompleted @ 0x10013f7dc
// > GJBaseGameLayer::resetLevelVariables @ 0x10029f4c0
// > LevelEditorLayer::onPlaytest @ 0x100404984
//
// 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:01:55 +0000
//
__int64 __fastcall GJBaseGameLayer::resetPlayer(_QWORD *a1)
{
__int64 v2; // x0
double *v3; // x0
__int64 v4; // x20
double v5; // d0
__int64 v6; // x20
double v7; // d0
__int64 result; // x0
bool v9; // w8
__int64 Object; // x0
__int64 v11; // [xsp+0h] [xbp-20h] BYREF
__int64 v12; // [xsp+8h] [xbp-18h] BYREF
sub_1000262BC((float *)&v12, 0.0, 105.0);
v2 = a1[1554];
if ( v2 )
{
v3 = (double *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 192LL))(v2);
sub_10002630C(&v12, v3);
}
else if ( *(int *)(a1[409] + 444LL) >= 1 )
{
Object = GJBaseGameLayer::tryGetObject(a1);
if ( Object )
{
(*(void (__fastcall **)(__int64 *__return_ptr))(*(_QWORD *)Object + 1360LL))(&v11);
sub_10002630C(&v12, (double *)&v11);
if ( (*(_BYTE *)(a1[409] + 341LL) & 1) == 0 )
LODWORD(v12) = 0;
}
}
v4 = a1[407];
v5 = sub_1000262F4(&v11, (double *)&v12);
(*(void (__fastcall **)(__int64, __int64 *, double))(*(_QWORD *)v4 + 1368LL))(v4, &v11, v5);
(*(void (__fastcall **)(_QWORD))(*(_QWORD *)a1[407] + 1288LL))(a1[407]);
v6 = a1[408];
v7 = sub_1000262F4(&v11, (double *)&v12);
(*(void (__fastcall **)(__int64, __int64 *, double))(*(_QWORD *)v6 + 1368LL))(v6, &v11, v7);
result = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)a1[408] + 1288LL))(a1[408]);
v9 = (*(_BYTE *)(a1[409] + 461LL) & 1) == 0;
*(_BYTE *)(a1[407] + 2528LL) = v9;
*(_BYTE *)(a1[408] + 2528LL) = v9;
return result;
}