#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 */
struct sock_fprog {
  int len;
  struct sock_filter *filter;
};
struct sock_filter {
  int member_0;
  int member_1;
  int member_2;
  int member_3;
};
typedef int /*<<< orphan*/ filter;
typedef int /*<<< orphan*/ BPF_code;

/* Variables and functions */
int /*<<< orphan*/ SOL_SOCKET;
int /*<<< orphan*/ SO_ATTACH_FILTER;
int setsockopt(int, int /*<<< orphan*/, int /*<<< orphan*/, struct sock_fprog *,
               int);
int attach_igmp_filter(int sock_fd, unsigned int stb_ip_addr) {
  struct sock_fprog filter;
  struct sock_filter BPF_code[] = {
      {0x28, 0, 0, 0x0000000c},  {0x15, 0, 14, 0x00000800},
      {0x30, 0, 0, 0x00000017},  {0x15, 0, 12, 0x00000002},
      {0x30, 0, 0, 0x0000000e},  {0x54, 0, 0, 0x0000000f},
      {0x64, 0, 0, 0x00000002},  {0x7, 0, 0, 0x00000005},
      {0x50, 0, 0, 0x0000000e},  {0x15, 3, 0, 0x00000017},
      {0x15, 2, 0, 0x00000016},  {0x15, 1, 0, 0x00000022},
      {0x15, 0, 3, 0x00000012},  {0x20, 0, 0, 0x0000001a},
      {0x15, 0, 1, stb_ip_addr}, {0x6, 0, 0, 0x00000060},
      {0x6, 0, 0, 0x00000000},
  };
  filter.len = sizeof(BPF_code) / sizeof(BPF_code[0]);
  filter.filter = BPF_code;
  return setsockopt(sock_fd, SOL_SOCKET, SO_ATTACH_FILTER, &filter,
                    sizeof(filter));
}


