//
// sub_1800DBE60 from 0x1800dbe60 to 0x1800dbed1 (113 bytes)
//
// 3 xrefs:
// > sub_1800DBAF0 @ 0x1800dbaf0
// > sub_1800DBF70 @ 0x1800dbfb5
// > ??> @ 0x1801c4d04
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:22:34 +0000
//
__int64 __fastcall sub_1800DBE60(int *a1, int *a2)
{
int v4; // r9d
int v5; // r8d
int v6; // eax
int v7; // r10d
int v8; // edx
int v9; // ecx
v4 = *a1;
v5 = a1[2] + a1[3] + a1[4];
v6 = a1[1] * *a1;
v7 = a2[2] + a2[3] + a2[4];
v8 = *a2;
v9 = a2[1] * v8;
if ( v5 != v7 )
return (unsigned int)(v5 - v7);
if ( v6 != v9 )
return (unsigned int)(v6 - v9);
if ( v4 == v8 )
return (unsigned int)(a1[5] - a2[5]);
return (unsigned int)(v4 - v8);
}