#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_get_property_reply_t;
typedef int /*<<< orphan*/ xcb_get_property_cookie_t;
typedef int /*<<< orphan*/ xcb_generic_error_t;
typedef int /*<<< orphan*/ xcb_connection_t;
typedef int /*<<< orphan*/ uint8_t;

/* Variables and functions */
int /*<<< orphan*/ free(int /*<<< orphan*/ *);
int /*<<< orphan*/ *xcb_get_property_reply(int /*<<< orphan*/ *,
                                           int /*<<< orphan*/,
                                           int /*<<< orphan*/ **);
int /*<<< orphan*/
xcb_icccm_get_wm_transient_for_from_reply(int /*<<< orphan*/ *,
                                          int /*<<< orphan*/ *);
uint8_t xcb_icccm_get_wm_transient_for_reply(xcb_connection_t *c,
                                             xcb_get_property_cookie_t cookie,
                                             xcb_window_t *prop,
                                             xcb_generic_error_t **e) {
  xcb_get_property_reply_t *reply = xcb_get_property_reply(c, cookie, e);
  uint8_t ret = xcb_icccm_get_wm_transient_for_from_reply(prop, reply);
  free(reply);
  return ret;
}


x86 assembly (clang, -O0):
<xcb_icccm_get_wm_transient_for_reply>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x20(%rbp),%rdx
call   1050 <xcb_get_property_reply@plt>
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1040 <xcb_icccm_get_wm_transient_for_from_reply@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
mov    -0x2c(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xcb_icccm_get_wm_transient_for_reply>:
push   %rbp
push   %r14
push   %rbx
mov    %rdx,%r14
mov    %rcx,%rdx
call   1050 <xcb_get_property_reply@plt>
mov    %rax,%rbx
mov    %r14,%rdi
mov    %rax,%rsi
call   1040 <xcb_icccm_get_wm_transient_for_from_reply@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %ebp,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i32 @xcb_icccm_get_wm_transient_for_reply(i32* %0, i32 %1, i32* %2, i32** %3) {
%5 = alloca i32*
%6 = alloca i32
%7 = alloca i32*
%8 = alloca i32**
%9 = alloca i32*
%10 = alloca i32
store i32* %0, i32** %5
store i32 %1, i32* %6
store i32* %2, i32** %7
store i32** %3, i32*** %8
%11 = load i32*, i32** %5
%12 = load i32, i32* %6
%13 = load i32**, i32*** %8
%14 = call i32* @xcb_get_property_reply(i32* %11, i32 %12, i32** %13)
store i32* %14, i32** %9
%15 = load i32*, i32** %7
%16 = load i32*, i32** %9
%17 = call i32 @xcb_icccm_get_wm_transient_for_from_reply(i32* %15, i32* %16)
store i32 %17, i32* %10
%18 = load i32*, i32** %9
%19 = call i32 @free(i32* %18)
%20 = load i32, i32* %10
ret i32 %20
}

LLVM IR (-O2):
define i32 @xcb_icccm_get_wm_transient_for_reply(i32* %0, i32 %1, i32* %2, i32** %3) {
%5 = tail call i32* @xcb_get_property_reply(i32* %0, i32 %1, i32** %3)
%6 = tail call i32 @xcb_icccm_get_wm_transient_for_from_reply(i32* %2, i32* %5)
%7 = tail call i32 @free(i32* %5)
ret i32 %6
}