{"type": "func", "start": 6442771744, "end": 6442771876, "name": "cocos2d::CCLabelBMFont::setString", "pseudocode": "// \n// cocos2d::CCLabelBMFont::setString from 0x18004e520 to 0x18004e5a4 (132 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800f2710\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bbde8\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:44 +0000\n// \n\nvoid __fastcall cocos2d::CCLabelBMFont::setString(void **this, char *a2, int *a3)\n{\n  char *v3; // rbx\n  unsigned __int8 v4; // si\n  size_t v6; // rax\n  unsigned __int16 *v7; // rbx\n\n  v3 = (char *)Text;\n  v4 = (unsigned __int8)a3;\n  if ( a2 )\n    v3 = a2;\n  if ( (_BYTE)a3 )\n  {\n    v6 = strlen(v3);\n    sub_1800101E0(this + 53, v3, v6);\n  }\n  v7 = cocos2d::cc_utf8_to_utf16((cocos2d *)v3, nullptr, a3);\n  (*((void (__fastcall **)(void **, unsigned __int16 *, _QWORD))*this + 111))(this, v7, v4);\n  if ( v7 )\n    j_j_free_0(v7);\n}", "assembly": "; \n; cocos2d::CCLabelBMFont::setString from 0x18004e520 to 0x18004e5a4 (132 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800f2710\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bbde8\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:44 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18004e520\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18004e525\npush    rdi                                                            ; +0xa, 0x18004e52a\nsub     rsp, 20h                                                       ; +0xb, 0x18004e52b\ntest    rdx, rdx                                                       ; +0xf, 0x18004e52f\nlea     rbx, Text                                                      ; +0x12, 0x18004e532\nmovzx   esi, r8b                                                       ; +0x19, 0x18004e539\nmov     rdi, rcx                                                       ; +0x1d, 0x18004e53d\ncmovnz  rbx, rdx                                                       ; +0x20, 0x18004e540\ntest    r8b, r8b                                                       ; +0x24, 0x18004e544\njz      short loc_18004E563                                            ; +0x27, 0x18004e547\nmov     rcx, rbx; Str                                                  ; +0x29, 0x18004e549\ncall    strlen                                                         ; +0x2c, 0x18004e54c\nlea     rcx, [rdi+1A8h]; void *                                        ; +0x31, 0x18004e551\nmov     r8, rax; Size                                                  ; +0x38, 0x18004e558\nmov     rdx, rbx; Src                                                  ; +0x3b, 0x18004e55b\ncall    sub_1800101E0                                                  ; +0x3e, 0x18004e55e\nxor     edx, edx; char *                                               ; +0x43, 0x18004e563\nmov     rcx, rbx; this                                                 ; +0x45, 0x18004e565\ncall    ?cc_utf8_to_utf16@cocos2d@@YAPEAGPEBDPEAH@Z; cocos2d::cc_utf8_to_utf16(char const *,int *) ; +0x48, 0x18004e568\nmov     rcx, [rdi]                                                     ; +0x4d, 0x18004e56d\nmovzx   r8d, sil                                                       ; +0x50, 0x18004e570\nmov     rdx, rax                                                       ; +0x54, 0x18004e574\nmov     rbx, rax                                                       ; +0x57, 0x18004e577\nmov     r9, [rcx+378h]                                                 ; +0x5a, 0x18004e57a\nmov     rcx, rdi                                                       ; +0x61, 0x18004e581\ncall    r9                                                             ; +0x64, 0x18004e584\ntest    rbx, rbx                                                       ; +0x67, 0x18004e587\njz      short loc_18004E594                                            ; +0x6a, 0x18004e58a\nmov     rcx, rbx; Block                                                ; +0x6c, 0x18004e58c\ncall    j_j_free_0                                                     ; +0x6f, 0x18004e58f\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x74, 0x18004e594\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x79, 0x18004e599\nadd     rsp, 20h                                                       ; +0x7e, 0x18004e59e\npop     rdi                                                            ; +0x82, 0x18004e5a2\nretn                                                                   ; +0x83, 0x18004e5a3", "xrefs": ["<???> @ 0x1800f2710", "<???> @ 0x18014cf68", "<???> @ 0x1801bbde8"], "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"}