//
// sub_1002E3A78 from 0x1002e3a78 to 0x1002e3bac (308 bytes)
//
// 1 xrefs:
// > LevelListLayer::onBack @ 0x1002e3908
//
// 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:02:49 +0000
//
void __fastcall sub_1002E3A78(__int64 a1)
{
__int64 v2; // x8
__int64 v3; // x20
__int64 v4; // x8
__int128 *v5; // x8
__int64 v6; // x19
__int64 v7; // x20
std::string *v8; // x19
std::string *p_str; // x8
std::string __str; // [xsp+8h] [xbp-68h] BYREF
std::string v11; // [xsp+20h] [xbp-50h] BYREF
__int128 __dst; // [xsp+40h] [xbp-30h] BYREF
__int64 v13; // [xsp+50h] [xbp-20h]
v2 = *(_QWORD *)(a1 + 912);
if ( *(char *)(v2 + 455) < 0 )
{
sub_1000097D0(&__dst, *(void **)(v2 + 432), *(_QWORD *)(v2 + 440));
}
else
{
__dst = *(_OWORD *)(v2 + 432);
v13 = *(_QWORD *)(v2 + 448);
}
if ( SHIBYTE(v13) < 0 )
{
v3 = *((_QWORD *)&__dst + 1);
operator delete((void *)__dst);
if ( v3 )
return;
}
else if ( HIBYTE(v13) )
{
return;
}
v4 = *(_QWORD *)(a1 + 912);
if ( *(char *)(v4 + 479) < 0 )
{
sub_1000097D0(&__dst, *(void **)(v4 + 456), *(_QWORD *)(v4 + 464));
}
else
{
v5 = (__int128 *)(v4 + 456);
__dst = *v5;
v13 = *((_QWORD *)v5 + 2);
}
if ( (SHIBYTE(v13) & 0x80000000) == 0 )
{
if ( HIBYTE(v13) )
goto LABEL_13;
LABEL_16:
v8 = *(std::string **)(a1 + 912);
sub_100009900(&__str, "Unknown");
std::string::operator=(v8 + 18, &__str);
if ( (SHIBYTE(__str.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 )
return;
p_str = &__str;
goto LABEL_21;
}
v7 = *((_QWORD *)&__dst + 1);
operator delete((void *)__dst);
if ( !v7 )
goto LABEL_16;
LABEL_13:
v6 = *(_QWORD *)(a1 + 912);
if ( *(char *)(v6 + 479) < 0 )
sub_1000097D0(&v11, *(void **)(v6 + 456), *(_QWORD *)(v6 + 464));
else
v11 = *(std::string *)(v6 + 456);
std::string::operator=((std::string *)(v6 + 432), &v11);
if ( SHIBYTE(v11.__r_.__value_.__r.__words[2]) < 0 )
{
p_str = &v11;
LABEL_21:
operator delete(p_str->__r_.__value_.__l.__data_);
}
}