//
// sub_B0948 from 0xb0948 to 0xb09a8 (96 bytes)
//
// 1 xrefs:
// > sub_B06E8 @ 0xb0784
//
// 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:37 +0000
//
_QWORD *__fastcall sub_B0948(_QWORD *result, _QWORD *a2, __int64 a3, unsigned __int64 a4)
{
_QWORD *v4; // x8
_QWORD **v5; // x9
v4 = (_QWORD *)*a2;
while ( v4[3] <= a4 )
{
v4 = (_QWORD *)*v4;
if ( v4[1] == a3 )
{
result[3] = a4;
result[1] = *(_QWORD *)(a3 + 8);
v5 = (_QWORD **)(result + 1);
*result = a3;
*(_QWORD *)(a3 + 8) = result;
goto LABEL_6;
}
}
result[3] = a4;
result[1] = v4[1];
v5 = (_QWORD **)(result + 1);
*result = v4;
v4[1] = result;
LABEL_6:
**v5 = result;
return result;
}