#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 argp_option {
  int /*<<< orphan*/ group;
  int /*<<< orphan*/ doc;
  int /*<<< orphan*/ name;
  int /*<<< orphan*/ key;
};

/* Variables and functions */
int _option_is_end(const struct argp_option *__opt) {
  return !__opt->key && !__opt->name && !__opt->doc && !__opt->group;
}


x86 assembly (clang, -O0):
<_option_is_end>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rcx
xor    %eax,%eax
cmpl   $0x0,0xc(%rcx)
mov    %al,-0x9(%rbp)
jne    1150 <_option_is_end+0x50>
mov    -0x8(%rbp),%rcx
xor    %eax,%eax
cmpl   $0x0,0x8(%rcx)
mov    %al,-0x9(%rbp)
jne    1150 <_option_is_end+0x50>
mov    -0x8(%rbp),%rcx
xor    %eax,%eax
cmpl   $0x0,0x4(%rcx)
mov    %al,-0x9(%rbp)
jne    1150 <_option_is_end+0x50>
mov    -0x8(%rbp),%rax
cmpl   $0x0,(%rax)
setne  %al
xor    $0xff,%al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<_option_is_end>:
xor    %eax,%eax
cmpl   $0x0,0xc(%rdi)
je     1109 <_option_is_end+0x9>
ret
cmpl   $0x0,0x8(%rdi)
jne    1108 <_option_is_end+0x8>
cmpl   $0x0,0x4(%rdi)
jne    1108 <_option_is_end+0x8>
xor    %eax,%eax
cmpl   $0x0,(%rdi)
sete   %al
ret

LLVM IR (-O0):
%struct.argp_option = type { i32, i32, i32, i32 }
define i32 @_option_is_end(%struct.argp_option* %0) {
%2 = alloca %struct.argp_option*
store %struct.argp_option* %0, %struct.argp_option** %2
%3 = load %struct.argp_option*, %struct.argp_option** %2
%4 = getelementptr inbounds %struct.argp_option, %struct.argp_option* %3, i32 0, i32 3
%5 = load i32, i32* %4
%6 = icmp ne i32 %5, 0
br i1 %6, label %23, label %7
7: ; preds = %1
%8 = load %struct.argp_option*, %struct.argp_option** %2
%9 = getelementptr inbounds %struct.argp_option, %struct.argp_option* %8, i32 0, i32 2
%10 = load i32, i32* %9
%11 = icmp ne i32 %10, 0
br i1 %11, label %23, label %12
12: ; preds = %7
%13 = load %struct.argp_option*, %struct.argp_option** %2
%14 = getelementptr inbounds %struct.argp_option, %struct.argp_option* %13, i32 0, i32 1
%15 = load i32, i32* %14
%16 = icmp ne i32 %15, 0
br i1 %16, label %23, label %17
17: ; preds = %12
%18 = load %struct.argp_option*, %struct.argp_option** %2
%19 = getelementptr inbounds %struct.argp_option, %struct.argp_option* %18, i32 0, i32 0
%20 = load i32, i32* %19
%21 = icmp ne i32 %20, 0
%22 = xor i1 %21, true
br label %23
23: ; preds = %17, %12, %7, %1
%24 = phi i1 [ false, %12 ], [ false, %7 ], [ false, %1 ], [ %22, %17 ]
%25 = zext i1 %24 to i32
ret i32 %25
}

LLVM IR (-O2):
%struct.argp_option = type { i32, i32, i32, i32 }
define i32 @_option_is_end(%struct.argp_option* nocapture %0) {
%2 = getelementptr inbounds %struct.argp_option, %struct.argp_option* %0, i64 0, i32 3
%3 = load i32, i32* %2
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %18
5: ; preds = %1
%6 = getelementptr inbounds %struct.argp_option, %struct.argp_option* %0, i64 0, i32 2
%7 = load i32, i32* %6
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %18
9: ; preds = %5
%10 = getelementptr inbounds %struct.argp_option, %struct.argp_option* %0, i64 0, i32 1
%11 = load i32, i32* %10
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %18
13: ; preds = %9
%14 = getelementptr inbounds %struct.argp_option, %struct.argp_option* %0, i64 0, i32 0
%15 = load i32, i32* %14
%16 = icmp eq i32 %15, 0
%17 = zext i1 %16 to i32
br label %18
18: ; preds = %13, %9, %5, %1
%19 = phi i32 [ 0, %9 ], [ 0, %5 ], [ 0, %1 ], [ %17, %13 ]
ret i32 %19
}