//
// X509_signature_dump from 0x83d214 to 0x83d324 (272 bytes)
//
// 6 xrefs:
// > sub_7E0CE8 @ 0x7e0dd8
// > sub_82BD00 @ 0x82bd3c
// > X509_signature_print @ 0x83d3a0
// > X509_print_ex @ 0x83dad8
// > X509_print_ex @ 0x83db1c
// > ??> @ 0x60cec
//
// 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
//
bool __fastcall X509_signature_dump(int a1, int *a2, int a3)
{
int v3; // r6
int v6; // r4
int v7; // r11
int v8; // r2
int v9; // t1
bool v10; // zf
v3 = *a2;
if ( *a2 > 0 )
{
v6 = a2[2] - 1;
v7 = 0;
while ( 1 )
{
v10 = v7 == 18 * (v7 / 18);
++v7;
if ( v10 && (BIO_write(a1, (int)"\n", 1) <= 0 || BIO_indent(a1, a3, a3) <= 0) )
return 0;
v9 = *(unsigned __int8 *)++v6;
v8 = v9;
if ( v7 == v3 )
break;
if ( BIO_printf(a1, "%02x%s", v8, ":") <= 0 )
return 0;
}
if ( BIO_printf(a1, "%02x%s", v8, &byte_9B1912) <= 0 )
return 0;
}
return BIO_write(a1, (int)"\n", 1) == 1;
}