#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 fun_stub_base_14_stub(int, long long, int);
int /*<<< orphan*/ printf(char *, int, ...);
int fun_stub_base_14_call(int a, long long b, int c) {
  printf("fun_stub_base_14_call:a = %d, b = %lld, c = %d\n", a, b, c);
  int x = fun_stub_base_14_stub(a, b, c);
  printf("fun_stub_base_14_stub return %d\n", x);
  return x;
}


x86 assembly (clang, -O0):
<fun_stub_base_14_call>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x10(%rbp),%rdx
mov    -0x14(%rbp),%ecx
lea    0xebd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1040 <fun_stub_base_14_stub@plt>
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%esi
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fun_stub_base_14_call>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%r14d
mov    %rsi,%rbx
mov    %edi,%ebp
lea    0xecd(%rip),%rdi
mov    %ebp,%esi
mov    %rbx,%rdx
mov    %r14d,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r14d,%edx
call   1040 <fun_stub_base_14_stub@plt>
mov    %eax,%ebx
lea    0xed8(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %ebx,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [48 x i8] c"fun_stub_base_14_call:a = %d, b = %lld, c = %d\0A\00"
@.str.1 = [33 x i8] c"fun_stub_base_14_stub return %d\0A\00"
define i32 @fun_stub_base_14_call(i32 %0, i64 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i64
%6 = alloca i32
%7 = alloca i32
store i32 %0, i32* %4
store i64 %1, i64* %5
store i32 %2, i32* %6
%8 = load i32, i32* %4
%9 = load i64, i64* %5
%10 = load i32, i32* %6
%11 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i32 %8, i64 %9, i32 %10)
%12 = load i32, i32* %4
%13 = load i64, i64* %5
%14 = load i32, i32* %6
%15 = call i32 @fun_stub_base_14_stub(i32 %12, i64 %13, i32 %14)
store i32 %15, i32* %7
%16 = load i32, i32* %7
%17 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 %16)
%18 = load i32, i32* %7
ret i32 %18
}

LLVM IR (-O2):
@.str = [48 x i8] c"fun_stub_base_14_call:a = %d, b = %lld, c = %d\0A\00"
@.str.1 = [33 x i8] c"fun_stub_base_14_stub return %d\0A\00"
define i32 @fun_stub_base_14_call(i32 %0, i64 %1, i32 %2) {
%4 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i32 %0, i64 %1, i32 %2)
%5 = tail call i32 @fun_stub_base_14_stub(i32 %0, i64 %1, i32 %2)
%6 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 %5)
ret i32 %5
}