x86 assembly (clang, -O0):
<attach_igmp_filter>:
push   %rbp
mov    %rsp,%rbp
sub    $0x130,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movl   $0x28,-0x130(%rbp)
movl   $0x0,-0x12c(%rbp)
movl   $0x0,-0x128(%rbp)
movl   $0xc,-0x124(%rbp)
movl   $0x15,-0x120(%rbp)
movl   $0x0,-0x11c(%rbp)
movl   $0xe,-0x118(%rbp)
movl   $0x800,-0x114(%rbp)
movl   $0x30,-0x110(%rbp)
movl   $0x0,-0x10c(%rbp)
movl   $0x0,-0x108(%rbp)
movl   $0x17,-0x104(%rbp)
movl   $0x15,-0x100(%rbp)
movl   $0x0,-0xfc(%rbp)
movl   $0xc,-0xf8(%rbp)
movl   $0x2,-0xf4(%rbp)
movl   $0x30,-0xf0(%rbp)
movl   $0x0,-0xec(%rbp)
movl   $0x0,-0xe8(%rbp)
movl   $0xe,-0xe4(%rbp)
movl   $0x54,-0xe0(%rbp)
movl   $0x0,-0xdc(%rbp)
movl   $0x0,-0xd8(%rbp)
movl   $0xf,-0xd4(%rbp)
movl   $0x64,-0xd0(%rbp)
movl   $0x0,-0xcc(%rbp)
movl   $0x0,-0xc8(%rbp)
movl   $0x2,-0xc4(%rbp)
movl   $0x7,-0xc0(%rbp)
movl   $0x0,-0xbc(%rbp)
movl   $0x0,-0xb8(%rbp)
movl   $0x5,-0xb4(%rbp)
movl   $0x50,-0xb0(%rbp)
movl   $0x0,-0xac(%rbp)
movl   $0x0,-0xa8(%rbp)
movl   $0xe,-0xa4(%rbp)
movl   $0x15,-0xa0(%rbp)
movl   $0x3,-0x9c(%rbp)
movl   $0x0,-0x98(%rbp)
movl   $0x17,-0x94(%rbp)
movl   $0x15,-0x90(%rbp)
movl   $0x2,-0x8c(%rbp)
movl   $0x0,-0x88(%rbp)
movl   $0x16,-0x84(%rbp)
movl   $0x15,-0x80(%rbp)
movl   $0x1,-0x7c(%rbp)
movl   $0x0,-0x78(%rbp)
movl   $0x22,-0x74(%rbp)
movl   $0x15,-0x70(%rbp)
movl   $0x0,-0x6c(%rbp)
movl   $0x3,-0x68(%rbp)
movl   $0x12,-0x64(%rbp)
movl   $0x20,-0x60(%rbp)
movl   $0x0,-0x5c(%rbp)
movl   $0x0,-0x58(%rbp)
movl   $0x1a,-0x54(%rbp)
movl   $0x15,-0x50(%rbp)
movl   $0x0,-0x4c(%rbp)
movl   $0x1,-0x48(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x44(%rbp)
movl   $0x6,-0x40(%rbp)
movl   $0x0,-0x3c(%rbp)
movl   $0x0,-0x38(%rbp)
movl   $0x60,-0x34(%rbp)
movl   $0x6,-0x30(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x28(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x11,-0x18(%rbp)
lea    -0x130(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    0x2c4c(%rip),%rax
mov    (%rax),%esi
mov    0x2c3b(%rip),%rax
mov    (%rax),%edx
lea    -0x18(%rbp),%rcx
mov    $0x10,%r8d
call   1030 <setsockopt@plt>
add    $0x130,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<attach_igmp_filter>:
sub    $0x128,%rsp
movaps 0xee2(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xee6(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xeea(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xeee(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xef2(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xef6(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xefa(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xefe(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movaps 0xeff(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movaps 0xf00(%rip),%xmm0
movaps %xmm0,0xa0(%rsp)
movaps 0xf01(%rip),%xmm0
movaps %xmm0,0xb0(%rsp)
movaps 0xf02(%rip),%xmm0
movaps %xmm0,0xc0(%rsp)
movaps 0xf03(%rip),%xmm0
movaps %xmm0,0xd0(%rsp)
movaps 0xf04(%rip),%xmm0
movaps %xmm0,0xe0(%rsp)
movq   $0x15,0xf0(%rsp)
movl   $0x1,0xf8(%rsp)
mov    %esi,0xfc(%rsp)
movaps 0xee7(%rip),%xmm0
movaps %xmm0,0x100(%rsp)
movaps 0xee8(%rip),%xmm0
movaps %xmm0,0x110(%rsp)
movl   $0x11,(%rsp)
lea    0x10(%rsp),%rax
mov    %rax,0x8(%rsp)
mov    0x2dc0(%rip),%rax
mov    (%rax),%esi
mov    0x2daf(%rip),%rax
mov    (%rax),%edx
mov    %rsp,%rcx
mov    $0x10,%r8d
call   1030 <setsockopt@plt>
add    $0x128,%rsp
ret

LLVM IR (-O0):
%struct.sock_fprog = type { i32, %struct.sock_filter* }
%struct.sock_filter = type { i32, i32, i32, i32 }
@SOL_SOCKET = global i32 0
@SO_ATTACH_FILTER = global i32 0
define i32 @attach_igmp_filter(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca %struct.sock_fprog
%6 = alloca [17 x %struct.sock_filter]
store i32 %0, i32* %3
store i32 %1, i32* %4
%7 = getelementptr inbounds [17 x %struct.sock_filter], [17 x %struct.sock_filter]* %6, i64 0, i64 0
%8 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %7, i32 0, i32 0
store i32 40, i32* %8
%9 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %7, i32 0, i32 1
store i32 0, i32* %9
%10 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %7, i32 0, i32 2
store i32 0, i32* %10
%11 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %7, i32 0, i32 3
store i32 12, i32* %11
%12 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %7, i64 1
%13 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %12, i32 0, i32 0
store i32 21, i32* %13
%14 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %12, i32 0, i32 1
store i32 0, i32* %14
%15 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %12, i32 0, i32 2
store i32 14, i32* %15
%16 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %12, i32 0, i32 3
store i32 2048, i32* %16
%17 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %12, i64 1
%18 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %17, i32 0, i32 0
store i32 48, i32* %18
%19 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %17, i32 0, i32 1
store i32 0, i32* %19
%20 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %17, i32 0, i32 2
store i32 0, i32* %20
%21 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %17, i32 0, i32 3
store i32 23, i32* %21
%22 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %17, i64 1
%23 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %22, i32 0, i32 0
store i32 21, i32* %23
%24 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %22, i32 0, i32 1
store i32 0, i32* %24
%25 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %22, i32 0, i32 2
store i32 12, i32* %25
%26 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %22, i32 0, i32 3
store i32 2, i32* %26
%27 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %22, i64 1
%28 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %27, i32 0, i32 0
store i32 48, i32* %28
%29 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %27, i32 0, i32 1
store i32 0, i32* %29
%30 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %27, i32 0, i32 2
store i32 0, i32* %30
%31 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %27, i32 0, i32 3
store i32 14, i32* %31
%32 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %27, i64 1
%33 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %32, i32 0, i32 0
store i32 84, i32* %33
%34 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %32, i32 0, i32 1
store i32 0, i32* %34
%35 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %32, i32 0, i32 2
store i32 0, i32* %35
%36 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %32, i32 0, i32 3
store i32 15, i32* %36
%37 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %32, i64 1
%38 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %37, i32 0, i32 0
store i32 100, i32* %38
%39 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %37, i32 0, i32 1
store i32 0, i32* %39
%40 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %37, i32 0, i32 2
store i32 0, i32* %40
%41 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %37, i32 0, i32 3
store i32 2, i32* %41
%42 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %37, i64 1
%43 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %42, i32 0, i32 0
store i32 7, i32* %43
%44 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %42, i32 0, i32 1
store i32 0, i32* %44
%45 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %42, i32 0, i32 2
store i32 0, i32* %45
%46 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %42, i32 0, i32 3
store i32 5, i32* %46
%47 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %42, i64 1
%48 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %47, i32 0, i32 0
store i32 80, i32* %48
%49 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %47, i32 0, i32 1
store i32 0, i32* %49
%50 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %47, i32 0, i32 2
store i32 0, i32* %50
%51 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %47, i32 0, i32 3
store i32 14, i32* %51
%52 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %47, i64 1
%53 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %52, i32 0, i32 0
store i32 21, i32* %53
%54 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %52, i32 0, i32 1
store i32 3, i32* %54
%55 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %52, i32 0, i32 2
store i32 0, i32* %55
%56 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %52, i32 0, i32 3
store i32 23, i32* %56
%57 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %52, i64 1
%58 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %57, i32 0, i32 0
store i32 21, i32* %58
%59 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %57, i32 0, i32 1
store i32 2, i32* %59
%60 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %57, i32 0, i32 2
store i32 0, i32* %60
%61 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %57, i32 0, i32 3
store i32 22, i32* %61
%62 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %57, i64 1
%63 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %62, i32 0, i32 0
store i32 21, i32* %63
%64 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %62, i32 0, i32 1
store i32 1, i32* %64
%65 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %62, i32 0, i32 2
store i32 0, i32* %65
%66 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %62, i32 0, i32 3
store i32 34, i32* %66
%67 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %62, i64 1
%68 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %67, i32 0, i32 0
store i32 21, i32* %68
%69 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %67, i32 0, i32 1
store i32 0, i32* %69
%70 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %67, i32 0, i32 2
store i32 3, i32* %70
%71 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %67, i32 0, i32 3
store i32 18, i32* %71
%72 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %67, i64 1
%73 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %72, i32 0, i32 0
store i32 32, i32* %73
%74 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %72, i32 0, i32 1
store i32 0, i32* %74
%75 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %72, i32 0, i32 2
store i32 0, i32* %75
%76 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %72, i32 0, i32 3
store i32 26, i32* %76
%77 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %72, i64 1
%78 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %77, i32 0, i32 0
store i32 21, i32* %78
%79 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %77, i32 0, i32 1
store i32 0, i32* %79
%80 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %77, i32 0, i32 2
store i32 1, i32* %80
%81 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %77, i32 0, i32 3
%82 = load i32, i32* %4
store i32 %82, i32* %81
%83 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %77, i64 1
%84 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %83, i32 0, i32 0
store i32 6, i32* %84
%85 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %83, i32 0, i32 1
store i32 0, i32* %85
%86 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %83, i32 0, i32 2
store i32 0, i32* %86
%87 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %83, i32 0, i32 3
store i32 96, i32* %87
%88 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %83, i64 1
%89 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %88, i32 0, i32 0
store i32 6, i32* %89
%90 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %88, i32 0, i32 1
store i32 0, i32* %90
%91 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %88, i32 0, i32 2
store i32 0, i32* %91
%92 = getelementptr inbounds %struct.sock_filter, %struct.sock_filter* %88, i32 0, i32 3
store i32 0, i32* %92
%93 = getelementptr inbounds %struct.sock_fprog, %struct.sock_fprog* %5, i32 0, i32 0
store i32 17, i32* %93
%94 = getelementptr inbounds [17 x %struct.sock_filter], [17 x %struct.sock_filter]* %6, i64 0, i64 0
%95 = getelementptr inbounds %struct.sock_fprog, %struct.sock_fprog* %5, i32 0, i32 1
store %struct.sock_filter* %94, %struct.sock_filter** %95
%96 = load i32, i32* %3
%97 = load i32, i32* @SOL_SOCKET
%98 = load i32, i32* @SO_ATTACH_FILTER
%99 = call i32 @setsockopt(i32 %96, i32 %97, i32 %98, %struct.sock_fprog* %5, i32 16)
ret i32 %99
}

LLVM IR (-O2):
%struct.sock_fprog = type { i32, %struct.sock_filter* }
%struct.sock_filter = type { i32, i32, i32, i32 }
@SOL_SOCKET = global i32 0
@SO_ATTACH_FILTER = global i32 0
define i32 @attach_igmp_filter(i32 %0, i32 %1) {
%3 = alloca %struct.sock_fprog
%4 = alloca [17 x %struct.sock_filter]
%5 = bitcast %struct.sock_fprog* %3 to i8*
%6 = bitcast [17 x %struct.sock_filter]* %4 to i8*
%7 = getelementptr inbounds [17 x %struct.sock_filter], [17 x %struct.sock_filter]* %4, i64 0, i64 0
%8 = bitcast [17 x %struct.sock_filter]* %4 to <4 x i32>*
store <4 x i32> <i32 40, i32 0, i32 0, i32 12>, <4 x i32>* %8
%9 = getelementptr inbounds [17 x %struct.sock_filter], [17 x %struct.sock_filter]* %4, i64 0, i64 1, i32 0
%10 = bitcast i32* %9 to <4 x i32>*
store <4 x i32> <i32 21, i32 0, i32 14, i32 2048>, <4 x i32>* %10
%11 = getelementptr inbounds [17 x %struct.sock_filter], [17 x %struct.sock_filter]* %4, i64 0, i64 2, i32 0
%12 = bitcast i32* %11 to <4 x i32>*
store <4 x i32> <i32 48, i32 0, i32 0, i32 23>, <4 x i32>* %12
%13 = getelementptr inbounds [17 x %struct.sock_filter], [17 x %struct.sock_filter]* %4, i64 0, i64 3, i32 0
%14 = bitcast i32* %13 to <4 x i32>*
store <4 x i32> <i32 21, i32 0, i32 12, i32 2>, <4 x i32>* %14
%15 = getelementptr inbounds [17 x %struct.sock_filter], [17 x %struct.sock_filter]* %4, i64 0, i64 4, i32 0
%16 = bitcast i32* %15 to <4 x i32>*
store <4 x i32> <i32 48, i32 0, i32 0, i32 14>, <4 x i32>* %16
%17 = getelementptr inbounds [17 x %struct.sock_filter], [17 x %struct.sock_filter]* %4, i64 0, i64 5, i32 0
%18 = bitcast i32* %17 to <4 x i32>*
store <4 x i32> <i32 84, i32 0, i32 0, i32 15>, <4 x i32>* %18
%19 = getelementptr inbounds [17 x %struct.sock_filter], [17 x %struct.sock_filter]* %4, i64 0, i64 6, i32 0
%20 = bitcast i32* %19 to <4 x i32>*
store <4 x i32> <i32 100, i32 0, i32 0, i32 2>, <4 x i32>* %20
%21 = getelementptr inbounds [17 x %struct.sock_filter], [17 x %struct.sock_filter]* %4, i64 0, i64 7, i32 0
%22 = bitcast i32* %21 to <4 x i32>*
store <4 x i32> <i32 7, i32 0, i32 0, i32 5>, <4 x i32>* %22
%23 = getelementptr inbounds [17 x %struct.sock_filter], [17 x %struct.sock_filter]* %4, i64 0, i64 8, i32 0
%24 = bitcast i32* %23 to <4 x i32>*
store <4 x i32> <i32 80, i32 0, i32 0, i32 14>, <4 x i32>* %24
%25 = getelementptr inbounds [17 x %struct.sock_filter], [17 x %struct.sock_filter]* %4, i64 0, i64 9, i32 0
%26 = bitcast i32* %25 to <4 x i32>*
store <4 x i32> <i32 21, i32 3, i32 0, i32 23>, <4 x i32>* %26
%27 = getelementptr inbounds [17 x %struct.sock_filter], [17 x %struct.sock_filter]* %4, i64 0, i64 10, i32 0
%28 = bitcast i32* %27 to <4 x i32>*
store <4 x i32> <i32 21, i32 2, i32 0, i32 22>, <4 x i32>* %28
%29 = getelementptr inbounds [17 x %struct.sock_filter], [17 x %struct.sock_filter]* %4, i64 0, i64 11, i32 0
%30 = bitcast i32* %29 to <4 x i32>*
store <4 x i32> <i32 21, i32 1, i32 0, i32 34>, <4 x i32>* %30
%31 = getelementptr inbounds [17 x %struct.sock_filter], [17 x %struct.sock_filter]* %4, i64 0, i64 12, i32 0
%32 = bitcast i32* %31 to <4 x i32>*
store <4 x i32> <i32 21, i32 0, i32 3, i32 18>, <4 x i32>* %32
%33 = getelementptr inbounds [17 x %struct.sock_filter], [17 x %struct.sock_filter]* %4, i64 0, i64 13, i32 0
%34 = bitcast i32* %33 to <4 x i32>*
store <4 x i32> <i32 32, i32 0, i32 0, i32 26>, <4 x i32>* %34
%35 = getelementptr inbounds [17 x %struct.sock_filter], [17 x %struct.sock_filter]* %4, i64 0, i64 14, i32 0
store i32 21, i32* %35
%36 = getelementptr inbounds [17 x %struct.sock_filter], [17 x %struct.sock_filter]* %4, i64 0, i64 14, i32 1
store i32 0, i32* %36
%37 = getelementptr inbounds [17 x %struct.sock_filter], [17 x %struct.sock_filter]* %4, i64 0, i64 14, i32 2
store i32 1, i32* %37
%38 = getelementptr inbounds [17 x %struct.sock_filter], [17 x %struct.sock_filter]* %4, i64 0, i64 14, i32 3
store i32 %1, i32* %38
%39 = getelementptr inbounds [17 x %struct.sock_filter], [17 x %struct.sock_filter]* %4, i64 0, i64 15, i32 0
%40 = bitcast i32* %39 to <4 x i32>*
store <4 x i32> <i32 6, i32 0, i32 0, i32 96>, <4 x i32>* %40
%41 = getelementptr inbounds [17 x %struct.sock_filter], [17 x %struct.sock_filter]* %4, i64 0, i64 16, i32 0
%42 = bitcast i32* %41 to <4 x i32>*
store <4 x i32> <i32 6, i32 0, i32 0, i32 0>, <4 x i32>* %42
%43 = getelementptr inbounds %struct.sock_fprog, %struct.sock_fprog* %3, i64 0, i32 0
store i32 17, i32* %43
%44 = getelementptr inbounds %struct.sock_fprog, %struct.sock_fprog* %3, i64 0, i32 1
store %struct.sock_filter* %7, %struct.sock_filter** %44
%45 = load i32, i32* @SOL_SOCKET
%46 = load i32, i32* @SO_ATTACH_FILTER
%47 = call i32 @setsockopt(i32 %0, i32 %45, i32 %46, %struct.sock_fprog* %3, i32 16)
ret i32 %47
}