//
// sub_180078050 from 0x180078050 to 0x18007818b (315 bytes)
//
// 5 xrefs:
// > ??> @ 0x180183f94
// > ??> @ 0x180183fac
// > ??> @ 0x180183fbc
// > ??> @ 0x1801ad7c0
// > ??> @ 0x1801f9c48
//
// 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_180078050(__int64 *a1)
{
__int64 v1; // rbx
int v2; // ebp
__int64 v3; // rsi
__int64 v4; // rdi
v1 = *a1;
if ( !*(_QWORD *)(*a1 + 49712) )
return 0;
v2 = 0;
if ( *(int *)(v1 + 49724) <= 0 )
return 0;
v3 = 0;
do
{
v4 = v3 + *(_QWORD *)(v1 + 49712);
memset((void *)v4, 0, 0x14020u);
memset(&unk_1801D3F40, 0, 0x8000u);
memset(&unk_1801E6050, 0, 0x4000u);
memset(&unk_1801EA050, 0, 0x4000u);
memset(&unk_1801DE050, 0, 0x4000u);
memset(&unk_1801E2050, 0, 0x4000u);
*(_DWORD *)(v4 + 81960) = 0;
++v2;
*(_BYTE *)(v4 + 81984) = 0;
*(_QWORD *)(*(_QWORD *)(v1 + 49712) + v3 + 81976) = v1 + 544;
v3 += 81992;
}
while ( v2 < *(_DWORD *)(v1 + 49724) );
return 0;
}