#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 */
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
typedef int /*<<< orphan*/ XDR;
struct TYPE_3__ {
  scalar_t__ xp_p2;
  scalar_t__ xp_p1;
};
typedef TYPE_1__ SVCXPRT;

/* Variables and functions */
int /*<<< orphan*/ XDR_DECODE;
int /*<<< orphan*/ XDR_ENCODE;
int /*<<< orphan*/ assert(int);
int /*<<< orphan*/ xdrmem_create(int /*<<< orphan*/ *, char *, int,
                                 int /*<<< orphan*/);
void svcbyz_recycle(SVCXPRT *xpt, char *in, int in_size, char *out,
                    int out_size) {
  assert(xpt != 0);
  xdrmem_create(((XDR *)((xpt)->xp_p1)), in, in_size, XDR_DECODE);
  xdrmem_create(((XDR *)((xpt)->xp_p2)), out, out_size, XDR_ENCODE);
}


x86 assembly (clang, -O0):
<svcbyz_recycle>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
cmpq   $0x0,-0x8(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    0x2e8d(%rip),%rax
mov    (%rax),%ecx
call   1040 <xdrmem_create@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x24(%rbp),%edx
mov    0x2e61(%rip),%rax
mov    (%rax),%ecx
call   1040 <xdrmem_create@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<svcbyz_recycle>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %r8d,%r14d
mov    %rcx,%r15
mov    %edx,%r12d
mov    %rsi,%rbx
mov    %rdi,%rbp
xor    %edi,%edi
test   %rbp,%rbp
setne  %dil
call   1030 <assert@plt>
mov    0x8(%rbp),%rdi
mov    0x2ea0(%rip),%rax
mov    (%rax),%ecx
mov    %rbx,%rsi
mov    %r12d,%edx
call   1040 <xdrmem_create@plt>
mov    0x0(%rbp),%rdi
mov    0x2e78(%rip),%rax
mov    (%rax),%ecx
mov    %r15,%rsi
mov    %r14d,%edx
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <xdrmem_create@plt>

LLVM IR (-O0):
%struct.TYPE_3__ = type { i64, i64 }
@XDR_DECODE = global i32 0
@XDR_ENCODE = global i32 0
define void @svcbyz_recycle(%struct.TYPE_3__* %0, i8* %1, i32 %2, i8* %3, i32 %4) {
%6 = alloca %struct.TYPE_3__*
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i32
store %struct.TYPE_3__* %0, %struct.TYPE_3__** %6
store i8* %1, i8** %7
store i32 %2, i32* %8
store i8* %3, i8** %9
store i32 %4, i32* %10
%11 = load %struct.TYPE_3__*, %struct.TYPE_3__** %6
%12 = icmp ne %struct.TYPE_3__* %11, null
%13 = zext i1 %12 to i32
%14 = call i32 @assert(i32 %13)
%15 = load %struct.TYPE_3__*, %struct.TYPE_3__** %6
%16 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %15, i32 0, i32 1
%17 = load i64, i64* %16
%18 = inttoptr i64 %17 to i32*
%19 = load i8*, i8** %7
%20 = load i32, i32* %8
%21 = load i32, i32* @XDR_DECODE
%22 = call i32 @xdrmem_create(i32* %18, i8* %19, i32 %20, i32 %21)
%23 = load %struct.TYPE_3__*, %struct.TYPE_3__** %6
%24 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %23, i32 0, i32 0
%25 = load i64, i64* %24
%26 = inttoptr i64 %25 to i32*
%27 = load i8*, i8** %9
%28 = load i32, i32* %10
%29 = load i32, i32* @XDR_ENCODE
%30 = call i32 @xdrmem_create(i32* %26, i8* %27, i32 %28, i32 %29)
ret void
}

LLVM IR (-O2):
%struct.TYPE_3__ = type { i64, i64 }
@XDR_DECODE = global i32 0
@XDR_ENCODE = global i32 0
define void @svcbyz_recycle(%struct.TYPE_3__* %0, i8* %1, i32 %2, i8* %3, i32 %4) {
%6 = icmp ne %struct.TYPE_3__* %0, null
%7 = zext i1 %6 to i32
%8 = tail call i32 @assert(i32 %7)
%9 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i64 0, i32 1
%10 = load i64, i64* %9
%11 = inttoptr i64 %10 to i32*
%12 = load i32, i32* @XDR_DECODE
%13 = tail call i32 @xdrmem_create(i32* %11, i8* %1, i32 %2, i32 %12)
%14 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i64 0, i32 0
%15 = load i64, i64* %14
%16 = inttoptr i64 %15 to i32*
%17 = load i32, i32* @XDR_ENCODE
%18 = tail call i32 @xdrmem_create(i32* %16, i8* %3, i32 %4, i32 %17)
ret void
}