#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 /*<<< orphan*/ uint8_t;
typedef int /*<<< orphan*/ uint16_t;

/* Variables and functions */
int /*<<< orphan*/ execlp(char *, char *, char *, char *, char *, char *,
                          char *, char *, char *, int /*<<< orphan*/ *);
void spawn_tcpdump(char *fifo, uint16_t packetlen, uint8_t verify) {
  execlp("tcpdump", "tcpdump", "-i", "eth1", "-s", "0", "-U", "-w", fifo, NULL);
}


x86 assembly (clang, -O0):
<spawn_tcpdump>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x8(%rbp),%rax
lea    0xed3(%rip),%rsi
lea    0xed4(%rip),%rdx
lea    0xed0(%rip),%rcx
lea    0xece(%rip),%r8
lea    0xeca(%rip),%r9
lea    0xec5(%rip),%r11
lea    0xec1(%rip),%r10
xor    %edi,%edi
mov    %rsi,%rdi
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
movq   $0x0,0x18(%rsp)
call   1030 <execlp@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<spawn_tcpdump>:
push   %rax
mov    %rdi,%rax
lea    0xefd(%rip),%r10
lea    0xef3(%rip),%r11
lea    0xed7(%rip),%rdi
lea    0xed8(%rip),%rdx
lea    0xed4(%rip),%rcx
lea    0xed2(%rip),%r8
lea    0xece(%rip),%r9
mov    %rdi,%rsi
push   $0x0
push   %rax
push   %r10
push   %r11
call   1030 <execlp@plt>
add    $0x20,%rsp
pop    %rax
ret

LLVM IR (-O0):
@.str = [8 x i8] c"tcpdump\00"
@.str.1 = [3 x i8] c"-i\00"
@.str.2 = [5 x i8] c"eth1\00"
@.str.3 = [3 x i8] c"-s\00"
@.str.4 = [2 x i8] c"0\00"
@.str.5 = [3 x i8] c"-U\00"
@.str.6 = [3 x i8] c"-w\00"
define void @spawn_tcpdump(i8* %0, i32 %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
store i8* %0, i8** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i8*, i8** %4
%8 = call i32 @execlp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %7, i32* null)
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"tcpdump\00"
@.str.1 = [3 x i8] c"-i\00"
@.str.2 = [5 x i8] c"eth1\00"
@.str.3 = [3 x i8] c"-s\00"
@.str.4 = [2 x i8] c"0\00"
@.str.5 = [3 x i8] c"-U\00"
@.str.6 = [3 x i8] c"-w\00"
define void @spawn_tcpdump(i8* %0, i32 %1, i32 %2) {
%4 = tail call i32 @execlp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %0, i32* null)
ret void
}