#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 authdes_verf {
  int /*<<< orphan*/ adv_int_u;
  int /*<<< orphan*/ adv_xtimestamp;
};
typedef int /*<<< orphan*/ des_block;
typedef int /*<<< orphan*/ caddr_t;
typedef int /*<<< orphan*/ bool_t;
typedef int /*<<< orphan*/ XDR;

/* Variables and functions */
int /*<<< orphan*/ FALSE;
int /*<<< orphan*/ TRUE;
int /*<<< orphan*/ xdr_opaque(int /*<<< orphan*/ *, int /*<<< orphan*/, int);
bool_t xdr_authdes_verf(XDR *xdrs, struct authdes_verf *verf) {
  if (!(xdr_opaque(xdrs, (caddr_t)&verf->adv_xtimestamp, sizeof(des_block))))
    return (FALSE);
  if (!(xdr_opaque(xdrs, (caddr_t)&verf->adv_int_u, sizeof(verf->adv_int_u))))
    return (FALSE);
  return (TRUE);
}


x86 assembly (clang, -O0):
<xdr_authdes_verf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rax
add    $0x4,%rax
mov    %eax,%esi
mov    $0x4,%edx
call   1030 <xdr_opaque@plt>
cmp    $0x0,%eax
jne    1152 <xdr_authdes_verf+0x42>
mov    0x2e90(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    118c <xdr_authdes_verf+0x7c>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rax
mov    %eax,%esi
mov    $0x4,%edx
call   1030 <xdr_opaque@plt>
cmp    $0x0,%eax
jne    1180 <xdr_authdes_verf+0x70>
mov    0x2e62(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    118c <xdr_authdes_verf+0x7c>
mov    0x2e61(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xdr_authdes_verf>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
add    $0x4,%esi
mov    $0x4,%edx
call   1030 <xdr_opaque@plt>
test   %eax,%eax
je     113f <xdr_authdes_verf+0x2f>
mov    %rbx,%rdi
mov    %r14d,%esi
mov    $0x4,%edx
call   1030 <xdr_opaque@plt>
test   %eax,%eax
jne    1148 <xdr_authdes_verf+0x38>
mov    0x2e92(%rip),%rax
jmp    114f <xdr_authdes_verf+0x3f>
mov    0x2e99(%rip),%rax
mov    (%rax),%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
%struct.authdes_verf = type { i32, i32 }
@FALSE = global i32 0
@TRUE = global i32 0
define i32 @xdr_authdes_verf(i32* %0, %struct.authdes_verf* %1) {
%3 = alloca i32
%4 = alloca i32*
%5 = alloca %struct.authdes_verf*
store i32* %0, i32** %4
store %struct.authdes_verf* %1, %struct.authdes_verf** %5
%6 = load i32*, i32** %4
%7 = load %struct.authdes_verf*, %struct.authdes_verf** %5
%8 = getelementptr inbounds %struct.authdes_verf, %struct.authdes_verf* %7, i32 0, i32 1
%9 = ptrtoint i32* %8 to i32
%10 = call i32 @xdr_opaque(i32* %6, i32 %9, i32 4)
%11 = icmp ne i32 %10, 0
br i1 %11, label %14, label %12
12: ; preds = %2
%13 = load i32, i32* @FALSE
store i32 %13, i32* %3
br label %25
14: ; preds = %2
%15 = load i32*, i32** %4
%16 = load %struct.authdes_verf*, %struct.authdes_verf** %5
%17 = getelementptr inbounds %struct.authdes_verf, %struct.authdes_verf* %16, i32 0, i32 0
%18 = ptrtoint i32* %17 to i32
%19 = call i32 @xdr_opaque(i32* %15, i32 %18, i32 4)
%20 = icmp ne i32 %19, 0
br i1 %20, label %23, label %21
21: ; preds = %14
%22 = load i32, i32* @FALSE
store i32 %22, i32* %3
br label %25
23: ; preds = %14
%24 = load i32, i32* @TRUE
store i32 %24, i32* %3
br label %25
25: ; preds = %23, %21, %12
%26 = load i32, i32* %3
ret i32 %26
}

LLVM IR (-O2):
%struct.authdes_verf = type { i32, i32 }
@FALSE = global i32 0
@TRUE = global i32 0
define i32 @xdr_authdes_verf(i32* %0, %struct.authdes_verf* %1) {
%3 = getelementptr inbounds %struct.authdes_verf, %struct.authdes_verf* %1, i64 0, i32 1
%4 = ptrtoint i32* %3 to i64
%5 = trunc i64 %4 to i32
%6 = tail call i32 @xdr_opaque(i32* %0, i32 %5, i32 4)
%7 = icmp eq i32 %6, 0
br i1 %7, label %14, label %8
8: ; preds = %2
%9 = ptrtoint %struct.authdes_verf* %1 to i64
%10 = trunc i64 %9 to i32
%11 = tail call i32 @xdr_opaque(i32* %0, i32 %10, i32 4)
%12 = icmp eq i32 %11, 0
%13 = select i1 %12, i32* @FALSE, i32* @TRUE
br label %14
14: ; preds = %8, %2
%15 = phi i32* [ @FALSE, %2 ], [ %13, %8 ]
%16 = load i32, i32* %15
ret i32 %16
}