{"type": "func", "start": 6443098976, "end": 6443099033, "name": "sub_18009E360", "pseudocode": "// \n// sub_18009E360 from 0x18009e360 to 0x18009e399 (57 bytes)\n// \n// 2 xrefs:\n// > cocos2d::CCTMXLayer::removeChild @ 0x1800acb75\n// > cocos2d::CCTMXLayer::removeTileAt @ 0x1800acc40\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\n__int64 __fastcall sub_18009E360(__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_18009E360 from 0x18009e360 to 0x18009e399 (57 bytes)\n; \n; 2 xrefs:\n; > cocos2d::CCTMXLayer::removeChild @ 0x1800acb75\n; > cocos2d::CCTMXLayer::removeTileAt @ 0x1800acc40\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\ndec     dword ptr [rcx]                                                ; +0x0, 0x18009e360\nmov     r10, rcx                                                       ; +0x2, 0x18009e362\nmov     r11d, [rcx]                                                    ; +0x5, 0x18009e365\ncmp     edx, r11d                                                      ; +0x8, 0x18009e368\njnb     short locret_18009E398                                         ; +0xb, 0x18009e36b\nmov     eax, edx                                                       ; +0xd, 0x18009e36d\nlea     r9, ds:0[rax*8]                                                ; +0xf, 0x18009e36f\nnop     word ptr [rax+rax+00000000h]                                   ; +0x17, 0x18009e377\nmov     r8, [r10+10h]                                                  ; +0x20, 0x18009e380\nlea     r9, [r9+8]                                                     ; +0x24, 0x18009e384\ninc     edx                                                            ; +0x28, 0x18009e388\nmov     rcx, [r8+rdx*8]                                                ; +0x2a, 0x18009e38a\nmov     [r9+r8-8], rcx                                                 ; +0x2e, 0x18009e38e\ncmp     edx, r11d                                                      ; +0x33, 0x18009e393\njb      short loc_18009E380                                            ; +0x36, 0x18009e396\nretn                                                                   ; +0x38, 0x18009e398", "xrefs": ["cocos2d::CCTMXLayer::removeChild @ 0x1800acb75", "cocos2d::CCTMXLayer::removeTileAt @ 0x1800acc40"], "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"}