#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 per_dev_info {
  int dummy;
};
struct per_cpu_info {
  int dummy;
};
struct blk_io_trace {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ log_track_complete(struct per_dev_info *,
                                      struct blk_io_trace *);
int /*<<< orphan*/ process_fmt(char *, struct per_cpu_info *,
                               struct blk_io_trace *, int /*<<< orphan*/,
                               int /*<<< orphan*/, int /*<<< orphan*/ *);
void log_complete(struct per_dev_info *pdi, struct per_cpu_info *pci,
                  struct blk_io_trace *t, char *act) {
  process_fmt(act, pci, t, log_track_complete(pdi, t), 0, NULL);
}


x86 assembly (clang, -O0):
<log_complete>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1030 <log_track_complete@plt>
mov    -0x38(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    -0x28(%rbp),%rdx
mov    %eax,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
mov    %eax,%r9d
call   1040 <process_fmt@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<log_complete>:
push   %r15
push   %r14
push   %rbx
mov    %rcx,%r14
mov    %rdx,%rbx
mov    %rsi,%r15
mov    %rdx,%rsi
call   1030 <log_track_complete@plt>
mov    %r14,%rdi
mov    %r15,%rsi
mov    %rbx,%rdx
mov    %eax,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
pop    %rbx
pop    %r14
pop    %r15
jmp    1040 <process_fmt@plt>

LLVM IR (-O0):
%struct.per_dev_info = type { i32 }
%struct.per_cpu_info = type { i32 }
%struct.blk_io_trace = type { i32 }
define void @log_complete(%struct.per_dev_info* %0, %struct.per_cpu_info* %1, %struct.blk_io_trace* %2, i8* %3) {
%5 = alloca %struct.per_dev_info*
%6 = alloca %struct.per_cpu_info*
%7 = alloca %struct.blk_io_trace*
%8 = alloca i8*
store %struct.per_dev_info* %0, %struct.per_dev_info** %5
store %struct.per_cpu_info* %1, %struct.per_cpu_info** %6
store %struct.blk_io_trace* %2, %struct.blk_io_trace** %7
store i8* %3, i8** %8
%9 = load i8*, i8** %8
%10 = load %struct.per_cpu_info*, %struct.per_cpu_info** %6
%11 = load %struct.blk_io_trace*, %struct.blk_io_trace** %7
%12 = load %struct.per_dev_info*, %struct.per_dev_info** %5
%13 = load %struct.blk_io_trace*, %struct.blk_io_trace** %7
%14 = call i32 @log_track_complete(%struct.per_dev_info* %12, %struct.blk_io_trace* %13)
%15 = call i32 @process_fmt(i8* %9, %struct.per_cpu_info* %10, %struct.blk_io_trace* %11, i32 %14, i32 0, i32* null)
ret void
}

LLVM IR (-O2):
%struct.per_dev_info = type { i32 }
%struct.per_cpu_info = type { i32 }
%struct.blk_io_trace = type { i32 }
define void @log_complete(%struct.per_dev_info* %0, %struct.per_cpu_info* %1, %struct.blk_io_trace* %2, i8* %3) {
%5 = tail call i32 @log_track_complete(%struct.per_dev_info* %0, %struct.blk_io_trace* %2)
%6 = tail call i32 @process_fmt(i8* %3, %struct.per_cpu_info* %1, %struct.blk_io_trace* %2, i32 %5, i32 0, i32* null)
ret void
}