_Bool pruefe_siegesbedingung_diagonal(int zeilen, int spalten,
                                      int spielfeld[zeilen][spalten],
                                      int laenge_linie, int spielstein) {
  _Bool gewonnen = 0;
  gewonnen = pruefe_siegesbedingung_diagonal_luro(zeilen, spalten, spielfeld,
                                                  laenge_linie, spielstein);
  if (gewonnen == 0)
    gewonnen = pruefe_siegesbedingung_diagonal_loru(zeilen, spalten, spielfeld,
                                                    laenge_linie, spielstein);
  return gewonnen;
}


x86 assembly (clang, -O0):
<pruefe_siegesbedingung_diagonal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8d,-0x18(%rbp)
movb   $0x0,-0x19(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%rdx
mov    -0x14(%rbp),%ecx
mov    -0x18(%rbp),%r8d
mov    $0x0,%al
call   1040 <pruefe_siegesbedingung_diagonal_luro@plt>
cmp    $0x0,%eax
setne  %al
and    $0x1,%al
mov    %al,-0x19(%rbp)
mov    -0x19(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
cmp    $0x0,%eax
jne    1194 <pruefe_siegesbedingung_diagonal+0x74>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%rdx
mov    -0x14(%rbp),%ecx
mov    -0x18(%rbp),%r8d
mov    $0x0,%al
call   1030 <pruefe_siegesbedingung_diagonal_loru@plt>
cmp    $0x0,%eax
setne  %al
and    $0x1,%al
mov    %al,-0x19(%rbp)
mov    -0x19(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pruefe_siegesbedingung_diagonal>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %r8d,%r14d
mov    %ecx,%r15d
mov    %rdx,%r12
mov    %esi,%ebp
mov    %edi,%ebx
xor    %eax,%eax
call   1040 <pruefe_siegesbedingung_diagonal_luro@plt>
mov    %eax,%ecx
mov    $0x1,%al
test   %ecx,%ecx
jne    115d <pruefe_siegesbedingung_diagonal+0x3d>
mov    %ebx,%edi
mov    %ebp,%esi
mov    %r12,%rdx
mov    %r15d,%ecx
mov    %r14d,%r8d
xor    %eax,%eax
call   1030 <pruefe_siegesbedingung_diagonal_loru@plt>
test   %eax,%eax
setne  %al
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define zeroext i1 @pruefe_siegesbedingung_diagonal(i32 %0, i32 %1, i32* %2, i32 %3, i32 %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i8
store i32 %0, i32* %6
store i32 %1, i32* %7
store i32* %2, i32** %8
store i32 %3, i32* %9
store i32 %4, i32* %10
%12 = load i32, i32* %6
%13 = zext i32 %12 to i64
%14 = load i32, i32* %7
%15 = zext i32 %14 to i64
store i8 0, i8* %11
%16 = load i32, i32* %6
%17 = load i32, i32* %7
%18 = load i32*, i32** %8
%19 = load i32, i32* %9
%20 = load i32, i32* %10
%21 = call i32 (i32, i32, i32*, i32, i32, ...) bitcast (i32 (...)* @pruefe_siegesbedingung_diagonal_luro to i32 (i32, i32, i32*, i32, i32, ...)*)(i32 %16, i32 %17, i32* %18, i32 %19, i32 %20)
%22 = icmp ne i32 %21, 0
%23 = zext i1 %22 to i8
store i8 %23, i8* %11
%24 = load i8, i8* %11
%25 = trunc i8 %24 to i1
%26 = zext i1 %25 to i32
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %37
28: ; preds = %5
%29 = load i32, i32* %6
%30 = load i32, i32* %7
%31 = load i32*, i32** %8
%32 = load i32, i32* %9
%33 = load i32, i32* %10
%34 = call i32 (i32, i32, i32*, i32, i32, ...) bitcast (i32 (...)* @pruefe_siegesbedingung_diagonal_loru to i32 (i32, i32, i32*, i32, i32, ...)*)(i32 %29, i32 %30, i32* %31, i32 %32, i32 %33)
%35 = icmp ne i32 %34, 0
%36 = zext i1 %35 to i8
store i8 %36, i8* %11
br label %37
37: ; preds = %28, %5
%38 = load i8, i8* %11
%39 = trunc i8 %38 to i1
ret i1 %39
}

LLVM IR (-O2):
define zeroext i1 @pruefe_siegesbedingung_diagonal(i32 %0, i32 %1, i32* %2, i32 %3, i32 %4) {
%6 = tail call i32 (i32, i32, i32*, i32, i32, ...) bitcast (i32 (...)* @pruefe_siegesbedingung_diagonal_luro to i32 (i32, i32, i32*, i32, i32, ...)*)(i32 %0, i32 %1, i32* %2, i32 %3, i32 %4)
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %5
%9 = tail call i32 (i32, i32, i32*, i32, i32, ...) bitcast (i32 (...)* @pruefe_siegesbedingung_diagonal_loru to i32 (i32, i32, i32*, i32, i32, ...)*)(i32 %0, i32 %1, i32* %2, i32 %3, i32 %4)
%10 = icmp ne i32 %9, 0
br label %11
11: ; preds = %8, %5
%12 = phi i1 [ %10, %8 ], [ true, %5 ]
ret i1 %12
}