{"type": "func", "start": 6443339872, "end": 6443339964, "name": "sub_1800D9060", "pseudocode": "// \n// sub_1800D9060 from 0x1800d9060 to 0x1800d90bc (92 bytes)\n// \n// 2 xrefs:\n// > sub_1800DC800 @ 0x1800dc82c\n// > <???> @ 0x1801c4ac4\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:33 +0000\n// \n\nint __fastcall sub_1800D9060(__int64 a1, int a2, LONG a3)\n{\n  LONG v6; // r8d\n  LONG v7; // edx\n  __int64 v9; // [rsp+30h] [rbp+8h]\n\n  v9 = sub_1800D9B30();\n  v6 = HIDWORD(v9) - *(_DWORD *)(a1 + 728);\n  if ( a2 > (int)v9 - *(_DWORD *)(a1 + 724) || a3 > v6 )\n  {\n    v7 = v9 - *(_DWORD *)(a1 + 724);\n  }\n  else\n  {\n    v6 = a3;\n    v7 = a2;\n  }\n  return sub_1800D8DC0(a1, v7, v6);\n}", "assembly": "; \n; sub_1800D9060 from 0x1800d9060 to 0x1800d90bc (92 bytes)\n; \n; 2 xrefs:\n; > sub_1800DC800 @ 0x1800dc82c\n; > <???> @ 0x1801c4ac4\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:33 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1800d9060\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1800d9065\npush    rdi                                                            ; +0xa, 0x1800d906a\nsub     rsp, 20h                                                       ; +0xb, 0x1800d906b\nmov     edi, r8d                                                       ; +0xf, 0x1800d906f\nmov     esi, edx                                                       ; +0x12, 0x1800d9072\nmov     rbx, rcx                                                       ; +0x14, 0x1800d9074\ncall    sub_1800D9B30                                                  ; +0x17, 0x1800d9077\nmov     [rsp+28h+arg_0], rax                                           ; +0x1c, 0x1800d907c\nmov     r8d, dword ptr [rsp+28h+arg_0+4]                               ; +0x21, 0x1800d9081\nsub     r8d, [rbx+2D8h]                                                ; +0x26, 0x1800d9086\nsub     eax, [rbx+2D4h]                                                ; +0x2d, 0x1800d908d\ncmp     esi, eax                                                       ; +0x33, 0x1800d9093\njg      short loc_1800D90A3                                            ; +0x35, 0x1800d9095\ncmp     edi, r8d                                                       ; +0x37, 0x1800d9097\njg      short loc_1800D90A3                                            ; +0x3a, 0x1800d909a\nmov     r8d, edi                                                       ; +0x3c, 0x1800d909c\nmov     edx, esi                                                       ; +0x3f, 0x1800d909f\njmp     short loc_1800D90A5                                            ; +0x41, 0x1800d90a1\nmov     edx, eax                                                       ; +0x43, 0x1800d90a3\nmov     rcx, rbx                                                       ; +0x45, 0x1800d90a5\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x48, 0x1800d90a8\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x4d, 0x1800d90ad\nadd     rsp, 20h                                                       ; +0x52, 0x1800d90b2\npop     rdi                                                            ; +0x56, 0x1800d90b6\njmp     sub_1800D8DC0                                                  ; +0x57, 0x1800d90b7", "xrefs": ["sub_1800DC800 @ 0x1800dc82c", "<???> @ 0x1801c4ac4"], "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"}