//
// sub_1000D6CEC from 0x1000d6cec to 0x1000d6fa0 (692 bytes)
//
// 3 xrefs:
// > sub_10013B858 @ 0x10013b860
// > sub_1002E22FC @ 0x1002e2300
// > InfoLayer::onLevelInfo @ 0x1003f0b94
//
// 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 10:58:57 +0000
//
void __fastcall sub_1000D6CEC(_DWORD *a1)
{
std::string::size_type size; // x8
std::string *v3; // x1
std::string::size_type v4; // x2
const std::string::value_type *p_p; // x1
std::string::size_type v6; // x2
const std::string::value_type *v7; // x1
std::string::size_type v8; // x2
int v9; // w8
const std::string::value_type *v10; // x1
std::string::size_type v11; // x2
std::string *v12; // x1
__int64 v13; // x19
void *v14[2]; // [xsp+8h] [xbp-88h] BYREF
char v15; // [xsp+1Fh] [xbp-71h]
void *__p; // [xsp+20h] [xbp-70h] BYREF
std::string::size_type v17; // [xsp+28h] [xbp-68h]
unsigned __int8 v18; // [xsp+37h] [xbp-59h]
std::string __str; // [xsp+38h] [xbp-58h] BYREF
std::string v20; // [xsp+50h] [xbp-40h] BYREF
std::string v21; // [xsp+68h] [xbp-28h] BYREF
sub_100009900(&v21, "");
sub_100009900(&v20, "(No description provided)");
GJLevelList::getUnpackedDescription((__int64)a1, &__str);
size = HIBYTE(__str.__r_.__value_.__r.__words[2]);
if ( (__str.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
size = __str.__r_.__value_.__l.__size_;
if ( size )
std::string::operator=(&v20, &__str);
if ( (v20.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v3 = &v20;
else
v3 = (std::string *)v20.__r_.__value_.__r.__words[0];
if ( (v20.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v4 = HIBYTE(v20.__r_.__value_.__r.__words[2]);
else
v4 = v20.__r_.__value_.__l.__size_;
std::string::append(&v21, (const std::string::value_type *)v3, v4);
if ( a1[136] != 2 )
{
if ( (int)a1[86] > 0 || (int)a1[132] >= 1 )
{
std::string::append(&v21, "\n\n");
if ( (int)a1[86] >= 1 )
{
std::string::append(&v21, "List ID: ");
GameToolbox::intToString((unsigned int)a1[86], &__p);
if ( (v18 & 0x80u) == 0 )
p_p = (const std::string::value_type *)&__p;
else
p_p = (const std::string::value_type *)__p;
if ( (v18 & 0x80u) == 0 )
v6 = v18;
else
v6 = v17;
std::string::append(&v21, p_p, v6);
if ( (char)v18 < 0 )
operator delete(__p);
std::string::append(&v21, "\n");
}
}
if ( (int)a1[132] >= 1 )
{
std::string::append(&v21, "Uploaded: ");
GameToolbox::timestampToHumanReadable((int)a1[132], &__p);
if ( (v18 & 0x80u) == 0 )
v7 = (const std::string::value_type *)&__p;
else
v7 = (const std::string::value_type *)__p;
if ( (v18 & 0x80u) == 0 )
v8 = v18;
else
v8 = v17;
std::string::append(&v21, v7, v8);
if ( (char)v18 < 0 )
operator delete(__p);
std::string::append(&v21, "");
v9 = a1[133];
if ( v9 >= 1 && a1[132] != v9 )
{
std::string::append(&v21, "\nUpdated: ");
GameToolbox::timestampToHumanReadable((int)a1[133], &__p);
if ( (v18 & 0x80u) == 0 )
v10 = (const std::string::value_type *)&__p;
else
v10 = (const std::string::value_type *)__p;
if ( (v18 & 0x80u) == 0 )
v11 = v18;
else
v11 = v17;
std::string::append(&v21, v10, v11);
if ( (char)v18 < 0 )
operator delete(__p);
std::string::append(&v21, "");
}
}
}
if ( (v21.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v12 = &v21;
else
v12 = (std::string *)v21.__r_.__value_.__r.__words[0];
sub_100009900(v14, (char *)v12);
v13 = FLAlertLayer::create_1(0, "List Info", v14, "OK", 0, 380.0);
if ( v15 < 0 )
operator delete(v14[0]);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v13 + 1312LL))(v13);
if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__str.__r_.__value_.__l.__data_);
if ( SHIBYTE(v20.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v20.__r_.__value_.__l.__data_);
if ( SHIBYTE(v21.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v21.__r_.__value_.__l.__data_);
}