{"type": "func", "start": 6442859264, "end": 6442859475, "name": "cocos2d::CCParticleBatchNode::initWithTexture", "pseudocode": "// \n// cocos2d::CCParticleBatchNode::initWithTexture from 0x180063b00 to 0x180063bd3 (211 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCParticleBatchNode::create @ 0x18006378b\n// > cocos2d::CCParticleBatchNode::createWithTexture @ 0x180063868\n// > cocos2d::CCParticleBatchNode::initWithFile @ 0x180063af3\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bd9a8\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:52 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nchar __fastcall cocos2d::CCParticleBatchNode::initWithTexture(\n        cocos2d::CCParticleBatchNode *this,\n        struct cocos2d::CCTexture2D *a2,\n        unsigned int a3)\n{\n  cocos2d::CCTextureAtlas *v6; // rax\n  cocos2d::CCArray *v7; // rbx\n  cocos2d::CCTextureAtlas *v8; // rax\n  cocos2d::CCArray *v9; // rax\n  __int64 v10; // rbx\n  cocos2d::CCShaderCache *v11; // rax\n  struct cocos2d::CCGLProgram *v12; // rax\n\n  v6 = (cocos2d::CCTextureAtlas *)sub_1800E4AC0(0x70u);\n  v7 = nullptr;\n  if ( v6 )\n    v8 = (cocos2d::CCTextureAtlas *)cocos2d::CCTextureAtlas::CCTextureAtlas(v6);\n  else\n    v8 = nullptr;\n  *((_QWORD *)this + 41) = v8;\n  cocos2d::CCTextureAtlas::initWithTexture(v8, a2, a3);\n  v9 = (cocos2d::CCArray *)sub_1800E4AC0(0x40u);\n  if ( v9 )\n    v7 = cocos2d::CCArray::CCArray(v9);\n  *((_QWORD *)this + 26) = v7;\n  cocos2d::CCArray::initWithCapacity(v7, a3);\n  *((_DWORD *)this + 84) = 1;\n  *((_DWORD *)this + 85) = 771;\n  v10 = *(_QWORD *)this;\n  v11 = cocos2d::CCShaderCache::sharedShaderCache();\n  v12 = cocos2d::CCShaderCache::programForKey(v11, \"ShaderPositionTextureColor\");\n  (*(void (__fastcall **)(cocos2d::CCParticleBatchNode *, struct cocos2d::CCGLProgram *))(v10 + 656))(this, v12);\n  return 1;\n}", "assembly": "; \n; cocos2d::CCParticleBatchNode::initWithTexture from 0x180063b00 to 0x180063bd3 (211 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCParticleBatchNode::create @ 0x18006378b\n; > cocos2d::CCParticleBatchNode::createWithTexture @ 0x180063868\n; > cocos2d::CCParticleBatchNode::initWithFile @ 0x180063af3\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bd9a8\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:52 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x180063b00\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x180063b05\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x180063b0a\npush    rdi                                                            ; +0xf, 0x180063b0f\nsub     rsp, 20h                                                       ; +0x10, 0x180063b10\nmov     esi, r8d                                                       ; +0x14, 0x180063b14\nmov     rbp, rdx                                                       ; +0x17, 0x180063b17\nmov     rdi, rcx                                                       ; +0x1a, 0x180063b1a\nmov     ecx, 70h ; 'p'; Size                                           ; +0x1d, 0x180063b1d\ncall    sub_1800E4AC0                                                  ; +0x22, 0x180063b22\nmov     [rsp+28h+arg_0], rax                                           ; +0x27, 0x180063b27\nxor     ebx, ebx                                                       ; +0x2c, 0x180063b2c\ntest    rax, rax                                                       ; +0x2e, 0x180063b2e\njz      short loc_180063B3D                                            ; +0x31, 0x180063b31\nmov     rcx, rax; this                                                 ; +0x33, 0x180063b33\ncall    ??0CCTextureAtlas@cocos2d@@QEAA@XZ; cocos2d::CCTextureAtlas::CCTextureAtlas(void) ; +0x36, 0x180063b36\njmp     short loc_180063B40                                            ; +0x3b, 0x180063b3b\nmov     rax, rbx                                                       ; +0x3d, 0x180063b3d\nmov     [rdi+148h], rax                                                ; +0x40, 0x180063b40\nmov     r8d, esi; unsigned int                                         ; +0x47, 0x180063b47\nmov     rdx, rbp; struct cocos2d::CCTexture2D *                        ; +0x4a, 0x180063b4a\nmov     rcx, rax; this                                                 ; +0x4d, 0x180063b4d\ncall    ?initWithTexture@CCTextureAtlas@cocos2d@@QEAA_NPEAVCCTexture2D@2@I@Z; cocos2d::CCTextureAtlas::initWithTexture(cocos2d::CCTexture2D *,uint) ; +0x50, 0x180063b50\nmov     ecx, 40h ; '@'; Size                                           ; +0x55, 0x180063b55\ncall    sub_1800E4AC0                                                  ; +0x5a, 0x180063b5a\nmov     [rsp+28h+arg_0], rax                                           ; +0x5f, 0x180063b5f\ntest    rax, rax                                                       ; +0x64, 0x180063b64\njz      short loc_180063B74                                            ; +0x67, 0x180063b67\nmov     rcx, rax; this                                                 ; +0x69, 0x180063b69\ncall    ??0CCArray@cocos2d@@QEAA@XZ; cocos2d::CCArray::CCArray(void)   ; +0x6c, 0x180063b6c\nmov     rbx, rax                                                       ; +0x71, 0x180063b71\nmov     [rdi+0D0h], rbx                                                ; +0x74, 0x180063b74\nmov     edx, esi; unsigned int                                         ; +0x7b, 0x180063b7b\nmov     rcx, rbx; this                                                 ; +0x7d, 0x180063b7d\ncall    ?initWithCapacity@CCArray@cocos2d@@QEAA_NI@Z; cocos2d::CCArray::initWithCapacity(uint) ; +0x80, 0x180063b80\nmov     dword ptr [rdi+150h], 1                                        ; +0x85, 0x180063b85\nmov     dword ptr [rdi+154h], 303h                                     ; +0x8f, 0x180063b8f\nmov     rbx, [rdi]                                                     ; +0x99, 0x180063b99\ncall    ?sharedShaderCache@CCShaderCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCShaderCache::sharedShaderCache(void) ; +0x9c, 0x180063b9c\nmov     rcx, rax; this                                                 ; +0xa1, 0x180063ba1\nlea     rdx, aShaderposition_3; \"ShaderPositionTextureColor\"           ; +0xa4, 0x180063ba4\ncall    ?programForKey@CCShaderCache@cocos2d@@QEAAPEAVCCGLProgram@2@PEBD@Z; cocos2d::CCShaderCache::programForKey(char const *) ; +0xab, 0x180063bab\nmov     rdx, rax                                                       ; +0xb0, 0x180063bb0\nmov     rcx, rdi                                                       ; +0xb3, 0x180063bb3\ncall    qword ptr [rbx+290h]                                           ; +0xb6, 0x180063bb6\nmov     al, 1                                                          ; +0xbc, 0x180063bbc\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xbe, 0x180063bbe\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xc3, 0x180063bc3\nmov     rsi, [rsp+28h+arg_18]                                          ; +0xc8, 0x180063bc8\nadd     rsp, 20h                                                       ; +0xcd, 0x180063bcd\npop     rdi                                                            ; +0xd1, 0x180063bd1\nretn                                                                   ; +0xd2, 0x180063bd2", "xrefs": ["cocos2d::CCParticleBatchNode::create @ 0x18006378b", "cocos2d::CCParticleBatchNode::createWithTexture @ 0x180063868", "cocos2d::CCParticleBatchNode::initWithFile @ 0x180063af3", "<???> @ 0x18014cf68", "<???> @ 0x1801bd9a8"], "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"}