//
// EC_POINT_point2hex from 0xaa01d0 to 0xaa02a0 (208 bytes)
//
// 1 xrefs:
// > ??> @ 0x8451c
//
// 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:09:12 +0000
//
char *__fastcall EC_POINT_point2hex(int a1, _DWORD *a2, int a3)
{
int v3; // r0
int v4; // r4
void *v6; // r5
char *v7; // r0
char *v8; // r6
char *v9; // r2
char *v10; // r4
char *v11; // r3
int v12; // t1
char v13; // r1
char *v14; // [sp+Ch] [bp-8h] BYREF
v14 = nullptr;
v3 = EC_POINT_point2buf(a1, a2, a3, (int *)&v14);
v4 = v3;
if ( !v3 )
return nullptr;
v6 = (void *)(2 * (v3 + 1));
v7 = (char *)CRYPTO_malloc(v6, (int)"crypto/ec/ec_print.c", 86);
v8 = v7;
if ( v7 )
{
v9 = v14;
v10 = &v14[v4];
v11 = v7 + 2;
do
{
v12 = (unsigned __int8)*v9++;
v11 += 2;
v13 = a0123456789abcd_8[v12 >> 4];
*(v11 - 3) = a0123456789abcd_8[v12 & 0xF];
*(v11 - 4) = v13;
}
while ( v9 != v10 );
*((_BYTE *)v6 + (_DWORD)v7 - 2) = 0;
CRYPTO_free(v14, (int)"crypto/ec/ec_print.c", 100);
return v8;
}
else
{
CRYPTO_free(v14, (int)"crypto/ec/ec_print.c", 88);
return nullptr;
}
}