//
// sub_10053E050 from 0x10053e050 to 0x10053e0bc (108 bytes)
//
// 5 xrefs:
// > sub_10053DEE0 @ 0x10053dfb4
// > sub_10053E3A4 @ 0x10053e490
// > sub_10053EA2C @ 0x10053ea68
// > sub_10053EAA4 @ 0x10053ead8
// > sub_10053EB14 @ 0x10053eb3c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void *__fastcall sub_10053E050(__int64 a1)
{
void *v2; // x0
void *v3; // x0
void *v4; // x0
void *result; // x0
v2 = *(void **)(a1 + 208);
if ( v2 )
{
sub_1005E3A10(v2);
sub_100588C44(*(void **)(a1 + 208));
*(_QWORD *)(a1 + 208) = 0;
}
v3 = *(void **)(a1 + 232);
if ( v3 )
{
sub_1005E3A10(v3);
sub_100588C44(*(void **)(a1 + 232));
*(_QWORD *)(a1 + 232) = 0;
}
v4 = *(void **)(a1 + 224);
if ( v4 )
{
sub_100616320(v4);
*(_QWORD *)(a1 + 224) = 0;
}
result = *(void **)(a1 + 248);
if ( result )
{
result = (void *)sub_100616320(result);
*(_QWORD *)(a1 + 248) = 0;
}
return result;
}