#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_4__ TYPE_2__;
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
typedef int uint8_t;
typedef int /*<<< orphan*/ uint32_t;
struct udphdr {
  int uh_sport;
  int uh_dport;
};
struct tcphdr {
  int th_sport;
  int th_dport;
};
struct TYPE_4__ {
  int /*<<< orphan*/ s_addr;
};
struct TYPE_3__ {
  int /*<<< orphan*/ s_addr;
};
struct ip {
  int ip_p;
  int ip_hl;
  TYPE_2__ ip_dst;
  TYPE_1__ ip_src;
};

/* Variables and functions */
#define IPPROTO_IPIP 130
#define IPPROTO_TCP 129
#define IPPROTO_UDP 128
int /*<<< orphan*/ ntohl(int /*<<< orphan*/);
int ntohs(int);
int /*<<< orphan*/ sym_hash_fn(int /*<<< orphan*/, int /*<<< orphan*/, int,
                               int);
uint32_t decode_ip_n_hash(struct ip *iph, uint8_t hash_split, uint8_t seed) {
  (void)0;
  uint32_t rc = 0;
  if (hash_split == 2) {
    rc = sym_hash_fn(ntohl(iph->ip_src.s_addr), ntohl(iph->ip_dst.s_addr),
                     ntohs(0xFFFD) + seed, ntohs(0xFFFE) + seed);
  } else {
    struct tcphdr *tcph = NULL;
    struct udphdr *udph = NULL;
    switch (iph->ip_p) {
    case IPPROTO_TCP:
      tcph = (struct tcphdr *)((uint8_t *)iph + (iph->ip_hl << 2));
      rc = sym_hash_fn(ntohl(iph->ip_src.s_addr), ntohl(iph->ip_dst.s_addr),
                       ntohs(tcph->th_sport) + seed,
                       ntohs(tcph->th_dport) + seed);
      break;
    case IPPROTO_UDP:
      udph = (struct udphdr *)((uint8_t *)iph + (iph->ip_hl << 2));
      rc = sym_hash_fn(ntohl(iph->ip_src.s_addr), ntohl(iph->ip_dst.s_addr),
                       ntohs(udph->uh_sport) + seed,
                       ntohs(udph->uh_dport) + seed);
      break;
    case IPPROTO_IPIP:
      rc = decode_ip_n_hash((struct ip *)((uint8_t *)iph + (iph->ip_hl << 2)),
                            hash_split, seed);
      break;
    default:
      rc = sym_hash_fn(ntohl(iph->ip_src.s_addr), ntohl(iph->ip_dst.s_addr),
                       ntohs(0xFFFD) + seed, ntohs(0xFFFE) + seed);
      break;
    }
  }
  (void)0;
  return rc;
}


