//
// sub_100628F14 from 0x100628f14 to 0x100629054 (320 bytes)
//
// 1 xrefs:
// > sub_100628044 @ 0x1006280e4
//
// 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_100628F14(unsigned int *a1, unsigned int *a2)
{
__int64 v4; // x19
__int64 v5; // x20
int v6; // w23
__int64 v7; // x0
__int64 *v8; // x0
__int16 v10; // w1
int v11; // w3
v4 = sub_1005E9848((__int64)a1);
v5 = sub_1005E9848((__int64)a2);
v6 = sub_1005E9A40(a2);
if ( v6 != (unsigned int)sub_1005E9A40(a1) )
{
v10 = 105;
v11 = 549;
LABEL_15:
sub_100624720(116, v10, (__int64)"gost_ameth.c", v11);
return 0;
}
if ( !v5 )
{
v10 = 115;
v11 = 553;
goto LABEL_15;
}
if ( !v4 )
{
v4 = (__int64)sub_1005BF574();
if ( !v4 )
{
v10 = 65;
v11 = 559;
goto LABEL_15;
}
v7 = sub_1005E9A40(a2);
if ( !sub_1005E97F4((__int64)a1, v7, v4) )
{
v10 = 68;
v11 = 563;
goto LABEL_15;
}
}
v8 = (__int64 *)sub_1005BFADC(v5);
if ( !sub_1005BFAE4(v4, v8) )
{
v10 = 68;
v11 = 568;
goto LABEL_15;
}
if ( sub_1005BFB24(v4) )
sub_100625C48(v4);
return 1;
}