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

/* Variables and functions */
int /*<<< orphan*/ lcpf_80211headers(struct lcpa_metapack *, int,
                                     int /*<<< orphan*/, unsigned int,
                                     unsigned int, int /*<<< orphan*/ *,
                                     int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                                     int /*<<< orphan*/ *, unsigned int,
                                     unsigned int);
void lcpf_data(struct lcpa_metapack *pack, unsigned int fcflags,
               unsigned int duration, uint8_t *mac1, uint8_t *mac2,
               uint8_t *mac3, uint8_t *mac4, unsigned int fragment,
               unsigned int sequence) {
  lcpf_80211headers(pack, 2, 0, fcflags, duration, mac1, mac2, mac3, mac4,
                    fragment, sequence);
}


x86 assembly (clang, -O0):
<lcpf_data>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0x50,%rsp
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%rax
mov    %rdi,-0x18(%rbp)
mov    %esi,-0x1c(%rbp)
mov    %edx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%ecx
mov    -0x20(%rbp),%r8d
mov    -0x28(%rbp),%r9
mov    -0x30(%rbp),%r14
mov    -0x38(%rbp),%rbx
mov    0x10(%rbp),%r11
mov    0x18(%rbp),%r10d
mov    0x20(%rbp),%eax
mov    $0x2,%esi
xor    %edx,%edx
mov    %r14,(%rsp)
mov    %rbx,0x8(%rsp)
mov    %r11,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_data>:
push   %rbx
mov    %r9,%rax
mov    %r8,%r10
mov    %rcx,%r9
mov    %edx,%r8d
mov    %esi,%ecx
mov    0x18(%rsp),%r11d
mov    0x20(%rsp),%ebx
sub    $0x8,%rsp
mov    $0x2,%esi
xor    %edx,%edx
push   %rbx
push   %r11
push   0x28(%rsp)
push   %rax
push   %r10
call   1030 <lcpf_80211headers@plt>
add    $0x30,%rsp
pop    %rbx
ret

LLVM IR (-O0):
%struct.lcpa_metapack = type { i32 }
define void @lcpf_data(%struct.lcpa_metapack* %0, i32 %1, i32 %2, i32* %3, i32* %4, i32* %5, i32* %6, i32 %7, i32 %8) {
%10 = alloca %struct.lcpa_metapack*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32*
%14 = alloca i32*
%15 = alloca i32*
%16 = alloca i32*
%17 = alloca i32
%18 = alloca i32
store %struct.lcpa_metapack* %0, %struct.lcpa_metapack** %10
store i32 %1, i32* %11
store i32 %2, i32* %12
store i32* %3, i32** %13
store i32* %4, i32** %14
store i32* %5, i32** %15
store i32* %6, i32** %16
store i32 %7, i32* %17
store i32 %8, i32* %18
%19 = load %struct.lcpa_metapack*, %struct.lcpa_metapack** %10
%20 = load i32, i32* %11
%21 = load i32, i32* %12
%22 = load i32*, i32** %13
%23 = load i32*, i32** %14
%24 = load i32*, i32** %15
%25 = load i32*, i32** %16
%26 = load i32, i32* %17
%27 = load i32, i32* %18
%28 = call i32 @lcpf_80211headers(%struct.lcpa_metapack* %19, i32 2, i32 0, i32 %20, i32 %21, i32* %22, i32* %23, i32* %24, i32* %25, i32 %26, i32 %27)
ret void
}

LLVM IR (-O2):
%struct.lcpa_metapack = type { i32 }
define void @lcpf_data(%struct.lcpa_metapack* %0, i32 %1, i32 %2, i32* %3, i32* %4, i32* %5, i32* %6, i32 %7, i32 %8) {
%10 = tail call i32 @lcpf_80211headers(%struct.lcpa_metapack* %0, i32 2, i32 0, i32 %1, i32 %2, i32* %3, i32* %4, i32* %5, i32* %6, i32 %7, i32 %8)
ret void
}