#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ ipl_eckd();
int /*<<< orphan*/ ipl_iso_el_torito();
int /*<<< orphan*/ sclp_print(char *);
int /*<<< orphan*/ virtio_assume_eckd();
int /*<<< orphan*/ virtio_assume_iso9660();
scalar_t__ virtio_guessed_disk_nature();
void zipl_load_vblk(void) {
  if (virtio_guessed_disk_nature()) {
    virtio_assume_iso9660();
  }
  ipl_iso_el_torito();
  if (virtio_guessed_disk_nature()) {
    sclp_print("Using guessed DASD geometry.\n");
    virtio_assume_eckd();
  }
  ipl_eckd();
}


x86 assembly (clang, -O0):
<zipl_load_vblk>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <virtio_guessed_disk_nature@plt>
cmp    $0x0,%rax
je     117c <zipl_load_vblk+0x1c>
mov    $0x0,%al
call   1040 <virtio_assume_iso9660@plt>
mov    $0x0,%al
call   1050 <ipl_iso_el_torito@plt>
mov    $0x0,%al
call   1030 <virtio_guessed_disk_nature@plt>
cmp    $0x0,%rax
je     11a7 <zipl_load_vblk+0x47>
lea    0xe65(%rip),%rdi
call   1080 <sclp_print@plt>
mov    $0x0,%al
call   1070 <virtio_assume_eckd@plt>
mov    $0x0,%al
call   1060 <ipl_eckd@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<zipl_load_vblk>:
push   %rax
xor    %eax,%eax
call   1030 <virtio_guessed_disk_nature@plt>
test   %rax,%rax
je     1174 <zipl_load_vblk+0x14>
xor    %eax,%eax
call   1040 <virtio_assume_iso9660@plt>
xor    %eax,%eax
call   1050 <ipl_iso_el_torito@plt>
xor    %eax,%eax
call   1030 <virtio_guessed_disk_nature@plt>
test   %rax,%rax
je     119a <zipl_load_vblk+0x3a>
lea    0xe72(%rip),%rdi
call   1080 <sclp_print@plt>
xor    %eax,%eax
call   1070 <virtio_assume_eckd@plt>
xor    %eax,%eax
pop    %rcx
jmp    1060 <ipl_eckd@plt>

LLVM IR (-O0):
@.str = [30 x i8] c"Using guessed DASD geometry.\0A\00"
define void @zipl_load_vblk() {
%1 = call i64 (...) @virtio_guessed_disk_nature()
%2 = icmp ne i64 %1, 0
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = call i32 (...) @virtio_assume_iso9660()
br label %5
5: ; preds = %3, %0
%6 = call i32 (...) @ipl_iso_el_torito()
%7 = call i64 (...) @virtio_guessed_disk_nature()
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %5
%10 = call i32 @sclp_print(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%11 = call i32 (...) @virtio_assume_eckd()
br label %12
12: ; preds = %9, %5
%13 = call i32 (...) @ipl_eckd()
ret void
}

LLVM IR (-O2):
@.str = [30 x i8] c"Using guessed DASD geometry.\0A\00"
define void @zipl_load_vblk() {
%1 = tail call i64 (...) @virtio_guessed_disk_nature()
%2 = icmp eq i64 %1, 0
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = tail call i32 (...) @virtio_assume_iso9660()
br label %5
5: ; preds = %3, %0
%6 = tail call i32 (...) @ipl_iso_el_torito()
%7 = tail call i64 (...) @virtio_guessed_disk_nature()
%8 = icmp eq i64 %7, 0
br i1 %8, label %12, label %9
9: ; preds = %5
%10 = tail call i32 @sclp_print(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%11 = tail call i32 (...) @virtio_assume_eckd()
br label %12
12: ; preds = %9, %5
%13 = tail call i32 (...) @ipl_eckd()
ret void
}