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

/* Variables and functions */
int /*<<< orphan*/ None;
int /*<<< orphan*/ ShapeBounding;
int /*<<< orphan*/ ShapeClip;
int /*<<< orphan*/ ShapeSet;
int /*<<< orphan*/ XShapeCombineMask(int /*<<< orphan*/, int /*<<< orphan*/,
                                     int /*<<< orphan*/, int /*<<< orphan*/,
                                     int /*<<< orphan*/, int /*<<< orphan*/,
                                     int /*<<< orphan*/);
int /*<<< orphan*/ XtDisplay(int /*<<< orphan*/);
int /*<<< orphan*/ XtWindow(int /*<<< orphan*/);
void ShapeRectangle(Widget w) {
  XShapeCombineMask(XtDisplay(w), XtWindow(w), ShapeBounding, 0, 0, None,
                    ShapeSet);
  XShapeCombineMask(XtDisplay(w), XtWindow(w), ShapeClip, 0, 0, None, ShapeSet);
}


x86 assembly (clang, -O0):
<ShapeRectangle>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1050 <XtDisplay@plt>
mov    %eax,-0xc(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <XtWindow@plt>
mov    -0xc(%rbp),%edi
mov    %eax,%esi
mov    0x2e76(%rip),%rax
mov    (%rax),%edx
mov    0x2e75(%rip),%rax
mov    (%rax),%r9d
mov    0x2e73(%rip),%rax
mov    (%rax),%eax
xor    %r8d,%r8d
mov    %r8d,%ecx
mov    %eax,(%rsp)
call   1030 <XShapeCombineMask@plt>
mov    -0x4(%rbp),%edi
call   1050 <XtDisplay@plt>
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <XtWindow@plt>
mov    -0x8(%rbp),%edi
mov    %eax,%esi
mov    0x2e54(%rip),%rax
mov    (%rax),%edx
mov    0x2e33(%rip),%rax
mov    (%rax),%r9d
mov    0x2e31(%rip),%rax
mov    (%rax),%eax
xor    %r8d,%r8d
mov    %r8d,%ecx
mov    %eax,(%rsp)
call   1030 <XShapeCombineMask@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ShapeRectangle>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %edi,%ebx
call   1050 <XtDisplay@plt>
mov    %eax,%ebp
mov    %ebx,%edi
call   1040 <XtWindow@plt>
mov    0x2e82(%rip),%rcx
mov    (%rcx),%edx
mov    0x2e81(%rip),%r14
mov    (%r14),%r9d
mov    0x2e7f(%rip),%r15
mov    (%r15),%ecx
mov    %ecx,(%rsp)
mov    %ebp,%edi
mov    %eax,%esi
xor    %ecx,%ecx
xor    %r8d,%r8d
call   1030 <XShapeCombineMask@plt>
mov    %ebx,%edi
call   1050 <XtDisplay@plt>
mov    %eax,%ebp
mov    %ebx,%edi
call   1040 <XtWindow@plt>
mov    0x2e64(%rip),%rcx
mov    (%rcx),%edx
mov    (%r14),%r9d
mov    (%r15),%ecx
mov    %ecx,(%rsp)
mov    %ebp,%edi
mov    %eax,%esi
xor    %ecx,%ecx
xor    %r8d,%r8d
call   1030 <XShapeCombineMask@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@ShapeBounding = global i32 0
@None = global i32 0
@ShapeSet = global i32 0
@ShapeClip = global i32 0
define void @ShapeRectangle(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @XtDisplay(i32 %3)
%5 = load i32, i32* %2
%6 = call i32 @XtWindow(i32 %5)
%7 = load i32, i32* @ShapeBounding
%8 = load i32, i32* @None
%9 = load i32, i32* @ShapeSet
%10 = call i32 @XShapeCombineMask(i32 %4, i32 %6, i32 %7, i32 0, i32 0, i32 %8, i32 %9)
%11 = load i32, i32* %2
%12 = call i32 @XtDisplay(i32 %11)
%13 = load i32, i32* %2
%14 = call i32 @XtWindow(i32 %13)
%15 = load i32, i32* @ShapeClip
%16 = load i32, i32* @None
%17 = load i32, i32* @ShapeSet
%18 = call i32 @XShapeCombineMask(i32 %12, i32 %14, i32 %15, i32 0, i32 0, i32 %16, i32 %17)
ret void
}

LLVM IR (-O2):
@ShapeBounding = global i32 0
@None = global i32 0
@ShapeSet = global i32 0
@ShapeClip = global i32 0
define void @ShapeRectangle(i32 %0) {
%2 = tail call i32 @XtDisplay(i32 %0)
%3 = tail call i32 @XtWindow(i32 %0)
%4 = load i32, i32* @ShapeBounding
%5 = load i32, i32* @None
%6 = load i32, i32* @ShapeSet
%7 = tail call i32 @XShapeCombineMask(i32 %2, i32 %3, i32 %4, i32 0, i32 0, i32 %5, i32 %6)
%8 = tail call i32 @XtDisplay(i32 %0)
%9 = tail call i32 @XtWindow(i32 %0)
%10 = load i32, i32* @ShapeClip
%11 = load i32, i32* @None
%12 = load i32, i32* @ShapeSet
%13 = tail call i32 @XShapeCombineMask(i32 %8, i32 %9, i32 %10, i32 0, i32 0, i32 %11, i32 %12)
ret void
}