//
// BIO_hex_string from 0x7cc974 to 0x7cca90 (284 bytes)
//
// 5 xrefs:
// > SCT_print @ 0x8cfdbc
// > SCT_print @ 0x8cfee4
// > SCT_print @ 0x8cff60
// > SCT_print @ 0x8cffe8
// > ??> @ 0x5f4ec
//
// 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
//
int __fastcall BIO_hex_string(int a1, int a2, int a3, int a4, int a5)
{
int v7; // r6
int v8; // r5
int v9; // r11
int v10; // r7
int v11; // t1
if ( a5 > 0 )
{
if ( a5 != 1 )
{
v7 = a4 - 1;
v8 = 0;
v9 = 0;
v10 = a5 - 1;
while ( 1 )
{
while ( 1 )
{
v11 = *(unsigned __int8 *)++v7;
BIO_printf(a1, "%02X:", v11);
++v9;
v8 = (v8 + 1) % a3;
if ( !v8 )
break;
if ( v9 == v10 )
goto LABEL_6;
}
BIO_printf(a1, "\n");
if ( v9 == v10 )
break;
if ( v9 )
BIO_printf(a1, "%*s", a2, &byte_9B1912);
}
if ( v9 )
BIO_printf(a1, "%*s", a2, &byte_9B1912);
}
LABEL_6:
BIO_printf(a1, "%02X", *(unsigned __int8 *)(a4 + a5 - 1));
}
return 1;
}