//
// sub_1004693D0 from 0x1004693d0 to 0x100469444 (116 bytes)
//
// 2 xrefs:
// > sub_100467BDC @ 0x1004686f8
// > sub_100467BDC @ 0x10046892c
//
// 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:05:33 +0000
//
__int64 __fastcall sub_1004693D0(__int64 result, __int64 a2)
{
__int64 v2; // x19
unsigned int v3; // w8
unsigned int *v4; // x0
if ( *(_QWORD *)(result + 712) )
{
v2 = result;
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
v4 = *(unsigned int **)(v2 + 712);
if ( v4[35] == v3 )
v3 = 0;
v4[35] = v3;
if ( v3 == 3 )
{
sub_10046A714(v2);
v4 = *(unsigned int **)(v2 + 712);
}
v4[24] = 0;
sub_1001E45F4(v4);
return sub_100469F94(v2);
}
return result;
}