{"type": "func", "start": 6442858496, "end": 6442858704, "name": "cocos2d::CCParticleBatchNode::createWithTexture", "pseudocode": "// \n// cocos2d::CCParticleBatchNode::createWithTexture from 0x180063800 to 0x1800638d0 (208 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bd96c\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:51 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::CCParticleBatchNode *__fastcall cocos2d::CCParticleBatchNode::createWithTexture(\n        struct cocos2d::CCTexture2D *a1,\n        unsigned int a2)\n{\n  cocos2d::CCNode *v4; // rax\n  cocos2d::CCNode *v5; // rbx\n  cocos2d::CCNode *(__fastcall *v7)(cocos2d::CCObject **, char); // r8\n\n  v4 = (cocos2d::CCNode *)sub_1800E4AC0(0x158u);\n  v5 = v4;\n  if ( v4 )\n  {\n    cocos2d::CCNode::CCNode(v4);\n    *(_QWORD *)v5 = &cocos2d::CCParticleBatchNode::`vftable'{for `cocos2d::CCNode'};\n    *((_QWORD *)v5 + 40) = &cocos2d::CCParticleBatchNode::`vftable'{for `cocos2d::CCTextureProtocol'};\n    *((_QWORD *)v5 + 41) = 0;\n  }\n  else\n  {\n    v5 = nullptr;\n  }\n  if ( v5 )\n  {\n    if ( cocos2d::CCParticleBatchNode::initWithTexture(v5, a1, a2) )\n    {\n      cocos2d::CCObject::autorelease(v5);\n      return v5;\n    }\n    v7 = *(cocos2d::CCNode *(__fastcall **)(cocos2d::CCObject **, char))(*(_QWORD *)v5 + 8LL);\n    if ( v7 == sub_180063410 )\n    {\n      sub_180063410((cocos2d::CCObject **)v5, 1);\n      return nullptr;\n    }\n    v7((cocos2d::CCObject **)v5, 1);\n  }\n  return nullptr;\n}", "assembly": "; \n; cocos2d::CCParticleBatchNode::createWithTexture from 0x180063800 to 0x1800638d0 (208 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bd96c\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:51 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180063800\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180063805\npush    rdi                                                            ; +0xa, 0x18006380a\nsub     rsp, 20h                                                       ; +0xb, 0x18006380b\nmov     edi, edx                                                       ; +0xf, 0x18006380f\nmov     rsi, rcx                                                       ; +0x11, 0x180063811\nmov     ecx, 158h; Size                                                ; +0x14, 0x180063814\ncall    sub_1800E4AC0                                                  ; +0x19, 0x180063819\nmov     rbx, rax                                                       ; +0x1e, 0x18006381e\nmov     [rsp+28h+arg_10], rax                                          ; +0x21, 0x180063821\ntest    rax, rax                                                       ; +0x26, 0x180063826\njz      short loc_180063858                                            ; +0x29, 0x180063829\nmov     rcx, rax; this                                                 ; +0x2b, 0x18006382b\ncall    ??0CCNode@cocos2d@@QEAA@XZ; cocos2d::CCNode::CCNode(void)      ; +0x2e, 0x18006382e\nlea     rax, ??_7CCParticleBatchNode@cocos2d@@6BCCNode@1@@; const cocos2d::CCParticleBatchNode::`vftable'{for `cocos2d::CCNode'} ; +0x33, 0x180063833\nmov     [rbx], rax                                                     ; +0x3a, 0x18006383a\nlea     rax, ??_7CCParticleBatchNode@cocos2d@@6BCCTextureProtocol@1@@; const cocos2d::CCParticleBatchNode::`vftable'{for `cocos2d::CCTextureProtocol'} ; +0x3d, 0x18006383d\nmov     [rbx+140h], rax                                                ; +0x44, 0x180063844\nmov     qword ptr [rbx+148h], 0                                        ; +0x4b, 0x18006384b\njmp     short loc_18006385A                                            ; +0x56, 0x180063856\nxor     ebx, ebx                                                       ; +0x58, 0x180063858\ntest    rbx, rbx                                                       ; +0x5a, 0x18006385a\njz      short loc_1800638BE                                            ; +0x5d, 0x18006385d\nmov     r8d, edi; unsigned int                                         ; +0x5f, 0x18006385f\nmov     rdx, rsi; struct cocos2d::CCTexture2D *                        ; +0x62, 0x180063862\nmov     rcx, rbx; this                                                 ; +0x65, 0x180063865\ncall    ?initWithTexture@CCParticleBatchNode@cocos2d@@QEAA_NPEAVCCTexture2D@2@I@Z; cocos2d::CCParticleBatchNode::initWithTexture(cocos2d::CCTexture2D *,uint) ; +0x68, 0x180063868\nmov     rcx, rbx; this                                                 ; +0x6d, 0x18006386d\ntest    al, al                                                         ; +0x70, 0x180063870\njz      short loc_18006388C                                            ; +0x72, 0x180063872\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x74, 0x180063874\nmov     rax, rbx                                                       ; +0x79, 0x180063879\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x7c, 0x18006387c\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x81, 0x180063881\nadd     rsp, 20h                                                       ; +0x86, 0x180063886\npop     rdi                                                            ; +0x8a, 0x18006388a\nretn                                                                   ; +0x8b, 0x18006388b\nmov     rax, [rbx]                                                     ; +0x8c, 0x18006388c\nmov     r8, [rax+8]                                                    ; +0x8f, 0x18006388f\nlea     rax, sub_180063410                                             ; +0x93, 0x180063893\nmov     edx, 1                                                         ; +0x9a, 0x18006389a\ncmp     r8, rax                                                        ; +0x9f, 0x18006389f\njnz     short loc_1800638BB                                            ; +0xa2, 0x1800638a2\ncall    sub_180063410                                                  ; +0xa4, 0x1800638a4\nxor     eax, eax                                                       ; +0xa9, 0x1800638a9\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xab, 0x1800638ab\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xb0, 0x1800638b0\nadd     rsp, 20h                                                       ; +0xb5, 0x1800638b5\npop     rdi                                                            ; +0xb9, 0x1800638b9\nretn                                                                   ; +0xba, 0x1800638ba\ncall    r8                                                             ; +0xbb, 0x1800638bb\nxor     eax, eax                                                       ; +0xbe, 0x1800638be\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xc0, 0x1800638c0\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xc5, 0x1800638c5\nadd     rsp, 20h                                                       ; +0xca, 0x1800638ca\npop     rdi                                                            ; +0xce, 0x1800638ce\nretn                                                                   ; +0xcf, 0x1800638cf", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bd96c"], "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"}