//
// cocos2d::CCString::initWithFormat from 0x7c8d3c to 0x7c8d8a (78 bytes)
//
// 0 xrefs:
//
// 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 *cocos2d::CCString::initWithFormat(cocos2d::CCString *this, const char *a2, ...)
{
void *v2; // r3
bool v3; // zf
va_list varg_r2; // [sp+18h] [bp+Ch] BYREF
va_start(varg_r2, a2);
v2 = &_stack_chk_guard;
v3 = (*((_BYTE *)this + 52) & 1) == 0;
if ( (*((_BYTE *)this + 52) & 1) != 0 )
{
v2 = nullptr;
**((_BYTE **)this + 15) = 0;
}
else
{
*((_BYTE *)this + 53) = 0;
*((_BYTE *)this + 52) = 0;
}
if ( !v3 )
*((_DWORD *)this + 14) = v2;
return cocos2d::CCString::initWithFormatAndValist(this, a2, varg_r2);
}