#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 ir_remote {
  int dummy;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprint_comment(int /*<<< orphan*/ *,
                                  struct ir_remote const *, char const *);
int /*<<< orphan*/ fprint_remote_foot(int /*<<< orphan*/ *,
                                      struct ir_remote const *);
int /*<<< orphan*/ fprint_remote_head(int /*<<< orphan*/ *,
                                      struct ir_remote const *);
int /*<<< orphan*/ fprint_remote_signals(int /*<<< orphan*/ *,
                                         struct ir_remote const *);
void fprint_remote(FILE *f, const struct ir_remote *rem,
                   const char *commandline) {
  fprint_comment(f, rem, commandline);
  fprint_remote_head(f, rem);
  fprint_remote_signals(f, rem);
  fprint_remote_foot(f, rem);
}


x86 assembly (clang, -O0):
<fprint_remote>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1060 <fprint_comment@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1050 <fprint_remote_head@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <fprint_remote_signals@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <fprint_remote_foot@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fprint_remote>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
call   1060 <fprint_comment@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1050 <fprint_remote_head@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <fprint_remote_signals@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <fprint_remote_foot@plt>

LLVM IR (-O0):
%struct.ir_remote = type { i32 }
define void @fprint_remote(i32* %0, %struct.ir_remote* %1, i8* %2) {
%4 = alloca i32*
%5 = alloca %struct.ir_remote*
%6 = alloca i8*
store i32* %0, i32** %4
store %struct.ir_remote* %1, %struct.ir_remote** %5
store i8* %2, i8** %6
%7 = load i32*, i32** %4
%8 = load %struct.ir_remote*, %struct.ir_remote** %5
%9 = load i8*, i8** %6
%10 = call i32 @fprint_comment(i32* %7, %struct.ir_remote* %8, i8* %9)
%11 = load i32*, i32** %4
%12 = load %struct.ir_remote*, %struct.ir_remote** %5
%13 = call i32 @fprint_remote_head(i32* %11, %struct.ir_remote* %12)
%14 = load i32*, i32** %4
%15 = load %struct.ir_remote*, %struct.ir_remote** %5
%16 = call i32 @fprint_remote_signals(i32* %14, %struct.ir_remote* %15)
%17 = load i32*, i32** %4
%18 = load %struct.ir_remote*, %struct.ir_remote** %5
%19 = call i32 @fprint_remote_foot(i32* %17, %struct.ir_remote* %18)
ret void
}

LLVM IR (-O2):
%struct.ir_remote = type { i32 }
define void @fprint_remote(i32* %0, %struct.ir_remote* %1, i8* %2) {
%4 = tail call i32 @fprint_comment(i32* %0, %struct.ir_remote* %1, i8* %2)
%5 = tail call i32 @fprint_remote_head(i32* %0, %struct.ir_remote* %1)
%6 = tail call i32 @fprint_remote_signals(i32* %0, %struct.ir_remote* %1)
%7 = tail call i32 @fprint_remote_foot(i32* %0, %struct.ir_remote* %1)
ret void
}