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

/* Variables and functions */
int /*<<< orphan*/ XCB_ATOM_WINDOW;
int /*<<< orphan*/ XCB_PROP_MODE_REPLACE;
int /*<<< orphan*/ xcb_change_property(int /*<<< orphan*/ *, int /*<<< orphan*/,
                                       int /*<<< orphan*/, int /*<<< orphan*/,
                                       int /*<<< orphan*/, int,
                                       int /*<<< orphan*/,
                                       int /*<<< orphan*/ const *);
xcb_void_cookie_t
xcb_icccm_set_wm_colormap_windows(xcb_connection_t *c, xcb_window_t window,
                                  xcb_atom_t wm_colormap_windows_atom,
                                  uint32_t list_len, const xcb_atom_t *list) {
  return xcb_change_property(c, XCB_PROP_MODE_REPLACE, window,
                             wm_colormap_windows_atom, XCB_ATOM_WINDOW, 32,
                             list_len, list);
}


x86 assembly (clang, -O0):
<xcb_icccm_set_wm_colormap_windows>:
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    %r8,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2ea4(%rip),%rax
mov    (%rax),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    0x2eb5(%rip),%rax
mov    (%rax),%r8d
mov    -0x14(%rbp),%r10d
mov    -0x20(%rbp),%rax
mov    $0x20,%r9d
mov    %r10d,(%rsp)
mov    %rax,0x8(%rsp)
call   1030 <xcb_change_property@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xcb_icccm_set_wm_colormap_windows>:
push   %rax
mov    %r8,%r11
mov    %ecx,%r10d
mov    %edx,%ecx
mov    %esi,%edx
mov    0x2eb6(%rip),%rsi
mov    (%rsi),%esi
mov    0x2ecd(%rip),%rax
mov    (%rax),%r8d
mov    $0x20,%r9d
push   %r11
push   %r10
call   1030 <xcb_change_property@plt>
add    $0x10,%rsp
pop    %rcx
ret

LLVM IR (-O0):
@XCB_PROP_MODE_REPLACE = global i32 0
@XCB_ATOM_WINDOW = global i32 0
define i32 @xcb_icccm_set_wm_colormap_windows(i32* %0, i32 %1, i32 %2, i32 %3, i32* %4) {
%6 = alloca i32*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32*
store i32* %0, i32** %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i32* %4, i32** %10
%11 = load i32*, i32** %6
%12 = load i32, i32* @XCB_PROP_MODE_REPLACE
%13 = load i32, i32* %7
%14 = load i32, i32* %8
%15 = load i32, i32* @XCB_ATOM_WINDOW
%16 = load i32, i32* %9
%17 = load i32*, i32** %10
%18 = call i32 @xcb_change_property(i32* %11, i32 %12, i32 %13, i32 %14, i32 %15, i32 32, i32 %16, i32* %17)
ret i32 %18
}

LLVM IR (-O2):
@XCB_PROP_MODE_REPLACE = global i32 0
@XCB_ATOM_WINDOW = global i32 0
define i32 @xcb_icccm_set_wm_colormap_windows(i32* %0, i32 %1, i32 %2, i32 %3, i32* %4) {
%6 = load i32, i32* @XCB_PROP_MODE_REPLACE
%7 = load i32, i32* @XCB_ATOM_WINDOW
%8 = tail call i32 @xcb_change_property(i32* %0, i32 %6, i32 %1, i32 %2, i32 %7, i32 32, i32 %3, i32* %4)
ret i32 %8
}