//
// sub_18008D360 from 0x18008d360 to 0x18008d4dd (381 bytes)
//
// 3 xrefs:
// > sub_18008AD00 @ 0x18008ae19
// > sub_18008CEE0 @ 0x18008d13b
// > ??> @ 0x1801fa5c0
//
// 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_18008D360(__int64 a1)
{
__int64 v1; // rax
__int64 v2; // r8
__int64 v3; // r9
__int64 v4; // rdx
__int64 v5; // rdi
__int64 v6; // rsi
__int64 v7; // rbp
__int64 v8; // r14
__int64 v9; // rbx
__int64 v10; // r8
__int64 v11; // r9
__int64 v12; // r8
__int64 v13; // r9
__int64 v14; // r8
__int64 v15; // r9
__int64 result; // rax
v1 = a1 + 3492;
v2 = 4;
v3 = 0;
do
{
v4 = 4;
do
{
*(_QWORD *)(v1 - 2052) = 0;
*(_QWORD *)(v1 - 4) = 0;
*(_QWORD *)(v1 + 2044) = 0;
*(_QWORD *)(v1 + 4092) = 0;
*(_QWORD *)(v1 - 2036) = 0;
*(_QWORD *)(v1 + 12) = 0;
*(_QWORD *)(v1 + 2060) = 0;
*(_QWORD *)(v1 + 4108) = 0;
*(_QWORD *)(v1 - 2020) = 0;
*(_QWORD *)(v1 + 28) = 0;
*(_QWORD *)(v1 + 2076) = 0;
*(_QWORD *)(v1 + 4124) = 0;
*(_QWORD *)(v1 - 2004) = 0;
*(_QWORD *)(v1 + 44) = 0;
*(_QWORD *)(v1 + 2092) = 0;
*(_QWORD *)(v1 + 4140) = 0;
*(_QWORD *)(v1 - 1988) = 0;
*(_QWORD *)(v1 + 60) = 0;
*(_QWORD *)(v1 + 2108) = 0;
*(_QWORD *)(v1 + 4156) = 0;
*(_QWORD *)(v1 - 1972) = 0;
*(_QWORD *)(v1 + 76) = 0;
*(_QWORD *)(v1 + 2124) = 0;
*(_QWORD *)(v1 + 4172) = 0;
*(_QWORD *)(v1 - 1956) = 0;
*(_QWORD *)(v1 + 92) = 0;
*(_QWORD *)(v1 + 2140) = 0;
*(_QWORD *)(v1 + 4188) = 0;
*(_QWORD *)(v1 - 1940) = 0;
*(_QWORD *)(v1 + 108) = 0;
*(_QWORD *)(v1 + 2156) = 0;
*(_QWORD *)(v1 + 4204) = 0;
v1 += 128;
--v4;
}
while ( v4 );
--v2;
}
while ( v2 );
v5 = a1 + 544;
v6 = a1 + 768;
v7 = a1 + 656;
v8 = a1 + 880;
v9 = 2;
do
{
sub_1800F33A0(v5, 0, v2, v3);
sub_1800F33A0(v6, 0, v10, v11);
sub_1800F33A0(v7, 0, v12, v13);
result = sub_1800F33A0(v8, 0, v14, v15);
--v9;
}
while ( v9 );
return result;
}