//
// sub_1004C9240 from 0x1004c9240 to 0x1004c92e4 (164 bytes)
//
// 3 xrefs:
// > sub_1004C8EF4 @ 0x1004c8fec
// > sub_1004C8EF4 @ 0x1004c8ffc
// > sub_1004C8EF4 @ 0x1004c901c
//
// 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_1004C9240(std::string *this, int a2, int a3)
{
std::string *v4; // x19
std::string::size_type size; // x8
char __str[16]; // [xsp+18h] [xbp-28h] BYREF
if ( a3 )
{
v4 = 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, 0x10u, "%d,%d", a2, 1);
return std::string::append(v4, __str);
}
return this;
}