{"type": "func", "start": 6443046192, "end": 6443046341, "name": "cocos2d::CCSpriteBatchNode::createWithTexture", "pseudocode": "// \n// cocos2d::CCSpriteBatchNode::createWithTexture from 0x180091530 to 0x1800915c5 (149 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCSpriteBatchNode::createWithTexture @ 0x1800d5db5\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c0258\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:22:08 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::CCSpriteBatchNode *__fastcall cocos2d::CCSpriteBatchNode::createWithTexture(\n        struct cocos2d::CCTexture2D *a1,\n        unsigned int a2)\n{\n  cocos2d::CCNode *v4; // rax\n  cocos2d::CCNode *v5; // rbx\n\n  v4 = (cocos2d::CCNode *)sub_1800E4AC0(0x168u);\n  v5 = v4;\n  if ( v4 )\n  {\n    cocos2d::CCNode::CCNode(v4);\n    *(_QWORD *)v5 = &cocos2d::CCSpriteBatchNode::`vftable'{for `cocos2d::CCNode'};\n    *((_QWORD *)v5 + 40) = &cocos2d::CCSpriteBatchNode::`vftable'{for `cocos2d::CCTextureProtocol'};\n    *((_QWORD *)v5 + 41) = 0;\n    *((_QWORD *)v5 + 43) = 0;\n    *((_BYTE *)v5 + 352) = 0;\n  }\n  else\n  {\n    v5 = nullptr;\n  }\n  cocos2d::CCSpriteBatchNode::initWithTexture(v5, a1, a2);\n  cocos2d::CCObject::autorelease(v5);\n  return v5;\n}", "assembly": "; \n; cocos2d::CCSpriteBatchNode::createWithTexture from 0x180091530 to 0x1800915c5 (149 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCSpriteBatchNode::createWithTexture @ 0x1800d5db5\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c0258\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:22:08 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180091530\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180091535\npush    rdi                                                            ; +0xa, 0x18009153a\nsub     rsp, 20h                                                       ; +0xb, 0x18009153b\nmov     edi, edx                                                       ; +0xf, 0x18009153f\nmov     rsi, rcx                                                       ; +0x11, 0x180091541\nmov     ecx, 168h; Size                                                ; +0x14, 0x180091544\ncall    sub_1800E4AC0                                                  ; +0x19, 0x180091549\nmov     rbx, rax                                                       ; +0x1e, 0x18009154e\nmov     [rsp+28h+arg_10], rax                                          ; +0x21, 0x180091551\ntest    rax, rax                                                       ; +0x26, 0x180091556\njz      short loc_18009159A                                            ; +0x29, 0x180091559\nmov     rcx, rax; this                                                 ; +0x2b, 0x18009155b\ncall    ??0CCNode@cocos2d@@QEAA@XZ; cocos2d::CCNode::CCNode(void)      ; +0x2e, 0x18009155e\nlea     rax, ??_7CCSpriteBatchNode@cocos2d@@6BCCNode@1@@; const cocos2d::CCSpriteBatchNode::`vftable'{for `cocos2d::CCNode'} ; +0x33, 0x180091563\nmov     [rbx], rax                                                     ; +0x3a, 0x18009156a\nlea     rax, ??_7CCSpriteBatchNode@cocos2d@@6BCCTextureProtocol@1@@; const cocos2d::CCSpriteBatchNode::`vftable'{for `cocos2d::CCTextureProtocol'} ; +0x3d, 0x18009156d\nmov     [rbx+140h], rax                                                ; +0x44, 0x180091574\nmov     qword ptr [rbx+148h], 0                                        ; +0x4b, 0x18009157b\nmov     qword ptr [rbx+158h], 0                                        ; +0x56, 0x180091586\nmov     byte ptr [rbx+160h], 0                                         ; +0x61, 0x180091591\njmp     short loc_18009159C                                            ; +0x68, 0x180091598\nxor     ebx, ebx                                                       ; +0x6a, 0x18009159a\nmov     r8d, edi; unsigned int                                         ; +0x6c, 0x18009159c\nmov     rdx, rsi; struct cocos2d::CCTexture2D *                        ; +0x6f, 0x18009159f\nmov     rcx, rbx; this                                                 ; +0x72, 0x1800915a2\ncall    ?initWithTexture@CCSpriteBatchNode@cocos2d@@QEAA_NPEAVCCTexture2D@2@I@Z; cocos2d::CCSpriteBatchNode::initWithTexture(cocos2d::CCTexture2D *,uint) ; +0x75, 0x1800915a5\nmov     rcx, rbx; this                                                 ; +0x7a, 0x1800915aa\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x7d, 0x1800915ad\nmov     rax, rbx                                                       ; +0x82, 0x1800915b2\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x85, 0x1800915b5\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x8a, 0x1800915ba\nadd     rsp, 20h                                                       ; +0x8f, 0x1800915bf\npop     rdi                                                            ; +0x93, 0x1800915c3\nretn                                                                   ; +0x94, 0x1800915c4", "xrefs": ["cocos2d::CCSpriteBatchNode::createWithTexture @ 0x1800d5db5", "<???> @ 0x18014cf68", "<???> @ 0x1801c0258"], "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"}