#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 char uint8_t;
struct lcpa_metapack {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ lcpf_80211headers(struct lcpa_metapack *, int /*<<< orphan*/,
                                     int, int, int, char *, char *, char *,
                                     int /*<<< orphan*/ *, int, int);
void lcpf_probereq(struct lcpa_metapack *pack, uint8_t *src, int framecontrol,
                   int duration, int fragment, int sequence) {
  uint8_t chunk[6] = "\xFF\xFF\xFF\xFF\xFF\xFF";
  lcpf_80211headers(pack, 0, 4, framecontrol, duration, chunk, src, chunk, NULL,
                    fragment, sequence);
}


x86 assembly (clang, -O0):
<lcpf_probereq>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0x50,%rsp
mov    %rdi,-0x18(%rbp)
mov    %rsi,-0x20(%rbp)
mov    %edx,-0x24(%rbp)
mov    %ecx,-0x28(%rbp)
mov    %r8d,-0x2c(%rbp)
mov    %r9d,-0x30(%rbp)
mov    0xec9(%rip),%eax
mov    %eax,-0x36(%rbp)
mov    0xec3(%rip),%ax
mov    %ax,-0x32(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x24(%rbp),%ecx
mov    -0x28(%rbp),%r8d
lea    -0x36(%rbp),%r9
mov    -0x20(%rbp),%rbx
lea    -0x36(%rbp),%r11
mov    -0x2c(%rbp),%r10d
mov    -0x30(%rbp),%eax
xor    %esi,%esi
mov    $0x4,%edx
xor    %r14d,%r14d
mov    %rbx,(%rsp)
mov    %r11,0x8(%rsp)
movq   $0x0,0x10(%rsp)
mov    %r10d,0x18(%rsp)
mov    %eax,0x20(%rsp)
call   1030 <lcpf_80211headers@plt>
add    $0x50,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<lcpf_probereq>:
push   %rax
mov    %r9d,%eax
mov    %r8d,%r10d
mov    %ecx,%r8d
mov    %edx,%ecx
mov    %rsi,%r11
movw   $0xffff,0x4(%rsp)
movl   $0xffffffff,(%rsp)
sub    $0x8,%rsp
lea    0x8(%rsp),%r9
xor    %esi,%esi
mov    $0x4,%edx
push   %rax
push   %r10
push   $0x0
push   %r9
push   %r11
call   1030 <lcpf_80211headers@plt>
add    $0x30,%rsp
pop    %rax
ret

LLVM IR (-O0):
%struct.lcpa_metapack = type { i32 }
@__const.lcpf_probereq.chunk = [6 x i8] c"\FF\FF\FF\FF\FF\FF"
define void @lcpf_probereq(%struct.lcpa_metapack* %0, i8* %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = alloca %struct.lcpa_metapack*
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca [6 x i8]
store %struct.lcpa_metapack* %0, %struct.lcpa_metapack** %7
store i8* %1, i8** %8
store i32 %2, i32* %9
store i32 %3, i32* %10
store i32 %4, i32* %11
store i32 %5, i32* %12
%14 = bitcast [6 x i8]* %13 to i8*
%15 = load %struct.lcpa_metapack*, %struct.lcpa_metapack** %7
%16 = load i32, i32* %9
%17 = load i32, i32* %10
%18 = getelementptr inbounds [6 x i8], [6 x i8]* %13, i64 0, i64 0
%19 = load i8*, i8** %8
%20 = getelementptr inbounds [6 x i8], [6 x i8]* %13, i64 0, i64 0
%21 = load i32, i32* %11
%22 = load i32, i32* %12
%23 = call i32 @lcpf_80211headers(%struct.lcpa_metapack* %15, i32 0, i32 4, i32 %16, i32 %17, i8* %18, i8* %19, i8* %20, i32* null, i32 %21, i32 %22)
ret void
}

LLVM IR (-O2):
%struct.lcpa_metapack = type { i32 }
define void @lcpf_probereq(%struct.lcpa_metapack* %0, i8* %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = alloca [6 x i8]
%8 = getelementptr inbounds [6 x i8], [6 x i8]* %7, i64 0, i64 0
%9 = call i32 @lcpf_80211headers(%struct.lcpa_metapack* %0, i32 0, i32 4, i32 %2, i32 %3, i8* %8, i8* %1, i8* %8, i32* null, i32 %4, i32 %5)
ret void
}