#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 IPChecksum(int, unsigned char const *, int);
int /*<<< orphan*/ memcpy2(unsigned char *, unsigned char const *, int);
int EthernetVerifyChecksums(const unsigned char *packet, int length) {
  int checksum, length2;
  unsigned char pseudo[12];
  if (packet[12 + 1] == 0x00) {
    checksum = IPChecksum(0xffff, packet + 14, 20);
    if (checksum)
      return -1;
    if (packet[23] == 0x01) {
      checksum = IPChecksum(0xffff, packet + 34, length - 34);
    } else if (packet[23] == 0x11) {
      if (packet[40] == 0 && packet[40 + 1] == 0)
        return 0;
      memcpy2(pseudo + 0, packet + 26, 4);
      memcpy2(pseudo + 4, packet + 30, 4);
      pseudo[8] = 0;
      pseudo[9] = packet[23];
      memcpy2(pseudo + 10, packet + 38, 2);
      checksum = IPChecksum(0xffff, pseudo, 12);
      length2 = (packet[38] << 8) + packet[38 + 1];
      checksum = IPChecksum(checksum, packet + 34, length2);
    } else if (packet[23] == 0x06) {
      memcpy2(pseudo + 0, packet + 26, 4);
      memcpy2(pseudo + 4, packet + 30, 4);
      pseudo[8] = 0;
      pseudo[9] = packet[23];
      length = (packet[16] << 8) + packet[16 + 1];
      length2 = length - 20;
      pseudo[10] = (unsigned char)(length2 >> 8);
      pseudo[10 + 1] = (unsigned char)length2;
      checksum = IPChecksum(0xffff, pseudo, 12);
      checksum = IPChecksum(checksum, packet + 34, length2);
    }
    if (checksum)
      return -1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<EthernetVerifyChecksums>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    -0x10(%rbp),%rax
movzbl 0xd(%rax),%eax
cmp    $0x0,%eax
jne    1351 <EthernetVerifyChecksums+0x231>
mov    -0x10(%rbp),%rsi
add    $0xe,%rsi
mov    $0xffff,%edi
mov    $0x14,%edx
call   1040 <IPChecksum@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
je     1170 <EthernetVerifyChecksums+0x50>
movl   $0xffffffff,-0x4(%rbp)
jmp    1358 <EthernetVerifyChecksums+0x238>
mov    -0x10(%rbp),%rax
movzbl 0x17(%rax),%eax
cmp    $0x1,%eax
jne    11a1 <EthernetVerifyChecksums+0x81>
mov    -0x10(%rbp),%rsi
add    $0x22,%rsi
mov    -0x14(%rbp),%edx
sub    $0x22,%edx
mov    $0xffff,%edi
call   1040 <IPChecksum@plt>
mov    %eax,-0x18(%rbp)
jmp    1336 <EthernetVerifyChecksums+0x216>
mov    -0x10(%rbp),%rax
movzbl 0x17(%rax),%eax
cmp    $0x11,%eax
jne    1281 <EthernetVerifyChecksums+0x161>
mov    -0x10(%rbp),%rax
movzbl 0x28(%rax),%eax
cmp    $0x0,%eax
jne    11e0 <EthernetVerifyChecksums+0xc0>
mov    -0x10(%rbp),%rax
movzbl 0x29(%rax),%eax
cmp    $0x0,%eax
jne    11e0 <EthernetVerifyChecksums+0xc0>
movl   $0x0,-0x4(%rbp)
jmp    1358 <EthernetVerifyChecksums+0x238>
lea    -0x28(%rbp),%rdi
mov    -0x10(%rbp),%rsi
add    $0x1a,%rsi
mov    $0x4,%edx
call   1030 <memcpy2@plt>
lea    -0x28(%rbp),%rdi
add    $0x4,%rdi
mov    -0x10(%rbp),%rsi
add    $0x1e,%rsi
mov    $0x4,%edx
call   1030 <memcpy2@plt>
movb   $0x0,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    0x17(%rax),%al
mov    %al,-0x1f(%rbp)
lea    -0x28(%rbp),%rdi
add    $0xa,%rdi
mov    -0x10(%rbp),%rsi
add    $0x26,%rsi
mov    $0x2,%edx
call   1030 <memcpy2@plt>
lea    -0x28(%rbp),%rsi
mov    $0xffff,%edi
mov    $0xc,%edx
call   1040 <IPChecksum@plt>
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movzbl 0x26(%rax),%eax
shl    $0x8,%eax
mov    -0x10(%rbp),%rcx
movzbl 0x27(%rcx),%ecx
add    %ecx,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%edi
mov    -0x10(%rbp),%rsi
add    $0x22,%rsi
mov    -0x1c(%rbp),%edx
call   1040 <IPChecksum@plt>
mov    %eax,-0x18(%rbp)
jmp    1331 <EthernetVerifyChecksums+0x211>
mov    -0x10(%rbp),%rax
movzbl 0x17(%rax),%eax
cmp    $0x6,%eax
jne    132c <EthernetVerifyChecksums+0x20c>
lea    -0x28(%rbp),%rdi
mov    -0x10(%rbp),%rsi
add    $0x1a,%rsi
mov    $0x4,%edx
call   1030 <memcpy2@plt>
lea    -0x28(%rbp),%rdi
add    $0x4,%rdi
mov    -0x10(%rbp),%rsi
add    $0x1e,%rsi
mov    $0x4,%edx
call   1030 <memcpy2@plt>
movb   $0x0,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    0x17(%rax),%al
mov    %al,-0x1f(%rbp)
mov    -0x10(%rbp),%rax
movzbl 0x10(%rax),%eax
shl    $0x8,%eax
mov    -0x10(%rbp),%rcx
movzbl 0x11(%rcx),%ecx
add    %ecx,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
sub    $0x14,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
sar    $0x8,%eax
mov    %al,-0x1e(%rbp)
mov    -0x1c(%rbp),%eax
mov    %al,-0x1d(%rbp)
lea    -0x28(%rbp),%rsi
mov    $0xffff,%edi
mov    $0xc,%edx
call   1040 <IPChecksum@plt>
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%edi
mov    -0x10(%rbp),%rsi
add    $0x22,%rsi
mov    -0x1c(%rbp),%edx
call   1040 <IPChecksum@plt>
mov    %eax,-0x18(%rbp)
jmp    1331 <EthernetVerifyChecksums+0x211>
jmp    1336 <EthernetVerifyChecksums+0x216>
cmpl   $0x0,-0x18(%rbp)
je     134c <EthernetVerifyChecksums+0x22c>
movl   $0xffffffff,-0x4(%rbp)
jmp    1358 <EthernetVerifyChecksums+0x238>
jmp    1351 <EthernetVerifyChecksums+0x231>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<EthernetVerifyChecksums>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x18,%rsp
cmpb   $0x0,0xd(%rdi)
je     1138 <EthernetVerifyChecksums+0x18>
xor    %r14d,%r14d
jmp    1272 <EthernetVerifyChecksums+0x152>
mov    %esi,%ebp
mov    %rdi,%rbx
lea    0xe(%rdi),%rsi
mov    $0xffff,%edi
mov    $0x14,%edx
call   1040 <IPChecksum@plt>
mov    $0xffffffff,%r14d
test   %eax,%eax
jne    1272 <EthernetVerifyChecksums+0x152>
mov    0x17(%rbx),%al
cmp    $0x11,%al
je     1182 <EthernetVerifyChecksums+0x62>
cmp    $0x6,%al
je     11fc <EthernetVerifyChecksums+0xdc>
cmp    $0x1,%al
jne    1130 <EthernetVerifyChecksums+0x10>
add    $0x22,%rbx
add    $0xffffffde,%ebp
mov    $0xffff,%edi
jmp    1260 <EthernetVerifyChecksums+0x140>
cmpb   $0x0,0x28(%rbx)
jne    118e <EthernetVerifyChecksums+0x6e>
cmpb   $0x0,0x29(%rbx)
je     1130 <EthernetVerifyChecksums+0x10>
lea    0x1a(%rbx),%rsi
lea    0xc(%rsp),%rbp
mov    %rbp,%rdi
mov    $0x4,%edx
call   1030 <memcpy2@plt>
lea    0x10(%rsp),%rdi
lea    0x1e(%rbx),%rsi
mov    $0x4,%edx
call   1030 <memcpy2@plt>
movb   $0x0,0x14(%rsp)
mov    0x17(%rbx),%al
mov    %al,0x15(%rsp)
lea    0x16(%rsp),%rdi
lea    0x26(%rbx),%rsi
mov    $0x2,%edx
call   1030 <memcpy2@plt>
mov    $0xffff,%edi
mov    %rbp,%rsi
mov    $0xc,%edx
call   1040 <IPChecksum@plt>
movzwl 0x26(%rbx),%edx
shl    $0x10,%edx
bswap  %edx
add    $0x22,%rbx
mov    %eax,%edi
mov    %rbx,%rsi
jmp    1265 <EthernetVerifyChecksums+0x145>
lea    0x1a(%rbx),%rsi
lea    0xc(%rsp),%r15
mov    %r15,%rdi
mov    $0x4,%edx
call   1030 <memcpy2@plt>
lea    0x10(%rsp),%rdi
lea    0x1e(%rbx),%rsi
mov    $0x4,%edx
call   1030 <memcpy2@plt>
movb   $0x0,0x14(%rsp)
mov    0x17(%rbx),%al
mov    %al,0x15(%rsp)
movzwl 0x10(%rbx),%ebp
shl    $0x10,%ebp
bswap  %ebp
add    $0xffffffec,%ebp
mov    %ebp,%eax
rol    $0x8,%ax
mov    %ax,0x16(%rsp)
mov    $0xffff,%edi
mov    %r15,%rsi
mov    $0xc,%edx
call   1040 <IPChecksum@plt>
add    $0x22,%rbx
mov    %eax,%edi
mov    %rbx,%rsi
mov    %ebp,%edx
call   1040 <IPChecksum@plt>
test   %eax,%eax
je     1130 <EthernetVerifyChecksums+0x10>
mov    %r14d,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @EthernetVerifyChecksums(i8* %0, i32 %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca [12 x i8]
store i8* %0, i8** %4
store i32 %1, i32* %5
%9 = load i8*, i8** %4
%10 = getelementptr inbounds i8, i8* %9, i64 13
%11 = load i8, i8* %10
%12 = zext i8 %11 to i32
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %145
14: ; preds = %2
%15 = load i8*, i8** %4
%16 = getelementptr inbounds i8, i8* %15, i64 14
%17 = call i32 @IPChecksum(i32 65535, i8* %16, i32 20)
store i32 %17, i32* %6
%18 = load i32, i32* %6
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %21
20: ; preds = %14
store i32 -1, i32* %3
br label %146
21: ; preds = %14
%22 = load i8*, i8** %4
%23 = getelementptr inbounds i8, i8* %22, i64 23
%24 = load i8, i8* %23
%25 = zext i8 %24 to i32
%26 = icmp eq i32 %25, 1
br i1 %26, label %27, label %33
27: ; preds = %21
%28 = load i8*, i8** %4
%29 = getelementptr inbounds i8, i8* %28, i64 34
%30 = load i32, i32* %5
%31 = sub nsw i32 %30, 34
%32 = call i32 @IPChecksum(i32 65535, i8* %29, i32 %31)
store i32 %32, i32* %6
br label %140
33: ; preds = %21
%34 = load i8*, i8** %4
%35 = getelementptr inbounds i8, i8* %34, i64 23
%36 = load i8, i8* %35
%37 = zext i8 %36 to i32
%38 = icmp eq i32 %37, 17
br i1 %38, label %39, label %90
39: ; preds = %33
%40 = load i8*, i8** %4
%41 = getelementptr inbounds i8, i8* %40, i64 40
%42 = load i8, i8* %41
%43 = zext i8 %42 to i32
%44 = icmp eq i32 %43, 0
br i1 %44, label %45, label %52
45: ; preds = %39
%46 = load i8*, i8** %4
%47 = getelementptr inbounds i8, i8* %46, i64 41
%48 = load i8, i8* %47
%49 = zext i8 %48 to i32
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %52
51: ; preds = %45
store i32 0, i32* %3
br label %146
52: ; preds = %45, %39
%53 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 0
%54 = getelementptr inbounds i8, i8* %53, i64 0
%55 = load i8*, i8** %4
%56 = getelementptr inbounds i8, i8* %55, i64 26
%57 = call i32 @memcpy2(i8* %54, i8* %56, i32 4)
%58 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 0
%59 = getelementptr inbounds i8, i8* %58, i64 4
%60 = load i8*, i8** %4
%61 = getelementptr inbounds i8, i8* %60, i64 30
%62 = call i32 @memcpy2(i8* %59, i8* %61, i32 4)
%63 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 8
store i8 0, i8* %63
%64 = load i8*, i8** %4
%65 = getelementptr inbounds i8, i8* %64, i64 23
%66 = load i8, i8* %65
%67 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 9
store i8 %66, i8* %67
%68 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 0
%69 = getelementptr inbounds i8, i8* %68, i64 10
%70 = load i8*, i8** %4
%71 = getelementptr inbounds i8, i8* %70, i64 38
%72 = call i32 @memcpy2(i8* %69, i8* %71, i32 2)
%73 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 0
%74 = call i32 @IPChecksum(i32 65535, i8* %73, i32 12)
store i32 %74, i32* %6
%75 = load i8*, i8** %4
%76 = getelementptr inbounds i8, i8* %75, i64 38
%77 = load i8, i8* %76
%78 = zext i8 %77 to i32
%79 = shl i32 %78, 8
%80 = load i8*, i8** %4
%81 = getelementptr inbounds i8, i8* %80, i64 39
%82 = load i8, i8* %81
%83 = zext i8 %82 to i32
%84 = add nsw i32 %79, %83
store i32 %84, i32* %7
%85 = load i32, i32* %6
%86 = load i8*, i8** %4
%87 = getelementptr inbounds i8, i8* %86, i64 34
%88 = load i32, i32* %7
%89 = call i32 @IPChecksum(i32 %85, i8* %87, i32 %88)
store i32 %89, i32* %6
br label %139
90: ; preds = %33
%91 = load i8*, i8** %4
%92 = getelementptr inbounds i8, i8* %91, i64 23
%93 = load i8, i8* %92
%94 = zext i8 %93 to i32
%95 = icmp eq i32 %94, 6
br i1 %95, label %96, label %138
96: ; preds = %90
%97 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 0
%98 = getelementptr inbounds i8, i8* %97, i64 0
%99 = load i8*, i8** %4
%100 = getelementptr inbounds i8, i8* %99, i64 26
%101 = call i32 @memcpy2(i8* %98, i8* %100, i32 4)
%102 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 0
%103 = getelementptr inbounds i8, i8* %102, i64 4
%104 = load i8*, i8** %4
%105 = getelementptr inbounds i8, i8* %104, i64 30
%106 = call i32 @memcpy2(i8* %103, i8* %105, i32 4)
%107 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 8
store i8 0, i8* %107
%108 = load i8*, i8** %4
%109 = getelementptr inbounds i8, i8* %108, i64 23
%110 = load i8, i8* %109
%111 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 9
store i8 %110, i8* %111
%112 = load i8*, i8** %4
%113 = getelementptr inbounds i8, i8* %112, i64 16
%114 = load i8, i8* %113
%115 = zext i8 %114 to i32
%116 = shl i32 %115, 8
%117 = load i8*, i8** %4
%118 = getelementptr inbounds i8, i8* %117, i64 17
%119 = load i8, i8* %118
%120 = zext i8 %119 to i32
%121 = add nsw i32 %116, %120
store i32 %121, i32* %5
%122 = load i32, i32* %5
%123 = sub nsw i32 %122, 20
store i32 %123, i32* %7
%124 = load i32, i32* %7
%125 = ashr i32 %124, 8
%126 = trunc i32 %125 to i8
%127 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 10
store i8 %126, i8* %127
%128 = load i32, i32* %7
%129 = trunc i32 %128 to i8
%130 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 11
store i8 %129, i8* %130
%131 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 0
%132 = call i32 @IPChecksum(i32 65535, i8* %131, i32 12)
store i32 %132, i32* %6
%133 = load i32, i32* %6
%134 = load i8*, i8** %4
%135 = getelementptr inbounds i8, i8* %134, i64 34
%136 = load i32, i32* %7
%137 = call i32 @IPChecksum(i32 %133, i8* %135, i32 %136)
store i32 %137, i32* %6
br label %138
138: ; preds = %96, %90
br label %139
139: ; preds = %138, %52
br label %140
140: ; preds = %139, %27
%141 = load i32, i32* %6
%142 = icmp ne i32 %141, 0
br i1 %142, label %143, label %144
143: ; preds = %140
store i32 -1, i32* %3
br label %146
144: ; preds = %140
br label %145
145: ; preds = %144, %2
store i32 0, i32* %3
br label %146
146: ; preds = %145, %143, %51, %20
%147 = load i32, i32* %3
ret i32 %147
}

LLVM IR (-O2):
define i32 @EthernetVerifyChecksums(i8* %0, i32 %1) {
%3 = alloca [12 x i8]
%4 = getelementptr inbounds [12 x i8], [12 x i8]* %3, i64 0, i64 0
%5 = getelementptr inbounds i8, i8* %0, i64 13
%6 = load i8, i8* %5
%7 = icmp eq i8 %6, 0
br i1 %7, label %8, label %78
8: ; preds = %2
%9 = getelementptr inbounds i8, i8* %0, i64 14
%10 = tail call i32 @IPChecksum(i32 65535, i8* %9, i32 20)
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %79
12: ; preds = %8
%13 = getelementptr inbounds i8, i8* %0, i64 23
%14 = load i8, i8* %13
switch i8 %14, label %78 [
i8 1, label %15
i8 17, label %19
i8 6, label %49
]
15: ; preds = %12
%16 = getelementptr inbounds i8, i8* %0, i64 34
%17 = add nsw i32 %1, -34
%18 = tail call i32 @IPChecksum(i32 65535, i8* %16, i32 %17)
br label %75
19: ; preds = %12
%20 = getelementptr inbounds i8, i8* %0, i64 40
%21 = load i8, i8* %20
%22 = icmp eq i8 %21, 0
br i1 %22, label %23, label %27
23: ; preds = %19
%24 = getelementptr inbounds i8, i8* %0, i64 41
%25 = load i8, i8* %24
%26 = icmp eq i8 %25, 0
br i1 %26, label %79, label %27
27: ; preds = %23, %19
%28 = getelementptr inbounds i8, i8* %0, i64 26
%29 = call i32 @memcpy2(i8* %4, i8* %28, i32 4)
%30 = getelementptr inbounds [12 x i8], [12 x i8]* %3, i64 0, i64 4
%31 = getelementptr inbounds i8, i8* %0, i64 30
%32 = call i32 @memcpy2(i8* %30, i8* %31, i32 4)
%33 = getelementptr inbounds [12 x i8], [12 x i8]* %3, i64 0, i64 8
store i8 0, i8* %33
%34 = load i8, i8* %13
%35 = getelementptr inbounds [12 x i8], [12 x i8]* %3, i64 0, i64 9
store i8 %34, i8* %35
%36 = getelementptr inbounds [12 x i8], [12 x i8]* %3, i64 0, i64 10
%37 = getelementptr inbounds i8, i8* %0, i64 38
%38 = call i32 @memcpy2(i8* %36, i8* %37, i32 2)
%39 = call i32 @IPChecksum(i32 65535, i8* %4, i32 12)
%40 = load i8, i8* %37
%41 = zext i8 %40 to i32
%42 = shl nuw nsw i32 %41, 8
%43 = getelementptr inbounds i8, i8* %0, i64 39
%44 = load i8, i8* %43
%45 = zext i8 %44 to i32
%46 = or i32 %42, %45
%47 = getelementptr inbounds i8, i8* %0, i64 34
%48 = call i32 @IPChecksum(i32 %39, i8* %47, i32 %46)
br label %75
49: ; preds = %12
%50 = getelementptr inbounds i8, i8* %0, i64 26
%51 = call i32 @memcpy2(i8* %4, i8* %50, i32 4)
%52 = getelementptr inbounds [12 x i8], [12 x i8]* %3, i64 0, i64 4
%53 = getelementptr inbounds i8, i8* %0, i64 30
%54 = call i32 @memcpy2(i8* %52, i8* %53, i32 4)
%55 = getelementptr inbounds [12 x i8], [12 x i8]* %3, i64 0, i64 8
store i8 0, i8* %55
%56 = load i8, i8* %13
%57 = getelementptr inbounds [12 x i8], [12 x i8]* %3, i64 0, i64 9
store i8 %56, i8* %57
%58 = getelementptr inbounds i8, i8* %0, i64 16
%59 = load i8, i8* %58
%60 = zext i8 %59 to i32
%61 = shl nuw nsw i32 %60, 8
%62 = getelementptr inbounds i8, i8* %0, i64 17
%63 = load i8, i8* %62
%64 = zext i8 %63 to i32
%65 = or i32 %61, %64
%66 = add nsw i32 %65, -20
%67 = lshr i32 %66, 8
%68 = trunc i32 %67 to i8
%69 = getelementptr inbounds [12 x i8], [12 x i8]* %3, i64 0, i64 10
store i8 %68, i8* %69
%70 = trunc i32 %66 to i8
%71 = getelementptr inbounds [12 x i8], [12 x i8]* %3, i64 0, i64 11
store i8 %70, i8* %71
%72 = call i32 @IPChecksum(i32 65535, i8* %4, i32 12)
%73 = getelementptr inbounds i8, i8* %0, i64 34
%74 = call i32 @IPChecksum(i32 %72, i8* %73, i32 %66)
br label %75
75: ; preds = %27, %49, %15
%76 = phi i32 [ %18, %15 ], [ %48, %27 ], [ %74, %49 ]
%77 = icmp eq i32 %76, 0
br i1 %77, label %78, label %79
78: ; preds = %12, %75, %2
br label %79
79: ; preds = %75, %23, %8, %78
%80 = phi i32 [ 0, %78 ], [ -1, %8 ], [ 0, %23 ], [ -1, %75 ]
ret i32 %80
}