/** @file
Aint13.c -- Aint13
Auto-converted from IDA decompiler output.
Functions: 1
Copyright (c) HR650X BIOS Decompilation Project
**/
#include "Aint13.h"
// Function: ModuleEntryPoint
EFI_STATUS ModuleEntryPoint(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable) { EFI_BOOT_SERVICES *BootServices; // r10 EFI_RUNTIME_SERVICES *RuntimeServices; // rax EFI_HANDLE ImageHandle_1; // [rsp+30h] [rbp+8h] BYREF ::ImageHandle = (__int64)ImageHandle; if ( !ImageHandle ) sub_18BC( "e:\\hs\\MdePkg\\Library\\UefiBootServicesTableLib\\UefiBootServicesTableLib.c", 51, "gImageHandle != ((void *) 0)"); ::SystemTable = (__int64)SystemTable; if ( !SystemTable ) sub_18BC("e:\\hs\\MdePkg\\Library\\UefiBootServicesTableLib\\UefiBootServicesTableLib.c", 57, "gST != ((void *) 0)"); ::BootServices = (__int64)SystemTable->BootServices; if ( !::BootServices ) sub_18BC("e:\\hs\\MdePkg\\Library\\UefiBootServicesTableLib\\UefiBootServicesTableLib.c", 63, "gBS != ((void *) 0)"); ::RuntimeServices = (__int64)SystemTable->RuntimeServices; if ( !::RuntimeServices ) sub_18BC( "e:\\hs\\MdePkg\\Library\\UefiRuntimeServicesTableLib\\UefiRuntimeServicesTableLib.c", 47, "gRT != ((void *) 0)"); sub_18FC(); ImageHandle_1 = ImageHandle; if ( SystemTable_0 ) { BootServices = (EFI_BOOT_SERVICES *)BootServices_0; } else { SystemTable_0 = (__int64)SystemTable; BootServices = SystemTable->BootServices; RuntimeServices = SystemTable->RuntimeServices; BootServices_0 = (__int64)BootServices; RuntimeServices_0 = (__int64)RuntimeServices; } psub_624 = (__int64)sub_624; return ((__int64 ( *)(EFI_HANDLE *, void *, _QWORD, __int64 *))BootServices->InstallProtocolInterface)( &ImageHandle_1, &unk_20E0, 0, &psub_624); }