// // cocos2d::CCLabelAtlas::setString from 0x180046680 to 0x18004675e (222 bytes) // // 3 xrefs: // > @ 0x1800eb818 // > @ 0x1801438a8 // > @ 0x1801b1770 // // 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 // void __fastcall cocos2d::CCLabelAtlas::setString(cocos2d::CCLabelAtlas *this, char *a2) { size_t v2; // rbx __int64 v4; // rdi void **p_m_uID; // rcx unsigned int *v7; // rax float v8; // [rsp+30h] [rbp+8h] BYREF v2 = -1; v4 = -1; do ++v4; while ( a2[v4] ); if ( (unsigned int)v4 > (*(unsigned int (__fastcall **)(_QWORD))(**((_QWORD **)this - 4) + 72LL))(*((_QWORD *)this - 4)) ) cocos2d::CCTextureAtlas::resizeCapacity(*((cocos2d::CCTextureAtlas **)this - 4), v4); p_m_uID = (void **)&this->m_uID; *(_QWORD *)&this->m_uAutoReleaseCount = 0; v7 = &this->m_uID; if ( *(_QWORD *)&this->m_uIndexInArray > 0xFu ) v7 = (unsigned int *)*p_m_uID; *(_BYTE *)v7 = 0; do ++v2; while ( a2[v2] ); sub_180010050(p_m_uID, a2, v2); (*(void (__fastcall **)(char *))(*((_QWORD *)this - 51) + 904LL))((char *)this - 408); kmVec2Fill(&v8, (float)(*((_DWORD *)this - 12) * v4), (float)*((int *)this - 11)); (*(void (__fastcall **)(char *, float *))(*((_QWORD *)this - 51) + 296LL))((char *)this - 408, &v8); *((_DWORD *)this - 3) = v4; }