//
// sub_1001A74E0 from 0x1001a74e0 to 0x1001a7587 (167 bytes)
//
// 1 xrefs:
// > ??> @ 0x100ac9680
//
// 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:26:01 +0000
//
unsigned int *__fastcall sub_1001A74E0(__int64 a1, int a2)
{
int v3; // eax
bool v4; // zf
__int64 v5; // rdi
unsigned int v6; // ebx
__int64 v7; // rdi
unsigned int *result; // rax
_QWORD *v9; // r14
unsigned __int64 v10; // r15
v3 = (int)(float)((float)a2 * 0.5);
v4 = *(_BYTE *)(a1 + 1544) == 0;
v5 = a1 - 320;
if ( v4 )
LOBYTE(v3) = a2;
v6 = (unsigned __int8)v3;
GameObject::setOpacity(v5);
v7 = *(_QWORD *)(a1 + 1504);
if ( v7 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 1024LL))(v7, *(unsigned __int8 *)(a1 + 9));
result = *(unsigned int **)(a1 + 1520);
if ( result )
{
result = *((unsigned int **)result + 7);
if ( *result )
{
v9 = *((_QWORD **)result + 2);
v10 = (unsigned __int64)&v9[*result - 1];
do
{
if ( !*v9 )
break;
result = (unsigned int *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*v9 + 912LL))(*v9, v6);
++v9;
}
while ( (unsigned __int64)v9 <= v10 );
}
}
return result;
}