//
// sub_10042E280 from 0x10042e280 to 0x10042e2ac (44 bytes)
//
// 6 xrefs:
// > sub_1004EE548 @ 0x1004ee6f4
// > sub_1004EE548 @ 0x1004ee704
// > sub_1004EEBDC @ 0x1004eecb8
// > sub_1004EEBDC @ 0x1004eee14
// > sub_1004EF0B0 @ 0x1004ef18c
// > sub_1004EF0B0 @ 0x1004ef2e4
//
// 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_10042E280(_QWORD *a1, int a2)
{
int v2; // w8
v2 = *(_DWORD *)(a1[14] + 4LL * a2);
if ( v2 < 1 )
return 0;
else
return sub_1004F0374((unsigned int)(v2 - *(_DWORD *)(*(_QWORD *)(*a1 + 32LL) + 4904LL)));
}