#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_8__ TYPE_3__;
typedef struct TYPE_7__ TYPE_2__;
typedef struct TYPE_6__ TYPE_1__;

/* Type definitions */
struct TYPE_7__ {
  int /*<<< orphan*/ ar_stat;
  int /*<<< orphan*/ ar_verf;
};
struct TYPE_6__ {
  int /*<<< orphan*/ rp_stat;
};
struct rpc_msg {
  TYPE_2__ acpted_rply;
  TYPE_1__ rm_reply;
  int /*<<< orphan*/ rm_direction;
};
struct TYPE_8__ {
  int /*<<< orphan*/ xp_verf;
};
typedef TYPE_3__ SVCXPRT;

/* Variables and functions */
int /*<<< orphan*/ MSG_ACCEPTED;
int /*<<< orphan*/ PROC_UNAVAIL;
int /*<<< orphan*/ REPLY;
int /*<<< orphan*/ SVC_REPLY(TYPE_3__ *, struct rpc_msg *);
void svcerr_noproc(register SVCXPRT *xprt) {
  struct rpc_msg rply;
  rply.rm_direction = REPLY;
  rply.rm_reply.rp_stat = MSG_ACCEPTED;
  rply.acpted_rply.ar_verf = xprt->xp_verf;
  rply.acpted_rply.ar_stat = PROC_UNAVAIL;
  SVC_REPLY(xprt, &rply);
}


x86 assembly (clang, -O0):
<svcerr_noproc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ebd(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0xc(%rbp)
mov    0x2e99(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
mov    0x2e94(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1030 <SVC_REPLY@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<svcerr_noproc>:
sub    $0x18,%rsp
mov    0x2ec5(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x14(%rsp)
mov    0x2ea0(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x10(%rsp)
mov    (%rdi),%eax
mov    %eax,0xc(%rsp)
mov    0x2e9d(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x8(%rsp)
lea    0x8(%rsp),%rsi
call   1030 <SVC_REPLY@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
%struct.TYPE_8__ = type { i32 }
%struct.rpc_msg = type { %struct.TYPE_7__, %struct.TYPE_6__, i32 }
%struct.TYPE_7__ = type { i32, i32 }
%struct.TYPE_6__ = type { i32 }
@REPLY = global i32 0
@MSG_ACCEPTED = global i32 0
@PROC_UNAVAIL = global i32 0
define void @svcerr_noproc(%struct.TYPE_8__* %0) {
%2 = alloca %struct.TYPE_8__*
%3 = alloca %struct.rpc_msg
store %struct.TYPE_8__* %0, %struct.TYPE_8__** %2
%4 = load i32, i32* @REPLY
%5 = getelementptr inbounds %struct.rpc_msg, %struct.rpc_msg* %3, i32 0, i32 2
store i32 %4, i32* %5
%6 = load i32, i32* @MSG_ACCEPTED
%7 = getelementptr inbounds %struct.rpc_msg, %struct.rpc_msg* %3, i32 0, i32 1
%8 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %7, i32 0, i32 0
store i32 %6, i32* %8
%9 = load %struct.TYPE_8__*, %struct.TYPE_8__** %2
%10 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %9, i32 0, i32 0
%11 = load i32, i32* %10
%12 = getelementptr inbounds %struct.rpc_msg, %struct.rpc_msg* %3, i32 0, i32 0
%13 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %12, i32 0, i32 1
store i32 %11, i32* %13
%14 = load i32, i32* @PROC_UNAVAIL
%15 = getelementptr inbounds %struct.rpc_msg, %struct.rpc_msg* %3, i32 0, i32 0
%16 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %15, i32 0, i32 0
store i32 %14, i32* %16
%17 = load %struct.TYPE_8__*, %struct.TYPE_8__** %2
%18 = call i32 @SVC_REPLY(%struct.TYPE_8__* %17, %struct.rpc_msg* %3)
ret void
}

LLVM IR (-O2):
%struct.TYPE_8__ = type { i32 }
%struct.rpc_msg = type { %struct.TYPE_7__, %struct.TYPE_6__, i32 }
%struct.TYPE_7__ = type { i32, i32 }
%struct.TYPE_6__ = type { i32 }
@REPLY = global i32 0
@MSG_ACCEPTED = global i32 0
@PROC_UNAVAIL = global i32 0
define void @svcerr_noproc(%struct.TYPE_8__* %0) {
%2 = alloca %struct.rpc_msg
%3 = bitcast %struct.rpc_msg* %2 to i8*
%4 = load i32, i32* @REPLY
%5 = getelementptr inbounds %struct.rpc_msg, %struct.rpc_msg* %2, i64 0, i32 2
store i32 %4, i32* %5
%6 = load i32, i32* @MSG_ACCEPTED
%7 = getelementptr inbounds %struct.rpc_msg, %struct.rpc_msg* %2, i64 0, i32 1, i32 0
store i32 %6, i32* %7
%8 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %0, i64 0, i32 0
%9 = load i32, i32* %8
%10 = getelementptr inbounds %struct.rpc_msg, %struct.rpc_msg* %2, i64 0, i32 0, i32 1
store i32 %9, i32* %10
%11 = load i32, i32* @PROC_UNAVAIL
%12 = getelementptr inbounds %struct.rpc_msg, %struct.rpc_msg* %2, i64 0, i32 0, i32 0
store i32 %11, i32* %12
%13 = call i32 @SVC_REPLY(%struct.TYPE_8__* %0, %struct.rpc_msg* %2)
ret void
}