{"type": "func", "start": 6442750064, "end": 6442750276, "name": "cocos2d::CCBMFontConfiguration::create", "pseudocode": "// \n// cocos2d::CCBMFontConfiguration::create from 0x180049070 to 0x180049144 (212 bytes)\n// \n// 3 xrefs:\n// > cocos2d::FNTConfigLoadFile @ 0x180048d8a\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bbb00\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:41 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::CCBMFontConfiguration *__fastcall cocos2d::CCBMFontConfiguration::create(const char *a1)\n{\n  cocos2d::CCObject *v2; // rax\n  cocos2d::CCObject *v3; // rbx\n  __int64 v4; // rax\n  cocos2d::CCBMFontConfiguration *(__fastcall *v6)(cocos2d::CCBMFontConfiguration *, char); // r8\n\n  v2 = (cocos2d::CCObject *)sub_1800E4AC0(0x88u);\n  v3 = v2;\n  if ( v2 )\n  {\n    cocos2d::CCObject::CCObject(v2);\n    *(_QWORD *)v3 = &cocos2d::CCBMFontConfiguration::`vftable';\n    *((_QWORD *)v3 + 7) = 0;\n    *((_DWORD *)v3 + 16) = 0;\n    *(_OWORD *)((char *)v3 + 88) = 0;\n    *((_QWORD *)v3 + 13) = 0;\n    *((_QWORD *)v3 + 14) = 15;\n    *((_BYTE *)v3 + 88) = 0;\n    *((_QWORD *)v3 + 15) = 0;\n    *((_QWORD *)v3 + 16) = 0;\n  }\n  else\n  {\n    v3 = nullptr;\n  }\n  *((_QWORD *)v3 + 15) = 0;\n  *((_QWORD *)v3 + 7) = 0;\n  v4 = cocos2d::CCBMFontConfiguration::parseConfigFile(v3, a1);\n  *((_QWORD *)v3 + 16) = v4;\n  if ( v4 )\n  {\n    cocos2d::CCObject::autorelease(v3);\n    return v3;\n  }\n  else\n  {\n    v6 = *(cocos2d::CCBMFontConfiguration *(__fastcall **)(cocos2d::CCBMFontConfiguration *, char))(*(_QWORD *)v3 + 8LL);\n    if ( v6 == sub_180048A60 )\n      sub_180048A60(v3, 1);\n    else\n      v6(v3, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; cocos2d::CCBMFontConfiguration::create from 0x180049070 to 0x180049144 (212 bytes)\n; \n; 3 xrefs:\n; > cocos2d::FNTConfigLoadFile @ 0x180048d8a\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bbb00\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:41 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180049070\npush    rdi                                                            ; +0x5, 0x180049075\nsub     rsp, 20h                                                       ; +0x6, 0x180049076\nmov     rdi, rcx                                                       ; +0xa, 0x18004907a\nmov     ecx, 88h; Size                                                 ; +0xd, 0x18004907d\ncall    sub_1800E4AC0                                                  ; +0x12, 0x180049082\nmov     rbx, rax                                                       ; +0x17, 0x180049087\nmov     [rsp+28h+arg_8], rax                                           ; +0x1a, 0x18004908a\ntest    rax, rax                                                       ; +0x1f, 0x18004908f\njz      short loc_1800490D2                                            ; +0x22, 0x180049092\nmov     rcx, rax; this                                                 ; +0x24, 0x180049094\ncall    ??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x27, 0x180049097\nlea     rax, ??_7CCBMFontConfiguration@cocos2d@@6B@; const cocos2d::CCBMFontConfiguration::`vftable' ; +0x2c, 0x18004909c\nmov     [rbx], rax                                                     ; +0x33, 0x1800490a3\nxor     eax, eax                                                       ; +0x36, 0x1800490a6\nmov     [rbx+38h], rax                                                 ; +0x38, 0x1800490a8\nmov     [rbx+40h], eax                                                 ; +0x3c, 0x1800490ac\nxorps   xmm0, xmm0                                                     ; +0x3f, 0x1800490af\nmovups  xmmword ptr [rbx+58h], xmm0                                    ; +0x42, 0x1800490b2\nmov     [rbx+68h], rax                                                 ; +0x46, 0x1800490b6\nmov     qword ptr [rbx+70h], 0Fh                                       ; +0x4a, 0x1800490ba\nmov     [rbx+58h], al                                                  ; +0x52, 0x1800490c2\nmov     [rbx+78h], rax                                                 ; +0x55, 0x1800490c5\nmov     [rbx+80h], rax                                                 ; +0x59, 0x1800490c9\njmp     short loc_1800490D5                                            ; +0x60, 0x1800490d0\nmov     rbx, rax                                                       ; +0x62, 0x1800490d2\nmov     [rbx+78h], rax                                                 ; +0x65, 0x1800490d5\nmov     [rbx+38h], rax                                                 ; +0x69, 0x1800490d9\nmov     rdx, rdi                                                       ; +0x6d, 0x1800490dd\nmov     rcx, rbx                                                       ; +0x70, 0x1800490e0\ncall    ?parseConfigFile@CCBMFontConfiguration@cocos2d@@AEAAPEAV?$set@IU?$less@I@std@@V?$allocator@I@2@@std@@PEBD@Z; cocos2d::CCBMFontConfiguration::parseConfigFile(char const *) ; +0x73, 0x1800490e3\nmov     [rbx+80h], rax                                                 ; +0x78, 0x1800490e8\nmov     rcx, rbx; Block                                                ; +0x7f, 0x1800490ef\ntest    rax, rax                                                       ; +0x82, 0x1800490f2\njz      short loc_18004910A                                            ; +0x85, 0x1800490f5\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x87, 0x1800490f7\nmov     rax, rbx                                                       ; +0x8c, 0x1800490fc\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x8f, 0x1800490ff\nadd     rsp, 20h                                                       ; +0x94, 0x180049104\npop     rdi                                                            ; +0x98, 0x180049108\nretn                                                                   ; +0x99, 0x180049109\nmov     rax, [rbx]                                                     ; +0x9a, 0x18004910a\nmov     r8, [rax+8]                                                    ; +0x9d, 0x18004910d\nlea     rax, sub_180048A60                                             ; +0xa1, 0x180049111\nmov     edx, 1                                                         ; +0xa8, 0x180049118\ncmp     r8, rax                                                        ; +0xad, 0x18004911d\njnz     short loc_180049134                                            ; +0xb0, 0x180049120\ncall    sub_180048A60                                                  ; +0xb2, 0x180049122\nxor     eax, eax                                                       ; +0xb7, 0x180049127\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xb9, 0x180049129\nadd     rsp, 20h                                                       ; +0xbe, 0x18004912e\npop     rdi                                                            ; +0xc2, 0x180049132\nretn                                                                   ; +0xc3, 0x180049133\ncall    r8                                                             ; +0xc4, 0x180049134\nxor     eax, eax                                                       ; +0xc7, 0x180049137\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xc9, 0x180049139\nadd     rsp, 20h                                                       ; +0xce, 0x18004913e\npop     rdi                                                            ; +0xd2, 0x180049142\nretn                                                                   ; +0xd3, 0x180049143", "xrefs": ["cocos2d::FNTConfigLoadFile @ 0x180048d8a", "<???> @ 0x18014cf68", "<???> @ 0x1801bbb00"], "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"}