#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 */
struct TYPE_2__ {
  int /*<<< orphan*/ s_addr;
};
struct sockaddr_in {
  int /*<<< orphan*/ sin_port;
  TYPE_1__ sin_addr;
  int /*<<< orphan*/ sin_family;
};
struct sockaddr {
  int dummy;
};
typedef int /*<<< orphan*/ sap;
typedef int /*<<< orphan*/ optval;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ IPPROTO_UDP;
int /*<<< orphan*/ SOCK_DGRAM;
int /*<<< orphan*/ SOL_SOCKET;
int /*<<< orphan*/ SO_BROADCAST;
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ htonl(int);
int /*<<< orphan*/ htons(int);
scalar_t__ in_ether(char *, unsigned char *);
scalar_t__ sendto(int, char *, int, int /*<<< orphan*/, struct sockaddr *, int);
scalar_t__ setsockopt(int, int /*<<< orphan*/, int /*<<< orphan*/, char *, int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int send_wol(char *macAddr) {
  int i, j;
  int packet;
  struct sockaddr_in sap;
  unsigned char ethaddr[8];
  unsigned char *ptr;
  unsigned char packetBuf[128];
  int optval = 1;
  if (in_ether(macAddr, ethaddr) < 0) {
    return (-1);
  }
  if ((packet = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0) {
    return (-1);
  }
  if (setsockopt(packet, SOL_SOCKET, SO_BROADCAST, (char *)&optval,
                 sizeof(optval)) < 0) {
    close(packet);
    return (-1);
  }
  sap.sin_family = AF_INET;
  sap.sin_addr.s_addr = htonl(0xffffffff);
  sap.sin_port = htons(60000);
  ptr = packetBuf;
  for (i = 0; i < 6; i++) {
    *ptr++ = 0xff;
  }
  for (j = 0; j < 16; j++) {
    for (i = 0; i < 6; i++) {
      *ptr++ = ethaddr[i];
    }
  }
  if (sendto(packet, (char *)packetBuf, 102, 0, (struct sockaddr *)&sap,
             sizeof(sap)) < 0) {
    close(packet);
    return (-1);
  }
  close(packet);
  return (0);
}


x86 assembly (clang, -O0):
<send_wol>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
mov    %rdi,-0x10(%rbp)
movl   $0x1,-0xc4(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x30(%rbp),%rsi
call   1030 <in_ether@plt>
cmp    $0x0,%rax
jge    11ac <send_wol+0x3c>
movl   $0xffffffff,-0x4(%rbp)
jmp    1334 <send_wol+0x1c4>
mov    0x2e2d(%rip),%rax
mov    (%rax),%edi
mov    0x2e1c(%rip),%rax
mov    (%rax),%esi
mov    0x2df3(%rip),%rax
mov    (%rax),%edx
call   1090 <socket@plt>
mov    %eax,-0x1c(%rbp)
cmp    $0x0,%eax
jge    11e4 <send_wol+0x74>
movl   $0xffffffff,-0x4(%rbp)
jmp    1334 <send_wol+0x1c4>
mov    -0x1c(%rbp),%edi
mov    0x2dfa(%rip),%rax
mov    (%rax),%esi
mov    0x2dd9(%rip),%rax
mov    (%rax),%edx
lea    -0xc4(%rbp),%rcx
mov    $0x4,%r8d
call   1040 <setsockopt@plt>
cmp    $0x0,%rax
jge    1229 <send_wol+0xb9>
mov    -0x1c(%rbp),%edi
call   1080 <close@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1334 <send_wol+0x1c4>
mov    0x2db0(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x20(%rbp)
mov    $0xffffffff,%edi
call   1060 <htonl@plt>
mov    %eax,-0x24(%rbp)
mov    $0xea60,%edi
call   1050 <htons@plt>
mov    %eax,-0x28(%rbp)
lea    -0xc0(%rbp),%rax
mov    %rax,-0x38(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x6,-0x14(%rbp)
jge    128b <send_wol+0x11b>
mov    -0x38(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x38(%rbp)
movb   $0xff,(%rax)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1261 <send_wol+0xf1>
movl   $0x0,-0x18(%rbp)
cmpl   $0x10,-0x18(%rbp)
jge    12e7 <send_wol+0x177>
movl   $0x0,-0x14(%rbp)
cmpl   $0x6,-0x14(%rbp)
jge    12d4 <send_wol+0x164>
movslq -0x14(%rbp),%rax
mov    -0x30(%rbp,%rax,1),%cl
mov    -0x38(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x38(%rbp)
mov    %cl,(%rax)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12a3 <send_wol+0x133>
jmp    12d9 <send_wol+0x169>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1292 <send_wol+0x122>
mov    -0x1c(%rbp),%edi
lea    -0xc0(%rbp),%rsi
lea    -0x28(%rbp),%r8
mov    $0x66,%edx
xor    %ecx,%ecx
mov    $0xc,%r9d
call   1070 <sendto@plt>
cmp    $0x0,%rax
jge    1325 <send_wol+0x1b5>
mov    -0x1c(%rbp),%edi
call   1080 <close@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1334 <send_wol+0x1c4>
mov    -0x1c(%rbp),%edi
call   1080 <close@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<send_wol>:
push   %rbp
push   %r14
push   %rbx
sub    $0xb0,%rsp
movl   $0x1,0x9c(%rsp)
lea    0x8(%rsp),%rsi
call   1030 <in_ether@plt>
mov    $0xffffffff,%ebx
test   %rax,%rax
js     142b <send_wol+0x2bb>
mov    0x2e3b(%rip),%rbp
mov    0x0(%rbp),%edi
mov    0x2e29(%rip),%rax
mov    (%rax),%esi
mov    0x2e00(%rip),%rax
mov    (%rax),%edx
call   1090 <socket@plt>
test   %eax,%eax
js     142b <send_wol+0x2bb>
mov    %eax,%r14d
mov    0x2e17(%rip),%rax
mov    (%rax),%esi
mov    0x2df6(%rip),%rax
mov    (%rax),%edx
lea    0x9c(%rsp),%rcx
mov    %r14d,%edi
mov    $0x4,%r8d
call   1040 <setsockopt@plt>
test   %rax,%rax
js     1423 <send_wol+0x2b3>
mov    0x0(%rbp),%eax
mov    %eax,0xa8(%rsp)
mov    $0xffffffff,%edi
call   1060 <htonl@plt>
mov    %eax,0xa4(%rsp)
mov    $0xea60,%edi
call   1050 <htons@plt>
mov    %eax,0xa0(%rsp)
movl   $0xffffffff,0x10(%rsp)
ff
movw   $0xffff,0x14(%rsp)
mov    0x8(%rsp),%al
mov    0x9(%rsp),%cl
mov    0xa(%rsp),%dl
mov    0xb(%rsp),%bl
mov    0xc(%rsp),%sil
mov    0xd(%rsp),%dil
mov    %al,0x16(%rsp)
mov    %cl,0x17(%rsp)
mov    %dl,0x18(%rsp)
mov    %bl,0x19(%rsp)
mov    %sil,0x1a(%rsp)
mov    %dil,0x1b(%rsp)
mov    %al,0x1c(%rsp)
mov    %cl,0x1d(%rsp)
mov    %dl,0x1e(%rsp)
mov    %bl,0x1f(%rsp)
mov    %sil,0x20(%rsp)
mov    %dil,0x21(%rsp)
mov    %al,0x22(%rsp)
mov    %cl,0x23(%rsp)
mov    %dl,0x24(%rsp)
mov    %bl,0x25(%rsp)
mov    %sil,0x26(%rsp)
mov    %dil,0x27(%rsp)
mov    %al,0x28(%rsp)
mov    %cl,0x29(%rsp)
mov    %dl,0x2a(%rsp)
mov    %bl,0x2b(%rsp)
mov    %sil,0x2c(%rsp)
mov    %dil,0x2d(%rsp)
mov    %al,0x2e(%rsp)
mov    %cl,0x2f(%rsp)
mov    %dl,0x30(%rsp)
mov    %bl,0x31(%rsp)
mov    %sil,0x32(%rsp)
mov    %dil,0x33(%rsp)
mov    %al,0x34(%rsp)
mov    %cl,0x35(%rsp)
mov    %dl,0x36(%rsp)
mov    %bl,0x37(%rsp)
mov    %sil,0x38(%rsp)
mov    %dil,0x39(%rsp)
mov    %al,0x3a(%rsp)
mov    %cl,0x3b(%rsp)
mov    %dl,0x3c(%rsp)
mov    %bl,0x3d(%rsp)
mov    %sil,0x3e(%rsp)
mov    %dil,0x3f(%rsp)
mov    %al,0x40(%rsp)
mov    %cl,0x41(%rsp)
mov    %dl,0x42(%rsp)
mov    %bl,0x43(%rsp)
mov    %sil,0x44(%rsp)
mov    %dil,0x45(%rsp)
mov    %al,0x46(%rsp)
mov    %cl,0x47(%rsp)
mov    %dl,0x48(%rsp)
mov    %bl,0x49(%rsp)
mov    %sil,0x4a(%rsp)
mov    %dil,0x4b(%rsp)
mov    %al,0x4c(%rsp)
mov    %cl,0x4d(%rsp)
mov    %dl,0x4e(%rsp)
mov    %bl,0x4f(%rsp)
mov    %sil,0x50(%rsp)
mov    %dil,0x51(%rsp)
mov    %al,0x52(%rsp)
mov    %cl,0x53(%rsp)
mov    %dl,0x54(%rsp)
mov    %bl,0x55(%rsp)
mov    %sil,0x56(%rsp)
mov    %dil,0x57(%rsp)
mov    %al,0x58(%rsp)
mov    %cl,0x59(%rsp)
mov    %dl,0x5a(%rsp)
mov    %bl,0x5b(%rsp)
mov    %sil,0x5c(%rsp)
mov    %dil,0x5d(%rsp)
mov    %al,0x5e(%rsp)
mov    %cl,0x5f(%rsp)
mov    %dl,0x60(%rsp)
mov    %bl,0x61(%rsp)
mov    %sil,0x62(%rsp)
mov    %dil,0x63(%rsp)
mov    %al,0x64(%rsp)
mov    %cl,0x65(%rsp)
mov    %dl,0x66(%rsp)
mov    %bl,0x67(%rsp)
mov    %sil,0x68(%rsp)
mov    %dil,0x69(%rsp)
mov    %al,0x6a(%rsp)
mov    %cl,0x6b(%rsp)
mov    %dl,0x6c(%rsp)
mov    %bl,0x6d(%rsp)
mov    %sil,0x6e(%rsp)
mov    %dil,0x6f(%rsp)
mov    %al,0x70(%rsp)
mov    %cl,0x71(%rsp)
mov    %dl,0x72(%rsp)
mov    %bl,0x73(%rsp)
mov    %sil,0x74(%rsp)
mov    %dil,0x75(%rsp)
lea    0x10(%rsp),%rsi
lea    0xa0(%rsp),%r8
mov    %r14d,%edi
mov    $0x66,%edx
xor    %ecx,%ecx
mov    $0xc,%r9d
call   1070 <sendto@plt>
mov    %rax,%rbx
mov    %r14d,%edi
call   1080 <close@plt>
sar    $0x3f,%rbx
jmp    142b <send_wol+0x2bb>
mov    %r14d,%edi
call   1080 <close@plt>
mov    %ebx,%eax
add    $0xb0,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@AF_INET = global i32 0
@SOCK_DGRAM = global i32 0
@IPPROTO_UDP = global i32 0
@SOL_SOCKET = global i32 0
@SO_BROADCAST = global i32 0
define i32 @send_wol(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca %struct.sockaddr_in
%8 = alloca [8 x i8]
%9 = alloca i8*
%10 = alloca [128 x i8]
%11 = alloca i32
store i8* %0, i8** %3
store i32 1, i32* %11
%12 = load i8*, i8** %3
%13 = getelementptr inbounds [8 x i8], [8 x i8]* %8, i64 0, i64 0
%14 = call i64 @in_ether(i8* %12, i8* %13)
%15 = icmp slt i64 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %1
store i32 -1, i32* %2
br label %86
17: ; preds = %1
%18 = load i32, i32* @AF_INET
%19 = load i32, i32* @SOCK_DGRAM
%20 = load i32, i32* @IPPROTO_UDP
%21 = call i32 @socket(i32 %18, i32 %19, i32 %20)
store i32 %21, i32* %6
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %17
store i32 -1, i32* %2
br label %86
24: ; preds = %17
%25 = load i32, i32* %6
%26 = load i32, i32* @SOL_SOCKET
%27 = load i32, i32* @SO_BROADCAST
%28 = bitcast i32* %11 to i8*
%29 = call i64 @setsockopt(i32 %25, i32 %26, i32 %27, i8* %28, i32 4)
%30 = icmp slt i64 %29, 0
br i1 %30, label %31, label %34
31: ; preds = %24
%32 = load i32, i32* %6
%33 = call i32 @close(i32 %32)
store i32 -1, i32* %2
br label %86
34: ; preds = %24
%35 = load i32, i32* @AF_INET
%36 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %7, i32 0, i32 2
store i32 %35, i32* %36
%37 = call i32 @htonl(i32 -1)
%38 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %7, i32 0, i32 1
%39 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %38, i32 0, i32 0
store i32 %37, i32* %39
%40 = call i32 @htons(i32 60000)
%41 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %7, i32 0, i32 0
store i32 %40, i32* %41
%42 = getelementptr inbounds [128 x i8], [128 x i8]* %10, i64 0, i64 0
store i8* %42, i8** %9
store i32 0, i32* %4
br label %43
43: ; preds = %49, %34
%44 = load i32, i32* %4
%45 = icmp slt i32 %44, 6
br i1 %45, label %46, label %52
46: ; preds = %43
%47 = load i8*, i8** %9
%48 = getelementptr inbounds i8, i8* %47, i32 1
store i8* %48, i8** %9
store i8 -1, i8* %47
br label %49
49: ; preds = %46
%50 = load i32, i32* %4
%51 = add nsw i32 %50, 1
store i32 %51, i32* %4
br label %43
52: ; preds = %43
store i32 0, i32* %5
br label %53
53: ; preds = %71, %52
%54 = load i32, i32* %5
%55 = icmp slt i32 %54, 16
br i1 %55, label %56, label %74
56: ; preds = %53
store i32 0, i32* %4
br label %57
57: ; preds = %67, %56
%58 = load i32, i32* %4
%59 = icmp slt i32 %58, 6
br i1 %59, label %60, label %70
60: ; preds = %57
%61 = load i32, i32* %4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [8 x i8], [8 x i8]* %8, i64 0, i64 %62
%64 = load i8, i8* %63
%65 = load i8*, i8** %9
%66 = getelementptr inbounds i8, i8* %65, i32 1
store i8* %66, i8** %9
store i8 %64, i8* %65
br label %67
67: ; preds = %60
%68 = load i32, i32* %4
%69 = add nsw i32 %68, 1
store i32 %69, i32* %4
br label %57
70: ; preds = %57
br label %71
71: ; preds = %70
%72 = load i32, i32* %5
%73 = add nsw i32 %72, 1
store i32 %73, i32* %5
br label %53
74: ; preds = %53
%75 = load i32, i32* %6
%76 = getelementptr inbounds [128 x i8], [128 x i8]* %10, i64 0, i64 0
%77 = bitcast %struct.sockaddr_in* %7 to %struct.sockaddr*
%78 = call i64 @sendto(i32 %75, i8* %76, i32 102, i32 0, %struct.sockaddr* %77, i32 12)
%79 = icmp slt i64 %78, 0
br i1 %79, label %80, label %83
80: ; preds = %74
%81 = load i32, i32* %6
%82 = call i32 @close(i32 %81)
store i32 -1, i32* %2
br label %86
83: ; preds = %74
%84 = load i32, i32* %6
%85 = call i32 @close(i32 %84)
store i32 0, i32* %2
br label %86
86: ; preds = %83, %80, %31, %23, %16
%87 = load i32, i32* %2
ret i32 %87
}

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