//
// cocos2d::CCLabelAtlas::setString from 0x180047ee0 to 0x180047fb4 (212 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800f18c8
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bb9e0
//
// 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:41 +0000
//
void __fastcall cocos2d::CCLabelAtlas::setString(cocos2d::CCLabelAtlas *this, char *a2)
{
unsigned int v4; // esi
_BYTE *v5; // rax
size_t v6; // rax
float v7; // [rsp+40h] [rbp+8h] BYREF
v4 = strlen(a2);
if ( v4 > (*(unsigned int (__fastcall **)(_QWORD))(**((_QWORD **)this - 4) + 72LL))(*((_QWORD *)this - 4)) )
cocos2d::CCTextureAtlas::resizeCapacity(*((cocos2d::CCTextureAtlas **)this - 4), v4);
*((_QWORD *)this + 3) = 0;
v5 = (char *)this + 8;
if ( *((_QWORD *)this + 4) > 0xFu )
v5 = *((_BYTE **)this + 1);
*v5 = 0;
v6 = strlen(a2);
sub_1800101E0((void **)this + 1, a2, v6);
(*(void (__fastcall **)(char *))(*((_QWORD *)this - 51) + 920LL))((char *)this - 408);
kmVec2Fill(&v7, (float)(int)(*((_DWORD *)this - 12) * v4), (float)*((int *)this - 11));
(*(void (__fastcall **)(char *, float *))(*((_QWORD *)this - 51) + 312LL))((char *)this - 408, &v7);
*((_DWORD *)this - 3) = v4;
}