#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 */
struct disk_info {
  int dummy;
};
struct ata_disk_info {
  int dummy;
};

/* Variables and functions */
int print_ata_id_vars__extended(struct disk_info const *const,
                                struct ata_disk_info const *const,
                                char const *const);
int print_mdev_ata_id_vars(struct disk_info const *const,
                           struct ata_disk_info const *const,
                           unsigned int const, char const *const);
int print_ata_id_vars(const struct disk_info *const node,
                      const struct ata_disk_info *const pinfo,
                      unsigned const int mdev_export,
                      const char *const prefix) {
  if (mdev_export == 0) {
    return print_ata_id_vars__extended(node, pinfo, prefix);
  } else {
    return print_mdev_ata_id_vars(node, pinfo, mdev_export, prefix);
  }
}


x86 assembly (clang, -O0):
<print_ata_id_vars>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    %rcx,-0x28(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jne    115a <print_ata_id_vars+0x3a>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x28(%rbp),%rdx
call   1040 <print_ata_id_vars__extended@plt>
mov    %eax,-0x4(%rbp)
jmp    1171 <print_ata_id_vars+0x51>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
mov    -0x28(%rbp),%rcx
call   1030 <print_mdev_ata_id_vars@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_ata_id_vars>:
test   %edx,%edx
je     1129 <print_ata_id_vars+0x9>
jmp    1030 <print_mdev_ata_id_vars@plt>
mov    %rcx,%rdx
jmp    1040 <print_ata_id_vars__extended@plt>

LLVM IR (-O0):
%struct.disk_info = type { i32 }
%struct.ata_disk_info = type { i32 }
define i32 @print_ata_id_vars(%struct.disk_info* %0, %struct.ata_disk_info* %1, i32 %2, i8* %3) {
%5 = alloca i32
%6 = alloca %struct.disk_info*
%7 = alloca %struct.ata_disk_info*
%8 = alloca i32
%9 = alloca i8*
store %struct.disk_info* %0, %struct.disk_info** %6
store %struct.ata_disk_info* %1, %struct.ata_disk_info** %7
store i32 %2, i32* %8
store i8* %3, i8** %9
%10 = load i32, i32* %8
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %17
12: ; preds = %4
%13 = load %struct.disk_info*, %struct.disk_info** %6
%14 = load %struct.ata_disk_info*, %struct.ata_disk_info** %7
%15 = load i8*, i8** %9
%16 = call i32 @print_ata_id_vars__extended(%struct.disk_info* %13, %struct.ata_disk_info* %14, i8* %15)
store i32 %16, i32* %5
br label %23
17: ; preds = %4
%18 = load %struct.disk_info*, %struct.disk_info** %6
%19 = load %struct.ata_disk_info*, %struct.ata_disk_info** %7
%20 = load i32, i32* %8
%21 = load i8*, i8** %9
%22 = call i32 @print_mdev_ata_id_vars(%struct.disk_info* %18, %struct.ata_disk_info* %19, i32 %20, i8* %21)
store i32 %22, i32* %5
br label %23
23: ; preds = %17, %12
%24 = load i32, i32* %5
ret i32 %24
}

LLVM IR (-O2):
%struct.disk_info = type { i32 }
%struct.ata_disk_info = type { i32 }
define i32 @print_ata_id_vars(%struct.disk_info* %0, %struct.ata_disk_info* %1, i32 %2, i8* %3) {
%5 = icmp eq i32 %2, 0
br i1 %5, label %6, label %8
6: ; preds = %4
%7 = tail call i32 @print_ata_id_vars__extended(%struct.disk_info* %0, %struct.ata_disk_info* %1, i8* %3)
br label %10
8: ; preds = %4
%9 = tail call i32 @print_mdev_ata_id_vars(%struct.disk_info* %0, %struct.ata_disk_info* %1, i32 %2, i8* %3)
br label %10
10: ; preds = %8, %6
%11 = phi i32 [ %7, %6 ], [ %9, %8 ]
ret i32 %11
}