//
// BIO_hex_string from 0xd7291c to 0xd72a64 (328 bytes)
//
// 5 xrefs:
// > SCT_print @ 0xe7ba80
// > SCT_print @ 0xe7bb94
// > SCT_print @ 0xe7bc00
// > SCT_print @ 0xe7bc8c
// > ??> @ 0x35a18
//
// 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 BIO_hex_string(__int64 a1, int a2, int a3, unsigned __int8 *a4, int a5)
{
int v10; // w19
unsigned __int8 *v11; // x21
int v12; // w24
int v13; // w20
int v14; // w2
if ( a5 > 0 )
{
if ( a5 != 1 )
{
v10 = 0;
v11 = a4;
v12 = a5 - 1;
v13 = 0;
while ( 1 )
{
while ( 1 )
{
v14 = *v11++;
BIO_printf(a1, "%02X:", v14);
v10 = (v10 + 1) % a3;
if ( !v10 )
break;
if ( ++v13 == v12 )
goto LABEL_6;
}
++v13;
BIO_printf(a1, &byte_F1AB78);
if ( v13 == v12 )
break;
if ( v13 )
BIO_printf(a1, "%*s", a2, &byte_F288A0);
}
if ( v13 )
BIO_printf(a1, "%*s", a2, &byte_F288A0);
}
LABEL_6:
BIO_printf(a1, "%02X", a4[a5 - 1]);
}
return 1;
}