//
// sub_B9E948 from 0xb9e948 to 0xb9ea70 (296 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_B9E948(__int64 a1)
{
void (__fastcall *v1)(_QWORD, __int64, __int64, _QWORD); // x4
void (__fastcall *v3)(_QWORD, __int64, _QWORD); // x3
char *v5; // x0
__int64 v6; // x20
unsigned __int64 v7; // x21
char *v8; // x0
void (__fastcall *v9)(_QWORD, __int64, _QWORD); // x3
if ( !a1 )
return 3;
v1 = *(void (__fastcall **)(_QWORD, __int64, __int64, _QWORD))(a1 + 8);
if ( v1 )
v1(0, 1, 2, *(_QWORD *)(a1 + 24));
if ( *(_DWORD *)(a1 + 4) )
{
v3 = *(void (__fastcall **)(_QWORD, __int64, _QWORD))(a1 + 16);
if ( v3 )
v3(0, 1, *(_QWORD *)(a1 + 24));
return 2;
}
else
{
sub_B99B9C(a1 + 32);
sub_B7654C(*(void ***)(a1 + 80));
v5 = *(char **)(a1 + 88);
if ( v5 )
{
if ( *(_QWORD *)(a1 + 96) )
{
v6 = 0;
v7 = 0;
do
{
v8 = &v5[v6];
++v7;
v6 += 120;
sub_BBA32C(v8);
v5 = *(char **)(a1 + 88);
}
while ( *(_QWORD *)(a1 + 96) > v7 );
}
off_1231008(v5);
}
v9 = *(void (__fastcall **)(_QWORD, __int64, _QWORD))(a1 + 16);
if ( v9 )
v9(0, 1, *(_QWORD *)(a1 + 24));
off_1231008((void *)a1);
return 0;
}
}