{"type": "func", "start": 6443114512, "end": 6443114569, "name": "sub_1800A2010", "pseudocode": "// \n// sub_1800A2010 from 0x1800a2010 to 0x1800a2049 (57 bytes)\n// \n// 2 xrefs:\n// > cocos2d::CCTMXLayer::removeChild @ 0x1800b03b5\n// > cocos2d::CCTMXLayer::removeTileAt @ 0x1800b0480\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:13 +0000\n// \n\n__int64 __fastcall sub_1800A2010(__int64 a1, __int64 a2)\n{\n  unsigned int v2; // r11d\n  __int64 result; // rax\n  __int64 v4; // r9\n\n  v2 = --*(_DWORD *)a1;\n  if ( (unsigned int)a2 < *(_DWORD *)a1 )\n  {\n    result = (unsigned int)a2;\n    v4 = 8LL * (unsigned int)a2;\n    do\n    {\n      v4 += 8;\n      a2 = (unsigned int)(a2 + 1);\n      *(_QWORD *)(v4 + *(_QWORD *)(a1 + 16) - 8) = *(_QWORD *)(*(_QWORD *)(a1 + 16) + 8 * a2);\n    }\n    while ( (unsigned int)a2 < v2 );\n  }\n  return result;\n}", "assembly": "; \n; sub_1800A2010 from 0x1800a2010 to 0x1800a2049 (57 bytes)\n; \n; 2 xrefs:\n; > cocos2d::CCTMXLayer::removeChild @ 0x1800b03b5\n; > cocos2d::CCTMXLayer::removeTileAt @ 0x1800b0480\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:13 +0000\n; \ndec     dword ptr [rcx]                                                ; +0x0, 0x1800a2010\nmov     r10, rcx                                                       ; +0x2, 0x1800a2012\nmov     r11d, [rcx]                                                    ; +0x5, 0x1800a2015\ncmp     edx, r11d                                                      ; +0x8, 0x1800a2018\njnb     short locret_1800A2048                                         ; +0xb, 0x1800a201b\nmov     eax, edx                                                       ; +0xd, 0x1800a201d\nlea     r9, ds:0[rax*8]                                                ; +0xf, 0x1800a201f\nnop     word ptr [rax+rax+00000000h]                                   ; +0x17, 0x1800a2027\nmov     r8, [r10+10h]                                                  ; +0x20, 0x1800a2030\nlea     r9, [r9+8]                                                     ; +0x24, 0x1800a2034\ninc     edx                                                            ; +0x28, 0x1800a2038\nmov     rcx, [r8+rdx*8]                                                ; +0x2a, 0x1800a203a\nmov     [r9+r8-8], rcx                                                 ; +0x2e, 0x1800a203e\ncmp     edx, r11d                                                      ; +0x33, 0x1800a2043\njb      short loc_1800A2030                                            ; +0x36, 0x1800a2046\nretn                                                                   ; +0x38, 0x1800a2048", "xrefs": ["cocos2d::CCTMXLayer::removeChild @ 0x1800b03b5", "cocos2d::CCTMXLayer::removeTileAt @ 0x1800b0480"], "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"}