{"type": "func", "start": 6443134672, "end": 6443134823, "name": "cocos2d::CCTextureAtlas::setupIndices", "pseudocode": "// \n// cocos2d::CCTextureAtlas::setupIndices from 0x1800a6ed0 to 0x1800a6f67 (151 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCTextureAtlas::initWithTexture @ 0x1800a6695\n// > <???> @ 0x18013fd30\n// > <???> @ 0x18013fd40\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b7db8\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::CCTextureAtlas::setupIndices(cocos2d::CCTextureAtlas *this)\n{\n  unsigned int v1; // ebx\n  __int64 v2; // r10\n  GLushort v3; // r11\n\n  if ( this->m_uCapacity )\n  {\n    v1 = 0;\n    do\n    {\n      v2 = 6 * v1;\n      v3 = 4 * v1++;\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 + 3)] = v3 + 3;\n      this->m_pIndices[(unsigned int)(v2 + 4)] = v3 + 2;\n      this->m_pIndices[(unsigned int)(v2 + 5)] = v3 + 1;\n    }\n    while ( v1 < this->m_uCapacity );\n  }\n}", "assembly": "; \n; cocos2d::CCTextureAtlas::setupIndices from 0x1800a6ed0 to 0x1800a6f67 (151 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCTextureAtlas::initWithTexture @ 0x1800a6695\n; > <???> @ 0x18013fd30\n; > <???> @ 0x18013fd40\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b7db8\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\nsub     rsp, 8                                                         ; +0x0, 0x1800a6ed0\nmov     eax, [rcx+50h]                                                 ; +0x4, 0x1800a6ed4\ntest    eax, eax                                                       ; +0x7, 0x1800a6ed7\njz      loc_1800A6F62                                                  ; +0x9, 0x1800a6ed9\nmov     [rsp+8+var_8], rbx                                             ; +0xf, 0x1800a6edf\nxor     ebx, ebx                                                       ; +0x13, 0x1800a6ee3\ntest    eax, eax                                                       ; +0x15, 0x1800a6ee5\njz      short loc_1800A6F5E                                            ; +0x17, 0x1800a6ee7\nnop     dword ptr [rax+00000000h]                                      ; +0x19, 0x1800a6ee9\nmovzx   r11d, bx                                                       ; +0x20, 0x1800a6ef0\nlea     eax, [rbx+rbx*2]                                               ; +0x24, 0x1800a6ef4\nlea     r10d, [rax+rax]                                                ; +0x27, 0x1800a6ef7\nshl     r11w, 2                                                        ; +0x2b, 0x1800a6efb\nmov     rax, [rcx+38h]                                                 ; +0x30, 0x1800a6f00\nlea     edx, [r10+1]                                                   ; +0x34, 0x1800a6f04\ninc     ebx                                                            ; +0x38, 0x1800a6f08\nlea     r9d, [r11+1]                                                   ; +0x3a, 0x1800a6f0a\nmov     [rax+r10*2], r11w                                              ; +0x3e, 0x1800a6f0e\nlea     r8d, [r11+2]                                                   ; +0x43, 0x1800a6f13\nmov     rax, [rcx+38h]                                                 ; +0x47, 0x1800a6f17\nadd     r11w, 3                                                        ; +0x4b, 0x1800a6f1b\nmov     [rax+rdx*2], r9w                                               ; +0x50, 0x1800a6f20\nlea     edx, [r10+2]                                                   ; +0x55, 0x1800a6f25\nmov     rax, [rcx+38h]                                                 ; +0x59, 0x1800a6f29\nmov     [rax+rdx*2], r8w                                               ; +0x5d, 0x1800a6f2d\nlea     edx, [r10+3]                                                   ; +0x62, 0x1800a6f32\nmov     rax, [rcx+38h]                                                 ; +0x66, 0x1800a6f36\nmov     [rax+rdx*2], r11w                                              ; +0x6a, 0x1800a6f3a\nlea     edx, [r10+4]                                                   ; +0x6f, 0x1800a6f3f\nmov     rax, [rcx+38h]                                                 ; +0x73, 0x1800a6f43\nmov     [rax+rdx*2], r8w                                               ; +0x77, 0x1800a6f47\nlea     edx, [r10+5]                                                   ; +0x7c, 0x1800a6f4c\nmov     rax, [rcx+38h]                                                 ; +0x80, 0x1800a6f50\nmov     [rax+rdx*2], r9w                                               ; +0x84, 0x1800a6f54\ncmp     ebx, [rcx+50h]                                                 ; +0x89, 0x1800a6f59\njb      short loc_1800A6EF0                                            ; +0x8c, 0x1800a6f5c\nmov     rbx, [rsp+8+var_8]                                             ; +0x8e, 0x1800a6f5e\nadd     rsp, 8                                                         ; +0x92, 0x1800a6f62\nretn                                                                   ; +0x96, 0x1800a6f66", "xrefs": ["cocos2d::CCTextureAtlas::initWithTexture @ 0x1800a6695", "<???> @ 0x18013fd30", "<???> @ 0x18013fd40", "<???> @ 0x1801438a8", "<???> @ 0x1801b7db8"], "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"}