//
// StartPosObject::getDisplayName from 0x10042dc9c to 0x10042dd7c (224 bytes)
//
// 3 xrefs:
// > UILayer::handleAction @ 0x100052470
// > PauseLayer::onChangeStartpos @ 0x1001c0160
// > sub_1001C1818 @ 0x1001c1924
//
// 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:05:04 +0000
//
void __usercall StartPosObject::getDisplayName(__int64 a1@, __n128 *a2@)
{
__int64 v3; // x8
void *v5; // x21
__int64 v6; // x8
void *v7[2]; // [xsp+0h] [xbp-60h] BYREF
__int64 v8; // [xsp+10h] [xbp-50h]
void *__p[2]; // [xsp+20h] [xbp-40h] BYREF
__int64 v10; // [xsp+30h] [xbp-30h]
v3 = *(_QWORD *)(a1 + 1840);
if ( !v3 )
goto LABEL_13;
if ( *(char *)(v3 + 503) < 0 )
{
sub_1000097D0(__p, *(void **)(v3 + 480), *(_QWORD *)(v3 + 488));
}
else
{
*(_OWORD *)__p = *(_OWORD *)(v3 + 480);
v10 = *(_QWORD *)(v3 + 496);
}
if ( v10 >= 0 )
v5 = (void *)SHIBYTE(v10);
else
v5 = __p[1];
if ( (SHIBYTE(v10) & 0x8000000000000000LL) != 0 )
{
operator delete(__p[0]);
if ( v5 )
goto LABEL_10;
LABEL_13:
sub_100009900(a2, "Unnamed");
return;
}
if ( !v5 )
goto LABEL_13;
LABEL_10:
v6 = *(_QWORD *)(a1 + 1840);
if ( *(char *)(v6 + 503) < 0 )
{
sub_1000097D0(v7, *(void **)(v6 + 480), *(_QWORD *)(v6 + 488));
}
else
{
*(_OWORD *)v7 = *(_OWORD *)(v6 + 480);
v8 = *(_QWORD *)(v6 + 496);
}
LevelTools::base64DecodeString((__n128 *)v7, a2);
if ( SHIBYTE(v8) < 0 )
operator delete(v7[0]);
}