#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 */
typedef int uint8_t;
typedef int /*<<< orphan*/ uint16_t;
struct option {
  char *member_0;
  int member_3;
  int /*<<< orphan*/ member_2;
  int /*<<< orphan*/ const member_1;
};

/* Variables and functions */
int /*<<< orphan*/ atoi(int /*<<< orphan*/, int);
int getopt_long(int, char **, char *, struct option *, int *);
int /*<<< orphan*/ list_dlts();
int /*<<< orphan*/ list_interfaces();
#define no_argument 129
int /*<<< orphan*/ optarg;
#define required_argument 128
int /*<<< orphan*/ show_config();
int /*<<< orphan*/ spawn_tcpdump(char *, int /*<<< orphan*/, int);
scalar_t__ strcmp(char *, char *);
char *strdup(int /*<<< orphan*/);
int main(int argc, char *argv[]) {
  int option_idx = 0;
  uint8_t do_tcpdump = 0, do_dlts = 0, do_verify = 0;
  uint16_t packetlen = 0;
  char *fifo = NULL;
  char *interface = NULL;
  static struct option longopts[] = {
      {"packetlen", required_argument, 0, 0x01},
      {"verifychecksum", no_argument, 0, 0x02},
      {"compress", required_argument, 0, 0x03},
      {"verbose", required_argument, 0, 0x04},
      {"list-interfaces", no_argument, 0, 0xA1},
      {"extcap-interface", required_argument, 0, 0xA0},
      {"extcap-interfaces", no_argument, 0, 0xA1},
      {"extcap-config", no_argument, 0, 0xA4},
      {"extcap-dlts", no_argument, 0, 0xA2},
      {"capture", no_argument, 0, 0xA8},
      {"fifo", required_argument, 0, 0xB0},
      {0, 0, 0, 0}};
  while (1) {
    int r = getopt_long(argc, argv, "", longopts, &option_idx);
    if (r < 0)
      break;
    switch (r) {
    case 0x01:
      packetlen = atoi(optarg, 10);
      break;
    case 0x02:
      do_verify = 1;
      break;
    case 0xA0:
      interface = strdup(optarg);
      break;
    case 0xA1:
      list_interfaces();
      return (0);
      break;
    case 0xA4:
      show_config();
      return (0);
      break;
    case 0xA2:
      do_dlts = 1;
      break;
    case 0xA8:
      do_tcpdump = 1;
      break;
    case 0xB0:
      fifo = strdup(optarg);
      break;
    default:
      break;
    }
  }
  if (do_tcpdump) {
    if (fifo == NULL)
      return (1);
    spawn_tcpdump(fifo, packetlen, do_verify);
  }
  if (do_dlts) {
    if (interface == NULL)
      return (1);
    if (strcmp(interface, "tcptest") != 0)
      return (1);
    list_dlts();
    return (0);
  }
  return (1);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movq   $0x0,-0x30(%rbp)
movq   $0x0,-0x38(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xe73(%rip),%rdx
lea    0x2e92(%rip),%rcx
lea    -0x14(%rbp),%r8
call   1040 <getopt_long@plt>
mov    %eax,-0x3c(%rbp)
cmpl   $0x0,-0x3c(%rbp)
jge    11f9 <main+0x79>
jmp    132d <main+0x1ad>
mov    -0x3c(%rbp),%eax
mov    %eax,-0x40(%rbp)
sub    $0x1,%eax
je     1290 <main+0x110>
jmp    120d <main+0x8d>
mov    -0x40(%rbp),%eax
sub    $0x2,%eax
je     12ab <main+0x12b>
jmp    121e <main+0x9e>
mov    -0x40(%rbp),%eax
sub    $0xa0,%eax
je     12b7 <main+0x137>
jmp    1231 <main+0xb1>
mov    -0x40(%rbp),%eax
sub    $0xa1,%eax
je     12ce <main+0x14e>
jmp    1244 <main+0xc4>
mov    -0x40(%rbp),%eax
sub    $0xa2,%eax
je     12f4 <main+0x174>
jmp    1257 <main+0xd7>
mov    -0x40(%rbp),%eax
sub    $0xa4,%eax
je     12e1 <main+0x161>
jmp    126a <main+0xea>
mov    -0x40(%rbp),%eax
sub    $0xa8,%eax
je     1300 <main+0x180>
jmp    127d <main+0xfd>
mov    -0x40(%rbp),%eax
sub    $0xb0,%eax
je     130c <main+0x18c>
jmp    1323 <main+0x1a3>
mov    0x2d61(%rip),%rax
mov    (%rax),%edi
mov    $0xa,%esi
call   1090 <atoi@plt>
mov    %eax,-0x24(%rbp)
jmp    1328 <main+0x1a8>
movl   $0x1,-0x20(%rbp)
jmp    1328 <main+0x1a8>
mov    0x2d3a(%rip),%rax
mov    (%rax),%edi
call   10a0 <strdup@plt>
mov    %rax,-0x38(%rbp)
jmp    1328 <main+0x1a8>
mov    $0x0,%al
call   1060 <list_interfaces@plt>
movl   $0x0,-0x4(%rbp)
jmp    13be <main+0x23e>
mov    $0x0,%al
call   1030 <show_config@plt>
movl   $0x0,-0x4(%rbp)
jmp    13be <main+0x23e>
movl   $0x1,-0x1c(%rbp)
jmp    1328 <main+0x1a8>
movl   $0x1,-0x18(%rbp)
jmp    1328 <main+0x1a8>
mov    0x2ce5(%rip),%rax
mov    (%rax),%edi
call   10a0 <strdup@plt>
mov    %rax,-0x30(%rbp)
jmp    1328 <main+0x1a8>
jmp    1328 <main+0x1a8>
jmp    11c9 <main+0x49>
cmpl   $0x0,-0x18(%rbp)
je     135d <main+0x1dd>
cmpq   $0x0,-0x30(%rbp)
jne    134e <main+0x1ce>
movl   $0x1,-0x4(%rbp)
jmp    13be <main+0x23e>
mov    -0x30(%rbp),%rdi
mov    -0x24(%rbp),%esi
mov    -0x20(%rbp),%edx
call   1080 <spawn_tcpdump@plt>
cmpl   $0x0,-0x1c(%rbp)
je     13b7 <main+0x237>
cmpq   $0x0,-0x38(%rbp)
jne    137e <main+0x1fe>
movl   $0x1,-0x4(%rbp)
jmp    13be <main+0x23e>
mov    -0x38(%rbp),%rdi
lea    0xcfb(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     13a4 <main+0x224>
movl   $0x1,-0x4(%rbp)
jmp    13be <main+0x23e>
mov    $0x0,%al
call   1050 <list_dlts@plt>
movl   $0x0,-0x4(%rbp)
jmp    13be <main+0x23e>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
movl   $0x0,0x14(%rsp)
lea    0xeec(%rip),%rdx
lea    0x2ec7(%rip),%rcx
lea    0x14(%rsp),%r8
call   1040 <getopt_long@plt>
mov    $0x1,%r14d
test   %eax,%eax
js     130c <main+0x18c>
xor    %ecx,%ecx
mov    %rcx,0x18(%rsp)
lea    0xebf(%rip),%r13
lea    0x2e9a(%rip),%r14
lea    0x14(%rsp),%r12
lea    0xe1e(%rip),%r15
xor    %ecx,%ecx
mov    %rcx,0x20(%rsp)
movl   $0x0,0x4(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x0,0xc(%rsp)
movl   $0x0,0x10(%rsp)
jmp    1237 <main+0xb7>
mov    0x2de6(%rip),%rax
mov    (%rax),%edi
call   10a0 <strdup@plt>
mov    %rax,0x20(%rsp)
xchg   %ax,%ax
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r13,%rdx
mov    %r14,%rcx
mov    %r12,%r8
call   1040 <getopt_long@plt>
test   %eax,%eax
js     12a4 <main+0x124>
lea    -0xa0(%rax),%ecx
cmp    $0x10,%ecx
ja     1260 <main+0xe0>
movslq (%r15,%rcx,4),%rax
add    %r15,%rax
jmp    *%rax
mov    0x2da6(%rip),%rax
mov    (%rax),%edi
call   10a0 <strdup@plt>
mov    %rax,0x18(%rsp)
jmp    1220 <main+0xa0>
cmp    $0x2,%eax
je     1297 <main+0x117>
cmp    $0x1,%eax
jne    1220 <main+0xa0>
mov    0x2d87(%rip),%rax
mov    (%rax),%edi
mov    $0xa,%esi
call   1090 <atoi@plt>
mov    %eax,0x4(%rsp)
jmp    1220 <main+0xa0>
movl   $0x1,0xc(%rsp)
jmp    1220 <main+0xa0>
movl   $0x1,0x10(%rsp)
jmp    1220 <main+0xa0>
movl   $0x1,0x8(%rsp)
jmp    1220 <main+0xa0>
cmpl   $0x0,0x10(%rsp)
mov    $0x1,%r14d
je     12c8 <main+0x148>
mov    0x20(%rsp),%rdi
test   %rdi,%rdi
je     130c <main+0x18c>
mov    0x4(%rsp),%esi
mov    0x8(%rsp),%edx
call   1080 <spawn_tcpdump@plt>
cmpl   $0x0,0xc(%rsp)
je     130c <main+0x18c>
mov    0x18(%rsp),%rdi
test   %rdi,%rdi
je     130c <main+0x18c>
lea    0xde8(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    130c <main+0x18c>
xor    %r14d,%r14d
xor    %eax,%eax
call   1050 <list_dlts@plt>
jmp    130c <main+0x18c>
xor    %r14d,%r14d
xor    %eax,%eax
call   1060 <list_interfaces@plt>
jmp    130c <main+0x18c>
xor    %r14d,%r14d
xor    %eax,%eax
call   1030 <show_config@plt>
mov    %r14d,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.option = type { i8*, i32, i32, i32 }
@main.longopts = internal global [12 x %struct.option] [%struct.option { i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i32 0, i32 0), i32 128, i32 0, i32 1 }, %struct.option { i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i32 0, i32 0), i32 129, i32 0, i32 2 }, %struct.option { i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i32 0, i32 0), i32 128, i32 0, i32 3 }, %struct.option { i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i32 0, i32 0), i32 128, i32 0, i32 4 }, %struct.option { i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i32 0, i32 0), i32 129, i32 0, i32 161 }, %struct.option { i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i32 0, i32 0), i32 128, i32 0, i32 160 }, %struct.option { i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i32 0, i32 0), i32 129, i32 0, i32 161 }, %struct.option { i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i32 0, i32 0), i32 129, i32 0, i32 164 }, %struct.option { i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i32 0, i32 0), i32 129, i32 0, i32 162 }, %struct.option { i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i32 0, i32 0), i32 129, i32 0, i32 168 }, %struct.option { i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i32 0, i32 0), i32 128, i32 0, i32 176 }, %struct.option zeroinitializer]
@.str = [10 x i8] c"packetlen\00"
@.str.1 = [15 x i8] c"verifychecksum\00"
@.str.2 = [9 x i8] c"compress\00"
@.str.3 = [8 x i8] c"verbose\00"
@.str.4 = [16 x i8] c"list-interfaces\00"
@.str.5 = [17 x i8] c"extcap-interface\00"
@.str.6 = [18 x i8] c"extcap-interfaces\00"
@.str.7 = [14 x i8] c"extcap-config\00"
@.str.8 = [12 x i8] c"extcap-dlts\00"
@.str.9 = [8 x i8] c"capture\00"
@.str.10 = [5 x i8] c"fifo\00"
@.str.11 = [1 x i8] zeroinitializer
@optarg = global i32 0
@.str.12 = [8 x i8] c"tcptest\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
store i32 0, i32* %7
store i32 0, i32* %8
store i32 0, i32* %9
store i32 0, i32* %10
store i8* null, i8** %11
store i8* null, i8** %12
br label %14
14: ; preds = %2, %40
%15 = load i32, i32* %4
%16 = load i8**, i8*** %5
%17 = call i32 @getopt_long(i32 %15, i8** %16, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.11, i64 0, i64 0), %struct.option* getelementptr inbounds ([12 x %struct.option], [12 x %struct.option]* @main.longopts, i64 0, i64 0), i32* %6)
store i32 %17, i32* %13
%18 = load i32, i32* %13
%19 = icmp slt i32 %18, 0
br i1 %19, label %20, label %21
20: ; preds = %14
br label %41
21: ; preds = %14
%22 = load i32, i32* %13
switch i32 %22, label %39 [
i32 1, label %23
i32 2, label %26
i32 160, label %27
i32 161, label %30
i32 164, label %32
i32 162, label %34
i32 168, label %35
i32 176, label %36
]
23: ; preds = %21
%24 = load i32, i32* @optarg
%25 = call i32 @atoi(i32 %24, i32 10)
store i32 %25, i32* %10
br label %40
26: ; preds = %21
store i32 1, i32* %9
br label %40
27: ; preds = %21
%28 = load i32, i32* @optarg
%29 = call i8* @strdup(i32 %28)
store i8* %29, i8** %12
br label %40
30: ; preds = %21
%31 = call i32 (...) @list_interfaces()
store i32 0, i32* %3
br label %68
32: ; preds = %21
%33 = call i32 (...) @show_config()
store i32 0, i32* %3
br label %68
34: ; preds = %21
store i32 1, i32* %8
br label %40
35: ; preds = %21
store i32 1, i32* %7
br label %40
36: ; preds = %21
%37 = load i32, i32* @optarg
%38 = call i8* @strdup(i32 %37)
store i8* %38, i8** %11
br label %40
39: ; preds = %21
br label %40
40: ; preds = %39, %36, %35, %34, %27, %26, %23
br label %14
41: ; preds = %20
%42 = load i32, i32* %7
%43 = icmp ne i32 %42, 0
br i1 %43, label %44, label %53
44: ; preds = %41
%45 = load i8*, i8** %11
%46 = icmp eq i8* %45, null
br i1 %46, label %47, label %48
47: ; preds = %44
store i32 1, i32* %3
br label %68
48: ; preds = %44
%49 = load i8*, i8** %11
%50 = load i32, i32* %10
%51 = load i32, i32* %9
%52 = call i32 @spawn_tcpdump(i8* %49, i32 %50, i32 %51)
br label %53
53: ; preds = %48, %41
%54 = load i32, i32* %8
%55 = icmp ne i32 %54, 0
br i1 %55, label %56, label %67
56: ; preds = %53
%57 = load i8*, i8** %12
%58 = icmp eq i8* %57, null
br i1 %58, label %59, label %60
59: ; preds = %56
store i32 1, i32* %3
br label %68
60: ; preds = %56
%61 = load i8*, i8** %12
%62 = call i64 @strcmp(i8* %61, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
%63 = icmp ne i64 %62, 0
br i1 %63, label %64, label %65
64: ; preds = %60
store i32 1, i32* %3
br label %68
65: ; preds = %60
%66 = call i32 (...) @list_dlts()
store i32 0, i32* %3
br label %68
67: ; preds = %53
store i32 1, i32* %3
br label %68
68: ; preds = %67, %65, %64, %59, %47, %32, %30
%69 = load i32, i32* %3
ret i32 %69
}

