//
// sub_1800D52C0 from 0x1800d52c0 to 0x1800d536f (175 bytes)
//
// 2 xrefs:
// > sub_1800D38D0 @ 0x1800d3958
// > ??> @ 0x1801ba7c4
//
// 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 sub_1800D52C0()
{
char *v0; // rax
__int64 v1; // rbx
__int64 result; // rax
__int64 *v3; // rbx
v0 = (char *)calloc(0x16Du, 0xF5u);
qword_1801AB178 = v0;
v1 = 0;
while ( 1 )
{
result = sub_1800D5B40(&v0[245 * dword_1801AB180], off_1801A3340[v1]);
if ( (_DWORD)result )
++dword_1801AB180;
if ( (unsigned __int64)++v1 >= 365 )
break;
v0 = (char *)qword_1801AB178;
}
v3 = (__int64 *)&unk_1801AA060;
do
{
if ( *((_DWORD *)v3 - 57) )
{
result = sub_1800D5620(v3 - 29);
*v3 = result;
}
v3 += 36;
}
while ( (__int64)v3 <= (__int64)qword_1801AB140 );
return result;
}