//
// sub_180055560 from 0x180055560 to 0x1800555bf (95 bytes)
//
// 2 xrefs:
// > sub_180055620 @ 0x180055abb
// > sub_1800D74A0 @ 0x1800d75c5
//
// 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:53:19 +0000
//
__int64 __fastcall sub_180055560(__int64 a1, int a2, __int64 a3)
{
__int64 v3; // r9
int v5; // eax
__int64 v6; // rcx
v3 = *(_QWORD *)(a1 + 8);
if ( !v3 )
return 53;
if ( a2 < 0 )
return 31;
v5 = *(_DWORD *)(a1 + 24);
if ( v5 )
{
if ( v5 > 0 && a2 >= v5 )
return 31;
}
else if ( a2 > 0 )
{
return 31;
}
v6 = 56LL * a2;
*(_OWORD *)a3 = *(_OWORD *)(v6 + v3);
*(_OWORD *)(a3 + 16) = *(_OWORD *)(v6 + v3 + 16);
*(_OWORD *)(a3 + 32) = *(_OWORD *)(v6 + v3 + 32);
*(_QWORD *)(a3 + 48) = *(_QWORD *)(v6 + v3 + 48);
return 0;
}