{"type": "func", "start": 6442739328, "end": 6442739550, "name": "cocos2d::CCLabelAtlas::setString", "pseudocode": "// \n// cocos2d::CCLabelAtlas::setString from 0x180046680 to 0x18004675e (222 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800eb818\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b1770\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall cocos2d::CCLabelAtlas::setString(cocos2d::CCLabelAtlas *this, char *a2)\n{\n  size_t v2; // rbx\n  __int64 v4; // rdi\n  void **p_m_uID; // rcx\n  unsigned int *v7; // rax\n  float v8; // [rsp+30h] [rbp+8h] BYREF\n\n  v2 = -1;\n  v4 = -1;\n  do\n    ++v4;\n  while ( a2[v4] );\n  if ( (unsigned int)v4 > (*(unsigned int (__fastcall **)(_QWORD))(**((_QWORD **)this - 4) + 72LL))(*((_QWORD *)this - 4)) )\n    cocos2d::CCTextureAtlas::resizeCapacity(*((cocos2d::CCTextureAtlas **)this - 4), v4);\n  p_m_uID = (void **)&this->m_uID;\n  *(_QWORD *)&this->m_uAutoReleaseCount = 0;\n  v7 = &this->m_uID;\n  if ( *(_QWORD *)&this->m_uIndexInArray > 0xFu )\n    v7 = (unsigned int *)*p_m_uID;\n  *(_BYTE *)v7 = 0;\n  do\n    ++v2;\n  while ( a2[v2] );\n  sub_180010050(p_m_uID, a2, v2);\n  (*(void (__fastcall **)(char *))(*((_QWORD *)this - 51) + 904LL))((char *)this - 408);\n  kmVec2Fill(&v8, (float)(*((_DWORD *)this - 12) * v4), (float)*((int *)this - 11));\n  (*(void (__fastcall **)(char *, float *))(*((_QWORD *)this - 51) + 296LL))((char *)this - 408, &v8);\n  *((_DWORD *)this - 3) = v4;\n}", "assembly": "; \n; cocos2d::CCLabelAtlas::setString from 0x180046680 to 0x18004675e (222 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800eb818\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b1770\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x180046680\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x180046685\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x18004668a\npush    rdi                                                            ; +0xf, 0x18004668f\nsub     rsp, 20h                                                       ; +0x10, 0x180046690\nmov     rbx, 0FFFFFFFFFFFFFFFFh                                        ; +0x14, 0x180046694\nmov     rsi, rdx                                                       ; +0x1b, 0x18004669b\nmov     rdi, rbx                                                       ; +0x1e, 0x18004669e\nmov     rbp, rcx                                                       ; +0x21, 0x1800466a1\ninc     rdi                                                            ; +0x24, 0x1800466a4\ncmp     byte ptr [rdx+rdi], 0                                          ; +0x27, 0x1800466a7\njnz     short loc_1800466A4                                            ; +0x2b, 0x1800466ab\nmov     rcx, [rcx-20h]                                                 ; +0x2d, 0x1800466ad\nmov     rax, [rcx]                                                     ; +0x31, 0x1800466b1\ncall    qword ptr [rax+48h]                                            ; +0x34, 0x1800466b4\ncmp     edi, eax                                                       ; +0x37, 0x1800466b7\njbe     short loc_1800466C6                                            ; +0x39, 0x1800466b9\nmov     rcx, [rbp-20h]; this                                           ; +0x3b, 0x1800466bb\nmov     edx, edi; unsigned int                                         ; +0x3f, 0x1800466bf\ncall    ?resizeCapacity@CCTextureAtlas@cocos2d@@QEAA_NI@Z; cocos2d::CCTextureAtlas::resizeCapacity(uint) ; +0x41, 0x1800466c1\nlea     rcx, [rbp+8]; void *                                           ; +0x46, 0x1800466c6\nmov     qword ptr [rcx+10h], 0                                         ; +0x4a, 0x1800466ca\nmov     rax, rcx                                                       ; +0x52, 0x1800466d2\ncmp     qword ptr [rcx+18h], 0Fh                                       ; +0x55, 0x1800466d5\njbe     short loc_1800466DF                                            ; +0x5a, 0x1800466da\nmov     rax, [rcx]                                                     ; +0x5c, 0x1800466dc\nmov     byte ptr [rax], 0                                              ; +0x5f, 0x1800466df\ninc     rbx                                                            ; +0x62, 0x1800466e2\ncmp     byte ptr [rsi+rbx], 0                                          ; +0x65, 0x1800466e5\njnz     short loc_1800466E2                                            ; +0x69, 0x1800466e9\nmov     r8, rbx; Size                                                  ; +0x6b, 0x1800466eb\nmov     rdx, rsi; Src                                                  ; +0x6e, 0x1800466ee\ncall    sub_180010050                                                  ; +0x71, 0x1800466f1\nmov     rax, [rbp-198h]                                                ; +0x76, 0x1800466f6\nlea     rcx, [rbp-198h]                                                ; +0x7d, 0x1800466fd\ncall    qword ptr [rax+388h]                                           ; +0x84, 0x180046704\nmov     eax, [rbp-2Ch]                                                 ; +0x8a, 0x18004670a\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x8d, 0x18004670d\nxorps   xmm2, xmm2                                                     ; +0x92, 0x180046712\nxorps   xmm1, xmm1                                                     ; +0x95, 0x180046715\ncvtsi2ss xmm2, rax                                                     ; +0x98, 0x180046718\nmov     eax, edi                                                       ; +0x9d, 0x18004671d\nimul    eax, [rbp-30h]                                                 ; +0x9f, 0x18004671f\ncvtsi2ss xmm1, rax                                                     ; +0xa3, 0x180046723\ncall    kmVec2Fill                                                     ; +0xa8, 0x180046728\nmov     rax, [rbp-198h]                                                ; +0xad, 0x18004672d\nlea     rdx, [rsp+28h+arg_0]                                           ; +0xb4, 0x180046734\nlea     rcx, [rbp-198h]                                                ; +0xb9, 0x180046739\ncall    qword ptr [rax+128h]                                           ; +0xc0, 0x180046740\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xc6, 0x180046746\nmov     rsi, [rsp+28h+arg_18]                                          ; +0xcb, 0x18004674b\nmov     [rbp-0Ch], edi                                                 ; +0xd0, 0x180046750\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xd3, 0x180046753\nadd     rsp, 20h                                                       ; +0xd8, 0x180046758\npop     rdi                                                            ; +0xdc, 0x18004675c\nretn                                                                   ; +0xdd, 0x18004675d", "xrefs": ["<???> @ 0x1800eb818", "<???> @ 0x1801438a8", "<???> @ 0x1801b1770"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}