//
// sub_1008EDFD0 from 0x1008edfd0 to 0x1008ee07e (174 bytes)
//
// 1 xrefs:
// > EditorSoundConfigUploadPopup::uploadEditorSoundFinished @ 0x1008fce40
//
// 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:37:54 +0000
//
char __fastcall sub_1008EDFD0(__int64 a1, int a2, int a3)
{
__int64 v4; // rdi
unsigned int v5; // eax
unsigned int v7; // r12d
__int64 v8; // rax
_DWORD *v9; // rbx
int v10; // eax
v4 = *(_QWORD *)(a1 + 152);
LOBYTE(v5) = v4 == 0;
if ( v4 != 0 && a2 > 0 )
{
v5 = sub_1007FEF90(v4);
if ( v5 )
{
v7 = 0;
while ( 1 )
{
v8 = sub_1007FEFE0(*(_QWORD *)(a1 + 152), v7);
if ( v8 )
{
if ( *(_DWORD *)(v8 + 320) == a2 )
break;
}
++v7;
v5 = sub_1007FEF90(*(_QWORD *)(a1 + 152));
if ( v7 >= v5 )
return v5;
}
*(_DWORD *)(v8 + 316) = a3;
v9 = (_DWORD *)v8;
v10 = time(nullptr);
if ( !v9[91] )
v9[91] = v10;
v9[92] = v10;
v5 = v9[82];
v9[83] = v5;
}
}
return v5;
}