//
// sub_6B020 from 0x6b020 to 0x6b06e (78 bytes)
//
// 2 xrefs:
// > sub_5215C @ 0x521d0
// > sub_522EC @ 0x5234c
//
// 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
//
int __fastcall sub_6B020(int a1)
{
int i; // r0
*(_DWORD *)a1 = a1;
*(_DWORD *)(a1 + 4) = a1;
*(_DWORD *)(a1 + 8) = 0;
sub_BE62C(a1 + 24);
sub_BE62C(a1 + 324);
*(_BYTE *)(a1 + 624) = 0;
*(_DWORD *)(a1 + 12) = 0;
*(_DWORD *)(a1 + 16) = -1;
*(_DWORD *)(a1 + 20) = 0;
memset((void *)(a1 + 628), 0, 0x268u);
for ( i = 628; i != 1140; i += 16 )
*(_BYTE *)(a1 + i) = -1;
return a1;
}