//
// sub_DE3C3C from 0xde3c3c to 0xde3de0 (420 bytes)
//
// 1 xrefs:
// > ??> @ 0x12391e0
//
// 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
//
__int64 __fastcall sub_DE3C3C(__int64 a1, unsigned int *a2)
{
int string_type; // w0
unsigned int v5; // w1
const char *v7; // x0
int v8; // w2
const char *v9; // x0
const char *v10; // x0
int v11; // w2
FILE *v12; // x22
const char *v13; // x0
char input_flags; // w0
int v15; // w0
const char *v16; // x20
const char *v17; // x0
int v18; // w0
string_type = UI_get_string_type(a2);
if ( string_type == 2 )
{
v12 = (FILE *)qword_125F2B8;
v13 = (const char *)UI_get0_output_string((__int64)a2);
fprintf(v12, "Verifying - %s", v13);
fflush((FILE *)qword_125F2B8);
input_flags = UI_get_input_flags((__int64)a2);
v15 = sub_DE397C(a1, (__int64)a2, input_flags & 1, 1);
if ( v15 <= 0 )
{
return (unsigned int)v15;
}
else
{
v16 = (const char *)UI_get0_result_string((__int64)a2);
v17 = (const char *)UI_get0_test_string((__int64)a2);
v18 = strcmp(v16, v17);
v5 = 1;
if ( v18 )
{
fwrite("Verify failure\n", 1u, 0xFu, (FILE *)qword_125F2B8);
fflush((FILE *)qword_125F2B8);
return 0;
}
}
return v5;
}
if ( string_type == 3 )
{
v9 = (const char *)UI_get0_output_string((__int64)a2);
fputs(v9, (FILE *)qword_125F2B8);
v10 = (const char *)UI_get0_action_string((__int64)a2);
fputs(v10, (FILE *)qword_125F2B8);
fflush((FILE *)qword_125F2B8);
v11 = UI_get_input_flags((__int64)a2) & 1;
return sub_DE397C(a1, (__int64)a2, v11, 0);
}
else
{
v5 = 1;
if ( string_type != 1 )
return v5;
v7 = (const char *)UI_get0_output_string((__int64)a2);
fputs(v7, (FILE *)qword_125F2B8);
fflush((FILE *)qword_125F2B8);
v8 = UI_get_input_flags((__int64)a2) & 1;
return sub_DE397C(a1, (__int64)a2, v8, 1);
}
}