//
// sub_180013BC0 from 0x180013bc0 to 0x180013c2c (108 bytes)
//
// 1 xrefs:
// > sub_180013120 @ 0x180013162
//
// 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 10:52:46 +0000
//
__int64 __fastcall sub_180013BC0(__int64 a1, __int64 a2, unsigned int a3)
{
__int64 v3; // rdx
unsigned __int64 v4; // r10
__int64 v5; // rax
v3 = *(_QWORD *)(a1 + 8);
LODWORD(v4) = a3;
switch ( *(_DWORD *)(v3 + 8) )
{
case 1:
v5 = 8;
goto LABEL_9;
case 2:
v5 = 16;
goto LABEL_9;
case 3:
v5 = 24;
goto LABEL_9;
}
if ( (unsigned int)(*(_DWORD *)(v3 + 8) - 4) <= 1 )
{
v5 = 32;
LABEL_9:
v4 = (v5 * (unsigned __int64)a3) >> 3;
}
return sub_1800B3990(*(_QWORD *)(a1 + 368), (unsigned int)(*(_DWORD *)(a1 + 272) + v4 * *(_DWORD *)(v3 + 12)), 0);
}