#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 __mm(int, int, int);
int mm(int e1, int e2, int e3, int e4, int i1, int i2, int i3, int i4, int c) {
  c = __mm(e1, i1, c);
  c = __mm(e2, i2, c);
  c = __mm(e3, i3, c);
  c = __mm(e4, i4, c);
  return (c);
}


x86 assembly (clang, -O0):
<mm>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    %r9d,-0x18(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x14(%rbp),%esi
mov    0x20(%rbp),%edx
call   1030 <__mm@plt>
mov    %eax,0x20(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x18(%rbp),%esi
mov    0x20(%rbp),%edx
call   1030 <__mm@plt>
mov    %eax,0x20(%rbp)
mov    -0xc(%rbp),%edi
mov    0x10(%rbp),%esi
mov    0x20(%rbp),%edx
call   1030 <__mm@plt>
mov    %eax,0x20(%rbp)
mov    -0x10(%rbp),%edi
mov    0x18(%rbp),%esi
mov    0x20(%rbp),%edx
call   1030 <__mm@plt>
mov    %eax,0x20(%rbp)
mov    0x20(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mm>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9d,%ebx
mov    %ecx,%r14d
mov    %edx,%r15d
mov    %esi,%ebp
mov    0x48(%rsp),%r12d
mov    0x40(%rsp),%r13d
mov    0x50(%rsp),%edx
mov    %r8d,%esi
call   1030 <__mm@plt>
mov    %ebp,%edi
mov    %ebx,%esi
mov    %eax,%edx
call   1030 <__mm@plt>
mov    %r15d,%edi
mov    %r13d,%esi
mov    %eax,%edx
call   1030 <__mm@plt>
mov    %r14d,%edi
mov    %r12d,%esi
mov    %eax,%edx
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <__mm@plt>

LLVM IR (-O0):
define i32 @mm(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8) {
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
store i32 %0, i32* %10
store i32 %1, i32* %11
store i32 %2, i32* %12
store i32 %3, i32* %13
store i32 %4, i32* %14
store i32 %5, i32* %15
store i32 %6, i32* %16
store i32 %7, i32* %17
store i32 %8, i32* %18
%19 = load i32, i32* %10
%20 = load i32, i32* %14
%21 = load i32, i32* %18
%22 = call i32 @__mm(i32 %19, i32 %20, i32 %21)
store i32 %22, i32* %18
%23 = load i32, i32* %11
%24 = load i32, i32* %15
%25 = load i32, i32* %18
%26 = call i32 @__mm(i32 %23, i32 %24, i32 %25)
store i32 %26, i32* %18
%27 = load i32, i32* %12
%28 = load i32, i32* %16
%29 = load i32, i32* %18
%30 = call i32 @__mm(i32 %27, i32 %28, i32 %29)
store i32 %30, i32* %18
%31 = load i32, i32* %13
%32 = load i32, i32* %17
%33 = load i32, i32* %18
%34 = call i32 @__mm(i32 %31, i32 %32, i32 %33)
store i32 %34, i32* %18
%35 = load i32, i32* %18
ret i32 %35
}

LLVM IR (-O2):
define i32 @mm(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8) {
%10 = tail call i32 @__mm(i32 %0, i32 %4, i32 %8)
%11 = tail call i32 @__mm(i32 %1, i32 %5, i32 %10)
%12 = tail call i32 @__mm(i32 %2, i32 %6, i32 %11)
%13 = tail call i32 @__mm(i32 %3, i32 %7, i32 %12)
ret i32 %13
}