const cc: type = switch (@import("builtin").target.cpu.arch) {
    .x86_64 => .Win64,
    else => .C,
};

The calling convention used for all external functions part of the UEFI API.