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

/* Variables and functions */
int __on_event(struct pt_regs *);
__attribute__((section("raw_tracepoint/kfree_skb"), used)) int
on_event(struct pt_regs *ctx) {
  int i, ret = 0;
  ret |= __on_event(ctx);
  ret |= __on_event(ctx);
  ret |= __on_event(ctx);
  ret |= __on_event(ctx);
  ret |= __on_event(ctx);
  return ret;
}


x86 assembly (clang, -O0):
<on_event>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <__on_event@plt>
or     -0x10(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <__on_event@plt>
or     -0x10(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <__on_event@plt>
or     -0x10(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <__on_event@plt>
or     -0x10(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <__on_event@plt>
or     -0x10(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<on_event>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
call   1030 <__on_event@plt>
mov    %eax,%r14d
mov    %rbx,%rdi
call   1030 <__on_event@plt>
mov    %eax,%r15d
or     %r14d,%r15d
mov    %rbx,%rdi
call   1030 <__on_event@plt>
mov    %eax,%r14d
mov    %rbx,%rdi
call   1030 <__on_event@plt>
mov    %eax,%ebp
or     %r14d,%ebp
or     %r15d,%ebp
mov    %rbx,%rdi
call   1030 <__on_event@plt>
or     %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.pt_regs = type { i32 }
@llvm.compiler.used = appending global [1 x i8*] [i8* bitcast (i32 (%struct.pt_regs*)* @on_event to i8*)], section "llvm.metadata"
define i32 @on_event(%struct.pt_regs* %0) section "raw_tracepoint/kfree_skb" {
%2 = alloca %struct.pt_regs*
%3 = alloca i32
%4 = alloca i32
store %struct.pt_regs* %0, %struct.pt_regs** %2
store i32 0, i32* %4
%5 = load %struct.pt_regs*, %struct.pt_regs** %2
%6 = call i32 @__on_event(%struct.pt_regs* %5)
%7 = load i32, i32* %4
%8 = or i32 %7, %6
store i32 %8, i32* %4
%9 = load %struct.pt_regs*, %struct.pt_regs** %2
%10 = call i32 @__on_event(%struct.pt_regs* %9)
%11 = load i32, i32* %4
%12 = or i32 %11, %10
store i32 %12, i32* %4
%13 = load %struct.pt_regs*, %struct.pt_regs** %2
%14 = call i32 @__on_event(%struct.pt_regs* %13)
%15 = load i32, i32* %4
%16 = or i32 %15, %14
store i32 %16, i32* %4
%17 = load %struct.pt_regs*, %struct.pt_regs** %2
%18 = call i32 @__on_event(%struct.pt_regs* %17)
%19 = load i32, i32* %4
%20 = or i32 %19, %18
store i32 %20, i32* %4
%21 = load %struct.pt_regs*, %struct.pt_regs** %2
%22 = call i32 @__on_event(%struct.pt_regs* %21)
%23 = load i32, i32* %4
%24 = or i32 %23, %22
store i32 %24, i32* %4
%25 = load i32, i32* %4
ret i32 %25
}

LLVM IR (-O2):
%struct.pt_regs = type { i32 }
@llvm.compiler.used = appending global [1 x i8*] [i8* bitcast (i32 (%struct.pt_regs*)* @on_event to i8*)], section "llvm.metadata"
define i32 @on_event(%struct.pt_regs* %0) section "raw_tracepoint/kfree_skb" {
%2 = tail call i32 @__on_event(%struct.pt_regs* %0)
%3 = tail call i32 @__on_event(%struct.pt_regs* %0)
%4 = or i32 %3, %2
%5 = tail call i32 @__on_event(%struct.pt_regs* %0)
%6 = or i32 %4, %5
%7 = tail call i32 @__on_event(%struct.pt_regs* %0)
%8 = or i32 %6, %7
%9 = tail call i32 @__on_event(%struct.pt_regs* %0)
%10 = or i32 %8, %9
ret i32 %10
}