#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;

/* Variables and functions */
int /*<<< orphan*/ XCB_ATOM_WINDOW;
int /*<<< orphan*/ XCB_ATOM_WM_TRANSIENT_FOR;
int /*<<< orphan*/ XCB_PROP_MODE_REPLACE;
int /*<<< orphan*/
xcb_change_property_checked(int /*<<< orphan*/ *, int /*<<< orphan*/,
                            int /*<<< orphan*/, int /*<<< orphan*/,
                            int /*<<< orphan*/, int, int, int /*<<< orphan*/ *);
xcb_void_cookie_t
xcb_icccm_set_wm_transient_for_checked(xcb_connection_t *c, xcb_window_t window,
                                       xcb_window_t transient_for_window) {
  return xcb_change_property_checked(c, XCB_PROP_MODE_REPLACE, window,
                                     XCB_ATOM_WM_TRANSIENT_FOR, XCB_ATOM_WINDOW,
                                     32, 1, &transient_for_window);
}


x86 assembly (clang, -O0):
<xcb_icccm_set_wm_transient_for_checked>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2ea3(%rip),%rax
mov    (%rax),%esi
mov    -0xc(%rbp),%edx
mov    0x2ea7(%rip),%rax
mov    (%rax),%ecx
mov    0x2eb6(%rip),%rax
mov    (%rax),%r8d
mov    $0x20,%r9d
lea    -0x10(%rbp),%rax
movl   $0x1,(%rsp)
mov    %rax,0x8(%rsp)
call   1030 <xcb_change_property_checked@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xcb_icccm_set_wm_transient_for_checked>:
push   %rax
mov    %esi,%eax
mov    %edx,0x4(%rsp)
mov    0x2eb2(%rip),%rcx
mov    (%rcx),%esi
mov    0x2eb9(%rip),%rcx
mov    (%rcx),%ecx
mov    0x2ec8(%rip),%rdx
mov    (%rdx),%r8d
lea    0x4(%rsp),%r10
mov    %eax,%edx
mov    $0x20,%r9d
push   %r10
push   $0x1
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_TRANSIENT_FOR = global i32 0
@XCB_ATOM_WINDOW = global i32 0
define i32 @xcb_icccm_set_wm_transient_for_checked(i32* %0, i32 %1, i32 %2) {
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i32
store i32* %0, i32** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i32*, i32** %4
%8 = load i32, i32* @XCB_PROP_MODE_REPLACE
%9 = load i32, i32* %5
%10 = load i32, i32* @XCB_ATOM_WM_TRANSIENT_FOR
%11 = load i32, i32* @XCB_ATOM_WINDOW
%12 = call i32 @xcb_change_property_checked(i32* %7, i32 %8, i32 %9, i32 %10, i32 %11, i32 32, i32 1, i32* %6)
ret i32 %12
}

LLVM IR (-O2):
@XCB_PROP_MODE_REPLACE = global i32 0
@XCB_ATOM_WM_TRANSIENT_FOR = global i32 0
@XCB_ATOM_WINDOW = global i32 0
define i32 @xcb_icccm_set_wm_transient_for_checked(i32* %0, i32 %1, i32 %2) {
%4 = alloca i32
store i32 %2, i32* %4
%5 = load i32, i32* @XCB_PROP_MODE_REPLACE
%6 = load i32, i32* @XCB_ATOM_WM_TRANSIENT_FOR
%7 = load i32, i32* @XCB_ATOM_WINDOW
%8 = call i32 @xcb_change_property_checked(i32* %0, i32 %5, i32 %1, i32 %6, i32 %7, i32 32, i32 1, i32* %4)
ret i32 %8
}