#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 */

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, char *, char *,
                           char *, char *, char *, char *, char *, char *,
                           char *);
int /*<<< orphan*/ stdout;
int dump_offload(int rx, int tx, int sg, int tso, int ufo, int gso, int gro,
                 int lro, int ntuple, int rxhash) {
  fprintf(stdout,
          "rx-checksumming: %s\n"
          "tx-checksumming: %s\n"
          "scatter-gather: %s\n"
          "tcp-segmentation-offload: %s\n"
          "udp-fragmentation-offload: %s\n"
          "generic-segmentation-offload: %s\n"
          "generic-receive-offload: %s\n"
          "large-receive-offload: %s\n"
          "ntuple-filters: %s\n"
          "receive-hashing: %s\n",
          rx ? "on" : "off", tx ? "on" : "off", sg ? "on" : "off",
          tso ? "on" : "off", ufo ? "on" : "off", gso ? "on" : "off",
          gro ? "on" : "off", lro ? "on" : "off", ntuple ? "on" : "off",
          rxhash ? "on" : "off");
  return 0;
}


x86 assembly (clang, -O0):
<dump_offload>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x50,%rsp
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %edi,-0x24(%rbp)
mov    %esi,-0x28(%rbp)
mov    %edx,-0x2c(%rbp)
mov    %ecx,-0x30(%rbp)
mov    %r8d,-0x34(%rbp)
mov    %r9d,-0x38(%rbp)
mov    0x2e9a(%rip),%rax
mov    (%rax),%edi
mov    -0x24(%rbp),%ecx
lea    0xfa6(%rip),%rdx
lea    0xf9c(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rdx
mov    -0x28(%rbp),%esi
lea    0xf8e(%rip),%rcx
lea    0xf84(%rip),%rax
cmp    $0x0,%esi
cmovne %rax,%rcx
mov    -0x2c(%rbp),%esi
lea    0xf76(%rip),%r8
lea    0xf6c(%rip),%rax
cmp    $0x0,%esi
cmovne %rax,%r8
mov    -0x30(%rbp),%esi
lea    0xf5e(%rip),%r9
lea    0xf54(%rip),%rax
cmp    $0x0,%esi
cmovne %rax,%r9
mov    -0x34(%rbp),%esi
lea    0xf46(%rip),%r15
lea    0xf3c(%rip),%rax
cmp    $0x0,%esi
cmovne %rax,%r15
mov    -0x38(%rbp),%esi
lea    0xf2e(%rip),%r14
lea    0xf24(%rip),%rax
cmp    $0x0,%esi
cmovne %rax,%r14
mov    0x10(%rbp),%esi
lea    0xf16(%rip),%rbx
lea    0xf0c(%rip),%rax
cmp    $0x0,%esi
cmovne %rax,%rbx
mov    0x18(%rbp),%esi
lea    0xefe(%rip),%r11
lea    0xef4(%rip),%rax
cmp    $0x0,%esi
cmovne %rax,%r11
mov    0x20(%rbp),%esi
lea    0xee6(%rip),%r10
lea    0xedc(%rip),%rax
cmp    $0x0,%esi
cmovne %rax,%r10
mov    0x28(%rbp),%r12d
lea    0xecd(%rip),%rax
lea    0xec3(%rip),%rsi
cmp    $0x0,%r12d
cmovne %rsi,%rax
lea    0xdbf(%rip),%rsi
mov    %r15,(%rsp)
mov    %r14,0x8(%rsp)
mov    %rbx,0x10(%rsp)
mov    %r11,0x18(%rsp)
mov    %r10,0x20(%rsp)
mov    %rax,0x28(%rsp)
call   1030 <fprintf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<dump_offload>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
test   %edi,%edi
lea    0xfd1(%rip),%rbx
lea    0xfc7(%rip),%rax
mov    %rax,%rdi
cmove  %rbx,%rdi
mov    %rdi,0x8(%rsp)
test   %esi,%esi
mov    %rax,%r11
cmove  %rbx,%r11
test   %edx,%edx
mov    %rax,%r14
cmove  %rbx,%r14
test   %ecx,%ecx
mov    %rax,%r12
cmove  %rbx,%r12
mov    0x2e84(%rip),%rcx
test   %r8d,%r8d
mov    %rax,%rdx
cmove  %rbx,%rdx
mov    %rdx,0x10(%rsp)
mov    (%rcx),%edi
test   %r9d,%r9d
mov    %rax,%r13
cmove  %rbx,%r13
cmpl   $0x0,0x50(%rsp)
mov    %rax,%rbp
cmove  %rbx,%rbp
cmpl   $0x0,0x58(%rsp)
mov    %rax,%r15
cmove  %rbx,%r15
cmpl   $0x0,0x60(%rsp)
mov    %rax,%r10
cmove  %rbx,%r10
cmpl   $0x0,0x68(%rsp)
cmove  %rbx,%rax
lea    0xe55(%rip),%rsi
mov    0x8(%rsp),%rdx
mov    %r11,%rcx
mov    %r14,%r8
mov    %r12,%r9
push   %rax
push   %r10
push   %r15
push   %rbp
push   %r13
push   0x38(%rsp)
call   1030 <fprintf@plt>
add    $0x30,%rsp
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stdout = global i32 0
@.str = [245 x i8] c"rx-checksumming: %s\0Atx-checksumming: %s\0Ascatter-gather: %s\0Atcp-segmentation-offload: %s\0Audp-fragmentation-offload: %s\0Ageneric-segmentation-offload: %s\0Ageneric-receive-offload: %s\0Alarge-receive-offload: %s\0Antuple-filters: %s\0Areceive-hashing: %s\0A\00"
@.str.1 = [3 x i8] c"on\00"
@.str.2 = [4 x i8] c"off\00"
define i32 @dump_offload(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8, i32 %9) {
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
store i32 %0, i32* %11
store i32 %1, i32* %12
store i32 %2, i32* %13
store i32 %3, i32* %14
store i32 %4, i32* %15
store i32 %5, i32* %16
store i32 %6, i32* %17
store i32 %7, i32* %18
store i32 %8, i32* %19
store i32 %9, i32* %20
%21 = load i32, i32* @stdout
%22 = load i32, i32* %11
%23 = icmp ne i32 %22, 0
%24 = zext i1 %23 to i64
%25 = select i1 %23, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0)
%26 = load i32, i32* %12
%27 = icmp ne i32 %26, 0
%28 = zext i1 %27 to i64
%29 = select i1 %27, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0)
%30 = load i32, i32* %13
%31 = icmp ne i32 %30, 0
%32 = zext i1 %31 to i64
%33 = select i1 %31, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0)
%34 = load i32, i32* %14
%35 = icmp ne i32 %34, 0
%36 = zext i1 %35 to i64
%37 = select i1 %35, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0)
%38 = load i32, i32* %15
%39 = icmp ne i32 %38, 0
%40 = zext i1 %39 to i64
%41 = select i1 %39, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0)
%42 = load i32, i32* %16
%43 = icmp ne i32 %42, 0
%44 = zext i1 %43 to i64
%45 = select i1 %43, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0)
%46 = load i32, i32* %17
%47 = icmp ne i32 %46, 0
%48 = zext i1 %47 to i64
%49 = select i1 %47, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0)
%50 = load i32, i32* %18
%51 = icmp ne i32 %50, 0
%52 = zext i1 %51 to i64
%53 = select i1 %51, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0)
%54 = load i32, i32* %19
%55 = icmp ne i32 %54, 0
%56 = zext i1 %55 to i64
%57 = select i1 %55, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0)
%58 = load i32, i32* %20
%59 = icmp ne i32 %58, 0
%60 = zext i1 %59 to i64
%61 = select i1 %59, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0)
%62 = call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([245 x i8], [245 x i8]* @.str, i64 0, i64 0), i8* %25, i8* %29, i8* %33, i8* %37, i8* %41, i8* %45, i8* %49, i8* %53, i8* %57, i8* %61)
ret i32 0
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [245 x i8] c"rx-checksumming: %s\0Atx-checksumming: %s\0Ascatter-gather: %s\0Atcp-segmentation-offload: %s\0Audp-fragmentation-offload: %s\0Ageneric-segmentation-offload: %s\0Ageneric-receive-offload: %s\0Alarge-receive-offload: %s\0Antuple-filters: %s\0Areceive-hashing: %s\0A\00"
@.str.1 = [3 x i8] c"on\00"
@.str.2 = [4 x i8] c"off\00"
define i32 @dump_offload(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8, i32 %9) {
%11 = load i32, i32* @stdout
%12 = icmp eq i32 %0, 0
%13 = select i1 %12, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0)
%14 = icmp eq i32 %1, 0
%15 = select i1 %14, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0)
%16 = icmp eq i32 %2, 0
%17 = select i1 %16, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0)
%18 = icmp eq i32 %3, 0
%19 = select i1 %18, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0)
%20 = icmp eq i32 %4, 0
%21 = select i1 %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0)
%22 = icmp eq i32 %5, 0
%23 = select i1 %22, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0)
%24 = icmp eq i32 %6, 0
%25 = select i1 %24, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0)
%26 = icmp eq i32 %7, 0
%27 = select i1 %26, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0)
%28 = icmp eq i32 %8, 0
%29 = select i1 %28, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0)
%30 = icmp eq i32 %9, 0
%31 = select i1 %30, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0)
%32 = tail call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([245 x i8], [245 x i8]* @.str, i64 0, i64 0), i8* %13, i8* %15, i8* %17, i8* %19, i8* %21, i8* %23, i8* %25, i8* %27, i8* %29, i8* %31)
ret i32 0
}