{"type": "func", "start": 6442771472, "end": 6442771704, "name": "cocos2d::CCLabelBMFont::setString", "pseudocode": "// \n// cocos2d::CCLabelBMFont::setString from 0x18004e410 to 0x18004e4f8 (232 bytes)\n// \n// 6 xrefs:\n// > <???> @ 0x1800f2708\n// > <???> @ 0x180140ce0\n// > <???> @ 0x180140d14\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bbda0\n// > <???> @ 0x1801bbdac\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(cocos2d::CCLabelBMFont *this, cocos2d *Src, char a3)\n{\n  void *v5; // rbx\n  cocos2d::CCArray *v6; // rcx\n  __int64 v7; // rax\n  unsigned int *v8; // rbx\n  __int64 v9; // rax\n  _QWORD *v10; // rbx\n  _QWORD *i; // rsi\n\n  if ( a3 )\n  {\n    v5 = *((void **)this + 52);\n    *((_QWORD *)this + 52) = sub_180048F90(Src, (const unsigned __int16 *)Src);\n  }\n  else\n  {\n    v5 = *((void **)this + 47);\n    *((_QWORD *)this + 47) = sub_180048F90(Src, (const unsigned __int16 *)Src);\n  }\n  if ( v5 )\n    j_j_free_0(v5);\n  v6 = *((cocos2d::CCArray **)this + 26);\n  if ( v6 )\n  {\n    if ( (unsigned int)cocos2d::CCArray::count(v6) )\n    {\n      v7 = *((_QWORD *)this + 26);\n      if ( v7 )\n      {\n        v8 = *(unsigned int **)(v7 + 56);\n        v9 = *v8;\n        if ( (_DWORD)v9 )\n        {\n          v10 = *((_QWORD **)v8 + 2);\n          for ( i = &v10[v9 - 1]; v10 <= i; ++v10 )\n          {\n            if ( !*v10 )\n              break;\n            (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*v10 + 336LL))(*v10, 0);\n          }\n        }\n      }\n    }\n  }\n  cocos2d::CCLabelBMFont::createFontChars(this);\n  if ( a3 )\n    (*(void (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)this + 912LL))(this);\n}", "assembly": "; \n; cocos2d::CCLabelBMFont::setString from 0x18004e410 to 0x18004e4f8 (232 bytes)\n; \n; 6 xrefs:\n; > <???> @ 0x1800f2708\n; > <???> @ 0x180140ce0\n; > <???> @ 0x180140d14\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bbda0\n; > <???> @ 0x1801bbdac\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; \npush    rdi                                                            ; +0x0, 0x18004e410\nsub     rsp, 20h                                                       ; +0x2, 0x18004e412\nmov     [rsp+28h+arg_0], rbx                                           ; +0x6, 0x18004e416\nmov     rdi, rcx                                                       ; +0xb, 0x18004e41b\nmov     [rsp+28h+arg_8], rbp                                           ; +0xe, 0x18004e41e\nmovzx   ebp, r8b                                                       ; +0x13, 0x18004e423\ntest    r8b, r8b                                                       ; +0x17, 0x18004e427\njnz     short loc_18004E444                                            ; +0x1a, 0x18004e42a\nmov     rbx, [rcx+178h]                                                ; +0x1c, 0x18004e42c\nmov     rcx, rdx; Src                                                  ; +0x23, 0x18004e433\ncall    sub_180048F90                                                  ; +0x26, 0x18004e436\nmov     [rdi+178h], rax                                                ; +0x2b, 0x18004e43b\njmp     short loc_18004E45A                                            ; +0x32, 0x18004e442\nmov     rbx, [rcx+1A0h]                                                ; +0x34, 0x18004e444\nmov     rcx, rdx; Src                                                  ; +0x3b, 0x18004e44b\ncall    sub_180048F90                                                  ; +0x3e, 0x18004e44e\nmov     [rdi+1A0h], rax                                                ; +0x43, 0x18004e453\ntest    rbx, rbx                                                       ; +0x4a, 0x18004e45a\njz      short loc_18004E467                                            ; +0x4d, 0x18004e45d\nmov     rcx, rbx; Block                                                ; +0x4f, 0x18004e45f\ncall    j_j_free_0                                                     ; +0x52, 0x18004e462\nmov     rcx, [rdi+0D0h]; this                                          ; +0x57, 0x18004e467\ntest    rcx, rcx                                                       ; +0x5e, 0x18004e46e\njz      short loc_18004E4C9                                            ; +0x61, 0x18004e471\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x63, 0x18004e473\ntest    eax, eax                                                       ; +0x68, 0x18004e478\njz      short loc_18004E4C9                                            ; +0x6a, 0x18004e47a\nmov     rax, [rdi+0D0h]                                                ; +0x6c, 0x18004e47c\ntest    rax, rax                                                       ; +0x73, 0x18004e483\njz      short loc_18004E4C9                                            ; +0x76, 0x18004e486\nmov     rbx, [rax+38h]                                                 ; +0x78, 0x18004e488\nmov     eax, [rbx]                                                     ; +0x7c, 0x18004e48c\ntest    eax, eax                                                       ; +0x7e, 0x18004e48e\njz      short loc_18004E4C9                                            ; +0x80, 0x18004e490\nmov     rbx, [rbx+10h]                                                 ; +0x82, 0x18004e492\nmov     [rsp+28h+arg_10], rsi                                          ; +0x86, 0x18004e496\nlea     rsi, [rax-1]                                                   ; +0x8b, 0x18004e49b\nlea     rsi, [rbx+rsi*8]                                               ; +0x8f, 0x18004e49f\ncmp     rbx, rsi                                                       ; +0x93, 0x18004e4a3\nja      short loc_18004E4C4                                            ; +0x96, 0x18004e4a6\nmov     rcx, [rbx]                                                     ; +0x98, 0x18004e4a8\ntest    rcx, rcx                                                       ; +0x9b, 0x18004e4ab\njz      short loc_18004E4C4                                            ; +0x9e, 0x18004e4ae\nmov     rax, [rcx]                                                     ; +0xa0, 0x18004e4b0\nxor     edx, edx                                                       ; +0xa3, 0x18004e4b3\ncall    qword ptr [rax+150h]                                           ; +0xa5, 0x18004e4b5\nadd     rbx, 8                                                         ; +0xab, 0x18004e4bb\ncmp     rbx, rsi                                                       ; +0xaf, 0x18004e4bf\njbe     short loc_18004E4A8                                            ; +0xb2, 0x18004e4c2\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xb4, 0x18004e4c4\nmov     rcx, rdi; this                                                 ; +0xb9, 0x18004e4c9\ncall    ?createFontChars@CCLabelBMFont@cocos2d@@QEAAXXZ; cocos2d::CCLabelBMFont::createFontChars(void) ; +0xbc, 0x18004e4cc\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xc1, 0x18004e4d1\ntest    bpl, bpl                                                       ; +0xc6, 0x18004e4d6\nmov     rbp, [rsp+28h+arg_8]                                           ; +0xc9, 0x18004e4d9\njz      short loc_18004E4F2                                            ; +0xce, 0x18004e4de\nmov     rax, [rdi]                                                     ; +0xd0, 0x18004e4e0\nmov     rcx, rdi                                                       ; +0xd3, 0x18004e4e3\nadd     rsp, 20h                                                       ; +0xd6, 0x18004e4e6\npop     rdi                                                            ; +0xda, 0x18004e4ea\njmp     qword ptr [rax+390h]                                           ; +0xdb, 0x18004e4eb\nadd     rsp, 20h                                                       ; +0xe2, 0x18004e4f2\npop     rdi                                                            ; +0xe6, 0x18004e4f6\nretn                                                                   ; +0xe7, 0x18004e4f7", "xrefs": ["<???> @ 0x1800f2708", "<???> @ 0x180140ce0", "<???> @ 0x180140d14", "<???> @ 0x18014cf68", "<???> @ 0x1801bbda0", "<???> @ 0x1801bbdac"], "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"}