//
// cocos2d::CCString::createWithFormat from 0x180010460 to 0x18001053b (219 bytes)
//
// 16 xrefs:
// > cocos2d::CCNode::description @ 0x18000320e
// > DS_Dictionary::setArrayForKey @ 0x18001e7f6
// > cocos2d::CCAction::description @ 0x18002428e
// > cocos2d::CCBMFontConfiguration::description @ 0x1800486eb
// > cocos2d::CCLabelTTF::description @ 0x18004e01c
// > cocos2d::CCEGLView::onGLFWError @ 0x180077714
// > sub_180077760 @ 0x180077783
// > cocos2d::CCGLProgram::description @ 0x18008696d
// > cocos2d::CCTexture2D::description @ 0x1800a4ef2
// > cocos2d::CCTextureAtlas::description @ 0x1800a632e
// > cocos2d::CCTextureCache::description @ 0x1800a92b6
// > cocos2d::CCTileMapAtlas::setTile @ 0x1800ab4cd
// > cocos2d::CCTileMapAtlas::updateAtlasValues @ 0x1800ab9a4
// > cocos2d::CCCamera::description @ 0x1800bc1c2
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ae11c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=2
struct cocos2d::CCString *cocos2d::CCString::createWithFormat(const char *a1, ...)
{
cocos2d::CCString *v1; // rbx
unsigned __int64 v2; // rdi
void *v3; // rax
void *v4; // rcx
void *Block[2]; // [rsp+28h] [rbp-40h] BYREF
__int64 v7; // [rsp+38h] [rbp-30h]
__int64 v8; // [rsp+40h] [rbp-28h]
va_list va; // [rsp+78h] [rbp+10h] BYREF
va_start(va, a1);
*(_OWORD *)Block = 0;
v1 = nullptr;
v7 = 0;
v2 = 15;
v8 = 15;
LOBYTE(Block[0]) = 0;
v3 = operator new(0x58u);
if ( v3 )
{
v1 = (cocos2d::CCString *)cocos2d::CCString::CCString((__int64)v3, (__int64)Block);
v2 = v8;
}
cocos2d::CCObject::autorelease(v1);
if ( v2 > 0xF )
{
v4 = Block[0];
if ( v2 + 1 >= 0x1000 )
{
v4 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v4 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free_0(v4);
}
cocos2d::CCString::initWithFormatAndValist(v1, a1, va);
return v1;
}