{"type": "func", "start": 6442850032, "end": 6442850243, "name": "cocos2d::CCParticleBatchNode::initWithTexture", "pseudocode": "// \n// cocos2d::CCParticleBatchNode::initWithTexture from 0x1800616f0 to 0x1800617c3 (211 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCParticleBatchNode::create @ 0x18006137b\n// > cocos2d::CCParticleBatchNode::createWithTexture @ 0x180061458\n// > cocos2d::CCParticleBatchNode::initWithFile @ 0x1800616e3\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b3654\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=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  cocos2d::CCParticleBatchNode_vtbl *v10; // rbx\n  cocos2d::CCShaderCache *v11; // rax\n  struct cocos2d::CCGLProgram *v12; // rax\n\n  v6 = (cocos2d::CCTextureAtlas *)operator new(0x70u);\n  v7 = nullptr;\n  if ( v6 )\n    v8 = (cocos2d::CCTextureAtlas *)cocos2d::CCTextureAtlas::CCTextureAtlas(v6);\n  else\n    v8 = nullptr;\n  this->m_pTextureAtlas = v8;\n  cocos2d::CCTextureAtlas::initWithTexture(v8, a2, a3);\n  v9 = (cocos2d::CCArray *)operator new(0x40u);\n  if ( v9 )\n    v7 = cocos2d::CCArray::CCArray(v9);\n  this->m_pChildren = v7;\n  cocos2d::CCArray::initWithCapacity(v7, a3);\n  this->m_tBlendFunc.src = 1;\n  this->m_tBlendFunc.dst = 771;\n  v10 = this->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  v11 = cocos2d::CCShaderCache::sharedShaderCache();\n  v12 = cocos2d::CCShaderCache::programForKey(v11, \"ShaderPositionTextureColor\");\n  ((void (__fastcall *)(cocos2d::CCParticleBatchNode *, struct cocos2d::CCGLProgram *))v10->setShaderProgram)(this, v12);\n  return 1;\n}", "assembly": "; \n; cocos2d::CCParticleBatchNode::initWithTexture from 0x1800616f0 to 0x1800617c3 (211 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCParticleBatchNode::create @ 0x18006137b\n; > cocos2d::CCParticleBatchNode::createWithTexture @ 0x180061458\n; > cocos2d::CCParticleBatchNode::initWithFile @ 0x1800616e3\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b3654\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_8], rbx                                               ; +0x0, 0x1800616f0\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1800616f5\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x1800616fa\npush    rdi                                                            ; +0xf, 0x1800616ff\nsub     rsp, 20h                                                       ; +0x10, 0x180061700\nmov     esi, r8d                                                       ; +0x14, 0x180061704\nmov     rbp, rdx                                                       ; +0x17, 0x180061707\nmov     rdi, rcx                                                       ; +0x1a, 0x18006170a\nmov     ecx, 70h ; 'p'; Size                                           ; +0x1d, 0x18006170d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x22, 0x180061712\nmov     [rsp+28h+arg_0], rax                                           ; +0x27, 0x180061717\nxor     ebx, ebx                                                       ; +0x2c, 0x18006171c\ntest    rax, rax                                                       ; +0x2e, 0x18006171e\njz      short loc_18006172D                                            ; +0x31, 0x180061721\nmov     rcx, rax; this                                                 ; +0x33, 0x180061723\ncall    ??0CCTextureAtlas@cocos2d@@QEAA@XZ; cocos2d::CCTextureAtlas::CCTextureAtlas(void) ; +0x36, 0x180061726\njmp     short loc_180061730                                            ; +0x3b, 0x18006172b\nmov     rax, rbx                                                       ; +0x3d, 0x18006172d\nmov     [rdi+148h], rax                                                ; +0x40, 0x180061730\nmov     r8d, esi; unsigned int                                         ; +0x47, 0x180061737\nmov     rdx, rbp; struct cocos2d::CCTexture2D *                        ; +0x4a, 0x18006173a\nmov     rcx, rax; this                                                 ; +0x4d, 0x18006173d\ncall    ?initWithTexture@CCTextureAtlas@cocos2d@@QEAA_NPEAVCCTexture2D@2@I@Z; cocos2d::CCTextureAtlas::initWithTexture(cocos2d::CCTexture2D *,uint) ; +0x50, 0x180061740\nmov     ecx, 40h ; '@'; Size                                           ; +0x55, 0x180061745\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x5a, 0x18006174a\nmov     [rsp+28h+arg_0], rax                                           ; +0x5f, 0x18006174f\ntest    rax, rax                                                       ; +0x64, 0x180061754\njz      short loc_180061764                                            ; +0x67, 0x180061757\nmov     rcx, rax; this                                                 ; +0x69, 0x180061759\ncall    ??0CCArray@cocos2d@@QEAA@XZ; cocos2d::CCArray::CCArray(void)   ; +0x6c, 0x18006175c\nmov     rbx, rax                                                       ; +0x71, 0x180061761\nmov     [rdi+0D0h], rbx                                                ; +0x74, 0x180061764\nmov     edx, esi; unsigned int                                         ; +0x7b, 0x18006176b\nmov     rcx, rbx; this                                                 ; +0x7d, 0x18006176d\ncall    ?initWithCapacity@CCArray@cocos2d@@QEAA_NI@Z; cocos2d::CCArray::initWithCapacity(uint) ; +0x80, 0x180061770\nmov     dword ptr [rdi+150h], 1                                        ; +0x85, 0x180061775\nmov     dword ptr [rdi+154h], 303h                                     ; +0x8f, 0x18006177f\nmov     rbx, [rdi]                                                     ; +0x99, 0x180061789\ncall    ?sharedShaderCache@CCShaderCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCShaderCache::sharedShaderCache(void) ; +0x9c, 0x18006178c\nmov     rcx, rax; this                                                 ; +0xa1, 0x180061791\nlea     rdx, aShaderposition_3; \"ShaderPositionTextureColor\"           ; +0xa4, 0x180061794\ncall    ?programForKey@CCShaderCache@cocos2d@@QEAAPEAVCCGLProgram@2@PEBD@Z; cocos2d::CCShaderCache::programForKey(char const *) ; +0xab, 0x18006179b\nmov     rdx, rax                                                       ; +0xb0, 0x1800617a0\nmov     rcx, rdi                                                       ; +0xb3, 0x1800617a3\ncall    qword ptr [rbx+280h]                                           ; +0xb6, 0x1800617a6\nmov     al, 1                                                          ; +0xbc, 0x1800617ac\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xbe, 0x1800617ae\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xc3, 0x1800617b3\nmov     rsi, [rsp+28h+arg_18]                                          ; +0xc8, 0x1800617b8\nadd     rsp, 20h                                                       ; +0xcd, 0x1800617bd\npop     rdi                                                            ; +0xd1, 0x1800617c1\nretn                                                                   ; +0xd2, 0x1800617c2", "xrefs": ["cocos2d::CCParticleBatchNode::create @ 0x18006137b", "cocos2d::CCParticleBatchNode::createWithTexture @ 0x180061458", "cocos2d::CCParticleBatchNode::initWithFile @ 0x1800616e3", "<???> @ 0x1801438a8", "<???> @ 0x1801b3654"], "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"}