{"type": "func", "start": 6443148000, "end": 6443148272, "name": "cocos2d::CCTextureAtlas::insertQuadFromIndex", "pseudocode": "// \n// cocos2d::CCTextureAtlas::insertQuadFromIndex from 0x1800aa2e0 to 0x1800aa3f0 (272 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c1fec\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::insertQuadFromIndex(\n        cocos2d::CCTextureAtlas *this,\n        unsigned int a2,\n        unsigned int a3)\n{\n  __int64 v3; // rbx\n  unsigned int v4; // r11d\n  unsigned int v5; // eax\n  __int64 v7; // r8\n  unsigned int v8; // r10d\n  __int64 v9; // r9\n  __int64 v10; // rcx\n  __int64 v11; // rax\n  __int64 v12; // rcx\n  __int128 v13; // [rsp+20h] [rbp-68h]\n  __int128 v14; // [rsp+30h] [rbp-58h]\n  __int128 v15; // [rsp+40h] [rbp-48h]\n  __int128 v16; // [rsp+50h] [rbp-38h]\n  __int128 v17; // [rsp+60h] [rbp-28h]\n  __int128 v18; // [rsp+70h] [rbp-18h]\n\n  if ( a2 != a3 )\n  {\n    v3 = a3;\n    v4 = a2 + 1;\n    v5 = a3 - a2;\n    v7 = a2 - a3;\n    v8 = a2;\n    if ( !(_DWORD)v7 )\n      v7 = v5;\n    if ( a2 > (unsigned int)v3 )\n    {\n      v8 = v3 + 1;\n      v4 = v3;\n    }\n    v9 = *((_QWORD *)this + 12);\n    v10 = 96LL * a2;\n    v13 = *(_OWORD *)(v10 + v9);\n    v14 = *(_OWORD *)(v10 + v9 + 16);\n    v15 = *(_OWORD *)(v10 + v9 + 32);\n    v16 = *(_OWORD *)(v10 + v9 + 48);\n    v17 = *(_OWORD *)(v10 + v9 + 64);\n    v18 = *(_OWORD *)(v10 + v9 + 80);\n    memmove((void *)(v9 + 96LL * v8), (const void *)(v9 + 96LL * v4), 96 * v7);\n    v11 = *((_QWORD *)this + 12);\n    v12 = 96 * v3;\n    *(_OWORD *)(v12 + v11) = v13;\n    *(_OWORD *)(v12 + v11 + 16) = v14;\n    *(_OWORD *)(v12 + v11 + 32) = v15;\n    *(_OWORD *)(v12 + v11 + 48) = v16;\n    *(_OWORD *)(v12 + v11 + 64) = v17;\n    *(_OWORD *)(v12 + v11 + 80) = v18;\n    *((_BYTE *)this + 72) = 1;\n  }\n}", "assembly": "; \n; cocos2d::CCTextureAtlas::insertQuadFromIndex from 0x1800aa2e0 to 0x1800aa3f0 (272 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c1fec\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; \ncmp     edx, r8d                                                       ; +0x0, 0x1800aa2e0\njz      locret_1800AA3EF                                               ; +0x3, 0x1800aa2e3\nmov     [rsp+arg_0], rbx                                               ; +0x9, 0x1800aa2e9\npush    rdi                                                            ; +0xe, 0x1800aa2ee\nsub     rsp, 80h                                                       ; +0xf, 0x1800aa2ef\nmov     ebx, r8d                                                       ; +0x16, 0x1800aa2f6\nlea     r11d, [rdx+1]                                                  ; +0x19, 0x1800aa2f9\nmov     eax, ebx                                                       ; +0x1d, 0x1800aa2fd\nmov     r8d, edx                                                       ; +0x1f, 0x1800aa2ff\nsub     eax, edx                                                       ; +0x22, 0x1800aa302\nmov     rdi, rcx                                                       ; +0x24, 0x1800aa304\nsub     r8d, ebx                                                       ; +0x27, 0x1800aa307\nmov     r10d, edx                                                      ; +0x2a, 0x1800aa30a\ncmovz   r8d, eax                                                       ; +0x2d, 0x1800aa30d\ncmp     edx, ebx                                                       ; +0x31, 0x1800aa311\njbe     short loc_1800AA31C                                            ; +0x33, 0x1800aa313\nlea     r10d, [rbx+1]                                                  ; +0x35, 0x1800aa315\nmov     r11d, ebx                                                      ; +0x39, 0x1800aa319\nmov     r9, [rcx+60h]                                                  ; +0x3c, 0x1800aa31c\nlea     r8, [r8+r8*2]                                                  ; +0x40, 0x1800aa320\nmov     eax, edx                                                       ; +0x44, 0x1800aa324\nshl     r8, 5; Size                                                    ; +0x46, 0x1800aa326\nlea     rcx, [rax+rax*2]                                               ; +0x4a, 0x1800aa32a\nmov     eax, r11d                                                      ; +0x4e, 0x1800aa32e\nshl     rcx, 5                                                         ; +0x51, 0x1800aa331\nlea     rdx, [rax+rax*2]                                               ; +0x55, 0x1800aa335\nmov     eax, r10d                                                      ; +0x59, 0x1800aa339\nmovups  xmm0, xmmword ptr [rcx+r9]                                     ; +0x5c, 0x1800aa33c\nshl     rdx, 5                                                         ; +0x61, 0x1800aa341\nadd     rdx, r9; Src                                                   ; +0x65, 0x1800aa345\nmovups  [rsp+88h+var_68], xmm0                                         ; +0x68, 0x1800aa348\nmovups  xmm0, xmmword ptr [rcx+r9+10h]                                 ; +0x6d, 0x1800aa34d\nmovups  [rsp+88h+var_58], xmm0                                         ; +0x73, 0x1800aa353\nmovups  xmm0, xmmword ptr [rcx+r9+20h]                                 ; +0x78, 0x1800aa358\nmovups  [rsp+88h+var_48], xmm0                                         ; +0x7e, 0x1800aa35e\nmovups  xmm0, xmmword ptr [rcx+r9+30h]                                 ; +0x83, 0x1800aa363\nmovups  [rsp+88h+var_38], xmm0                                         ; +0x89, 0x1800aa369\nmovups  xmm0, xmmword ptr [rcx+r9+40h]                                 ; +0x8e, 0x1800aa36e\nmovups  [rsp+88h+var_28], xmm0                                         ; +0x94, 0x1800aa374\nmovups  xmm0, xmmword ptr [rcx+r9+50h]                                 ; +0x99, 0x1800aa379\nlea     rcx, [rax+rax*2]                                               ; +0x9f, 0x1800aa37f\nshl     rcx, 5                                                         ; +0xa3, 0x1800aa383\nadd     rcx, r9; void *                                                ; +0xa7, 0x1800aa387\nmovups  [rsp+88h+var_18], xmm0                                         ; +0xaa, 0x1800aa38a\ncall    memmove                                                        ; +0xaf, 0x1800aa38f\nmov     rax, [rdi+60h]                                                 ; +0xb4, 0x1800aa394\nlea     rcx, [rbx+rbx*2]                                               ; +0xb8, 0x1800aa398\nmovups  xmm0, [rsp+88h+var_68]                                         ; +0xbc, 0x1800aa39c\nmov     rbx, [rsp+88h+arg_0]                                           ; +0xc1, 0x1800aa3a1\nmovups  xmm1, [rsp+88h+var_58]                                         ; +0xc9, 0x1800aa3a9\nshl     rcx, 5                                                         ; +0xce, 0x1800aa3ae\nmovups  xmmword ptr [rcx+rax], xmm0                                    ; +0xd2, 0x1800aa3b2\nmovups  xmm0, [rsp+88h+var_48]                                         ; +0xd6, 0x1800aa3b6\nmovups  xmmword ptr [rcx+rax+10h], xmm1                                ; +0xdb, 0x1800aa3bb\nmovups  xmm1, [rsp+88h+var_38]                                         ; +0xe0, 0x1800aa3c0\nmovups  xmmword ptr [rcx+rax+20h], xmm0                                ; +0xe5, 0x1800aa3c5\nmovups  xmm0, [rsp+88h+var_28]                                         ; +0xea, 0x1800aa3ca\nmovups  xmmword ptr [rcx+rax+30h], xmm1                                ; +0xef, 0x1800aa3cf\nmovups  xmm1, [rsp+88h+var_18]                                         ; +0xf4, 0x1800aa3d4\nmovups  xmmword ptr [rcx+rax+40h], xmm0                                ; +0xf9, 0x1800aa3d9\nmovups  xmmword ptr [rcx+rax+50h], xmm1                                ; +0xfe, 0x1800aa3de\nmov     byte ptr [rdi+48h], 1                                          ; +0x103, 0x1800aa3e3\nadd     rsp, 80h                                                       ; +0x107, 0x1800aa3e7\npop     rdi                                                            ; +0x10e, 0x1800aa3ee\nretn                                                                   ; +0x10f, 0x1800aa3ef", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801c1fec"], "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"}