//
// sub_1800D4130 from 0x1800d4130 to 0x1800d41a1 (113 bytes)
//
// 3 xrefs:
// > sub_1800D3DC0 @ 0x1800d3dc0
// > sub_1800D4240 @ 0x1800d4285
// > ??> @ 0x1801ba65c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_1800D4130(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);
}