//
// GJGameLevel::ensureSessionLog from 0x83be00 to 0x83becc (204 bytes)
//
// 3 xrefs:
// > GJGameLevel::rollSession @ 0x854604
// > DeathTrackerPopup::parseSessions @ 0xcafdf0
// > ??> @ 0x5b270
//
// 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:14 +0000
//
__int64 __fastcall GJGameLevel::ensureSessionLog(GJGameLevel *this)
{
char *v2; // x0
__int64 v3; // x2
__int64 v4; // x2
__int64 v6; // x1
_QWORD v7[3]; // [xsp+30h] [xbp+30h] BYREF
v2 = (char *)this + 1688;
v3 = *((_BYTE *)this + 1688) >> 1;
if ( (*((_BYTE *)this + 1688) & 1) != 0 )
v3 = *((_QWORD *)v2 + 1);
if ( v3 )
{
v4 = *((_BYTE *)this + 1664) >> 1;
if ( (*((_BYTE *)this + 1664) & 1) != 0 )
v4 = *((_QWORD *)this + 209);
if ( !v4 )
{
cocos2d::ZipUtils::decompressString(v7, v2, 0, 0);
if ( (*((_BYTE *)this + 1664) & 1) != 0 )
{
**((_BYTE **)this + 210) = 0;
*((_QWORD *)this + 209) = 0;
}
else
{
*((_BYTE *)this + 1665) = 0;
*((_BYTE *)this + 1664) = 0;
}
std::string::reserve((__int64 *)this + 208, 0);
*((_QWORD *)this + 210) = v7[2];
v6 = v7[1];
*((_QWORD *)this + 208) = v7[0];
*((_QWORD *)this + 209) = v6;
}
}
return _stack_chk_guard;
}