//
// sub_1004C11DC from 0x1004c11dc to 0x1004c12c0 (228 bytes)
//
// 4 xrefs:
// > DeathTrackerPopup::dDeathTrackerPopup @ 0x1004c0fb0
// > sub_1004C0FB4 @ 0x1004c0fbc
// > sub_1004C0FC8 @ 0x1004c0fcc
// > sub_1004C0FD0 @ 0x1004c0fdc
//
// 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:20 +0000
//
__int64 __fastcall sub_1004C11DC(_QWORD *a1)
{
void *v2; // x0
void *v3; // x0
__int64 i; // x20
void *v5; // x0
_QWORD *v7; // [xsp+8h] [xbp-18h] BYREF
*a1 = &off_1009841C0;
a1[40] = off_100984730;
a1[41] = &off_1009847A0;
a1[42] = off_1009847B8;
a1[43] = off_1009847D8;
a1[44] = off_100984800;
a1[51] = off_100984830;
a1[54] = off_1009848B0;
a1[68] = off_1009848D0;
a1[83] = off_100984918;
a1[84] = &off_100984948;
v2 = (void *)a1[127];
if ( v2 )
{
a1[128] = v2;
operator delete(v2);
}
v7 = a1 + 124;
sub_1004C12C0(&v7);
v3 = (void *)a1[118];
if ( v3 )
{
a1[119] = v3;
operator delete(v3);
}
for ( i = 0; i != -9; i -= 3 )
{
v5 = (void *)a1[i + 109];
if ( v5 )
{
a1[i + 110] = v5;
operator delete(v5);
}
}
v7 = a1 + 94;
sub_1004C1300(&v7);
return sub_10034A834((__int64)a1);
}