{"type": "func", "start": 6443149904, "end": 6443150055, "name": "cocos2d::CCTextureAtlas::setupIndices", "pseudocode": "// \n// cocos2d::CCTextureAtlas::setupIndices from 0x1800aaa50 to 0x1800aaae7 (151 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCTextureAtlas::initWithTexture @ 0x1800aa1e5\n// > <???> @ 0x180148ff8\n// > <???> @ 0x180149008\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c2070\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:17 +0000\n// \n\nvoid __fastcall cocos2d::CCTextureAtlas::setupIndices(cocos2d::CCTextureAtlas *this)\n{\n  unsigned int v1; // ebx\n  __int64 v2; // r10\n  __int16 v3; // r11\n\n  if ( *((_DWORD *)this + 20) )\n  {\n    v1 = 0;\n    do\n    {\n      v2 = 6 * v1;\n      v3 = 4 * v1++;\n      *(_WORD *)(*((_QWORD *)this + 7) + 2 * v2) = v3;\n      *(_WORD *)(*((_QWORD *)this + 7) + 2LL * (unsigned int)(v2 + 1)) = v3 + 1;\n      *(_WORD *)(*((_QWORD *)this + 7) + 2LL * (unsigned int)(v2 + 2)) = v3 + 2;\n      *(_WORD *)(*((_QWORD *)this + 7) + 2LL * (unsigned int)(v2 + 3)) = v3 + 3;\n      *(_WORD *)(*((_QWORD *)this + 7) + 2LL * (unsigned int)(v2 + 4)) = v3 + 2;\n      *(_WORD *)(*((_QWORD *)this + 7) + 2LL * (unsigned int)(v2 + 5)) = v3 + 1;\n    }\n    while ( v1 < *((_DWORD *)this + 20) );\n  }\n}", "assembly": "; \n; cocos2d::CCTextureAtlas::setupIndices from 0x1800aaa50 to 0x1800aaae7 (151 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCTextureAtlas::initWithTexture @ 0x1800aa1e5\n; > <???> @ 0x180148ff8\n; > <???> @ 0x180149008\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c2070\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:17 +0000\n; \nsub     rsp, 8                                                         ; +0x0, 0x1800aaa50\nmov     eax, [rcx+50h]                                                 ; +0x4, 0x1800aaa54\ntest    eax, eax                                                       ; +0x7, 0x1800aaa57\njz      loc_1800AAAE2                                                  ; +0x9, 0x1800aaa59\nmov     [rsp+8+var_8], rbx                                             ; +0xf, 0x1800aaa5f\nxor     ebx, ebx                                                       ; +0x13, 0x1800aaa63\ntest    eax, eax                                                       ; +0x15, 0x1800aaa65\njz      short loc_1800AAADE                                            ; +0x17, 0x1800aaa67\nnop     dword ptr [rax+00000000h]                                      ; +0x19, 0x1800aaa69\nmovzx   r11d, bx                                                       ; +0x20, 0x1800aaa70\nlea     eax, [rbx+rbx*2]                                               ; +0x24, 0x1800aaa74\nlea     r10d, [rax+rax]                                                ; +0x27, 0x1800aaa77\nshl     r11w, 2                                                        ; +0x2b, 0x1800aaa7b\nmov     rax, [rcx+38h]                                                 ; +0x30, 0x1800aaa80\nlea     edx, [r10+1]                                                   ; +0x34, 0x1800aaa84\ninc     ebx                                                            ; +0x38, 0x1800aaa88\nlea     r9d, [r11+1]                                                   ; +0x3a, 0x1800aaa8a\nmov     [rax+r10*2], r11w                                              ; +0x3e, 0x1800aaa8e\nlea     r8d, [r11+2]                                                   ; +0x43, 0x1800aaa93\nmov     rax, [rcx+38h]                                                 ; +0x47, 0x1800aaa97\nadd     r11w, 3                                                        ; +0x4b, 0x1800aaa9b\nmov     [rax+rdx*2], r9w                                               ; +0x50, 0x1800aaaa0\nlea     edx, [r10+2]                                                   ; +0x55, 0x1800aaaa5\nmov     rax, [rcx+38h]                                                 ; +0x59, 0x1800aaaa9\nmov     [rax+rdx*2], r8w                                               ; +0x5d, 0x1800aaaad\nlea     edx, [r10+3]                                                   ; +0x62, 0x1800aaab2\nmov     rax, [rcx+38h]                                                 ; +0x66, 0x1800aaab6\nmov     [rax+rdx*2], r11w                                              ; +0x6a, 0x1800aaaba\nlea     edx, [r10+4]                                                   ; +0x6f, 0x1800aaabf\nmov     rax, [rcx+38h]                                                 ; +0x73, 0x1800aaac3\nmov     [rax+rdx*2], r8w                                               ; +0x77, 0x1800aaac7\nlea     edx, [r10+5]                                                   ; +0x7c, 0x1800aaacc\nmov     rax, [rcx+38h]                                                 ; +0x80, 0x1800aaad0\nmov     [rax+rdx*2], r9w                                               ; +0x84, 0x1800aaad4\ncmp     ebx, [rcx+50h]                                                 ; +0x89, 0x1800aaad9\njb      short loc_1800AAA70                                            ; +0x8c, 0x1800aaadc\nmov     rbx, [rsp+8+var_8]                                             ; +0x8e, 0x1800aaade\nadd     rsp, 8                                                         ; +0x92, 0x1800aaae2\nretn                                                                   ; +0x96, 0x1800aaae6", "xrefs": ["cocos2d::CCTextureAtlas::initWithTexture @ 0x1800aa1e5", "<???> @ 0x180148ff8", "<???> @ 0x180149008", "<???> @ 0x18014cf68", "<???> @ 0x1801c2070"], "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"}