//
// sub_10037E098 from 0x10037e098 to 0x10037e130 (152 bytes)
//
// 1 xrefs:
// > sub_10037DFF0 @ 0x10037e04c
//
// 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 11:03:29 +0000
//
_QWORD *__fastcall sub_10037E098(_QWORD *result, __int64 a2)
{
_QWORD *v3; // x20
__int64 v4; // x21
__int64 v5; // x0
__int64 v6; // x20
__int64 v7; // x1
if ( a2 )
{
v3 = result;
v4 = result[41];
if ( v4 )
{
result = *(_QWORD **)(a2 + 328);
if ( result )
{
v5 = (*(__int64 (__fastcall **)(_QWORD *))(*result + 1008LL))(result);
result = (_QWORD *)(*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 1024LL))(v4, v5);
}
}
v6 = v3[42];
if ( v6 )
{
result = *(_QWORD **)(a2 + 336);
if ( result )
{
v7 = (*(__int64 (__fastcall **)(_QWORD *))(*result + 896LL))(result);
return (_QWORD *)(*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 912LL))(v6, v7);
}
}
}
return result;
}