//
// sub_1004BCE80 from 0x1004bce80 to 0x1004bcf04 (132 bytes)
//
// 3 xrefs:
// > sub_1004BB1CC @ 0x1004bb2dc
// > sub_1004BB54C @ 0x1004bb58c
// > sub_1004BBCDC @ 0x1004bc864
//
// 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:18 +0000
//
void __usercall sub_1004BCE80(__int64 a1@, std::string *a2@)
{
__int64 v3; // x8
__int64 v4; // x0
std::string *v5; // x0
std::string v6; // [xsp+8h] [xbp-28h] BYREF
v3 = *(_QWORD *)(a1 + 680);
if ( v3 )
v4 = (unsigned int)(*(_DWORD *)(v3 + 328) - *(_DWORD *)(v3 + 332));
else
v4 = 0;
GameToolbox::intToString(v4, &v6);
v5 = std::string::insert(&v6, 0, "dtdist_");
*a2 = *v5;
v5->__r_.__value_.__l.__size_ = 0;
v5->__r_.__value_.__r.__words[2] = 0;
v5->__r_.__value_.__r.__words[0] = 0;
if ( SHIBYTE(v6.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v6.__r_.__value_.__l.__data_);
}