#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 cgroupstats {
  scalar_t__ nr_uninterruptible;
  scalar_t__ nr_stopped;
  scalar_t__ nr_running;
  scalar_t__ nr_io_wait;
  scalar_t__ nr_sleeping;
};

/* Variables and functions */
int /*<<< orphan*/ printf(char *, unsigned long long, unsigned long long,
                          unsigned long long, unsigned long long,
                          unsigned long long);
void print_cgroupstats(struct cgroupstats *c) {
  printf("sleeping %llu, blocked %llu, running %llu, stopped %llu, "
         "uninterruptible %llu\n",
         (unsigned long long)c->nr_sleeping, (unsigned long long)c->nr_io_wait,
         (unsigned long long)c->nr_running, (unsigned long long)c->nr_stopped,
         (unsigned long long)c->nr_uninterruptible);
}


x86 assembly (clang, -O0):
<print_cgroupstats>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    0x20(%rax),%rsi
mov    -0x8(%rbp),%rax
mov    0x18(%rax),%rdx
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%rcx
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%r8
mov    -0x8(%rbp),%rax
mov    (%rax),%r9
lea    0xeb6(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_cgroupstats>:
mov    0x20(%rdi),%rsi
mov    0x18(%rdi),%rdx
mov    0x10(%rdi),%rcx
mov    (%rdi),%r9
mov    0x8(%rdi),%r8
lea    0xed6(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
%struct.cgroupstats = type { i64, i64, i64, i64, i64 }
@.str = [79 x i8] c"sleeping %llu, blocked %llu, running %llu, stopped %llu, uninterruptible %llu\0A\00"
define void @print_cgroupstats(%struct.cgroupstats* %0) {
%2 = alloca %struct.cgroupstats*
store %struct.cgroupstats* %0, %struct.cgroupstats** %2
%3 = load %struct.cgroupstats*, %struct.cgroupstats** %2
%4 = getelementptr inbounds %struct.cgroupstats, %struct.cgroupstats* %3, i32 0, i32 4
%5 = load i64, i64* %4
%6 = load %struct.cgroupstats*, %struct.cgroupstats** %2
%7 = getelementptr inbounds %struct.cgroupstats, %struct.cgroupstats* %6, i32 0, i32 3
%8 = load i64, i64* %7
%9 = load %struct.cgroupstats*, %struct.cgroupstats** %2
%10 = getelementptr inbounds %struct.cgroupstats, %struct.cgroupstats* %9, i32 0, i32 2
%11 = load i64, i64* %10
%12 = load %struct.cgroupstats*, %struct.cgroupstats** %2
%13 = getelementptr inbounds %struct.cgroupstats, %struct.cgroupstats* %12, i32 0, i32 1
%14 = load i64, i64* %13
%15 = load %struct.cgroupstats*, %struct.cgroupstats** %2
%16 = getelementptr inbounds %struct.cgroupstats, %struct.cgroupstats* %15, i32 0, i32 0
%17 = load i64, i64* %16
%18 = call i32 @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str, i64 0, i64 0), i64 %5, i64 %8, i64 %11, i64 %14, i64 %17)
ret void
}

LLVM IR (-O2):
%struct.cgroupstats = type { i64, i64, i64, i64, i64 }
@.str = [79 x i8] c"sleeping %llu, blocked %llu, running %llu, stopped %llu, uninterruptible %llu\0A\00"
define void @print_cgroupstats(%struct.cgroupstats* nocapture %0) {
%2 = getelementptr inbounds %struct.cgroupstats, %struct.cgroupstats* %0, i64 0, i32 4
%3 = load i64, i64* %2
%4 = getelementptr inbounds %struct.cgroupstats, %struct.cgroupstats* %0, i64 0, i32 3
%5 = load i64, i64* %4
%6 = getelementptr inbounds %struct.cgroupstats, %struct.cgroupstats* %0, i64 0, i32 2
%7 = load i64, i64* %6
%8 = getelementptr inbounds %struct.cgroupstats, %struct.cgroupstats* %0, i64 0, i32 1
%9 = load i64, i64* %8
%10 = getelementptr inbounds %struct.cgroupstats, %struct.cgroupstats* %0, i64 0, i32 0
%11 = load i64, i64* %10
%12 = tail call i32 @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str, i64 0, i64 0), i64 %3, i64 %5, i64 %7, i64 %9, i64 %11)
ret void
}