#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 */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
struct ni_hdr {
  int dummy;
};
struct nd_opt_prefix_info {
  int /*<<< orphan*/ nd_opt_pi_prefix;
};
struct nd_opt_hdr {
  int nd_opt_len;
  int /*<<< orphan*/ nd_opt_type;
};
struct msghdr {
  TYPE_1__ *msg_iov;
};
struct in6_addr {
  int dummy;
};
struct icmp6_hdr {
  int icmp6_type;
};
struct cmsghdr {
  scalar_t__ cmsg_level;
  int cmsg_type;
  int /*<<< orphan*/ cmsg_len;
};
typedef int /*<<< orphan*/ str;
struct TYPE_2__ {
  int /*<<< orphan*/ *iov_base;
};

/* Variables and functions */
int /*<<< orphan*/ AF_INET6;
struct cmsghdr *CMSG_FIRSTHDR(struct msghdr *);
int /*<<< orphan*/ CMSG_LEN(int);
struct cmsghdr *CMSG_NXTHDR(struct msghdr *, struct cmsghdr *);
struct in6_addr IN6ADDR_ANY_INIT;
int INET6_ADDRSTRLEN;
#define IPV6_HOPLIMIT 129
int /*<<< orphan*/ ND_OPT_PREFIX_INFORMATION;
#define ND_ROUTER_ADVERT 128
scalar_t__ SOL_IPV6;
int /*<<< orphan*/ inet_ntop(int /*<<< orphan*/, int /*<<< orphan*/ *, char *,
                             int);
int /*<<< orphan*/ printf(char *, char *);
int parse_reply(struct msghdr *msg, int cc) {
  uint8_t *buf = msg->msg_iov->iov_base;
  struct cmsghdr *c;
  struct icmp6_hdr *icmph;
  struct in6_addr any = IN6ADDR_ANY_INIT;
  for (c = CMSG_FIRSTHDR(msg); c; c = CMSG_NXTHDR(msg, c)) {
    if (c->cmsg_level != SOL_IPV6)
      continue;
    switch (c->cmsg_type) {
    case IPV6_HOPLIMIT:
      if (c->cmsg_len < CMSG_LEN(sizeof(int)))
        continue;
    }
  }
  icmph = (struct icmp6_hdr *)buf;
  struct ni_hdr *nih = (struct ni_hdr *)buf;
  if (cc < 8) {
    return 1;
  }
  struct nd_opt_hdr *opt_hdr = NULL;
  unsigned char *data = NULL;
  switch (icmph->icmp6_type) {
  case ND_ROUTER_ADVERT:
    data = (unsigned char *)icmph + sizeof(struct icmp6_hdr) +
           sizeof(struct icmp6_hdr);
    cc -= (char *)data - (char *)icmph;
    while (cc > 0) {
      opt_hdr = (struct nd_opt_hdr *)data;
      if (opt_hdr->nd_opt_type == ND_OPT_PREFIX_INFORMATION) {
        struct nd_opt_prefix_info *pinfo = (struct nd_opt_prefix_info *)data;
        char str[INET6_ADDRSTRLEN];
        inet_ntop(AF_INET6, &pinfo->nd_opt_pi_prefix, str, sizeof(str));
        printf("%s\n", str);
        return 0;
      }
      data += opt_hdr->nd_opt_len * 8;
      cc -= opt_hdr->nd_opt_len * 8;
    }
    break;
  default:
    return 1;
    break;
  }
  return 0;
}


