{"type": "func", "start": 6442777968, "end": 6442778103, "name": "cocos2d::CCLabelTTF::createWithFontDefinition", "pseudocode": "// \n// cocos2d::CCLabelTTF::createWithFontDefinition from 0x18004fd70 to 0x18004fdf7 (135 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bbed8\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:45 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::CCLabelTTF *__fastcall cocos2d::CCLabelTTF::createWithFontDefinition(\n        const char *a1,\n        struct cocos2d::_ccFontDefinition *a2)\n{\n  cocos2d::CCLabelTTF *v4; // rax\n  cocos2d::CCObject *v5; // rbx\n\n  v4 = (cocos2d::CCLabelTTF *)sub_1800E4AC0(0x2C0u);\n  if ( v4 )\n    v5 = cocos2d::CCLabelTTF::CCLabelTTF(v4);\n  else\n    v5 = nullptr;\n  if ( v5 )\n  {\n    if ( cocos2d::CCLabelTTF::initWithStringAndTextDefinition(v5, a1, a2) )\n    {\n      cocos2d::CCObject::autorelease(v5);\n      return v5;\n    }\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v5 + 8LL))(v5, 1);\n  }\n  return nullptr;\n}", "assembly": "; \n; cocos2d::CCLabelTTF::createWithFontDefinition from 0x18004fd70 to 0x18004fdf7 (135 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bbed8\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:45 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18004fd70\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18004fd75\npush    rdi                                                            ; +0xa, 0x18004fd7a\nsub     rsp, 20h                                                       ; +0xb, 0x18004fd7b\nmov     rdi, rdx                                                       ; +0xf, 0x18004fd7f\nmov     rsi, rcx                                                       ; +0x12, 0x18004fd82\nmov     ecx, 2C0h; Size                                                ; +0x15, 0x18004fd85\ncall    sub_1800E4AC0                                                  ; +0x1a, 0x18004fd8a\nmov     [rsp+28h+arg_10], rax                                          ; +0x1f, 0x18004fd8f\ntest    rax, rax                                                       ; +0x24, 0x18004fd94\njz      short loc_18004FDA6                                            ; +0x27, 0x18004fd97\nmov     rcx, rax; this                                                 ; +0x29, 0x18004fd99\ncall    ??0CCLabelTTF@cocos2d@@QEAA@XZ; cocos2d::CCLabelTTF::CCLabelTTF(void) ; +0x2c, 0x18004fd9c\nmov     rbx, rax                                                       ; +0x31, 0x18004fda1\njmp     short loc_18004FDA8                                            ; +0x34, 0x18004fda4\nxor     ebx, ebx                                                       ; +0x36, 0x18004fda6\ntest    rbx, rbx                                                       ; +0x38, 0x18004fda8\njz      short loc_18004FDE5                                            ; +0x3b, 0x18004fdab\nmov     r8, rdi; struct cocos2d::_ccFontDefinition *                   ; +0x3d, 0x18004fdad\nmov     rdx, rsi; char *                                               ; +0x40, 0x18004fdb0\nmov     rcx, rbx; this                                                 ; +0x43, 0x18004fdb3\ncall    ?initWithStringAndTextDefinition@CCLabelTTF@cocos2d@@QEAA_NPEBDAEAU_ccFontDefinition@2@@Z; cocos2d::CCLabelTTF::initWithStringAndTextDefinition(char const *,cocos2d::_ccFontDefinition &) ; +0x46, 0x18004fdb6\nmov     rcx, rbx; this                                                 ; +0x4b, 0x18004fdbb\ntest    al, al                                                         ; +0x4e, 0x18004fdbe\njz      short loc_18004FDDA                                            ; +0x50, 0x18004fdc0\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x52, 0x18004fdc2\nmov     rax, rbx                                                       ; +0x57, 0x18004fdc7\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5a, 0x18004fdca\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x5f, 0x18004fdcf\nadd     rsp, 20h                                                       ; +0x64, 0x18004fdd4\npop     rdi                                                            ; +0x68, 0x18004fdd8\nretn                                                                   ; +0x69, 0x18004fdd9\nmov     rax, [rbx]                                                     ; +0x6a, 0x18004fdda\nmov     edx, 1                                                         ; +0x6d, 0x18004fddd\ncall    qword ptr [rax+8]                                              ; +0x72, 0x18004fde2\nxor     eax, eax                                                       ; +0x75, 0x18004fde5\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x77, 0x18004fde7\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x7c, 0x18004fdec\nadd     rsp, 20h                                                       ; +0x81, 0x18004fdf1\npop     rdi                                                            ; +0x85, 0x18004fdf5\nretn                                                                   ; +0x86, 0x18004fdf6", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bbed8"], "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"}