{"type": "func", "start": 6442825872, "end": 6442825973, "name": "cocos2d::CCMenuItemFont::setFontName", "pseudocode": "// \n// cocos2d::CCMenuItemFont::setFontName from 0x18005b890 to 0x18005b8f5 (101 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b2ed4\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::CCMenuItemFont::setFontName(char *Src)\n{\n  void **v1; // rax\n  size_t v2; // r8\n\n  if ( byte_1801A83E0 )\n  {\n    v1 = &qword_1801A2B80;\n    Size = 0;\n    if ( *(&Size + 1) > 0xF )\n      v1 = (void **)qword_1801A2B80;\n    *(_BYTE *)v1 = 0;\n  }\n  v2 = -1;\n  do\n    ++v2;\n  while ( Src[v2] );\n  sub_180010050(&qword_1801A2B80, Src, v2);\n  byte_1801A83E0 = 1;\n}", "assembly": "; \n; cocos2d::CCMenuItemFont::setFontName from 0x18005b890 to 0x18005b8f5 (101 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b2ed4\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\nsub     rsp, 28h                                                       ; +0x0, 0x18005b890\ncmp     cs:byte_1801A83E0, 0                                           ; +0x4, 0x18005b894\njz      short loc_18005B8C2                                            ; +0xb, 0x18005b89b\ncmp     qword ptr cs:Size+8, 0Fh                                       ; +0xd, 0x18005b89d\nlea     rax, qword_1801A2B80                                           ; +0x15, 0x18005b8a5\nmov     qword ptr cs:Size, 0                                           ; +0x1c, 0x18005b8ac\ncmova   rax, cs:qword_1801A2B80                                        ; +0x27, 0x18005b8b7\nmov     byte ptr [rax], 0                                              ; +0x2f, 0x18005b8bf\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x32, 0x18005b8c2\nnop     dword ptr [rax+00000000h]                                      ; +0x39, 0x18005b8c9\ninc     r8; Size                                                       ; +0x40, 0x18005b8d0\ncmp     byte ptr [rcx+r8], 0                                           ; +0x43, 0x18005b8d3\njnz     short loc_18005B8D0                                            ; +0x48, 0x18005b8d8\nmov     rdx, rcx; Src                                                  ; +0x4a, 0x18005b8da\nlea     rcx, qword_1801A2B80; void *                                   ; +0x4d, 0x18005b8dd\ncall    sub_180010050                                                  ; +0x54, 0x18005b8e4\nmov     cs:byte_1801A83E0, 1                                           ; +0x59, 0x18005b8e9\nadd     rsp, 28h                                                       ; +0x60, 0x18005b8f0\nretn                                                                   ; +0x64, 0x18005b8f4", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b2ed4"], "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"}