{"type": "func", "start": 6443148272, "end": 6443148541, "name": "cocos2d::CCTextureAtlas::insertQuads", "pseudocode": "// \n// cocos2d::CCTextureAtlas::insertQuads from 0x1800aa3f0 to 0x1800aa4fd (269 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c1fec\n// > <???> @ 0x1801c1ff8\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::insertQuads(\n        cocos2d::CCTextureAtlas *this,\n        struct cocos2d::_ccV3F_C4B_T2F_Quad *a2,\n        unsigned int a3,\n        int a4)\n{\n  unsigned int v5; // eax\n  unsigned int v7; // r10d\n  __int64 v8; // rbx\n  __int64 v9; // rbp\n  int v10; // ecx\n  __int64 i; // r8\n  __int64 v12; // rax\n  __int64 v13; // rdx\n  __int64 v14; // rcx\n\n  *((_DWORD *)this + 19) += a4;\n  v5 = *((_DWORD *)this + 26);\n  v7 = *((_DWORD *)this + 19);\n  v8 = a3;\n  if ( v5 <= v7 )\n    v5 = *((_DWORD *)this + 19);\n  *((_DWORD *)this + 26) = v5;\n  v9 = a3 + a4;\n  v10 = v7 + ~a3 - a4;\n  if ( v10 > 0 )\n    memmove((void *)(*((_QWORD *)this + 12) + 96 * v9), (const void *)(*((_QWORD *)this + 12) + 96LL * a3), 96LL * v10);\n  for ( i = 0; (unsigned int)v8 < (unsigned int)v9; *(_OWORD *)(v14 + v12 + 80) = *(_OWORD *)((char *)a2 + v13 + 80) )\n  {\n    v12 = *((_QWORD *)this + 12);\n    v13 = 96 * i;\n    v14 = 96 * v8;\n    i = (unsigned int)(i + 1);\n    v8 = (unsigned int)(v8 + 1);\n    *(_OWORD *)(v14 + v12) = *(_OWORD *)((char *)a2 + v13);\n    *(_OWORD *)(v14 + v12 + 16) = *(_OWORD *)((char *)a2 + v13 + 16);\n    *(_OWORD *)(v14 + v12 + 32) = *(_OWORD *)((char *)a2 + v13 + 32);\n    *(_OWORD *)(v14 + v12 + 48) = *(_OWORD *)((char *)a2 + v13 + 48);\n    *(_OWORD *)(v14 + v12 + 64) = *(_OWORD *)((char *)a2 + v13 + 64);\n  }\n  *((_BYTE *)this + 72) = 1;\n}", "assembly": "; \n; cocos2d::CCTextureAtlas::insertQuads from 0x1800aa3f0 to 0x1800aa4fd (269 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c1fec\n; > <???> @ 0x1801c1ff8\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; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800aa3f0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1800aa3f5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1800aa3fa\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x1800aa3ff\npush    r14                                                            ; +0x14, 0x1800aa404\nsub     rsp, 20h                                                       ; +0x16, 0x1800aa406\nadd     [rcx+4Ch], r9d                                                 ; +0x1a, 0x1800aa40a\nmov     rsi, rcx                                                       ; +0x1e, 0x1800aa40e\nmov     eax, [rcx+68h]                                                 ; +0x21, 0x1800aa411\nmov     r14, rdx                                                       ; +0x24, 0x1800aa414\nmov     r10d, [rcx+4Ch]                                                ; +0x27, 0x1800aa417\ncmp     eax, r10d                                                      ; +0x2b, 0x1800aa41b\nmov     ebx, r8d                                                       ; +0x2e, 0x1800aa41e\ncmovbe  eax, r10d                                                      ; +0x31, 0x1800aa421\nmov     [rcx+68h], eax                                                 ; +0x35, 0x1800aa425\nmov     ecx, r8d                                                       ; +0x38, 0x1800aa428\nnot     ecx                                                            ; +0x3b, 0x1800aa42b\nsub     ecx, r9d                                                       ; +0x3d, 0x1800aa42d\nlea     ebp, [rbx+r9]                                                  ; +0x40, 0x1800aa430\nadd     ecx, r10d                                                      ; +0x44, 0x1800aa434\ntest    ecx, ecx                                                       ; +0x47, 0x1800aa437\njle     short loc_1800AA46A                                            ; +0x49, 0x1800aa439\nmovsxd  rax, ecx                                                       ; +0x4b, 0x1800aa43b\nlea     rdx, [rbx+rbx*2]                                               ; +0x4e, 0x1800aa43e\nshl     rdx, 5                                                         ; +0x52, 0x1800aa442\nlea     rcx, ds:0[rbp*2]                                               ; +0x56, 0x1800aa446\nadd     rdx, [rsi+60h]; Src                                            ; +0x5e, 0x1800aa44e\nadd     rcx, rbp                                                       ; +0x62, 0x1800aa452\nshl     rcx, 5                                                         ; +0x65, 0x1800aa455\nadd     rcx, [rsi+60h]; void *                                         ; +0x69, 0x1800aa459\nlea     r8, [rax+rax*2]                                                ; +0x6d, 0x1800aa45d\nshl     r8, 5; Size                                                    ; +0x71, 0x1800aa461\ncall    memmove                                                        ; +0x75, 0x1800aa465\nxor     r8d, r8d                                                       ; +0x7a, 0x1800aa46a\ncmp     ebx, ebp                                                       ; +0x7d, 0x1800aa46d\njnb     short loc_1800AA4DE                                            ; +0x7f, 0x1800aa46f\nnop     dword ptr [rax+00h]                                            ; +0x81, 0x1800aa471\nnop     word ptr [rax+rax+00000000h]                                   ; +0x85, 0x1800aa475\nmov     rax, [rsi+60h]                                                 ; +0x90, 0x1800aa480\nlea     rdx, [r8+r8*2]                                                 ; +0x94, 0x1800aa484\nshl     rdx, 5                                                         ; +0x98, 0x1800aa488\nlea     rcx, [rbx+rbx*2]                                               ; +0x9c, 0x1800aa48c\nshl     rcx, 5                                                         ; +0xa0, 0x1800aa490\nlea     r8d, [r8+1]                                                    ; +0xa4, 0x1800aa494\ninc     ebx                                                            ; +0xa8, 0x1800aa498\nmovups  xmm0, xmmword ptr [rdx+r14]                                    ; +0xaa, 0x1800aa49a\nmovups  xmmword ptr [rcx+rax], xmm0                                    ; +0xaf, 0x1800aa49f\nmovups  xmm1, xmmword ptr [rdx+r14+10h]                                ; +0xb3, 0x1800aa4a3\nmovups  xmmword ptr [rcx+rax+10h], xmm1                                ; +0xb9, 0x1800aa4a9\nmovups  xmm0, xmmword ptr [rdx+r14+20h]                                ; +0xbe, 0x1800aa4ae\nmovups  xmmword ptr [rcx+rax+20h], xmm0                                ; +0xc4, 0x1800aa4b4\nmovups  xmm1, xmmword ptr [rdx+r14+30h]                                ; +0xc9, 0x1800aa4b9\nmovups  xmmword ptr [rcx+rax+30h], xmm1                                ; +0xcf, 0x1800aa4bf\nmovups  xmm0, xmmword ptr [rdx+r14+40h]                                ; +0xd4, 0x1800aa4c4\nmovups  xmmword ptr [rcx+rax+40h], xmm0                                ; +0xda, 0x1800aa4ca\nmovups  xmm1, xmmword ptr [rdx+r14+50h]                                ; +0xdf, 0x1800aa4cf\nmovups  xmmword ptr [rcx+rax+50h], xmm1                                ; +0xe5, 0x1800aa4d5\ncmp     ebx, ebp                                                       ; +0xea, 0x1800aa4da\njb      short loc_1800AA480                                            ; +0xec, 0x1800aa4dc\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xee, 0x1800aa4de\nmov     rbp, [rsp+28h+arg_8]                                           ; +0xf3, 0x1800aa4e3\nmov     rdi, [rsp+28h+arg_18]                                          ; +0xf8, 0x1800aa4e8\nmov     byte ptr [rsi+48h], 1                                          ; +0xfd, 0x1800aa4ed\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x101, 0x1800aa4f1\nadd     rsp, 20h                                                       ; +0x106, 0x1800aa4f6\npop     r14                                                            ; +0x10a, 0x1800aa4fa\nretn                                                                   ; +0x10c, 0x1800aa4fc", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801c1fec", "<???> @ 0x1801c1ff8"], "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"}