__int64 __fastcall sub_2028(__int64 a1, __int64 n8, __int64 (__fastcall *sub_6028)(__int64 a1), __int64 a4, __int64 a5)
{
__int64 v9; // rax
__int64 v10; // rdx
__int64 v11; // r8
_QWORD v13[3]; // [rsp+30h] [rbp-18h] BYREF
if ( !a1 ) /*0x2061*/
sub_788("e:\\hs\\MdePkg\\Library\\UefiLib\\UefiLib.c", 152, "ProtocolGuid != ((void *) 0)"); /*0x2072*/
if ( !sub_6028 ) /*0x2084*/
sub_788("e:\\hs\\MdePkg\\Library\\UefiLib\\UefiLib.c", 153, "NotifyFunction != ((void *) 0)"); /*0x2095*/
if ( !a5 ) /*0x20aa*/
sub_788("e:\\hs\\MdePkg\\Library\\UefiLib\\UefiLib.c", 154, "Registration != ((void *) 0)"); /*0x20bb*/
if ( (*(__int64 (__fastcall **)(__int64, __int64, __int64 (__fastcall *)(__int64), __int64, _QWORD *))(qword_96A8 + 80))( /*0x20f7*/
512,
n8,
sub_6028,
a4,
v13) < 0 )
{
sub_740(0x80000000LL, "\nASSERT_EFI_ERROR (Status = %r)\n"); /*0x2113*/
sub_788("e:\\hs\\MdePkg\\Library\\UefiLib\\UefiLib.c", 167, "!EFI_ERROR (Status)"); /*0x2127*/
}
v9 = (*(__int64 (__fastcall **)(__int64, _QWORD, __int64))(qword_96A8 + 168))(a1, v13[0], a5); /*0x2140*/
LOBYTE(v11) = 15; /*0x2146*/
if ( v9 < 0 ) /*0x2156*/
{
sub_740(0x80000000LL, "\nASSERT_EFI_ERROR (Status = %r)\n", v9, 1); /*0x217c*/
sub_788("e:\\hs\\MdePkg\\Library\\UefiLib\\UefiLib.c", 179, "!EFI_ERROR (Status)"); /*0x2190*/
}
(*(void (__fastcall **)(_QWORD, __int64, __int64))(qword_96A8 + 104))(v13[0], v10, v11); /*0x21a1*/
return v13[0]; /*0x21bd*/
}