//
// cocos2d::CCString::initWithFormatAndValist from 0x7c8cfc to 0x7c8d3a (62 bytes)
//
// 2 xrefs:
// > cocos2d::CCString::initWithFormat @ 0x7c8d70
// > cocos2d::CCString::createWithFormat @ 0x7c8dd4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:28 +0000
//
char *__fastcall cocos2d::CCString::initWithFormatAndValist(cocos2d::CCString *this, const char *a2, __va_list a3)
{
char *result; // r0
char *v7; // r4
size_t v8; // r0
result = (char *)malloc(0x19000u);
v7 = result;
if ( result )
{
sub_997D58(result, 102400, a2, a3);
v8 = strlen(v7);
std::string::assign((_DWORD *)this + 13, v7, v8);
free(v7);
return (_BYTE *)(&dword_0 + 1);
}
return result;
}