//
// dtls_construct_hello_verify_request from 0x9bd3ac to 0x9bd46c (192 bytes)
//
// 2 xrefs:
// > ossl_statem_server_construct_message @ 0x9c1a10
// > ??> @ 0x76f7c
//
// 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:07:02 +0000
//
int __fastcall dtls_construct_hello_verify_request(_DWORD *a1)
{
int (__fastcall *v1)(_DWORD *, _DWORD, int); // r3
int v3; // r5
_DWORD *v4; // r1
char *v6; // r5
v1 = *(int (__fastcall **)(_DWORD *, _DWORD, int))(a1[69] + 120);
v3 = *(_DWORD *)(a1[22] + 4);
if ( v1 && v1(a1, a1[27], a1[27] + 256) && (v4 = (_DWORD *)a1[27], v4[64] <= 0xFFu) )
{
v6 = dtls_raw_hello_verify_request((_BYTE *)(v3 + 12), v4, (unsigned __int8)v4[64]);
dtls1_set_message_header((int)a1, 3, (int)v6, 0, (int)v6);
a1[24] = v6 + 12;
a1[25] = 0;
return 1;
}
else
{
ERR_put_error(20, 385, 400, "ssl/statem/statem_srvr.c", 882);
ossl_statem_set_error((int)a1);
return 0;
}
}