//
// cocos2d::CCString::createWithFormat from 0x180010610 to 0x1800106f6 (230 bytes)
//
// 17 xrefs:
// > cocos2d::CCNode::description @ 0x18000328e
// > DS_Dictionary::setArrayForKey @ 0x18001e9b6
// > cocos2d::CCAction::description @ 0x1800247de
// > cocos2d::CCBMFontConfiguration::description @ 0x180049ceb
// > cocos2d::CCLabelTTF::description @ 0x18004fe2c
// > cocos2d::CCEGLView::onGLFWError @ 0x18007a494
// > sub_18007A4E0 @ 0x18007a503
// > cocos2d::CCGLProgram::description @ 0x180089b0d
// > cocos2d::CCTexture2D::description @ 0x1800a89b2
// > cocos2d::CCTextureAtlas::description @ 0x1800a9e4e
// > cocos2d::CCTextureCache::description @ 0x1800acad6
// > cocos2d::CCTileMapAtlas::setTile @ 0x1800aece9
// > cocos2d::CCTileMapAtlas::updateAtlasValues @ 0x1800af1e3
// > cocos2d::CCCamera::description @ 0x1800bf922
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b81c4
// > ??> @ 0x1801b81d0
//
// This function is hookable on this platform (idp: pc, 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:21:22 +0000
//
// Hidden C++ exception states: #wind=2
struct cocos2d::CCString *cocos2d::CCString::createWithFormat(const char *a1, ...)
{
__int64 v1; // rax
cocos2d::CCObject *v2; // rbx
void *v3; // rcx
void *Block[3]; // [rsp+38h] [rbp-30h] BYREF
unsigned __int64 v6; // [rsp+50h] [rbp-18h]
va_list va; // [rsp+78h] [rbp+10h] BYREF
va_start(va, a1);
sub_180005A10(Block, (char *)Text);
v1 = sub_1800E4AC0(0x58u);
if ( v1 )
v2 = (cocos2d::CCObject *)cocos2d::CCString::CCString(v1, (__int64)Block);
else
v2 = nullptr;
cocos2d::CCObject::autorelease(v2);
if ( v6 > 0xF )
{
v3 = Block[0];
if ( v6 + 1 >= 0x1000 )
{
v3 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v3 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free_0(v3);
}
cocos2d::CCString::initWithFormatAndValist(v2, a1, va);
return v2;
}