#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 */
struct SniffFilter {
  int dummy;
};
struct NetFrame {
  int dummy;
};
struct FilterItem {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ flt_addr_eval_dst(struct SniffFilter const *,
                                     struct FilterItem const *,
                                     struct NetFrame const *, unsigned int *,
                                     unsigned int *);
int /*<<< orphan*/ flt_addr_eval_src(struct SniffFilter const *,
                                     struct FilterItem const *,
                                     struct NetFrame const *, unsigned int *,
                                     unsigned int *);
void flt_addr_eval(const struct SniffFilter *flt, const struct FilterItem *item,
                   const struct NetFrame *frame, unsigned *include,
                   unsigned *exclude) {
  flt_addr_eval_src(flt, item, frame, include, exclude);
  flt_addr_eval_dst(flt, item, frame, include, exclude);
}


x86 assembly (clang, -O0):
<flt_addr_eval>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8
call   1040 <flt_addr_eval_src@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8
call   1030 <flt_addr_eval_dst@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<flt_addr_eval>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %r8,%r14
mov    %rcx,%r15
mov    %rdx,%r12
mov    %rsi,%r13
mov    %rdi,%rbx
call   1040 <flt_addr_eval_src@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r12,%rdx
mov    %r15,%rcx
mov    %r14,%r8
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
jmp    1030 <flt_addr_eval_dst@plt>

LLVM IR (-O0):
%struct.SniffFilter = type { i32 }
%struct.FilterItem = type { i32 }
%struct.NetFrame = type { i32 }
define void @flt_addr_eval(%struct.SniffFilter* %0, %struct.FilterItem* %1, %struct.NetFrame* %2, i32* %3, i32* %4) {
%6 = alloca %struct.SniffFilter*
%7 = alloca %struct.FilterItem*
%8 = alloca %struct.NetFrame*
%9 = alloca i32*
%10 = alloca i32*
store %struct.SniffFilter* %0, %struct.SniffFilter** %6
store %struct.FilterItem* %1, %struct.FilterItem** %7
store %struct.NetFrame* %2, %struct.NetFrame** %8
store i32* %3, i32** %9
store i32* %4, i32** %10
%11 = load %struct.SniffFilter*, %struct.SniffFilter** %6
%12 = load %struct.FilterItem*, %struct.FilterItem** %7
%13 = load %struct.NetFrame*, %struct.NetFrame** %8
%14 = load i32*, i32** %9
%15 = load i32*, i32** %10
%16 = call i32 @flt_addr_eval_src(%struct.SniffFilter* %11, %struct.FilterItem* %12, %struct.NetFrame* %13, i32* %14, i32* %15)
%17 = load %struct.SniffFilter*, %struct.SniffFilter** %6
%18 = load %struct.FilterItem*, %struct.FilterItem** %7
%19 = load %struct.NetFrame*, %struct.NetFrame** %8
%20 = load i32*, i32** %9
%21 = load i32*, i32** %10
%22 = call i32 @flt_addr_eval_dst(%struct.SniffFilter* %17, %struct.FilterItem* %18, %struct.NetFrame* %19, i32* %20, i32* %21)
ret void
}

LLVM IR (-O2):
%struct.SniffFilter = type { i32 }
%struct.FilterItem = type { i32 }
%struct.NetFrame = type { i32 }
define void @flt_addr_eval(%struct.SniffFilter* %0, %struct.FilterItem* %1, %struct.NetFrame* %2, i32* %3, i32* %4) {
%6 = tail call i32 @flt_addr_eval_src(%struct.SniffFilter* %0, %struct.FilterItem* %1, %struct.NetFrame* %2, i32* %3, i32* %4)
%7 = tail call i32 @flt_addr_eval_dst(%struct.SniffFilter* %0, %struct.FilterItem* %1, %struct.NetFrame* %2, i32* %3, i32* %4)
ret void
}