//
// sub_100748A60 from 0x100748a60 to 0x100748af6 (150 bytes)
//
// 0 xrefs:
//
// 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 12:36:32 +0000
//
__int64 __fastcall sub_100748A60(__int64 a1)
{
__int64 result; // rax
int v3; // ecx
int v4; // esi
__int64 v5; // rdi
__int64 v6; // rdi
unsigned int v7; // r14d
__int64 v8; // rax
result = *(unsigned int *)(a1 + 1028);
v3 = 0;
if ( (int)result > 0 )
v3 = *(_DWORD *)(a1 + 1028);
v4 = 9999;
if ( v3 < 9999 )
v4 = v3;
*(_DWORD *)(a1 + 1028) = v4;
v5 = *(_QWORD *)(a1 + 680);
if ( v5 )
return EffectGameObject::setTargetID(v5, v4);
v6 = *(_QWORD *)(a1 + 688);
if ( v6 )
{
result = sub_1007FEF90(v6);
if ( (_DWORD)result )
{
v7 = 0;
do
{
v8 = sub_1007FEFE0(*(_QWORD *)(a1 + 688), v7);
EffectGameObject::setTargetID(v8, *(_DWORD *)(a1 + 1028));
++v7;
result = sub_1007FEF90(*(_QWORD *)(a1 + 688));
}
while ( v7 < (unsigned int)result );
}
}
return result;
}