//
// sub_1004DE5F4 from 0x1004de5f4 to 0x1004de684 (144 bytes)
//
// 4 xrefs:
// > InfoLayer::init @ 0x1003ee6f0
// > sub_1004D235C @ 0x1004d237c
// > sub_1004D5758 @ 0x1004d5acc
// > sub_1004DE6A0 @ 0x1004de6c0
//
// 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:06:35 +0000
//
void __usercall sub_1004DE5F4(__int64 a1@, __n128 *a2@)
{
unsigned __int64 v3; // x2
void *__p[2]; // [xsp+0h] [xbp-30h] BYREF
__int64 v5; // [xsp+10h] [xbp-20h]
if ( (*(char *)(a1 + 423) & 0x80000000) == 0 )
{
if ( *(_BYTE *)(a1 + 423) )
{
*(_OWORD *)__p = *(_OWORD *)(a1 + 400);
v5 = *(_QWORD *)(a1 + 416);
goto LABEL_6;
}
LABEL_9:
sub_100009900(a2, "");
return;
}
v3 = *(_QWORD *)(a1 + 408);
if ( !v3 )
goto LABEL_9;
sub_1000097D0(__p, *(void **)(a1 + 400), v3);
LABEL_6:
LevelTools::base64DecodeString((__n128 *)__p, a2);
if ( SHIBYTE(v5) < 0 )
operator delete(__p[0]);
}