//
// EVP_read_pw_string_min from 0xacc43c to 0xacc50c (208 bytes)
//
// 4 xrefs:
// > PEM_def_callback @ 0xa360c8
// > PEM_def_callback @ 0xa36128
// > EVP_read_pw_string @ 0xacc530
// > ??> @ 0x7ed6c
//
// 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:21 +0000
//
int __fastcall EVP_read_pw_string_min(int a1, int a2, int a3, char *a4, int a5)
{
char *v5; // r6
int *v9; // r0
int *v10; // r5
int v11; // r4
_BYTE v13[1028]; // [sp+10h] [bp-404h] BYREF
v5 = a4;
if ( !a4 && byte_D35B2C )
v5 = &byte_D35B2C;
v9 = UI_new();
v10 = v9;
if ( !v9 )
return -1;
if ( a3 >= 1023 )
a3 = 1023;
UI_add_input_string((int)v9, (int)v5, 0, a1, a2, a3);
if ( a5 )
UI_add_verify_string((int)v10, (int)v5, 0, (int)v13, a2, a3, a1);
v11 = UI_process(v10);
UI_free((int)v10);
OPENSSL_cleanse(v13, 0x400u);
return v11;
}