{"type": "func", "start": 6442770272, "end": 6442770407, "name": "cocos2d::CCLabelTTF::createWithFontDefinition", "pseudocode": "// \n// cocos2d::CCLabelTTF::createWithFontDefinition from 0x18004df60 to 0x18004dfe7 (135 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b1c44\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\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::CCLabelTTF *v5; // rbx\n\n  v4 = (cocos2d::CCLabelTTF *)operator new(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::CCLabelTTF *, __int64))v5->~CCLabelTTF)(v5, 1);\n  }\n  return nullptr;\n}", "assembly": "; \n; cocos2d::CCLabelTTF::createWithFontDefinition from 0x18004df60 to 0x18004dfe7 (135 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b1c44\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18004df60\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18004df65\npush    rdi                                                            ; +0xa, 0x18004df6a\nsub     rsp, 20h                                                       ; +0xb, 0x18004df6b\nmov     rdi, rdx                                                       ; +0xf, 0x18004df6f\nmov     rsi, rcx                                                       ; +0x12, 0x18004df72\nmov     ecx, 2C0h; Size                                                ; +0x15, 0x18004df75\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x18004df7a\nmov     [rsp+28h+arg_10], rax                                          ; +0x1f, 0x18004df7f\ntest    rax, rax                                                       ; +0x24, 0x18004df84\njz      short loc_18004DF96                                            ; +0x27, 0x18004df87\nmov     rcx, rax; this                                                 ; +0x29, 0x18004df89\ncall    ??0CCLabelTTF@cocos2d@@QEAA@XZ; cocos2d::CCLabelTTF::CCLabelTTF(void) ; +0x2c, 0x18004df8c\nmov     rbx, rax                                                       ; +0x31, 0x18004df91\njmp     short loc_18004DF98                                            ; +0x34, 0x18004df94\nxor     ebx, ebx                                                       ; +0x36, 0x18004df96\ntest    rbx, rbx                                                       ; +0x38, 0x18004df98\njz      short loc_18004DFD5                                            ; +0x3b, 0x18004df9b\nmov     r8, rdi; struct cocos2d::_ccFontDefinition *                   ; +0x3d, 0x18004df9d\nmov     rdx, rsi; char *                                               ; +0x40, 0x18004dfa0\nmov     rcx, rbx; this                                                 ; +0x43, 0x18004dfa3\ncall    ?initWithStringAndTextDefinition@CCLabelTTF@cocos2d@@QEAA_NPEBDAEAU_ccFontDefinition@2@@Z; cocos2d::CCLabelTTF::initWithStringAndTextDefinition(char const *,cocos2d::_ccFontDefinition &) ; +0x46, 0x18004dfa6\nmov     rcx, rbx; this                                                 ; +0x4b, 0x18004dfab\ntest    al, al                                                         ; +0x4e, 0x18004dfae\njz      short loc_18004DFCA                                            ; +0x50, 0x18004dfb0\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x52, 0x18004dfb2\nmov     rax, rbx                                                       ; +0x57, 0x18004dfb7\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5a, 0x18004dfba\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x5f, 0x18004dfbf\nadd     rsp, 20h                                                       ; +0x64, 0x18004dfc4\npop     rdi                                                            ; +0x68, 0x18004dfc8\nretn                                                                   ; +0x69, 0x18004dfc9\nmov     rax, [rbx]                                                     ; +0x6a, 0x18004dfca\nmov     edx, 1                                                         ; +0x6d, 0x18004dfcd\ncall    qword ptr [rax+8]                                              ; +0x72, 0x18004dfd2\nxor     eax, eax                                                       ; +0x75, 0x18004dfd5\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x77, 0x18004dfd7\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x7c, 0x18004dfdc\nadd     rsp, 20h                                                       ; +0x81, 0x18004dfe1\npop     rdi                                                            ; +0x85, 0x18004dfe5\nretn                                                                   ; +0x86, 0x18004dfe6", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b1c44"], "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"}