#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*/ Window;
typedef int /*<<< orphan*/ Display;
typedef int /*<<< orphan*/ Atom;

/* Variables and functions */
int /*<<< orphan*/ False;
int /*<<< orphan*/ PropModeReplace;
int /*<<< orphan*/ XA_INTEGER;
int /*<<< orphan*/ XChangeProperty(int /*<<< orphan*/ *, int /*<<< orphan*/,
                                   int /*<<< orphan*/, int /*<<< orphan*/, int,
                                   int /*<<< orphan*/, unsigned char *, int);
int /*<<< orphan*/ XInternAtom(int /*<<< orphan*/ *, char *,
                               int /*<<< orphan*/);
void set_non_compositing(Display *display, Window xwindow) {
  Atom atom;
  int one = 1;
  atom = XInternAtom(display, "_HILDON_NON_COMPOSITED_WINDOW", False);
  XChangeProperty(display, xwindow, atom, XA_INTEGER, 32, PropModeReplace,
                  (unsigned char *)&one, 1);
}


x86 assembly (clang, -O0):
<set_non_compositing>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x1,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2ea7(%rip),%rax
mov    (%rax),%edx
lea    0xeb6(%rip),%rsi
call   1030 <XInternAtom@plt>
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    0x2e6d(%rip),%rax
mov    (%rax),%ecx
mov    0x2e6c(%rip),%rax
mov    (%rax),%r9d
lea    -0x14(%rbp),%rax
mov    $0x20,%r8d
mov    %rax,(%rsp)
movl   $0x1,0x8(%rsp)
call   1040 <XChangeProperty@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_non_compositing>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebp
mov    %rdi,%rbx
movl   $0x1,0x4(%rsp)
mov    0x2eb1(%rip),%rax
mov    (%rax),%edx
lea    0xec0(%rip),%rsi
call   1030 <XInternAtom@plt>
mov    0x2e84(%rip),%rcx
mov    (%rcx),%ecx
mov    0x2e83(%rip),%rdx
mov    (%rdx),%r9d
lea    0x4(%rsp),%r10
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
mov    $0x20,%r8d
push   $0x1
push   %r10
call   1040 <XChangeProperty@plt>
add    $0x18,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [30 x i8] c"_HILDON_NON_COMPOSITED_WINDOW\00"
@False = global i32 0
@XA_INTEGER = global i32 0
@PropModeReplace = global i32 0
define void @set_non_compositing(i32* %0, i32 %1) {
%3 = alloca i32*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32* %0, i32** %3
store i32 %1, i32* %4
store i32 1, i32* %6
%7 = load i32*, i32** %3
%8 = load i32, i32* @False
%9 = call i32 @XInternAtom(i32* %7, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32 %8)
store i32 %9, i32* %5
%10 = load i32*, i32** %3
%11 = load i32, i32* %4
%12 = load i32, i32* %5
%13 = load i32, i32* @XA_INTEGER
%14 = load i32, i32* @PropModeReplace
%15 = bitcast i32* %6 to i8*
%16 = call i32 @XChangeProperty(i32* %10, i32 %11, i32 %12, i32 %13, i32 32, i32 %14, i8* %15, i32 1)
ret void
}

LLVM IR (-O2):
@.str = [30 x i8] c"_HILDON_NON_COMPOSITED_WINDOW\00"
@False = global i32 0
@XA_INTEGER = global i32 0
@PropModeReplace = global i32 0
define void @set_non_compositing(i32* %0, i32 %1) {
%3 = alloca i32
%4 = bitcast i32* %3 to i8*
store i32 1, i32* %3
%5 = load i32, i32* @False
%6 = tail call i32 @XInternAtom(i32* %0, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @XA_INTEGER
%8 = load i32, i32* @PropModeReplace
%9 = call i32 @XChangeProperty(i32* %0, i32 %1, i32 %6, i32 %7, i32 32, i32 %8, i8* %4, i32 1)
ret void
}