#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 t_hashtable {
  int dummy;
};
struct t_gui_window {
  int dummy;
};
struct t_gui_buffer {
  int dummy;
};
struct t_gui_bar_item {
  int dummy;
};

/* Variables and functions */
char *irc_bar_item_buffer_name_content(struct t_gui_buffer *, int);
char *irc_bar_item_buffer_short_name(const void *pointer, void *data,
                                     struct t_gui_bar_item *item,
                                     struct t_gui_window *window,
                                     struct t_gui_buffer *buffer,
                                     struct t_hashtable *extra_info) {
  (void)pointer;
  (void)data;
  (void)item;
  (void)window;
  (void)extra_info;
  return irc_bar_item_buffer_name_content(buffer, 1);
}


x86 assembly (clang, -O0):
<irc_bar_item_buffer_short_name>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x28(%rbp),%rdi
mov    $0x1,%esi
call   1030 <irc_bar_item_buffer_name_content@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<irc_bar_item_buffer_short_name>:
mov    %r8,%rdi
mov    $0x1,%esi
jmp    1030 <irc_bar_item_buffer_name_content@plt>

LLVM IR (-O0):
%struct.t_gui_bar_item = type { i32 }
%struct.t_gui_window = type { i32 }
%struct.t_gui_buffer = type { i32 }
%struct.t_hashtable = type { i32 }
define i8* @irc_bar_item_buffer_short_name(i8* %0, i8* %1, %struct.t_gui_bar_item* %2, %struct.t_gui_window* %3, %struct.t_gui_buffer* %4, %struct.t_hashtable* %5) {
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca %struct.t_gui_bar_item*
%10 = alloca %struct.t_gui_window*
%11 = alloca %struct.t_gui_buffer*
%12 = alloca %struct.t_hashtable*
store i8* %0, i8** %7
store i8* %1, i8** %8
store %struct.t_gui_bar_item* %2, %struct.t_gui_bar_item** %9
store %struct.t_gui_window* %3, %struct.t_gui_window** %10
store %struct.t_gui_buffer* %4, %struct.t_gui_buffer** %11
store %struct.t_hashtable* %5, %struct.t_hashtable** %12
%13 = load i8*, i8** %7
%14 = load i8*, i8** %8
%15 = load %struct.t_gui_bar_item*, %struct.t_gui_bar_item** %9
%16 = load %struct.t_gui_window*, %struct.t_gui_window** %10
%17 = load %struct.t_hashtable*, %struct.t_hashtable** %12
%18 = load %struct.t_gui_buffer*, %struct.t_gui_buffer** %11
%19 = call i8* @irc_bar_item_buffer_name_content(%struct.t_gui_buffer* %18, i32 1)
ret i8* %19
}

LLVM IR (-O2):
%struct.t_gui_bar_item = type { i32 }
%struct.t_gui_window = type { i32 }
%struct.t_gui_buffer = type { i32 }
%struct.t_hashtable = type { i32 }
define i8* @irc_bar_item_buffer_short_name(i8* nocapture readnone %0, i8* nocapture readnone %1, %struct.t_gui_bar_item* nocapture readnone %2, %struct.t_gui_window* nocapture readnone %3, %struct.t_gui_buffer* %4, %struct.t_hashtable* nocapture readnone %5) {
%7 = tail call i8* @irc_bar_item_buffer_name_content(%struct.t_gui_buffer* %4, i32 1)
ret i8* %7
}