//
// sub_DEC768 from 0xdec768 to 0xdec91c (436 bytes)
//
// 1 xrefs:
// > sub_E080B4 @ 0xe08304
//
// 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 13:09:14 +0000
//
__int64 __fastcall sub_DEC768(__int64 a1)
{
_QWORD *v1; // x20
__int64 result; // x0
_QWORD *v3; // x19
__int64 v4; // x22
void *v5; // x20
__int64 v6; // x0
v1 = *(_QWORD **)(a1 + 2360);
if ( !v1 )
return 0;
result = v1[3];
if ( result )
{
v3 = (_QWORD *)*v1;
if ( *v1 )
{
v4 = 0;
while ( 1 )
{
if ( v3[5] )
{
v5 = (void *)sub_E05A38("%s%s%s\t%s\t%s\t%s\t%ld\t%s\t%s");
if ( !v5 )
{
sub_E1AE0C(v4);
return 0;
}
v6 = sub_E1ABF0(v4, v5);
if ( !v6 )
{
off_154A3C8(v5);
sub_E1AE0C(v4);
return 0;
}
v4 = v6;
}
v3 = (_QWORD *)*v3;
if ( !v3 )
return v4;
}
}
return 0;
}
return result;
}