//
// sub_100700ED8 from 0x100700ed8 to 0x100700fd4 (252 bytes)
//
// 6 xrefs:
// > sub_100647C48 @ 0x1006483c8
// > sub_10065EBB0 @ 0x10065f3b4
// > sub_1006668C4 @ 0x100666954
// > sub_100739AC4 @ 0x10073a04c
// > sub_100739AC4 @ 0x10073a0e4
// > sub_10073A164 @ 0x10073a1c4
//
// 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:12:48 +0000
//
_QWORD *__fastcall sub_100700ED8(_QWORD *a1, __int64 a2)
{
_QWORD *v2; // x19
_QWORD *v3; // x8
_QWORD *v4; // x20
void (__fastcall *v5)(_QWORD *, __int64, _QWORD, _QWORD *); // x8
void (__fastcall *v6)(_QWORD *, __int64, _QWORD *, __int64, _QWORD, __int64); // x21
__int64 v7; // x0
v2 = a1;
if ( !a1 )
return (_QWORD *)a2;
v3 = a1;
do
{
v4 = v3;
v3 = (_QWORD *)v3[7];
}
while ( v3 );
v4[7] = a2;
if ( a2 )
*(_QWORD *)(a2 + 64) = v4;
if ( *a1 && (v5 = *(void (__fastcall **)(_QWORD *, __int64, _QWORD, _QWORD *))(*a1 + 48LL)) != nullptr )
{
v6 = (void (__fastcall *)(_QWORD *, __int64, _QWORD *, __int64, _QWORD, __int64))a1[1];
if ( v6 )
{
if ( ((__int64 (__fastcall *)(_QWORD *, __int64, _QWORD *, __int64, _QWORD, __int64))v6)(a1, 6, v4, 6, 0, 1) >= 1 )
{
v7 = (*(__int64 (__fastcall **)(_QWORD *, __int64, _QWORD, _QWORD *))(*v2 + 48LL))(v2, 6, 0, v4);
v6(v2, 134, v4, 6, 0, v7);
}
}
else
{
v5(a1, 6, 0, v4);
}
}
else
{
sub_100706FB0(32, 103, 121, "bio_lib.c", 349);
}
return v2;
}