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

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ om_text_print_bar(int /*<<< orphan*/ *, int, int, int, int,
                                     char, char);
void om_text_print_numkeybar_entry(FILE *fp, char *key, int max, int tot,
                                   int this, int time_delta) {
  (void)time_delta;
  fprintf(fp, "   %-12s: %-9d |", key, this);
  om_text_print_bar(fp, max, tot, this, 44, '#', ' ');
  fprintf(fp, "\n");
}


x86 assembly (clang, -O0):
<om_text_print_numkeybar_entry>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    %r9d,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
lea    0xeb0(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x1c(%rbp),%ecx
mov    $0x2c,%r8d
mov    $0x23,%r9d
movl   $0x20,(%rsp)
call   1030 <om_text_print_bar@plt>
mov    -0x8(%rbp),%rdi
lea    0xe8a(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<om_text_print_numkeybar_entry>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %r8d,%ebx
mov    %ecx,%r14d
mov    %edx,%r15d
mov    %rsi,%rdx
mov    %rdi,%rbp
lea    0xeb3(%rip),%rsi
mov    %r8d,%ecx
xor    %eax,%eax
call   1050 <fprintf@plt>
movl   $0x20,(%rsp)
mov    %rbp,%rdi
mov    %r15d,%esi
mov    %r14d,%edx
mov    %ebx,%ecx
mov    $0x2c,%r8d
mov    $0x23,%r9d
call   1040 <om_text_print_bar@plt>
mov    $0xa,%edi
mov    %rbp,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <fputc@plt>

LLVM IR (-O0):
@.str = [17 x i8] c" %-12s: %-9d |\00"
@.str.1 = [2 x i8] c"\0A\00"
define void @om_text_print_numkeybar_entry(i32* %0, i8* %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = alloca i32*
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i32* %0, i32** %7
store i8* %1, i8** %8
store i32 %2, i32* %9
store i32 %3, i32* %10
store i32 %4, i32* %11
store i32 %5, i32* %12
%13 = load i32, i32* %12
%14 = load i32*, i32** %7
%15 = load i8*, i8** %8
%16 = load i32, i32* %11
%17 = call i32 (i32*, i8*, ...) @fprintf(i32* %14, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* %15, i32 %16)
%18 = load i32*, i32** %7
%19 = load i32, i32* %9
%20 = load i32, i32* %10
%21 = load i32, i32* %11
%22 = call i32 @om_text_print_bar(i32* %18, i32 %19, i32 %20, i32 %21, i32 44, i8 signext 35, i8 signext 32)
%23 = load i32*, i32** %7
%24 = call i32 (i32*, i8*, ...) @fprintf(i32* %23, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [17 x i8] c" %-12s: %-9d |\00"
define void @om_text_print_numkeybar_entry(i32* %0, i8* %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* %1, i32 %4)
%8 = tail call i32 @om_text_print_bar(i32* %0, i32 %2, i32 %3, i32 %4, i32 44, i8 signext 35, i8 signext 32)
%9 = tail call i32 @fputc(i32 10, i32* %0)
ret void
}