{"type": "func", "start": 6442887040, "end": 6442887213, "name": "cocos2d::CCParticleSystemQuad::initIndices", "pseudocode": "// \n// cocos2d::CCParticleSystemQuad::initIndices from 0x18006a780 to 0x18006a82d (173 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0x18006aa43\n// > cocos2d::CCParticleSystemQuad::setBatchNode @ 0x18006ab2f\n// > cocos2d::CCParticleSystemQuad::setTotalParticles @ 0x18006ae71\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b3cd8\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\nvoid __fastcall cocos2d::CCParticleSystemQuad::initIndices(cocos2d::CCParticleSystemQuad *this)\n{\n  unsigned int i; // ebx\n  __int64 v2; // r10\n  GLushort v3; // r11\n\n  for ( i = 0; i < this->m_uTotalParticles; this->m_pIndices[(unsigned int)(v2 + 3)] = v3 + 3 )\n  {\n    v2 = 6 * i;\n    v3 = 4 * i++;\n    this->m_pIndices[v2] = v3;\n    this->m_pIndices[(unsigned int)(v2 + 1)] = v3 + 1;\n    this->m_pIndices[(unsigned int)(v2 + 2)] = v3 + 2;\n    this->m_pIndices[(unsigned int)(v2 + 5)] = v3 + 1;\n    this->m_pIndices[(unsigned int)(v2 + 4)] = v3 + 2;\n  }\n}", "assembly": "; \n; cocos2d::CCParticleSystemQuad::initIndices from 0x18006a780 to 0x18006a82d (173 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0x18006aa43\n; > cocos2d::CCParticleSystemQuad::setBatchNode @ 0x18006ab2f\n; > cocos2d::CCParticleSystemQuad::setTotalParticles @ 0x18006ae71\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b3cd8\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_0], rbx                                               ; +0x0, 0x18006a780\nxor     ebx, ebx                                                       ; +0x5, 0x18006a785\ncmp     [rcx+298h], ebx                                                ; +0x7, 0x18006a787\njbe     loc_18006A827                                                  ; +0xd, 0x18006a78d\nnop     dword ptr [rax+00h]                                            ; +0x13, 0x18006a793\nnop     word ptr [rax+rax+00000000h]                                   ; +0x17, 0x18006a797\nmov     rax, [rcx+320h]                                                ; +0x20, 0x18006a7a0\nlea     r10d, [rbx+rbx*2]                                              ; +0x27, 0x18006a7a7\nadd     r10d, r10d                                                     ; +0x2b, 0x18006a7ab\nmovzx   r11d, bx                                                       ; +0x2e, 0x18006a7ae\nshl     r11w, 2                                                        ; +0x32, 0x18006a7b2\ninc     ebx                                                            ; +0x37, 0x18006a7b7\nmov     [rax+r10*2], r11w                                              ; +0x39, 0x18006a7b9\nlea     edx, [r10+1]                                                   ; +0x3e, 0x18006a7be\nmov     rax, [rcx+320h]                                                ; +0x42, 0x18006a7c2\nlea     r9d, [r11+1]                                                   ; +0x49, 0x18006a7c9\nlea     r8d, [r11+2]                                                   ; +0x4d, 0x18006a7cd\nadd     r11w, 3                                                        ; +0x51, 0x18006a7d1\nmov     [rax+rdx*2], r9w                                               ; +0x56, 0x18006a7d6\nlea     edx, [r10+2]                                                   ; +0x5b, 0x18006a7db\nmov     rax, [rcx+320h]                                                ; +0x5f, 0x18006a7df\nmov     [rax+rdx*2], r8w                                               ; +0x66, 0x18006a7e6\nlea     edx, [r10+5]                                                   ; +0x6b, 0x18006a7eb\nmov     rax, [rcx+320h]                                                ; +0x6f, 0x18006a7ef\nmov     [rax+rdx*2], r9w                                               ; +0x76, 0x18006a7f6\nlea     edx, [r10+4]                                                   ; +0x7b, 0x18006a7fb\nmov     rax, [rcx+320h]                                                ; +0x7f, 0x18006a7ff\nmov     [rax+rdx*2], r8w                                               ; +0x86, 0x18006a806\nlea     edx, [r10+3]                                                   ; +0x8b, 0x18006a80b\nmov     rax, [rcx+320h]                                                ; +0x8f, 0x18006a80f\nmov     [rax+rdx*2], r11w                                              ; +0x96, 0x18006a816\ncmp     ebx, [rcx+298h]                                                ; +0x9b, 0x18006a81b\njb      loc_18006A7A0                                                  ; +0xa1, 0x18006a821\nmov     rbx, [rsp+arg_0]                                               ; +0xa7, 0x18006a827\nretn                                                                   ; +0xac, 0x18006a82c", "xrefs": ["cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0x18006aa43", "cocos2d::CCParticleSystemQuad::setBatchNode @ 0x18006ab2f", "cocos2d::CCParticleSystemQuad::setTotalParticles @ 0x18006ae71", "<???> @ 0x1801438a8", "<???> @ 0x1801b3cd8"], "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"}