#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*/ xcb_window_t;
typedef int /*<<< orphan*/ xcb_void_cookie_t;
typedef int /*<<< orphan*/ xcb_connection_t;
typedef int /*<<< orphan*/ xcb_atom_t;
typedef int /*<<< orphan*/ uint8_t;
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ XCB_ATOM_WM_NAME;
int /*<<< orphan*/ XCB_PROP_MODE_REPLACE;
int /*<<< orphan*/
xcb_change_property_checked(int /*<<< orphan*/ *, int /*<<< orphan*/,
                            int /*<<< orphan*/, int /*<<< orphan*/,
                            int /*<<< orphan*/, int /*<<< orphan*/,
                            int /*<<< orphan*/, char const *);
xcb_void_cookie_t
xcb_icccm_set_wm_name_checked(xcb_connection_t *c, xcb_window_t window,
                              xcb_atom_t encoding, uint8_t format,
                              uint32_t name_len, const char *name) {
  return xcb_change_property_checked(c, XCB_PROP_MODE_REPLACE, window,
                                     XCB_ATOM_WM_NAME, encoding, format,
                                     name_len, name);
}


x86 assembly (clang, -O0):
<xcb_icccm_set_wm_name_checked>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8d,-0x18(%rbp)
mov    %r9,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2ea0(%rip),%rax
mov    (%rax),%esi
mov    -0xc(%rbp),%edx
mov    0x2ea4(%rip),%rax
mov    (%rax),%ecx
mov    -0x10(%rbp),%r8d
mov    -0x14(%rbp),%r9d
mov    -0x18(%rbp),%r10d
mov    -0x20(%rbp),%rax
mov    %r10d,(%rsp)
mov    %rax,0x8(%rsp)
call   1030 <xcb_change_property_checked@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xcb_icccm_set_wm_name_checked>:
push   %rax
mov    %r9,%rax
mov    %r8d,%r10d
mov    %ecx,%r9d
mov    %edx,%r8d
mov    %esi,%edx
mov    0x2eb2(%rip),%rcx
mov    (%rcx),%esi
mov    0x2eb9(%rip),%rcx
mov    (%rcx),%ecx
push   %rax
push   %r10
call   1030 <xcb_change_property_checked@plt>
add    $0x10,%rsp
pop    %rcx
ret

LLVM IR (-O0):
@XCB_PROP_MODE_REPLACE = global i32 0
@XCB_ATOM_WM_NAME = global i32 0
define i32 @xcb_icccm_set_wm_name_checked(i32* %0, i32 %1, i32 %2, i32 %3, i32 %4, i8* %5) {
%7 = alloca i32*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i8*
store i32* %0, i32** %7
store i32 %1, i32* %8
store i32 %2, i32* %9
store i32 %3, i32* %10
store i32 %4, i32* %11
store i8* %5, i8** %12
%13 = load i32*, i32** %7
%14 = load i32, i32* @XCB_PROP_MODE_REPLACE
%15 = load i32, i32* %8
%16 = load i32, i32* @XCB_ATOM_WM_NAME
%17 = load i32, i32* %9
%18 = load i32, i32* %10
%19 = load i32, i32* %11
%20 = load i8*, i8** %12
%21 = call i32 @xcb_change_property_checked(i32* %13, i32 %14, i32 %15, i32 %16, i32 %17, i32 %18, i32 %19, i8* %20)
ret i32 %21
}

LLVM IR (-O2):
@XCB_PROP_MODE_REPLACE = global i32 0
@XCB_ATOM_WM_NAME = global i32 0
define i32 @xcb_icccm_set_wm_name_checked(i32* %0, i32 %1, i32 %2, i32 %3, i32 %4, i8* %5) {
%7 = load i32, i32* @XCB_PROP_MODE_REPLACE
%8 = load i32, i32* @XCB_ATOM_WM_NAME
%9 = tail call i32 @xcb_change_property_checked(i32* %0, i32 %7, i32 %1, i32 %8, i32 %2, i32 %3, i32 %4, i8* %5)
ret i32 %9
}