//
// BIO_hex_string from 0xff0c7c to 0xff0dc4 (328 bytes)
//
// 5 xrefs:
// > SCT_print @ 0x10f9a80
// > SCT_print @ 0x10f9b94
// > SCT_print @ 0x10f9c00
// > SCT_print @ 0x10f9c8c
// > ??> @ 0x4eb08
//
// 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 13:15:46 +0000
//
__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_11AAA48);
if ( v13 == v12 )
break;
if ( v13 )
BIO_printf(a1, "%*s", a2, &byte_11B8890);
}
if ( v13 )
BIO_printf(a1, "%*s", a2, &byte_11B8890);
}
LABEL_6:
BIO_printf(a1, "%02X", a4[a5 - 1]);
}
return 1;
}