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

/* Variables and functions */
int NFNL_SUBSYS_QUEUE;
int NFQNL_MSG_CONFIG;
int /*<<< orphan*/ NLM_F_ACK;
int nf_cfg_msg(int, int /*<<< orphan*/, int, int /*<<< orphan*/,
               int /*<<< orphan*/, int /*<<< orphan*/, void const *,
               unsigned int, int /*<<< orphan*/);
bool nfq_cfg_msg(int fd, uint32_t seq, uint8_t family, uint16_t gid,
                 const void *data, unsigned len, uint16_t type) {
  return nf_cfg_msg(fd, seq, (NFNL_SUBSYS_QUEUE << 8) | NFQNL_MSG_CONFIG,
                    NLM_F_ACK, family, gid, data, len, type);
}


x86 assembly (clang, -O0):
<nfq_cfg_msg>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x10(%rbp),%eax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8,-0x18(%rbp)
mov    %r9d,-0x1c(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    0x2e94(%rip),%rax
mov    (%rax),%edx
shl    $0x8,%edx
mov    0x2ea0(%rip),%rax
or     (%rax),%edx
mov    0x2e8f(%rip),%rax
mov    (%rax),%ecx
mov    -0xc(%rbp),%r8d
mov    -0x10(%rbp),%r9d
mov    -0x18(%rbp),%r11
mov    -0x1c(%rbp),%r10d
mov    0x10(%rbp),%eax
mov    %r11,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1030 <nf_cfg_msg@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<nfq_cfg_msg>:
push   %rax
mov    %r9d,%eax
mov    %r8,%r10
mov    %ecx,%r9d
mov    %edx,%r8d
mov    0x10(%rsp),%r11d
mov    0x2ea7(%rip),%rcx
mov    (%rcx),%edx
shl    $0x8,%edx
mov    0x2eb3(%rip),%rcx
or     (%rcx),%edx
mov    0x2ea2(%rip),%rcx
mov    (%rcx),%ecx
sub    $0x8,%rsp
push   %r11
push   %rax
push   %r10
call   1030 <nf_cfg_msg@plt>
add    $0x20,%rsp
pop    %rcx
ret

LLVM IR (-O0):
@NFNL_SUBSYS_QUEUE = global i32 0
@NFQNL_MSG_CONFIG = global i32 0
@NLM_F_ACK = global i32 0
define i32 @nfq_cfg_msg(i32 %0, i32 %1, i32 %2, i32 %3, i8* %4, i32 %5, i32 %6) {
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i8*
%13 = alloca i32
%14 = alloca i32
store i32 %0, i32* %8
store i32 %1, i32* %9
store i32 %2, i32* %10
store i32 %3, i32* %11
store i8* %4, i8** %12
store i32 %5, i32* %13
store i32 %6, i32* %14
%15 = load i32, i32* %8
%16 = load i32, i32* %9
%17 = load i32, i32* @NFNL_SUBSYS_QUEUE
%18 = shl i32 %17, 8
%19 = load i32, i32* @NFQNL_MSG_CONFIG
%20 = or i32 %18, %19
%21 = load i32, i32* @NLM_F_ACK
%22 = load i32, i32* %10
%23 = load i32, i32* %11
%24 = load i8*, i8** %12
%25 = load i32, i32* %13
%26 = load i32, i32* %14
%27 = call i32 @nf_cfg_msg(i32 %15, i32 %16, i32 %20, i32 %21, i32 %22, i32 %23, i8* %24, i32 %25, i32 %26)
ret i32 %27
}

LLVM IR (-O2):
@NFNL_SUBSYS_QUEUE = global i32 0
@NFQNL_MSG_CONFIG = global i32 0
@NLM_F_ACK = global i32 0
define i32 @nfq_cfg_msg(i32 %0, i32 %1, i32 %2, i32 %3, i8* %4, i32 %5, i32 %6) {
%8 = load i32, i32* @NFNL_SUBSYS_QUEUE
%9 = shl i32 %8, 8
%10 = load i32, i32* @NFQNL_MSG_CONFIG
%11 = or i32 %9, %10
%12 = load i32, i32* @NLM_F_ACK
%13 = tail call i32 @nf_cfg_msg(i32 %0, i32 %1, i32 %11, i32 %12, i32 %2, i32 %3, i8* %4, i32 %5, i32 %6)
ret i32 %13
}