//
// 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 (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:54:15 +0000
//
__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;
}