x86 assembly (clang, -O0):
<decode_ip_n_hash>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x2,-0xc(%rbp)
jne    11b6 <decode_ip_n_hash+0x76>
mov    -0x8(%rbp),%rax
mov    0xc(%rax),%edi
call   1050 <ntohl@plt>
mov    %eax,-0x34(%rbp)
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%edi
call   1050 <ntohl@plt>
mov    %eax,-0x30(%rbp)
mov    $0xfffd,%edi
call   1040 <ntohs@plt>
add    -0x10(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    $0xfffe,%edi
call   1040 <ntohs@plt>
mov    -0x34(%rbp),%edi
mov    -0x30(%rbp),%esi
mov    -0x2c(%rbp),%edx
mov    %eax,%ecx
add    -0x10(%rbp),%ecx
call   1030 <sym_hash_fn@plt>
mov    %eax,-0x14(%rbp)
jmp    1366 <decode_ip_n_hash+0x226>
movq   $0x0,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x38(%rbp)
sub    $0x80,%eax
je     1277 <decode_ip_n_hash+0x137>
jmp    11df <decode_ip_n_hash+0x9f>
mov    -0x38(%rbp),%eax
sub    $0x81,%eax
je     1205 <decode_ip_n_hash+0xc5>
jmp    11f2 <decode_ip_n_hash+0xb2>
mov    -0x38(%rbp),%eax
sub    $0x82,%eax
je     12e9 <decode_ip_n_hash+0x1a9>
jmp    1313 <decode_ip_n_hash+0x1d3>
mov    -0x8(%rbp),%rax
mov    -0x8(%rbp),%rcx
mov    0x4(%rcx),%ecx
shl    $0x2,%ecx
movslq %ecx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rax
mov    0xc(%rax),%edi
call   1050 <ntohl@plt>
mov    %eax,-0x44(%rbp)
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%edi
call   1050 <ntohl@plt>
mov    %eax,-0x40(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%edi
call   1040 <ntohs@plt>
add    -0x10(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x20(%rbp),%rax
mov    0x4(%rax),%edi
call   1040 <ntohs@plt>
mov    -0x44(%rbp),%edi
mov    -0x40(%rbp),%esi
mov    -0x3c(%rbp),%edx
mov    %eax,%ecx
add    -0x10(%rbp),%ecx
call   1030 <sym_hash_fn@plt>
mov    %eax,-0x14(%rbp)
jmp    1361 <decode_ip_n_hash+0x221>
mov    -0x8(%rbp),%rax
mov    -0x8(%rbp),%rcx
mov    0x4(%rcx),%ecx
shl    $0x2,%ecx
movslq %ecx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rax
mov    0xc(%rax),%edi
call   1050 <ntohl@plt>
mov    %eax,-0x50(%rbp)
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%edi
call   1050 <ntohl@plt>
mov    %eax,-0x4c(%rbp)
mov    -0x28(%rbp),%rax
mov    (%rax),%edi
call   1040 <ntohs@plt>
add    -0x10(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x28(%rbp),%rax
mov    0x4(%rax),%edi
call   1040 <ntohs@plt>
mov    -0x50(%rbp),%edi
mov    -0x4c(%rbp),%esi
mov    -0x48(%rbp),%edx
mov    %eax,%ecx
add    -0x10(%rbp),%ecx
call   1030 <sym_hash_fn@plt>
mov    %eax,-0x14(%rbp)
jmp    1361 <decode_ip_n_hash+0x221>
mov    -0x8(%rbp),%rdi
mov    -0x8(%rbp),%rax
mov    0x4(%rax),%eax
shl    $0x2,%eax
cltq
shl    $0x2,%rax
add    %rax,%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
call   1060 <decode_ip_n_hash@plt>
mov    %eax,-0x14(%rbp)
jmp    1361 <decode_ip_n_hash+0x221>
mov    -0x8(%rbp),%rax
mov    0xc(%rax),%edi
call   1050 <ntohl@plt>
mov    %eax,-0x5c(%rbp)
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%edi
call   1050 <ntohl@plt>
mov    %eax,-0x58(%rbp)
mov    $0xfffd,%edi
call   1040 <ntohs@plt>
add    -0x10(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    $0xfffe,%edi
call   1040 <ntohs@plt>
mov    -0x5c(%rbp),%edi
mov    -0x58(%rbp),%esi
mov    -0x54(%rbp),%edx
mov    %eax,%ecx
add    -0x10(%rbp),%ecx
call   1030 <sym_hash_fn@plt>
mov    %eax,-0x14(%rbp)
jmp    1366 <decode_ip_n_hash+0x226>
mov    -0x14(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<decode_ip_n_hash>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %edx,%r14d
mov    %rdi,%rbx
cmp    $0x2,%esi
je     11b7 <decode_ip_n_hash+0x87>
cs nopw 0x0(%rax,%rax,1)
mov    (%rbx),%eax
cmp    $0x82,%eax
jne    1167 <decode_ip_n_hash+0x37>
mov    0x4(%rbx),%eax
shl    $0x2,%eax
cltq
lea    (%rbx,%rax,4),%rbx
jmp    1150 <decode_ip_n_hash+0x20>
cmp    $0x80,%eax
je     1175 <decode_ip_n_hash+0x45>
cmp    $0x81,%eax
jne    11b7 <decode_ip_n_hash+0x87>
mov    0x4(%rbx),%eax
mov    0xc(%rbx),%edi
shl    $0x2,%eax
movslq %eax,%rbp
call   1050 <ntohl@plt>
mov    %eax,%r15d
mov    0x8(%rbx),%edi
call   1050 <ntohl@plt>
mov    %eax,%r12d
mov    (%rbx,%rbp,4),%edi
call   1040 <ntohs@plt>
lea    (%rax,%r14,1),%r13d
mov    0x4(%rbx,%rbp,4),%edi
call   1040 <ntohs@plt>
add    %eax,%r14d
mov    %r15d,%edi
mov    %r12d,%esi
mov    %r13d,%edx
jmp    11ee <decode_ip_n_hash+0xbe>
mov    0xc(%rbx),%edi
call   1050 <ntohl@plt>
mov    %eax,%r15d
mov    0x8(%rbx),%edi
call   1050 <ntohl@plt>
mov    %eax,%ebx
mov    $0xfffd,%edi
call   1040 <ntohs@plt>
lea    (%rax,%r14,1),%ebp
mov    $0xfffe,%edi
call   1040 <ntohs@plt>
add    %eax,%r14d
mov    %r15d,%edi
mov    %ebx,%esi
mov    %ebp,%edx
mov    %r14d,%ecx
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <sym_hash_fn@plt>

LLVM IR (-O0):
%struct.ip = type { i32, i32, %struct.TYPE_4__, %struct.TYPE_3__ }
%struct.TYPE_4__ = type { i32 }
%struct.TYPE_3__ = type { i32 }
%struct.tcphdr = type { i32, i32 }
%struct.udphdr = type { i32, i32 }
define i32 @decode_ip_n_hash(%struct.ip* %0, i32 %1, i32 %2) {
%4 = alloca %struct.ip*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca %struct.tcphdr*
%9 = alloca %struct.udphdr*
store %struct.ip* %0, %struct.ip** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
store i32 0, i32* %7
%10 = load i32, i32* %5
%11 = icmp eq i32 %10, 2
br i1 %11, label %12, label %30
12: ; preds = %3
%13 = load %struct.ip*, %struct.ip** %4
%14 = getelementptr inbounds %struct.ip, %struct.ip* %13, i32 0, i32 3
%15 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %14, i32 0, i32 0
%16 = load i32, i32* %15
%17 = call i32 @ntohl(i32 %16)
%18 = load %struct.ip*, %struct.ip** %4
%19 = getelementptr inbounds %struct.ip, %struct.ip* %18, i32 0, i32 2
%20 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %19, i32 0, i32 0
%21 = load i32, i32* %20
%22 = call i32 @ntohl(i32 %21)
%23 = call i32 @ntohs(i32 65533)
%24 = load i32, i32* %6
%25 = add nsw i32 %23, %24
%26 = call i32 @ntohs(i32 65534)
%27 = load i32, i32* %6
%28 = add nsw i32 %26, %27
%29 = call i32 @sym_hash_fn(i32 %17, i32 %22, i32 %25, i32 %28)
store i32 %29, i32* %7
br label %132
30: ; preds = %3
store %struct.tcphdr* null, %struct.tcphdr** %8
store %struct.udphdr* null, %struct.udphdr** %9
%31 = load %struct.ip*, %struct.ip** %4
%32 = getelementptr inbounds %struct.ip, %struct.ip* %31, i32 0, i32 0
%33 = load i32, i32* %32
switch i32 %33, label %113 [
i32 129, label %34
i32 128, label %67
i32 130, label %100
]
34: ; preds = %30
%35 = load %struct.ip*, %struct.ip** %4
%36 = bitcast %struct.ip* %35 to i32*
%37 = load %struct.ip*, %struct.ip** %4
%38 = getelementptr inbounds %struct.ip, %struct.ip* %37, i32 0, i32 1
%39 = load i32, i32* %38
%40 = shl i32 %39, 2
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i32, i32* %36, i64 %41
%43 = bitcast i32* %42 to %struct.tcphdr*
store %struct.tcphdr* %43, %struct.tcphdr** %8
%44 = load %struct.ip*, %struct.ip** %4
%45 = getelementptr inbounds %struct.ip, %struct.ip* %44, i32 0, i32 3
%46 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %45, i32 0, i32 0
%47 = load i32, i32* %46
%48 = call i32 @ntohl(i32 %47)
%49 = load %struct.ip*, %struct.ip** %4
%50 = getelementptr inbounds %struct.ip, %struct.ip* %49, i32 0, i32 2
%51 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %50, i32 0, i32 0
%52 = load i32, i32* %51
%53 = call i32 @ntohl(i32 %52)
%54 = load %struct.tcphdr*, %struct.tcphdr** %8
%55 = getelementptr inbounds %struct.tcphdr, %struct.tcphdr* %54, i32 0, i32 0
%56 = load i32, i32* %55
%57 = call i32 @ntohs(i32 %56)
%58 = load i32, i32* %6
%59 = add nsw i32 %57, %58
%60 = load %struct.tcphdr*, %struct.tcphdr** %8
%61 = getelementptr inbounds %struct.tcphdr, %struct.tcphdr* %60, i32 0, i32 1
%62 = load i32, i32* %61
%63 = call i32 @ntohs(i32 %62)
%64 = load i32, i32* %6
%65 = add nsw i32 %63, %64
%66 = call i32 @sym_hash_fn(i32 %48, i32 %53, i32 %59, i32 %65)
store i32 %66, i32* %7
br label %131
67: ; preds = %30
%68 = load %struct.ip*, %struct.ip** %4
%69 = bitcast %struct.ip* %68 to i32*
%70 = load %struct.ip*, %struct.ip** %4
%71 = getelementptr inbounds %struct.ip, %struct.ip* %70, i32 0, i32 1
%72 = load i32, i32* %71
%73 = shl i32 %72, 2
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i32, i32* %69, i64 %74
%76 = bitcast i32* %75 to %struct.udphdr*
store %struct.udphdr* %76, %struct.udphdr** %9
%77 = load %struct.ip*, %struct.ip** %4
%78 = getelementptr inbounds %struct.ip, %struct.ip* %77, i32 0, i32 3
%79 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %78, i32 0, i32 0
%80 = load i32, i32* %79
%81 = call i32 @ntohl(i32 %80)
%82 = load %struct.ip*, %struct.ip** %4
%83 = getelementptr inbounds %struct.ip, %struct.ip* %82, i32 0, i32 2
%84 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %83, i32 0, i32 0
%85 = load i32, i32* %84
%86 = call i32 @ntohl(i32 %85)
%87 = load %struct.udphdr*, %struct.udphdr** %9
%88 = getelementptr inbounds %struct.udphdr, %struct.udphdr* %87, i32 0, i32 0
%89 = load i32, i32* %88
%90 = call i32 @ntohs(i32 %89)
%91 = load i32, i32* %6
%92 = add nsw i32 %90, %91
%93 = load %struct.udphdr*, %struct.udphdr** %9
%94 = getelementptr inbounds %struct.udphdr, %struct.udphdr* %93, i32 0, i32 1
%95 = load i32, i32* %94
%96 = call i32 @ntohs(i32 %95)
%97 = load i32, i32* %6
%98 = add nsw i32 %96, %97
%99 = call i32 @sym_hash_fn(i32 %81, i32 %86, i32 %92, i32 %98)
store i32 %99, i32* %7
br label %131
100: ; preds = %30
%101 = load %struct.ip*, %struct.ip** %4
%102 = bitcast %struct.ip* %101 to i32*
%103 = load %struct.ip*, %struct.ip** %4
%104 = getelementptr inbounds %struct.ip, %struct.ip* %103, i32 0, i32 1
%105 = load i32, i32* %104
%106 = shl i32 %105, 2
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds i32, i32* %102, i64 %107
%109 = bitcast i32* %108 to %struct.ip*
%110 = load i32, i32* %5
%111 = load i32, i32* %6
%112 = call i32 @decode_ip_n_hash(%struct.ip* %109, i32 %110, i32 %111)
store i32 %112, i32* %7
br label %131
113: ; preds = %30
%114 = load %struct.ip*, %struct.ip** %4
%115 = getelementptr inbounds %struct.ip, %struct.ip* %114, i32 0, i32 3
%116 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %115, i32 0, i32 0
%117 = load i32, i32* %116
%118 = call i32 @ntohl(i32 %117)
%119 = load %struct.ip*, %struct.ip** %4
%120 = getelementptr inbounds %struct.ip, %struct.ip* %119, i32 0, i32 2
%121 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %120, i32 0, i32 0
%122 = load i32, i32* %121
%123 = call i32 @ntohl(i32 %122)
%124 = call i32 @ntohs(i32 65533)
%125 = load i32, i32* %6
%126 = add nsw i32 %124, %125
%127 = call i32 @ntohs(i32 65534)
%128 = load i32, i32* %6
%129 = add nsw i32 %127, %128
%130 = call i32 @sym_hash_fn(i32 %118, i32 %123, i32 %126, i32 %129)
store i32 %130, i32* %7
br label %131
131: ; preds = %113, %100, %67, %34
br label %132
132: ; preds = %131, %12
%133 = load i32, i32* %7
ret i32 %133
}

LLVM IR (-O2):
%struct.ip = type { i32, i32, %struct.TYPE_4__, %struct.TYPE_3__ }
%struct.TYPE_4__ = type { i32 }
%struct.TYPE_3__ = type { i32 }
%struct.tcphdr = type { i32, i32 }
%struct.udphdr = type { i32, i32 }
define i32 @decode_ip_n_hash(%struct.ip* nocapture %0, i32 %1, i32 %2) {
%4 = icmp eq i32 %1, 2
br i1 %4, label %5, label %17
5: ; preds = %3
%6 = getelementptr inbounds %struct.ip, %struct.ip* %0, i64 0, i32 3, i32 0
%7 = load i32, i32* %6
%8 = tail call i32 @ntohl(i32 %7)
%9 = getelementptr inbounds %struct.ip, %struct.ip* %0, i64 0, i32 2, i32 0
%10 = load i32, i32* %9
%11 = tail call i32 @ntohl(i32 %10)
%12 = tail call i32 @ntohs(i32 65533)
%13 = add nsw i32 %12, %2
%14 = tail call i32 @ntohs(i32 65534)
%15 = add nsw i32 %14, %2
%16 = tail call i32 @sym_hash_fn(i32 %8, i32 %11, i32 %13, i32 %15)
br label %80
17: ; preds = %3, %61
%18 = phi %struct.ip* [ %67, %61 ], [ %0, %3 ]
%19 = getelementptr inbounds %struct.ip, %struct.ip* %18, i64 0, i32 0
%20 = load i32, i32* %19
switch i32 %20, label %68 [
i32 129, label %21
i32 128, label %41
i32 130, label %61
]
21: ; preds = %17
%22 = getelementptr inbounds %struct.ip, %struct.ip* %18, i64 0, i32 1
%23 = load i32, i32* %22
%24 = shl i32 %23, 2
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, i32* %19, i64 %25
%27 = getelementptr inbounds %struct.ip, %struct.ip* %18, i64 0, i32 3, i32 0
%28 = load i32, i32* %27
%29 = tail call i32 @ntohl(i32 %28)
%30 = getelementptr inbounds %struct.ip, %struct.ip* %18, i64 0, i32 2, i32 0
%31 = load i32, i32* %30
%32 = tail call i32 @ntohl(i32 %31)
%33 = load i32, i32* %26
%34 = tail call i32 @ntohs(i32 %33)
%35 = add nsw i32 %34, %2
%36 = getelementptr inbounds i32, i32* %26, i64 1
%37 = load i32, i32* %36
%38 = tail call i32 @ntohs(i32 %37)
%39 = add nsw i32 %38, %2
%40 = tail call i32 @sym_hash_fn(i32 %29, i32 %32, i32 %35, i32 %39)
br label %80
41: ; preds = %17
%42 = getelementptr inbounds %struct.ip, %struct.ip* %18, i64 0, i32 1
%43 = load i32, i32* %42
%44 = shl i32 %43, 2
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i32, i32* %19, i64 %45
%47 = getelementptr inbounds %struct.ip, %struct.ip* %18, i64 0, i32 3, i32 0
%48 = load i32, i32* %47
%49 = tail call i32 @ntohl(i32 %48)
%50 = getelementptr inbounds %struct.ip, %struct.ip* %18, i64 0, i32 2, i32 0
%51 = load i32, i32* %50
%52 = tail call i32 @ntohl(i32 %51)
%53 = load i32, i32* %46
%54 = tail call i32 @ntohs(i32 %53)
%55 = add nsw i32 %54, %2
%56 = getelementptr inbounds i32, i32* %46, i64 1
%57 = load i32, i32* %56
%58 = tail call i32 @ntohs(i32 %57)
%59 = add nsw i32 %58, %2
%60 = tail call i32 @sym_hash_fn(i32 %49, i32 %52, i32 %55, i32 %59)
br label %80
61: ; preds = %17
%62 = getelementptr inbounds %struct.ip, %struct.ip* %18, i64 0, i32 1
%63 = load i32, i32* %62
%64 = shl i32 %63, 2
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i32, i32* %19, i64 %65
%67 = bitcast i32* %66 to %struct.ip*
br label %17
68: ; preds = %17
%69 = getelementptr inbounds %struct.ip, %struct.ip* %18, i64 0, i32 3, i32 0
%70 = load i32, i32* %69
%71 = tail call i32 @ntohl(i32 %70)
%72 = getelementptr inbounds %struct.ip, %struct.ip* %18, i64 0, i32 2, i32 0
%73 = load i32, i32* %72
%74 = tail call i32 @ntohl(i32 %73)
%75 = tail call i32 @ntohs(i32 65533)
%76 = add nsw i32 %75, %2
%77 = tail call i32 @ntohs(i32 65534)
%78 = add nsw i32 %77, %2
%79 = tail call i32 @sym_hash_fn(i32 %71, i32 %74, i32 %76, i32 %78)
br label %80
80: ; preds = %21, %41, %68, %5
%81 = phi i32 [ %16, %5 ], [ %79, %68 ], [ %60, %41 ], [ %40, %21 ]
ret i32 %81
}