//
// sub_78090 from 0x78090 to 0x78154 (196 bytes)
//
// 1 xrefs:
// > sub_78B30 @ 0x78ebc
//
// 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:14:02 +0000
//
__int64 __fastcall sub_78090(__int64 a1, __int64 a2, _DWORD *a3)
{
__int64 v4; // x0
__int64 v5; // x21
__int64 v6; // x20
char **v7; // x23
__int64 v8; // x25
__int64 v9; // x26
__int64 result; // x0
v4 = sub_E3E74(a2, 46);
if ( !v4 )
return 18;
v5 = 0;
v6 = v4 + 1;
v7 = off_10D180;
while ( v5 != 18 )
{
v8 = *((int *)&unk_10D178 + 12 * v5 + 1);
v9 = 0;
while ( v9 < v8 )
{
result = sub_E3DD4(v6, v7[v9++]);
if ( !(_DWORD)result )
{
*a3 = *((_DWORD *)&unk_10D178 + 12 * (unsigned int)v5);
return result;
}
}
++v5;
v7 += 6;
}
return 0;
}