{"type": "func", "start": 6442744384, "end": 6442744596, "name": "cocos2d::CCBMFontConfiguration::create", "pseudocode": "// \n// cocos2d::CCBMFontConfiguration::create from 0x180047a40 to 0x180047b14 (212 bytes)\n// \n// 3 xrefs:\n// > cocos2d::FNTConfigLoadFile @ 0x180047878\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b18c0\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::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 *)operator new(0x88u);\n  v3 = v2;\n  if ( v2 )\n  {\n    cocos2d::CCObject::CCObject(v2);\n    v3->__vftable = (cocos2d::CCObject_vtbl *)&cocos2d::CCBMFontConfiguration::`vftable';\n    v3[1].__vftable = nullptr;\n    v3[1].m_uID = 0;\n    *(_OWORD *)&v3[1].m_uIndexInArray = 0;\n    *(_QWORD *)&v3[1].m_uOrderOfArrival = 0;\n    v3[2].__vftable = (cocos2d::CCObject_vtbl *)15;\n    LOBYTE(v3[1].m_uIndexInArray) = 0;\n    *(_QWORD *)&v3[2].m_uID = 0;\n    *(_QWORD *)&v3[2].m_nTag = 0;\n  }\n  else\n  {\n    v3 = nullptr;\n  }\n  *(_QWORD *)&v3[2].m_uID = 0;\n  v3[1].__vftable = nullptr;\n  v4 = cocos2d::CCBMFontConfiguration::parseConfigFile(v3, a1);\n  *(_QWORD *)&v3[2].m_nTag = v4;\n  if ( v4 )\n  {\n    cocos2d::CCObject::autorelease(v3);\n    return (struct cocos2d::CCBMFontConfiguration *)v3;\n  }\n  else\n  {\n    v6 = (cocos2d::CCBMFontConfiguration *(__fastcall *)(cocos2d::CCBMFontConfiguration *, char))v3->~CCObject;\n    if ( v6 == sub_180047550 )\n      sub_180047550((cocos2d::CCBMFontConfiguration *)v3, 1);\n    else\n      v6((cocos2d::CCBMFontConfiguration *)v3, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; cocos2d::CCBMFontConfiguration::create from 0x180047a40 to 0x180047b14 (212 bytes)\n; \n; 3 xrefs:\n; > cocos2d::FNTConfigLoadFile @ 0x180047878\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b18c0\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, 0x180047a40\npush    rdi                                                            ; +0x5, 0x180047a45\nsub     rsp, 20h                                                       ; +0x6, 0x180047a46\nmov     rdi, rcx                                                       ; +0xa, 0x180047a4a\nmov     ecx, 88h; Size                                                 ; +0xd, 0x180047a4d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x12, 0x180047a52\nmov     rbx, rax                                                       ; +0x17, 0x180047a57\nmov     [rsp+28h+arg_8], rax                                           ; +0x1a, 0x180047a5a\ntest    rax, rax                                                       ; +0x1f, 0x180047a5f\njz      short loc_180047AA2                                            ; +0x22, 0x180047a62\nmov     rcx, rax; this                                                 ; +0x24, 0x180047a64\ncall    ??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x27, 0x180047a67\nlea     rax, ??_7CCBMFontConfiguration@cocos2d@@6B@; const cocos2d::CCBMFontConfiguration::`vftable' ; +0x2c, 0x180047a6c\nmov     [rbx], rax                                                     ; +0x33, 0x180047a73\nxor     eax, eax                                                       ; +0x36, 0x180047a76\nmov     [rbx+38h], rax                                                 ; +0x38, 0x180047a78\nmov     [rbx+40h], eax                                                 ; +0x3c, 0x180047a7c\nxorps   xmm0, xmm0                                                     ; +0x3f, 0x180047a7f\nmovups  xmmword ptr [rbx+58h], xmm0                                    ; +0x42, 0x180047a82\nmov     [rbx+68h], rax                                                 ; +0x46, 0x180047a86\nmov     qword ptr [rbx+70h], 0Fh                                       ; +0x4a, 0x180047a8a\nmov     [rbx+58h], al                                                  ; +0x52, 0x180047a92\nmov     [rbx+78h], rax                                                 ; +0x55, 0x180047a95\nmov     [rbx+80h], rax                                                 ; +0x59, 0x180047a99\njmp     short loc_180047AA5                                            ; +0x60, 0x180047aa0\nmov     rbx, rax                                                       ; +0x62, 0x180047aa2\nmov     [rbx+78h], rax                                                 ; +0x65, 0x180047aa5\nmov     [rbx+38h], rax                                                 ; +0x69, 0x180047aa9\nmov     rdx, rdi                                                       ; +0x6d, 0x180047aad\nmov     rcx, rbx                                                       ; +0x70, 0x180047ab0\ncall    ?parseConfigFile@CCBMFontConfiguration@cocos2d@@AEAAPEAV?$set@IU?$less@I@std@@V?$allocator@I@2@@std@@PEBD@Z; cocos2d::CCBMFontConfiguration::parseConfigFile(char const *) ; +0x73, 0x180047ab3\nmov     [rbx+80h], rax                                                 ; +0x78, 0x180047ab8\nmov     rcx, rbx; Block                                                ; +0x7f, 0x180047abf\ntest    rax, rax                                                       ; +0x82, 0x180047ac2\njz      short loc_180047ADA                                            ; +0x85, 0x180047ac5\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x87, 0x180047ac7\nmov     rax, rbx                                                       ; +0x8c, 0x180047acc\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x8f, 0x180047acf\nadd     rsp, 20h                                                       ; +0x94, 0x180047ad4\npop     rdi                                                            ; +0x98, 0x180047ad8\nretn                                                                   ; +0x99, 0x180047ad9\nmov     rax, [rbx]                                                     ; +0x9a, 0x180047ada\nmov     r8, [rax+8]                                                    ; +0x9d, 0x180047add\nlea     rax, sub_180047550                                             ; +0xa1, 0x180047ae1\nmov     edx, 1                                                         ; +0xa8, 0x180047ae8\ncmp     r8, rax                                                        ; +0xad, 0x180047aed\njnz     short loc_180047B04                                            ; +0xb0, 0x180047af0\ncall    sub_180047550                                                  ; +0xb2, 0x180047af2\nxor     eax, eax                                                       ; +0xb7, 0x180047af7\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xb9, 0x180047af9\nadd     rsp, 20h                                                       ; +0xbe, 0x180047afe\npop     rdi                                                            ; +0xc2, 0x180047b02\nretn                                                                   ; +0xc3, 0x180047b03\ncall    r8                                                             ; +0xc4, 0x180047b04\nxor     eax, eax                                                       ; +0xc7, 0x180047b07\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xc9, 0x180047b09\nadd     rsp, 20h                                                       ; +0xce, 0x180047b0e\npop     rdi                                                            ; +0xd2, 0x180047b12\nretn                                                                   ; +0xd3, 0x180047b13", "xrefs": ["cocos2d::FNTConfigLoadFile @ 0x180047878", "<???> @ 0x1801438a8", "<???> @ 0x1801b18c0"], "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"}