//
// GJGameLevel::shippedControls from 0x809798 to 0x809854 (188 bytes)
//
// 3 xrefs:
// > GameLevelManager::onUploadLevelCompleted @ 0x835fc4
// > PlatformerControlsPopup::onUpload @ 0xcfc170
// > ??> @ 0xc4b88
//
// 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:54:47 +0000
//
__int64 *__usercall GJGameLevel::shippedControls@(GJGameLevel *this@, __int64 *a2@)
{
char *v4; // x0
__int64 v5; // x2
LevelControlConfig *v7; // x21
v4 = (char *)this + 1816;
v5 = *((_BYTE *)this + 1816) >> 1;
if ( (*((_BYTE *)this + 1816) & 1) != 0 )
v5 = *((_QWORD *)v4 + 1);
if ( v5
&& *((_DWORD *)this + 462)
&& ((v7 = (LevelControlConfig *)LevelControlConfig::createFromB64(v4),
LevelControlConfig::keepClasses(v7, *((_DWORD *)this + 462)),
*((_QWORD *)v7 + 12))
|| *((_QWORD *)v7 + 17)
|| *((_QWORD *)v7 + 19) != *((_QWORD *)v7 + 20)) )
{
LevelControlConfig::encodeB64(v7);
return a2;
}
else
{
*a2 = 0;
a2[1] = 0;
a2[2] = 0;
std::string::__init(a2, &byte_11B8890, 0);
return a2;
}
}