//
// sub_77098 from 0x77098 to 0x77124 (140 bytes)
//
// 2 xrefs:
// > sub_6E374 @ 0x6e3d4
// > sub_CA9C0 @ 0xca9fc
//
// 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_77098(__int64 a1, __int64 a2)
{
__int64 v2; // x8
_QWORD *v4; // x21
_QWORD *v5; // x20
__int64 v6; // x8
_QWORD *v7; // x22
__int64 v9; // [xsp+8h] [xbp-28h] BYREF
v2 = *(_QWORD *)(a1 + 872);
v4 = (_QWORD *)(a1 + 496);
if ( v2 )
v5 = (_QWORD *)(v2 - 376);
else
v5 = nullptr;
while ( v5 != v4 )
{
v6 = v5[47];
if ( v6 )
v7 = (_QWORD *)(v6 - 376);
else
v7 = nullptr;
sub_5C1CC((__int64)v5, &v9);
if ( v9 == a2 )
(*(void (__fastcall **)(_QWORD *))(*v5 + 8LL))(v5);
v5 = v7;
}
return 0;
}