//
// sub_1800E12D0 from 0x1800e12d0 to 0x1800e1335 (101 bytes)
//
// 6 xrefs:
// > sub_180017410 @ 0x1800175de
// > sub_18002A220 @ 0x18002a2ba
// > sub_18003C860 @ 0x18003c8ef
// > sub_1800DE3F0 @ 0x1800de6e0
// > sub_1800DE900 @ 0x1800de987
// > ??> @ 0x1801ff924
//
// 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_1800E12D0(__int64 *a1)
{
__int64 v1; // rax
int v2; // ebx
int v5; // [rsp+30h] [rbp+8h] BYREF
__int64 v6; // [rsp+38h] [rbp+10h] BYREF
v1 = *a1;
v2 = 0;
v5 = 0;
if ( !(*(unsigned int (__fastcall **)(__int64 *, int *))(v1 + 232))(a1, &v5) && v5 > 0 )
{
do
{
if ( !(*(unsigned int (__fastcall **)(__int64 *, _QWORD, __int64 *))(*a1 + 240))(a1, (unsigned int)v2, &v6) )
*(_WORD *)(v6 + 54) = v2;
++v2;
}
while ( v2 < v5 );
}
return 0;
}