{"type": "func", "start": 6442750832, "end": 6442751018, "name": "cocos2d::CCLabelBMFont::createBatched", "pseudocode": "// \n// cocos2d::CCLabelBMFont::createBatched from 0x180049370 to 0x18004942a (186 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bbb48\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:42 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::CCLabelBMFont *__fastcall cocos2d::CCLabelBMFont::createBatched(\n        const char *a1,\n        const char *a2,\n        struct cocos2d::CCArray *a3,\n        int a4)\n{\n  cocos2d::CCLabelBMFont *v8; // rax\n  cocos2d::CCLabelBMFont *v9; // rbx\n  cocos2d::CCLabelBMFont *v11; // [rsp+60h] [rbp+18h] BYREF\n\n  v8 = (cocos2d::CCLabelBMFont *)sub_1800E4AC0(0x218u);\n  v11 = v8;\n  if ( v8 )\n    v9 = cocos2d::CCLabelBMFont::CCLabelBMFont(v8);\n  else\n    v9 = nullptr;\n  *((_DWORD *)v9 + 132) = a4;\n  *((_BYTE *)v9 + 507) = 1;\n  *((_QWORD *)v9 + 64) = a3;\n  cocos2d::cc_timeval::operator=(&v11, dword_1801B23C8);\n  if ( (unsigned __int8)cocos2d::CCLabelBMFont::initWithString(v9, a1, a2) )\n  {\n    cocos2d::CCObject::autorelease(v9);\n    return v9;\n  }\n  else\n  {\n    (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v9 + 8LL))(v9, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; cocos2d::CCLabelBMFont::createBatched from 0x180049370 to 0x18004942a (186 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bbb48\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:42 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180049370\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180049375\npush    rsi                                                            ; +0xa, 0x18004937a\npush    rdi                                                            ; +0xb, 0x18004937b\npush    r14                                                            ; +0xc, 0x18004937c\nsub     rsp, 30h                                                       ; +0xe, 0x18004937e\nmov     edi, r9d                                                       ; +0x12, 0x180049382\nmov     rsi, r8                                                        ; +0x15, 0x180049385\nmov     rbp, rdx                                                       ; +0x18, 0x180049388\nmov     r14, rcx                                                       ; +0x1b, 0x18004938b\nmov     ecx, 218h; Size                                                ; +0x1e, 0x18004938e\ncall    sub_1800E4AC0                                                  ; +0x23, 0x180049393\nmov     [rsp+48h+arg_10], rax                                          ; +0x28, 0x180049398\ntest    rax, rax                                                       ; +0x2d, 0x18004939d\njz      short loc_1800493AF                                            ; +0x30, 0x1800493a0\nmov     rcx, rax; this                                                 ; +0x32, 0x1800493a2\ncall    ??0CCLabelBMFont@cocos2d@@QEAA@XZ; cocos2d::CCLabelBMFont::CCLabelBMFont(void) ; +0x35, 0x1800493a5\nmov     rbx, rax                                                       ; +0x3a, 0x1800493aa\njmp     short loc_1800493B1                                            ; +0x3d, 0x1800493ad\nxor     ebx, ebx                                                       ; +0x3f, 0x1800493af\nmov     [rbx+210h], edi                                                ; +0x41, 0x1800493b1\nmov     byte ptr [rbx+1FBh], 1                                         ; +0x47, 0x1800493b7\nmov     [rbx+200h], rsi                                                ; +0x4e, 0x1800493be\nlea     rdx, dword_1801B23C8                                           ; +0x55, 0x1800493c5\nlea     rcx, [rsp+48h+arg_10]                                          ; +0x5c, 0x1800493cc\ncall    ??4cc_timeval@cocos2d@@QEAAAEAU01@$$QEAU01@@Z; cocos2d::cc_timeval::operator=(cocos2d::cc_timeval &&) ; +0x61, 0x1800493d1\nmov     [rsp+48h+var_20], rax                                          ; +0x66, 0x1800493d6\nmov     [rsp+48h+var_28], 0                                            ; +0x6b, 0x1800493db\nmovss   xmm3, cs:dword_1800ED380                                       ; +0x73, 0x1800493e3\nmov     r8, rbp                                                        ; +0x7b, 0x1800493eb\nmov     rdx, r14                                                       ; +0x7e, 0x1800493ee\nmov     rcx, rbx                                                       ; +0x81, 0x1800493f1\ncall    ?initWithString@CCLabelBMFont@cocos2d@@QEAA_NPEBD0MW4CCTextAlignment@2@VCCPoint@2@@Z; cocos2d::CCLabelBMFont::initWithString(char const *,char const *,float,cocos2d::CCTextAlignment,cocos2d::CCPoint) ; +0x84, 0x1800493f4\nmov     rcx, rbx; this                                                 ; +0x89, 0x1800493f9\ntest    al, al                                                         ; +0x8c, 0x1800493fc\njz      short loc_18004940A                                            ; +0x8e, 0x1800493fe\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x90, 0x180049400\nmov     rax, rbx                                                       ; +0x95, 0x180049405\njmp     short loc_180049417                                            ; +0x98, 0x180049408\nmov     rax, [rbx]                                                     ; +0x9a, 0x18004940a\nmov     edx, 1                                                         ; +0x9d, 0x18004940d\ncall    qword ptr [rax+8]                                              ; +0xa2, 0x180049412\nxor     eax, eax                                                       ; +0xa5, 0x180049415\nmov     rbx, [rsp+48h+arg_0]                                           ; +0xa7, 0x180049417\nmov     rbp, [rsp+48h+arg_8]                                           ; +0xac, 0x18004941c\nadd     rsp, 30h                                                       ; +0xb1, 0x180049421\npop     r14                                                            ; +0xb5, 0x180049425\npop     rdi                                                            ; +0xb7, 0x180049427\npop     rsi                                                            ; +0xb8, 0x180049428\nretn                                                                   ; +0xb9, 0x180049429", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bbb48"], "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"}