#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 */
char *get_msg_ttl_auto_mark_hint(long);
char *get_msg_ttl_auto_mark_info(long);
int /*<<< orphan*/ str_max_n_cat(char *, char *, int);
char *get_msg_ttl_auto_mark_name(long n) {
  static char str[(64 * 8) + 1];
  str[0] = '\0';
  str_max_n_cat(str, get_msg_ttl_auto_mark_info(n), (64 * 8));
  str_max_n_cat(str, " - ", (64 * 8));
  str_max_n_cat(str, get_msg_ttl_auto_mark_hint(n), (64 * 8));
  return str;
}


x86 assembly (clang, -O0):
<get_msg_ttl_auto_mark_name>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movb   $0x0,0x2f0d(%rip)
mov    -0x8(%rbp),%rdi
call   1040 <get_msg_ttl_auto_mark_info@plt>
mov    %rax,%rsi
lea    0x2efa(%rip),%rdi
mov    $0x200,%edx
call   1050 <str_max_n_cat@plt>
lea    0x2ee9(%rip),%rdi
lea    0xe92(%rip),%rsi
mov    $0x200,%edx
call   1050 <str_max_n_cat@plt>
mov    -0x8(%rbp),%rdi
call   1030 <get_msg_ttl_auto_mark_hint@plt>
mov    %rax,%rsi
lea    0x2ec5(%rip),%rdi
mov    $0x200,%edx
call   1050 <str_max_n_cat@plt>
lea    0x2eb4(%rip),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_msg_ttl_auto_mark_name>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
movb   $0x0,0x2f12(%rip)
lea    0x2f0b(%rip),%r14
call   1040 <get_msg_ttl_auto_mark_info@plt>
mov    %r14,%rdi
mov    %rax,%rsi
mov    $0x200,%edx
call   1050 <str_max_n_cat@plt>
lea    0xe9f(%rip),%rsi
mov    %r14,%rdi
mov    $0x200,%edx
call   1050 <str_max_n_cat@plt>
mov    %rbx,%rdi
call   1030 <get_msg_ttl_auto_mark_hint@plt>
mov    %r14,%rdi
mov    %rax,%rsi
mov    $0x200,%edx
call   1050 <str_max_n_cat@plt>
mov    %r14,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@get_msg_ttl_auto_mark_name.str = internal global [513 x i8] zeroinitializer
@.str = [4 x i8] c" - \00"
define i8* @get_msg_ttl_auto_mark_name(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
store i8 0, i8* getelementptr inbounds ([513 x i8], [513 x i8]* @get_msg_ttl_auto_mark_name.str, i64 0, i64 0)
%3 = load i64, i64* %2
%4 = call i8* @get_msg_ttl_auto_mark_info(i64 %3)
%5 = call i32 @str_max_n_cat(i8* getelementptr inbounds ([513 x i8], [513 x i8]* @get_msg_ttl_auto_mark_name.str, i64 0, i64 0), i8* %4, i32 512)
%6 = call i32 @str_max_n_cat(i8* getelementptr inbounds ([513 x i8], [513 x i8]* @get_msg_ttl_auto_mark_name.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 512)
%7 = load i64, i64* %2
%8 = call i8* @get_msg_ttl_auto_mark_hint(i64 %7)
%9 = call i32 @str_max_n_cat(i8* getelementptr inbounds ([513 x i8], [513 x i8]* @get_msg_ttl_auto_mark_name.str, i64 0, i64 0), i8* %8, i32 512)
ret i8* getelementptr inbounds ([513 x i8], [513 x i8]* @get_msg_ttl_auto_mark_name.str, i64 0, i64 0)
}

LLVM IR (-O2):
@get_msg_ttl_auto_mark_name.str = internal global [513 x i8] zeroinitializer
@.str = [4 x i8] c" - \00"
define i8* @get_msg_ttl_auto_mark_name(i64 %0) {
store i8 0, i8* getelementptr inbounds ([513 x i8], [513 x i8]* @get_msg_ttl_auto_mark_name.str, i64 0, i64 0)
%2 = tail call i8* @get_msg_ttl_auto_mark_info(i64 %0)
%3 = tail call i32 @str_max_n_cat(i8* getelementptr inbounds ([513 x i8], [513 x i8]* @get_msg_ttl_auto_mark_name.str, i64 0, i64 0), i8* %2, i32 512)
%4 = tail call i32 @str_max_n_cat(i8* getelementptr inbounds ([513 x i8], [513 x i8]* @get_msg_ttl_auto_mark_name.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 512)
%5 = tail call i8* @get_msg_ttl_auto_mark_hint(i64 %0)
%6 = tail call i32 @str_max_n_cat(i8* getelementptr inbounds ([513 x i8], [513 x i8]* @get_msg_ttl_auto_mark_name.str, i64 0, i64 0), i8* %5, i32 512)
ret i8* getelementptr inbounds ([513 x i8], [513 x i8]* @get_msg_ttl_auto_mark_name.str, i64 0, i64 0)
}