//
// sub_63714 from 0x63714 to 0x63828 (276 bytes)
//
// 2 xrefs:
// > sub_63624 @ 0x63694
// > sub_6A544 @ 0x6a74c
//
// 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 12:13:54 +0000
//
__int64 __fastcall sub_63714(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x0
_QWORD *v4; // x8
_QWORD *v5; // x9
_QWORD *v6; // x21
__int64 v7; // x21
_QWORD *v8; // x0
_QWORD *v9; // x9
__int64 v10; // x0
__int64 v11; // x8
__int64 v12; // x2
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 40LL))(a1);
if ( !(_DWORD)result )
{
*(_BYTE *)(a1 + 80) = 0;
result = sub_63AAC(a1);
if ( !(_DWORD)result )
{
v3 = *(_QWORD *)(a1 + 8);
if ( v3 != -1 )
sub_61C40(v3);
v4 = *(_QWORD **)(a1 + 16);
while ( v4 != (_QWORD *)(a1 + 16) )
{
v6 = (_QWORD *)*v4;
v5 = (_QWORD *)v4[1];
*v5 = *v4;
*(_QWORD *)(*v4 + 8LL) = v5;
*v4 = v4;
v4[1] = v4;
result = sub_83108(v4);
v4 = v6;
if ( (_DWORD)result )
return result;
}
v7 = *(_QWORD *)(a1 + 40);
while ( v7 != a1 + 40 )
{
if ( v7 )
v8 = (_QWORD *)(v7 - 8);
else
v8 = nullptr;
v7 = v8[1];
v9 = (_QWORD *)v8[2];
*v9 = v7;
*(_QWORD *)(v8[1] + 8LL) = v9;
v8[2] = v8 + 1;
v8[1] = v8 + 1;
result = (*(__int64 (__fastcall **)(_QWORD *))(*v8 + 16LL))(v8);
if ( (_DWORD)result )
return result;
}
v10 = *(_QWORD *)(a1 + 64);
if ( v10 )
v10 = FMOD_OS_CriticalSection_Free(v10, 0);
result = sub_E34F8(v10);
if ( !(_DWORD)result )
{
sub_64320();
sub_E2D74(*(_QWORD *)(*(_QWORD *)v11 + 432LL), a1, v12, 235, 1);
return 0;
}
}
}
return result;
}