//
// sub_14011B620 from 0x14011b620 to 0x14011b6be (158 bytes)
//
// 5 xrefs:
// > sub_140119DA0 @ 0x140119e09
// > sub_140119DA0 @ 0x140119e1b
// > sub_140119DA0 @ 0x140119e32
// > sub_140119DA0 @ 0x140119e46
// > ??> @ 0x140916340
//
// 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:26:54 +0000
//
__int64 __fastcall sub_14011B620(int *a1, int *a2, int *a3, __int64 a4)
{
__int64 v5; // rcx
__int64 v7; // rdi
__int64 v8; // rcx
__int64 v9; // r11
__int64 v10; // r8
__int64 result; // rax
__int64 v12; // rcx
__int64 v13; // r11
v5 = *a1;
v7 = *a2;
if ( *(_DWORD *)(*(_QWORD *)(a4 + 320) + 80 * v7 + 16) > *(_DWORD *)(*(_QWORD *)(a4 + 320) + 80 * v5 + 16) )
{
*a2 = v5;
*a1 = v7;
}
v8 = *(_QWORD *)(a4 + 320);
v9 = *a2;
v10 = *a3;
result = *(unsigned int *)(v8 + 80 * v9 + 16);
if ( *(_DWORD *)(v8 + 80 * v10 + 16) > (int)result )
{
*a3 = v9;
*a2 = v10;
v12 = *(_QWORD *)(a4 + 320);
v13 = *a1;
result = *(unsigned int *)(v12 + 80 * v13 + 16);
if ( *(_DWORD *)(v12 + 80 * v10 + 16) > (int)result )
{
*a2 = v13;
*a1 = v10;
}
}
return result;
}