#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*/ arm(char *, int, int, int, int, int, int);
void stern(char *einFeld, int zeilen, int spalten, int z0, int s0) {
  arm(einFeld, zeilen, spalten, z0, s0, -1, 0);
  arm(einFeld, zeilen, spalten, z0, s0, +1, 0);
  arm(einFeld, zeilen, spalten, z0, s0, 0, +1);
  arm(einFeld, zeilen, spalten, z0, s0, 0, -1);
  arm(einFeld, zeilen, spalten, z0, s0, -1, -1);
  arm(einFeld, zeilen, spalten, z0, s0, +1, +1);
  arm(einFeld, zeilen, spalten, z0, s0, -1, +1);
  arm(einFeld, zeilen, spalten, z0, s0, +1, -1);
}


x86 assembly (clang, -O0):
<stern>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8d,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x18(%rbp),%r8d
mov    $0xffffffff,%r9d
xor    %eax,%eax
movl   $0x0,(%rsp)
call   1030 <arm@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x18(%rbp),%r8d
mov    $0x1,%r9d
xor    %eax,%eax
movl   $0x0,(%rsp)
call   1030 <arm@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x18(%rbp),%r8d
xor    %r9d,%r9d
movl   $0x1,(%rsp)
call   1030 <arm@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x18(%rbp),%r8d
xor    %r9d,%r9d
movl   $0xffffffff,(%rsp)
call   1030 <arm@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x18(%rbp),%r8d
mov    $0xffffffff,%r9d
movl   $0xffffffff,(%rsp)
call   1030 <arm@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x18(%rbp),%r8d
mov    $0x1,%r9d
movl   $0x1,(%rsp)
call   1030 <arm@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x18(%rbp),%r8d
mov    $0xffffffff,%r9d
movl   $0x1,(%rsp)
call   1030 <arm@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x18(%rbp),%r8d
mov    $0x1,%r9d
movl   $0xffffffff,(%rsp)
call   1030 <arm@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stern>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x10,%rsp
mov    %r8d,%r14d
mov    %ecx,%r15d
mov    %edx,%r12d
mov    %esi,%ebp
mov    %rdi,%rbx
movl   $0x0,(%rsp)
mov    $0xffffffff,%r9d
call   1030 <arm@plt>
movl   $0x0,(%rsp)
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %r12d,%edx
mov    %r15d,%ecx
mov    %r14d,%r8d
mov    $0x1,%r9d
call   1030 <arm@plt>
movl   $0x1,(%rsp)
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %r12d,%edx
mov    %r15d,%ecx
mov    %r14d,%r8d
xor    %r9d,%r9d
call   1030 <arm@plt>
movl   $0xffffffff,(%rsp)
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %r12d,%edx
mov    %r15d,%ecx
mov    %r14d,%r8d
xor    %r9d,%r9d
call   1030 <arm@plt>
movl   $0xffffffff,(%rsp)
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %r12d,%edx
mov    %r15d,%ecx
mov    %r14d,%r8d
mov    $0xffffffff,%r9d
call   1030 <arm@plt>
movl   $0x1,(%rsp)
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %r12d,%edx
mov    %r15d,%ecx
mov    %r14d,%r8d
mov    $0x1,%r9d
call   1030 <arm@plt>
movl   $0x1,(%rsp)
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %r12d,%edx
mov    %r15d,%ecx
mov    %r14d,%r8d
mov    $0xffffffff,%r9d
call   1030 <arm@plt>
movl   $0xffffffff,(%rsp)
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %r12d,%edx
mov    %r15d,%ecx
mov    %r14d,%r8d
mov    $0x1,%r9d
call   1030 <arm@plt>
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @stern(i8* %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i8* %0, i8** %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i32 %4, i32* %10
%11 = load i8*, i8** %6
%12 = load i32, i32* %7
%13 = load i32, i32* %8
%14 = load i32, i32* %9
%15 = load i32, i32* %10
%16 = call i32 @arm(i8* %11, i32 %12, i32 %13, i32 %14, i32 %15, i32 -1, i32 0)
%17 = load i8*, i8** %6
%18 = load i32, i32* %7
%19 = load i32, i32* %8
%20 = load i32, i32* %9
%21 = load i32, i32* %10
%22 = call i32 @arm(i8* %17, i32 %18, i32 %19, i32 %20, i32 %21, i32 1, i32 0)
%23 = load i8*, i8** %6
%24 = load i32, i32* %7
%25 = load i32, i32* %8
%26 = load i32, i32* %9
%27 = load i32, i32* %10
%28 = call i32 @arm(i8* %23, i32 %24, i32 %25, i32 %26, i32 %27, i32 0, i32 1)
%29 = load i8*, i8** %6
%30 = load i32, i32* %7
%31 = load i32, i32* %8
%32 = load i32, i32* %9
%33 = load i32, i32* %10
%34 = call i32 @arm(i8* %29, i32 %30, i32 %31, i32 %32, i32 %33, i32 0, i32 -1)
%35 = load i8*, i8** %6
%36 = load i32, i32* %7
%37 = load i32, i32* %8
%38 = load i32, i32* %9
%39 = load i32, i32* %10
%40 = call i32 @arm(i8* %35, i32 %36, i32 %37, i32 %38, i32 %39, i32 -1, i32 -1)
%41 = load i8*, i8** %6
%42 = load i32, i32* %7
%43 = load i32, i32* %8
%44 = load i32, i32* %9
%45 = load i32, i32* %10
%46 = call i32 @arm(i8* %41, i32 %42, i32 %43, i32 %44, i32 %45, i32 1, i32 1)
%47 = load i8*, i8** %6
%48 = load i32, i32* %7
%49 = load i32, i32* %8
%50 = load i32, i32* %9
%51 = load i32, i32* %10
%52 = call i32 @arm(i8* %47, i32 %48, i32 %49, i32 %50, i32 %51, i32 -1, i32 1)
%53 = load i8*, i8** %6
%54 = load i32, i32* %7
%55 = load i32, i32* %8
%56 = load i32, i32* %9
%57 = load i32, i32* %10
%58 = call i32 @arm(i8* %53, i32 %54, i32 %55, i32 %56, i32 %57, i32 1, i32 -1)
ret void
}

LLVM IR (-O2):
define void @stern(i8* %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = tail call i32 @arm(i8* %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 -1, i32 0)
%7 = tail call i32 @arm(i8* %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 1, i32 0)
%8 = tail call i32 @arm(i8* %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 0, i32 1)
%9 = tail call i32 @arm(i8* %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 0, i32 -1)
%10 = tail call i32 @arm(i8* %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 -1, i32 -1)
%11 = tail call i32 @arm(i8* %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 1, i32 1)
%12 = tail call i32 @arm(i8* %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 -1, i32 1)
%13 = tail call i32 @arm(i8* %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 1, i32 -1)
ret void
}