//
// X509_signature_dump from 0xa51e14 to 0xa51f24 (272 bytes)
//
// 6 xrefs:
// > sub_9F58E8 @ 0x9f59d8
// > sub_A40900 @ 0xa4093c
// > X509_signature_print @ 0xa51fa0
// > X509_print_ex @ 0xa526d8
// > X509_print_ex @ 0xa5271c
// > ??> @ 0x7a76c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:08:23 +0000
//
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_BF4ECA) <= 0 )
return 0;
}
return BIO_write(a1, (int)"\n", 1) == 1;
}