{"type": "func", "start": 6442745568, "end": 6442745780, "name": "cocos2d::CCLabelAtlas::setString", "pseudocode": "// \n// cocos2d::CCLabelAtlas::setString from 0x180047ee0 to 0x180047fb4 (212 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800f18c8\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bb9e0\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:41 +0000\n// \n\nvoid __fastcall cocos2d::CCLabelAtlas::setString(cocos2d::CCLabelAtlas *this, char *a2)\n{\n  unsigned int v4; // esi\n  _BYTE *v5; // rax\n  size_t v6; // rax\n  float v7; // [rsp+40h] [rbp+8h] BYREF\n\n  v4 = strlen(a2);\n  if ( v4 > (*(unsigned int (__fastcall **)(_QWORD))(**((_QWORD **)this - 4) + 72LL))(*((_QWORD *)this - 4)) )\n    cocos2d::CCTextureAtlas::resizeCapacity(*((cocos2d::CCTextureAtlas **)this - 4), v4);\n  *((_QWORD *)this + 3) = 0;\n  v5 = (char *)this + 8;\n  if ( *((_QWORD *)this + 4) > 0xFu )\n    v5 = *((_BYTE **)this + 1);\n  *v5 = 0;\n  v6 = strlen(a2);\n  sub_1800101E0((void **)this + 1, a2, v6);\n  (*(void (__fastcall **)(char *))(*((_QWORD *)this - 51) + 920LL))((char *)this - 408);\n  kmVec2Fill(&v7, (float)(int)(*((_DWORD *)this - 12) * v4), (float)*((int *)this - 11));\n  (*(void (__fastcall **)(char *, float *))(*((_QWORD *)this - 51) + 312LL))((char *)this - 408, &v7);\n  *((_DWORD *)this - 3) = v4;\n}", "assembly": "; \n; cocos2d::CCLabelAtlas::setString from 0x180047ee0 to 0x180047fb4 (212 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800f18c8\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bb9e0\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:41 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x180047ee0\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x180047ee5\npush    rsi                                                            ; +0xa, 0x180047eea\npush    rdi                                                            ; +0xb, 0x180047eeb\npush    r14                                                            ; +0xc, 0x180047eec\nsub     rsp, 20h                                                       ; +0xe, 0x180047eee\nmov     rdi, rcx                                                       ; +0x12, 0x180047ef2\nmov     rbp, rdx                                                       ; +0x15, 0x180047ef5\nmov     rcx, rdx; Str                                                  ; +0x18, 0x180047ef8\ncall    strlen                                                         ; +0x1b, 0x180047efb\nmov     rcx, [rdi-20h]                                                 ; +0x20, 0x180047f00\nmov     rsi, rax                                                       ; +0x24, 0x180047f04\nmov     r8, [rcx]                                                      ; +0x27, 0x180047f07\ncall    qword ptr [r8+48h]                                             ; +0x2a, 0x180047f0a\ncmp     esi, eax                                                       ; +0x2e, 0x180047f0e\njbe     short loc_180047F1D                                            ; +0x30, 0x180047f10\nmov     rcx, [rdi-20h]; this                                           ; +0x32, 0x180047f12\nmov     edx, esi; unsigned int                                         ; +0x36, 0x180047f16\ncall    ?resizeCapacity@CCTextureAtlas@cocos2d@@QEAA_NI@Z; cocos2d::CCTextureAtlas::resizeCapacity(uint) ; +0x38, 0x180047f18\nmov     qword ptr [rdi+18h], 0                                         ; +0x3d, 0x180047f1d\nlea     rax, [rdi+8]                                                   ; +0x45, 0x180047f25\ncmp     qword ptr [rdi+20h], 0Fh                                       ; +0x49, 0x180047f29\njbe     short loc_180047F34                                            ; +0x4e, 0x180047f2e\nmov     rax, [rdi+8]                                                   ; +0x50, 0x180047f30\nmov     rcx, rbp; Str                                                  ; +0x54, 0x180047f34\nmov     byte ptr [rax], 0                                              ; +0x57, 0x180047f37\ncall    strlen                                                         ; +0x5a, 0x180047f3a\nmov     r8, rax; Size                                                  ; +0x5f, 0x180047f3f\nlea     rcx, [rdi+8]; void *                                           ; +0x62, 0x180047f42\nmov     rdx, rbp; Src                                                  ; +0x66, 0x180047f46\ncall    sub_1800101E0                                                  ; +0x69, 0x180047f49\nmov     rax, [rdi-198h]                                                ; +0x6e, 0x180047f4e\nlea     rcx, [rdi-198h]                                                ; +0x75, 0x180047f55\ncall    qword ptr [rax+398h]                                           ; +0x7c, 0x180047f5c\nmov     eax, [rdi-2Ch]                                                 ; +0x82, 0x180047f62\nlea     rcx, [rsp+38h+arg_0]                                           ; +0x85, 0x180047f65\nxorps   xmm2, xmm2                                                     ; +0x8a, 0x180047f6a\nxorps   xmm1, xmm1                                                     ; +0x8d, 0x180047f6d\ncvtsi2ss xmm2, rax                                                     ; +0x90, 0x180047f70\nmov     eax, esi                                                       ; +0x95, 0x180047f75\nimul    eax, [rdi-30h]                                                 ; +0x97, 0x180047f77\ncvtsi2ss xmm1, rax                                                     ; +0x9b, 0x180047f7b\ncall    kmVec2Fill                                                     ; +0xa0, 0x180047f80\nmov     rax, [rdi-198h]                                                ; +0xa5, 0x180047f85\nlea     rdx, [rsp+38h+arg_0]                                           ; +0xac, 0x180047f8c\nlea     rcx, [rdi-198h]                                                ; +0xb1, 0x180047f91\ncall    qword ptr [rax+138h]                                           ; +0xb8, 0x180047f98\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xbe, 0x180047f9e\nmov     rbp, [rsp+38h+arg_10]                                          ; +0xc3, 0x180047fa3\nmov     [rdi-0Ch], esi                                                 ; +0xc8, 0x180047fa8\nadd     rsp, 20h                                                       ; +0xcb, 0x180047fab\npop     r14                                                            ; +0xcf, 0x180047faf\npop     rdi                                                            ; +0xd1, 0x180047fb1\npop     rsi                                                            ; +0xd2, 0x180047fb2\nretn                                                                   ; +0xd3, 0x180047fb3", "xrefs": ["<???> @ 0x1800f18c8", "<???> @ 0x18014cf68", "<???> @ 0x1801bb9e0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}