//
// sub_1004C90D0 from 0x1004c90d0 to 0x1004c917c (172 bytes)
//
// 10 xrefs:
// > sub_1004C8EF4 @ 0x1004c8f20
// > sub_1004C8EF4 @ 0x1004c8f44
// > sub_1004C8EF4 @ 0x1004c8f54
// > sub_1004C8EF4 @ 0x1004c8f64
// > sub_1004C8EF4 @ 0x1004c8f74
// > sub_1004C8EF4 @ 0x1004c8f84
// > sub_1004C8EF4 @ 0x1004c8f94
// > sub_1004C8EF4 @ 0x1004c8fb8
// > sub_1004C8EF4 @ 0x1004c8fc8
// > sub_1004C8EF4 @ 0x1004c900c
//
// 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:24 +0000
//
std::string *__fastcall sub_1004C90D0(std::string *this, int a2, int a3)
{
std::string *v5; // x19
std::string::size_type size; // x8
char __str[32]; // [xsp+18h] [xbp-48h] BYREF
if ( a3 )
{
v5 = this;
size = HIBYTE(this->__r_.__value_.__r.__words[2]);
if ( (size & 0x80u) != 0LL )
size = this->__r_.__value_.__l.__size_;
if ( size )
std::string::push_back(this, 44);
snprintf(__str, 0x20u, "%d,%d", a2, a3);
return std::string::append(v5, __str);
}
return this;
}