LLVM IR (-O2):
%struct.option = type { i8*, i32, i32, i32 }
@main.longopts = internal global [12 x %struct.option] [%struct.option { i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i32 0, i32 0), i32 128, i32 0, i32 1 }, %struct.option { i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i32 0, i32 0), i32 129, i32 0, i32 2 }, %struct.option { i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i32 0, i32 0), i32 128, i32 0, i32 3 }, %struct.option { i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i32 0, i32 0), i32 128, i32 0, i32 4 }, %struct.option { i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i32 0, i32 0), i32 129, i32 0, i32 161 }, %struct.option { i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i32 0, i32 0), i32 128, i32 0, i32 160 }, %struct.option { i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i32 0, i32 0), i32 129, i32 0, i32 161 }, %struct.option { i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i32 0, i32 0), i32 129, i32 0, i32 164 }, %struct.option { i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i32 0, i32 0), i32 129, i32 0, i32 162 }, %struct.option { i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i32 0, i32 0), i32 129, i32 0, i32 168 }, %struct.option { i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i32 0, i32 0), i32 128, i32 0, i32 176 }, %struct.option zeroinitializer]
@.str = [10 x i8] c"packetlen\00"
@.str.1 = [15 x i8] c"verifychecksum\00"
@.str.2 = [9 x i8] c"compress\00"
@.str.3 = [8 x i8] c"verbose\00"
@.str.4 = [16 x i8] c"list-interfaces\00"
@.str.5 = [17 x i8] c"extcap-interface\00"
@.str.6 = [18 x i8] c"extcap-interfaces\00"
@.str.7 = [14 x i8] c"extcap-config\00"
@.str.8 = [12 x i8] c"extcap-dlts\00"
@.str.9 = [8 x i8] c"capture\00"
@.str.10 = [5 x i8] c"fifo\00"
@.str.11 = [1 x i8] zeroinitializer
@optarg = global i32 0
@.str.12 = [8 x i8] c"tcptest\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = bitcast i32* %3 to i8*
store i32 0, i32* %3
%5 = call i32 @getopt_long(i32 %0, i8** %1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.11, i64 0, i64 0), %struct.option* getelementptr inbounds ([12 x %struct.option], [12 x %struct.option]* @main.longopts, i64 0, i64 0), i32* %3)
%6 = icmp slt i32 %5, 0
br i1 %6, label %55, label %7
7: ; preds = %2, %31
%8 = phi i32 [ %38, %31 ], [ %5, %2 ]
%9 = phi i8* [ %37, %31 ], [ null, %2 ]
%10 = phi i8* [ %36, %31 ], [ null, %2 ]
%11 = phi i32 [ %35, %31 ], [ 0, %2 ]
%12 = phi i32 [ %34, %31 ], [ 0, %2 ]
%13 = phi i32 [ %33, %31 ], [ 0, %2 ]
%14 = phi i32 [ %32, %31 ], [ 0, %2 ]
switch i32 %8, label %31 [
i32 1, label %15
i32 2, label %18
i32 160, label %19
i32 161, label %22
i32 164, label %24
i32 162, label %26
i32 168, label %27
i32 176, label %28
]
15: ; preds = %7
%16 = load i32, i32* @optarg
%17 = call i32 @atoi(i32 %16, i32 10)
br label %31
18: ; preds = %7
br label %31
19: ; preds = %7
%20 = load i32, i32* @optarg
%21 = call i8* @strdup(i32 %20)
br label %31
22: ; preds = %7
%23 = call i32 (...) @list_interfaces()
br label %55
24: ; preds = %7
%25 = call i32 (...) @show_config()
br label %55
26: ; preds = %7
br label %31
27: ; preds = %7
br label %31
28: ; preds = %7
%29 = load i32, i32* @optarg
%30 = call i8* @strdup(i32 %29)
br label %31
31: ; preds = %15, %18, %19, %26, %27, %28, %7
%32 = phi i32 [ %14, %7 ], [ %14, %28 ], [ 1, %27 ], [ %14, %26 ], [ %14, %19 ], [ %14, %18 ], [ %14, %15 ]
%33 = phi i32 [ %13, %7 ], [ %13, %28 ], [ %13, %27 ], [ 1, %26 ], [ %13, %19 ], [ %13, %18 ], [ %13, %15 ]
%34 = phi i32 [ %12, %7 ], [ %12, %28 ], [ %12, %27 ], [ %12, %26 ], [ %12, %19 ], [ 1, %18 ], [ %12, %15 ]
%35 = phi i32 [ %11, %7 ], [ %11, %28 ], [ %11, %27 ], [ %11, %26 ], [ %11, %19 ], [ %11, %18 ], [ %17, %15 ]
%36 = phi i8* [ %10, %7 ], [ %30, %28 ], [ %10, %27 ], [ %10, %26 ], [ %10, %19 ], [ %10, %18 ], [ %10, %15 ]
%37 = phi i8* [ %9, %7 ], [ %9, %28 ], [ %9, %27 ], [ %9, %26 ], [ %21, %19 ], [ %9, %18 ], [ %9, %15 ]
%38 = call i32 @getopt_long(i32 %0, i8** %1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.11, i64 0, i64 0), %struct.option* getelementptr inbounds ([12 x %struct.option], [12 x %struct.option]* @main.longopts, i64 0, i64 0), i32* %3)
%39 = icmp slt i32 %38, 0
br i1 %39, label %40, label %7
40: ; preds = %31
%41 = icmp eq i32 %32, 0
br i1 %41, label %46, label %42
42: ; preds = %40
%43 = icmp eq i8* %36, null
br i1 %43, label %55, label %44
44: ; preds = %42
%45 = call i32 @spawn_tcpdump(i8* %36, i32 %35, i32 %34)
br label %46
46: ; preds = %44, %40
%47 = icmp eq i32 %33, 0
%48 = icmp eq i8* %37, null
%49 = select i1 %47, i1 true, i1 %48
br i1 %49, label %55, label %50
50: ; preds = %46
%51 = call i64 @strcmp(i8* %37, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
%52 = icmp eq i64 %51, 0
br i1 %52, label %53, label %55
53: ; preds = %50
%54 = call i32 (...) @list_dlts()
br label %55
55: ; preds = %2, %22, %24, %46, %50, %42, %53
%56 = phi i32 [ 0, %53 ], [ 1, %42 ], [ 1, %50 ], [ 1, %46 ], [ 0, %24 ], [ 0, %22 ], [ 1, %2 ]
ret i32 %56
}