//
// sub_1800DBE10 from 0x1800dbe10 to 0x1800dbe51 (65 bytes)
//
// 2 xrefs:
// > sub_1800E2C50 @ 0x1800e2cda
// > sub_1800E2D10 @ 0x1800e2dd6
//
// 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_1800DBE10(int a1, int *a2, int *a3, int *a4)
{
int v4; // r11d
__int64 result; // rax
int v6; // r11d
v4 = 24;
if ( a1 != 32 )
v4 = a1;
*a4 = v4 / 3;
*a3 = v4 / 3;
*a2 = v4 / 3;
result = (unsigned int)(3 * (v4 / 3));
v6 = v4 % 3;
if ( v6 >= 1 )
++*a3;
if ( v6 == 2 )
++*a2;
return result;
}