#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 */

/* Variables and functions */
int /*<<< orphan*/ IF_NetErrVal();
int /*<<< orphan*/ IF_depth();
int /*<<< orphan*/ IF_netU2S();
int /*<<< orphan*/ IF_stackC_clear();
int /*<<< orphan*/ IF_stackL_clear();
int /*<<< orphan*/ IF_stack_clear();
scalar_t__ noErr();
int /*<<< orphan*/ razErr();
void RemotExecEnd(void) {
  if (noErr()) {
    razErr();
    IF_stack_clear();
    IF_stackL_clear();
    IF_stackC_clear();
    IF_NetErrVal();
  }
  IF_depth();
  IF_netU2S();
  IF_stack_clear();
  IF_stackL_clear();
  IF_stackC_clear();
}


x86 assembly (clang, -O0):
<RemotExecEnd>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1090 <noErr@plt>
cmp    $0x0,%rax
je     11b8 <RemotExecEnd+0x38>
mov    $0x0,%al
call   10a0 <razErr@plt>
mov    $0x0,%al
call   1030 <IF_stack_clear@plt>
mov    $0x0,%al
call   1050 <IF_stackL_clear@plt>
mov    $0x0,%al
call   1040 <IF_stackC_clear@plt>
mov    $0x0,%al
call   1070 <IF_NetErrVal@plt>
mov    $0x0,%al
call   1060 <IF_depth@plt>
mov    $0x0,%al
call   1080 <IF_netU2S@plt>
mov    $0x0,%al
call   1030 <IF_stack_clear@plt>
mov    $0x0,%al
call   1050 <IF_stackL_clear@plt>
mov    $0x0,%al
call   1040 <IF_stackC_clear@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<RemotExecEnd>:
push   %rax
xor    %eax,%eax
call   1090 <noErr@plt>
test   %rax,%rax
je     11b0 <RemotExecEnd+0x30>
xor    %eax,%eax
call   10a0 <razErr@plt>
xor    %eax,%eax
call   1030 <IF_stack_clear@plt>
xor    %eax,%eax
call   1050 <IF_stackL_clear@plt>
xor    %eax,%eax
call   1040 <IF_stackC_clear@plt>
xor    %eax,%eax
call   1070 <IF_NetErrVal@plt>
xor    %eax,%eax
call   1060 <IF_depth@plt>
xor    %eax,%eax
call   1080 <IF_netU2S@plt>
xor    %eax,%eax
call   1030 <IF_stack_clear@plt>
xor    %eax,%eax
call   1050 <IF_stackL_clear@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <IF_stackC_clear@plt>

LLVM IR (-O0):
define void @RemotExecEnd() {
%1 = call i64 (...) @noErr()
%2 = icmp ne i64 %1, 0
br i1 %2, label %3, label %9
3: ; preds = %0
%4 = call i32 (...) @razErr()
%5 = call i32 (...) @IF_stack_clear()
%6 = call i32 (...) @IF_stackL_clear()
%7 = call i32 (...) @IF_stackC_clear()
%8 = call i32 (...) @IF_NetErrVal()
br label %9
9: ; preds = %3, %0
%10 = call i32 (...) @IF_depth()
%11 = call i32 (...) @IF_netU2S()
%12 = call i32 (...) @IF_stack_clear()
%13 = call i32 (...) @IF_stackL_clear()
%14 = call i32 (...) @IF_stackC_clear()
ret void
}

LLVM IR (-O2):
define void @RemotExecEnd() {
%1 = tail call i64 (...) @noErr()
%2 = icmp eq i64 %1, 0
br i1 %2, label %9, label %3
3: ; preds = %0
%4 = tail call i32 (...) @razErr()
%5 = tail call i32 (...) @IF_stack_clear()
%6 = tail call i32 (...) @IF_stackL_clear()
%7 = tail call i32 (...) @IF_stackC_clear()
%8 = tail call i32 (...) @IF_NetErrVal()
br label %9
9: ; preds = %3, %0
%10 = tail call i32 (...) @IF_depth()
%11 = tail call i32 (...) @IF_netU2S()
%12 = tail call i32 (...) @IF_stack_clear()
%13 = tail call i32 (...) @IF_stackL_clear()
%14 = tail call i32 (...) @IF_stackC_clear()
ret void
}