x86 assembly (clang, -O0):
<parse_reply>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    (%rax),%rax
mov    %rax,-0x20(%rbp)
mov    0x2e49(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x38(%rbp)
mov    -0x10(%rbp),%rdi
call   1070 <CMSG_FIRSTHDR@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
je     120d <parse_reply+0xbd>
mov    -0x28(%rbp),%rax
mov    (%rax),%rax
mov    0x2e4e(%rip),%rcx
cmp    (%rcx),%rax
je     11b0 <parse_reply+0x60>
jmp    11f7 <parse_reply+0xa7>
mov    -0x28(%rbp),%rax
mov    0x8(%rax),%eax
sub    $0x81,%eax
jne    11f2 <parse_reply+0xa2>
jmp    11c7 <parse_reply+0x77>
mov    -0x28(%rbp),%rax
mov    0xc(%rax),%eax
mov    %eax,-0x6c(%rbp)
mov    $0x4,%edi
call   1050 <CMSG_LEN@plt>
mov    %eax,%ecx
mov    -0x6c(%rbp),%eax
cmp    %ecx,%eax
jge    11ed <parse_reply+0x9d>
jmp    11f7 <parse_reply+0xa7>
jmp    11f2 <parse_reply+0xa2>
jmp    11f7 <parse_reply+0xa7>
mov    -0x10(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1060 <CMSG_NXTHDR@plt>
mov    %rax,-0x28(%rbp)
jmp    1189 <parse_reply+0x39>
mov    -0x20(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x40(%rbp)
cmpl   $0x8,-0x14(%rbp)
jge    1233 <parse_reply+0xe3>
movl   $0x1,-0x4(%rbp)
jmp    1356 <parse_reply+0x206>
movq   $0x0,-0x48(%rbp)
movq   $0x0,-0x50(%rbp)
mov    -0x30(%rbp),%rax
mov    (%rax),%eax
sub    $0x80,%eax
jne    1343 <parse_reply+0x1f3>
jmp    1259 <parse_reply+0x109>
mov    -0x30(%rbp),%rax
add    $0x4,%rax
add    $0x4,%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rcx
mov    -0x30(%rbp),%rax
sub    %rax,%rcx
movslq -0x14(%rbp),%rax
sub    %rcx,%rax
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jle    133e <parse_reply+0x1ee>
mov    -0x50(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
mov    0x4(%rax),%eax
mov    0x2d4a(%rip),%rcx
cmp    (%rcx),%eax
jne    1311 <parse_reply+0x1c1>
mov    -0x50(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    0x2d23(%rip),%rax
mov    (%rax),%eax
mov    %rsp,%rcx
mov    %rcx,-0x60(%rbp)
mov    %rax,%rcx
add    $0xf,%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rdx
sub    %rcx,%rdx
mov    %rdx,-0x78(%rbp)
mov    %rdx,%rsp
mov    %rax,-0x68(%rbp)
mov    0x2cef(%rip),%rcx
mov    (%rcx),%edi
mov    -0x58(%rbp),%rsi
mov    %eax,%ecx
call   1030 <inet_ntop@plt>
mov    -0x78(%rbp),%rsi
lea    0xd07(%rip),%rdi
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x60(%rbp),%rax
mov    %rax,%rsp
jmp    1356 <parse_reply+0x206>
mov    -0x48(%rbp),%rax
mov    (%rax),%ecx
shl    $0x3,%ecx
mov    -0x50(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x50(%rbp)
mov    -0x48(%rbp),%rax
mov    (%rax),%ecx
shl    $0x3,%ecx
mov    -0x14(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x14(%rbp)
jmp    127e <parse_reply+0x12e>
jmp    134f <parse_reply+0x1ff>
movl   $0x1,-0x4(%rbp)
jmp    1356 <parse_reply+0x206>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse_reply>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %esi,%r14d
mov    %rdi,%r15
mov    (%rdi),%rax
mov    (%rax),%r12
call   1070 <CMSG_FIRSTHDR@plt>
test   %rax,%rax
je     11b1 <parse_reply+0x61>
mov    %rax,%rbx
mov    0x2e72(%rip),%r13
jmp    1193 <parse_reply+0x43>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1060 <CMSG_NXTHDR@plt>
mov    %rax,%rbx
test   %rax,%rax
je     11b1 <parse_reply+0x61>
mov    (%rbx),%rax
cmp    0x0(%r13),%rax
jne    1180 <parse_reply+0x30>
cmpl   $0x81,0x8(%rbx)
jne    1180 <parse_reply+0x30>
mov    $0x4,%edi
call   1050 <CMSG_LEN@plt>
jmp    1180 <parse_reply+0x30>
mov    $0x1,%r15d
cmp    $0x8,%r14d
jl     1250 <parse_reply+0x100>
cmpl   $0x80,(%r12)
jne    1250 <parse_reply+0x100>
xor    %r15d,%r15d
cmp    $0x9,%r14d
jb     1250 <parse_reply+0x100>
add    $0xfffffff8,%r14d
add    $0x8,%r12
mov    0x2dfd(%rip),%rax
mov    (%rax),%eax
nopl   (%rax)
cmp    %eax,0x4(%r12)
je     120a <parse_reply+0xba>
movslq (%r12),%rcx
lea    (%r12,%rcx,8),%r12
shl    $0x3,%rcx
sub    %ecx,%r14d
jg     11f0 <parse_reply+0xa0>
jmp    1250 <parse_reply+0x100>
mov    %rsp,%r14
mov    0x2dc4(%rip),%rax
mov    (%rax),%ecx
mov    %rsp,%rbx
mov    %rcx,%rax
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
mov    0x2d9f(%rip),%rax
mov    (%rax),%edi
mov    %r12,%rsi
mov    %rbx,%rdx
call   1030 <inet_ntop@plt>
lea    0xdbb(%rip),%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
mov    %r14,%rsp
mov    %r15d,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.in6_addr = type { i32 }
%struct.msghdr = type { %struct.TYPE_2__* }
%struct.TYPE_2__ = type { i32* }
%struct.cmsghdr = type { i64, i32, i32 }
%struct.icmp6_hdr = type { i32 }
%struct.ni_hdr = type { i32 }
%struct.nd_opt_hdr = type { i32, i32 }
%struct.nd_opt_prefix_info = type { i32 }
@IN6ADDR_ANY_INIT = global %struct.in6_addr zeroinitializer
@SOL_IPV6 = global i64 0
@ND_OPT_PREFIX_INFORMATION = global i32 0
@INET6_ADDRSTRLEN = global i32 0
@AF_INET6 = global i32 0
@.str = [4 x i8] c"%s\0A\00"
define i32 @parse_reply(%struct.msghdr* %0, i32 %1) {
%3 = alloca i32
%4 = alloca %struct.msghdr*
%5 = alloca i32
%6 = alloca i32*
%7 = alloca %struct.cmsghdr*
%8 = alloca %struct.icmp6_hdr*
%9 = alloca %struct.in6_addr
%10 = alloca %struct.ni_hdr*
%11 = alloca %struct.nd_opt_hdr*
%12 = alloca i8*
%13 = alloca %struct.nd_opt_prefix_info*
%14 = alloca i8*
%15 = alloca i64
store %struct.msghdr* %0, %struct.msghdr** %4
store i32 %1, i32* %5
%16 = load %struct.msghdr*, %struct.msghdr** %4
%17 = getelementptr inbounds %struct.msghdr, %struct.msghdr* %16, i32 0, i32 0
%18 = load %struct.TYPE_2__*, %struct.TYPE_2__** %17
%19 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %18, i32 0, i32 0
%20 = load i32*, i32** %19
store i32* %20, i32** %6
%21 = bitcast %struct.in6_addr* %9 to i8*
%22 = load %struct.msghdr*, %struct.msghdr** %4
%23 = call %struct.cmsghdr* @CMSG_FIRSTHDR(%struct.msghdr* %22)
store %struct.cmsghdr* %23, %struct.cmsghdr** %7
br label %24
24: ; preds = %47, %2
%25 = load %struct.cmsghdr*, %struct.cmsghdr** %7
%26 = icmp ne %struct.cmsghdr* %25, null
br i1 %26, label %27, label %51
27: ; preds = %24
%28 = load %struct.cmsghdr*, %struct.cmsghdr** %7
%29 = getelementptr inbounds %struct.cmsghdr, %struct.cmsghdr* %28, i32 0, i32 0
%30 = load i64, i64* %29
%31 = load i64, i64* @SOL_IPV6
%32 = icmp ne i64 %30, %31
br i1 %32, label %33, label %34
33: ; preds = %27
br label %47
34: ; preds = %27
%35 = load %struct.cmsghdr*, %struct.cmsghdr** %7
%36 = getelementptr inbounds %struct.cmsghdr, %struct.cmsghdr* %35, i32 0, i32 1
%37 = load i32, i32* %36
switch i32 %37, label %46 [
i32 129, label %38
]
38: ; preds = %34
%39 = load %struct.cmsghdr*, %struct.cmsghdr** %7
%40 = getelementptr inbounds %struct.cmsghdr, %struct.cmsghdr* %39, i32 0, i32 2
%41 = load i32, i32* %40
%42 = call i32 @CMSG_LEN(i32 4)
%43 = icmp slt i32 %41, %42
br i1 %43, label %44, label %45
44: ; preds = %38
br label %47
45: ; preds = %38
br label %46
46: ; preds = %45, %34
br label %47
47: ; preds = %46, %44, %33
%48 = load %struct.msghdr*, %struct.msghdr** %4
%49 = load %struct.cmsghdr*, %struct.cmsghdr** %7
%50 = call %struct.cmsghdr* @CMSG_NXTHDR(%struct.msghdr* %48, %struct.cmsghdr* %49)
store %struct.cmsghdr* %50, %struct.cmsghdr** %7
br label %24
51: ; preds = %24
%52 = load i32*, i32** %6
%53 = bitcast i32* %52 to %struct.icmp6_hdr*
store %struct.icmp6_hdr* %53, %struct.icmp6_hdr** %8
%54 = load i32*, i32** %6
%55 = bitcast i32* %54 to %struct.ni_hdr*
store %struct.ni_hdr* %55, %struct.ni_hdr** %10
%56 = load i32, i32* %5
%57 = icmp slt i32 %56, 8
br i1 %57, label %58, label %59
58: ; preds = %51
store i32 1, i32* %3
br label %120
59: ; preds = %51
store %struct.nd_opt_hdr* null, %struct.nd_opt_hdr** %11
store i8* null, i8** %12
%60 = load %struct.icmp6_hdr*, %struct.icmp6_hdr** %8
%61 = getelementptr inbounds %struct.icmp6_hdr, %struct.icmp6_hdr* %60, i32 0, i32 0
%62 = load i32, i32* %61
switch i32 %62, label %118 [
i32 128, label %63
]
63: ; preds = %59
%64 = load %struct.icmp6_hdr*, %struct.icmp6_hdr** %8
%65 = bitcast %struct.icmp6_hdr* %64 to i8*
%66 = getelementptr inbounds i8, i8* %65, i64 4
%67 = getelementptr inbounds i8, i8* %66, i64 4
store i8* %67, i8** %12
%68 = load i8*, i8** %12
%69 = load %struct.icmp6_hdr*, %struct.icmp6_hdr** %8
%70 = bitcast %struct.icmp6_hdr* %69 to i8*
%71 = ptrtoint i8* %68 to i64
%72 = ptrtoint i8* %70 to i64
%73 = sub i64 %71, %72
%74 = load i32, i32* %5
%75 = sext i32 %74 to i64
%76 = sub nsw i64 %75, %73
%77 = trunc i64 %76 to i32
store i32 %77, i32* %5
br label %78
78: ; preds = %103, %63
%79 = load i32, i32* %5
%80 = icmp sgt i32 %79, 0
br i1 %80, label %81, label %117
81: ; preds = %78
%82 = load i8*, i8** %12
%83 = bitcast i8* %82 to %struct.nd_opt_hdr*
store %struct.nd_opt_hdr* %83, %struct.nd_opt_hdr** %11
%84 = load %struct.nd_opt_hdr*, %struct.nd_opt_hdr** %11
%85 = getelementptr inbounds %struct.nd_opt_hdr, %struct.nd_opt_hdr* %84, i32 0, i32 1
%86 = load i32, i32* %85
%87 = load i32, i32* @ND_OPT_PREFIX_INFORMATION
%88 = icmp eq i32 %86, %87
br i1 %88, label %89, label %103
89: ; preds = %81
%90 = load i8*, i8** %12
%91 = bitcast i8* %90 to %struct.nd_opt_prefix_info*
store %struct.nd_opt_prefix_info* %91, %struct.nd_opt_prefix_info** %13
%92 = load i32, i32* @INET6_ADDRSTRLEN
%93 = zext i32 %92 to i64
%94 = call i8* @llvm.stacksave()
store i8* %94, i8** %14
%95 = alloca i8, i64 %93
store i64 %93, i64* %15
%96 = load i32, i32* @AF_INET6
%97 = load %struct.nd_opt_prefix_info*, %struct.nd_opt_prefix_info** %13
%98 = getelementptr inbounds %struct.nd_opt_prefix_info, %struct.nd_opt_prefix_info* %97, i32 0, i32 0
%99 = trunc i64 %93 to i32
%100 = call i32 @inet_ntop(i32 %96, i32* %98, i8* %95, i32 %99)
%101 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %95)
store i32 0, i32* %3
%102 = load i8*, i8** %14
br label %120
103: ; preds = %81
%104 = load %struct.nd_opt_hdr*, %struct.nd_opt_hdr** %11
%105 = getelementptr inbounds %struct.nd_opt_hdr, %struct.nd_opt_hdr* %104, i32 0, i32 0
%106 = load i32, i32* %105
%107 = mul nsw i32 %106, 8
%108 = load i8*, i8** %12
%109 = sext i32 %107 to i64
%110 = getelementptr inbounds i8, i8* %108, i64 %109
store i8* %110, i8** %12
%111 = load %struct.nd_opt_hdr*, %struct.nd_opt_hdr** %11
%112 = getelementptr inbounds %struct.nd_opt_hdr, %struct.nd_opt_hdr* %111, i32 0, i32 0
%113 = load i32, i32* %112
%114 = mul nsw i32 %113, 8
%115 = load i32, i32* %5
%116 = sub nsw i32 %115, %114
store i32 %116, i32* %5
br label %78
117: ; preds = %78
br label %119
118: ; preds = %59
store i32 1, i32* %3
br label %120
119: ; preds = %117
store i32 0, i32* %3
br label %120
120: ; preds = %119, %118, %89, %58
%121 = load i32, i32* %3
ret i32 %121
}

LLVM IR (-O2):
%struct.in6_addr = type { i32 }
%struct.msghdr = type { %struct.TYPE_2__* }
%struct.TYPE_2__ = type { i32* }
%struct.icmp6_hdr = type { i32 }
%struct.cmsghdr = type { i64, i32, i32 }
%struct.nd_opt_hdr = type { i32, i32 }
@IN6ADDR_ANY_INIT = global %struct.in6_addr zeroinitializer
@SOL_IPV6 = global i64 0
@ND_OPT_PREFIX_INFORMATION = global i32 0
@INET6_ADDRSTRLEN = global i32 0
@AF_INET6 = global i32 0
@.str = [4 x i8] c"%s\0A\00"
define i32 @parse_reply(%struct.msghdr* %0, i32 %1) {
%3 = bitcast %struct.msghdr* %0 to %struct.icmp6_hdr***
%4 = load %struct.icmp6_hdr**, %struct.icmp6_hdr*** %3
%5 = load %struct.icmp6_hdr*, %struct.icmp6_hdr** %4
%6 = tail call %struct.cmsghdr* @CMSG_FIRSTHDR(%struct.msghdr* %0)
%7 = icmp eq %struct.cmsghdr* %6, null
br i1 %7, label %23, label %8
8: ; preds = %2, %20
%9 = phi %struct.cmsghdr* [ %21, %20 ], [ %6, %2 ]
%10 = getelementptr inbounds %struct.cmsghdr, %struct.cmsghdr* %9, i64 0, i32 0
%11 = load i64, i64* %10
%12 = load i64, i64* @SOL_IPV6
%13 = icmp eq i64 %11, %12
br i1 %13, label %14, label %20
14: ; preds = %8
%15 = getelementptr inbounds %struct.cmsghdr, %struct.cmsghdr* %9, i64 0, i32 1
%16 = load i32, i32* %15
%17 = icmp eq i32 %16, 129
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = tail call i32 @CMSG_LEN(i32 4)
br label %20
20: ; preds = %18, %14, %8
%21 = tail call %struct.cmsghdr* @CMSG_NXTHDR(%struct.msghdr* %0, %struct.cmsghdr* %9)
%22 = icmp eq %struct.cmsghdr* %21, null
br i1 %22, label %23, label %8
23: ; preds = %20, %2
%24 = icmp slt i32 %1, 8
br i1 %24, label %60, label %25
25: ; preds = %23
%26 = getelementptr inbounds %struct.icmp6_hdr, %struct.icmp6_hdr* %5, i64 0, i32 0
%27 = load i32, i32* %26
%28 = icmp eq i32 %27, 128
br i1 %28, label %29, label %60
29: ; preds = %25
%30 = icmp ugt i32 %1, 8
br i1 %30, label %31, label %60
31: ; preds = %29
%32 = add nsw i32 %1, -8
%33 = getelementptr inbounds %struct.icmp6_hdr, %struct.icmp6_hdr* %5, i64 2
%34 = bitcast %struct.icmp6_hdr* %33 to i8*
%35 = load i32, i32* @ND_OPT_PREFIX_INFORMATION
br label %36
36: ; preds = %31, %52
%37 = phi i32 [ %32, %31 ], [ %58, %52 ]
%38 = phi i8* [ %34, %31 ], [ %57, %52 ]
%39 = getelementptr inbounds i8, i8* %38, i64 4
%40 = bitcast i8* %39 to i32*
%41 = load i32, i32* %40
%42 = icmp eq i32 %41, %35
br i1 %42, label %43, label %52
43: ; preds = %36
%44 = load i32, i32* @INET6_ADDRSTRLEN
%45 = zext i32 %44 to i64
%46 = tail call i8* @llvm.stacksave()
%47 = alloca i8, i64 %45
%48 = load i32, i32* @AF_INET6
%49 = bitcast i8* %38 to i32*
%50 = call i32 @inet_ntop(i32 %48, i32* %49, i8* %47, i32 %44)
%51 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %47)
br label %60
52: ; preds = %36
%53 = bitcast i8* %38 to i32*
%54 = load i32, i32* %53
%55 = shl nsw i32 %54, 3
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i8, i8* %38, i64 %56
%58 = sub nsw i32 %37, %55
%59 = icmp sgt i32 %58, 0
br i1 %59, label %36, label %60
60: ; preds = %52, %29, %43, %25, %23
%61 = phi i32 [ 1, %23 ], [ 0, %43 ], [ 1, %25 ], [ 0, %29 ], [ 0, %52 ]
ret i32 %61
}