//
// sub_1005AEF14 from 0x1005aef14 to 0x1005aefe0 (204 bytes)
//
// 4 xrefs:
// > sub_1005C6348 @ 0x1005c656c
// > sub_1005C6348 @ 0x1005c65e4
// > sub_1005C67D8 @ 0x1005c6998
// > sub_1005C67D8 @ 0x1005c6a10
//
// 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
//
bool __fastcall sub_1005AEF14(__int64 *a1, __int64 a2, __int64 a3, __int64 *a4)
{
_BOOL4 v9; // w22
if ( *(_QWORD *)a3 && *(_QWORD *)(a3 + 8) )
{
if ( *(_DWORD *)(a3 + 56) == -1 )
{
*(_DWORD *)(a3 + 56) = 0;
}
else if ( !(unsigned int)sub_1005AEC10(a3, a4) )
{
return 0;
}
if ( a2 )
v9 = sub_1005AAFFC(a2, *(_QWORD *)(a3 + 8)) != 0;
else
v9 = 1;
return sub_1005AD2C8((__int64)a1, a1, *(__int64 **)a3, *(_QWORD *)(a3 + 24), a4) && v9;
}
else
{
sub_1005E0E48(3, 100, 107, "bn_blind.c", 234);
return 0;
}
}