//
// sub_1004CB090 from 0x1004cb090 to 0x1004cb110 (128 bytes)
//
// 2 xrefs:
// > EditorSoundConfigInfoLayer::uploadActionFinished @ 0x1004d3258
// > EditorSoundConfigInfoLayer::deleteEditorSoundFinished @ 0x1004d45f8
//
// This function is hookable on this platform (idp: arm, 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 11:06:25 +0000
//
__int64 __fastcall sub_1004CB090(__int64 a1, int a2)
{
__int64 result; // x0
unsigned int v5; // w21
result = 0;
if ( a2 >= 1 && *(_QWORD *)(a1 + 152) )
{
if ( (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 152)) )
{
v5 = 0;
while ( 1 )
{
result = sub_1002E75A0(*(_QWORD *)(a1 + 152), v5);
if ( result )
{
if ( *(_DWORD *)(result + 316) == a2 )
break;
}
if ( ++v5 >= (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 152)) )
return 0;
}
}
else
{
return 0;
}
}
return result;
}