//
// GJGameLevel::recordDeath from 0x854224 to 0x8542cc (168 bytes)
//
// 2 xrefs:
// > PlayLayer::destroyPlayer @ 0x6ffb14
// > ??> @ 0xfdb28
//
// 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:55:28 +0000
//
__int64 __fastcall GJGameLevel::recordDeath(GJGameLevel *this, int a2, int a3, char a4)
{
unsigned __int8 *v8; // x22
*((_DWORD *)this + 384) = 2;
if ( a4 )
{
v8 = (unsigned __int8 *)this + 1616;
GJGameLevel::dtBumpRun((__int64)this, (char *)this + 1568, a2, a3);
GJGameLevel::dtAppendOrder((int)this, v8, a2, 0);
return GJGameLevel::dtAppendOrder((int)this, v8, a3, 0);
}
else
{
GJGameLevel::dtBumpBucket((__int64)this, (char *)this + 1544, a3);
GJGameLevel::dtAppendOrder((int)this, (unsigned __int8 *)this + 1592, a3, 1);
*((_BYTE *)this + 1744) = 1;
return 1;
}
}