//
// sub_10048DC7C from 0x10048dc7c to 0x10048dd84 (264 bytes)
//
// 5 xrefs:
// > sub_10048D364 @ 0x10048d53c
// > sub_10048D364 @ 0x10048d554
// > sub_10048D364 @ 0x10048d564
// > sub_10048F1CC @ 0x10048f328
// > sub_10048F1CC @ 0x10048f338
//
// 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:52 +0000
//
void __usercall sub_10048DC7C(int a1@, __int64 a2@, std::string *a3@)
{
const std::string::value_type *v6; // x1
void **v7; // x1
std::string::size_type v8; // x2
const std::string::value_type *v9; // x1
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
unsigned __int8 v11; // [xsp+1Fh] [xbp-21h]
sub_100009900(a3, "");
if ( a1 > 3 )
{
if ( a1 == 4 )
{
v9 = "MainTime";
goto LABEL_21;
}
if ( a1 == 5 )
{
v9 = "Attempts";
LABEL_21:
std::string::assign(a3, v9);
return;
}
LABEL_20:
v9 = "NA";
goto LABEL_21;
}
if ( (unsigned int)(a1 - 1) >= 2 )
{
if ( a1 == 3 )
{
v9 = "Points";
goto LABEL_21;
}
goto LABEL_20;
}
if ( a1 == 1 )
v6 = "I";
else
v6 = "T";
std::string::assign(a3, v6);
GameToolbox::intToString(a2, __p);
if ( (v11 & 0x80u) == 0 )
v7 = __p;
else
v7 = (void **)__p[0];
if ( (v11 & 0x80u) == 0 )
v8 = v11;
else
v8 = (std::string::size_type)__p[1];
std::string::append(a3, (const std::string::value_type *)v7, v8);
if ( (char)v11 < 0 )
operator delete(__p[0]);
}