#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 */
typedef struct TYPE_5__ TYPE_2__;
typedef struct TYPE_4__ TYPE_1__;

/* Type definitions */
struct TYPE_4__ {
  int /*<<< orphan*/ window;
  int /*<<< orphan*/ display;
};
struct TYPE_5__ {
  TYPE_1__ xexpose;
  int /*<<< orphan*/ type;
};
typedef TYPE_2__ XEvent;
typedef int /*<<< orphan*/ Widget;

/* Variables and functions */
int /*<<< orphan*/ Expose;
int /*<<< orphan*/ XtDispatchEvent(TYPE_2__ *);
int /*<<< orphan*/ XtDisplay(int /*<<< orphan*/);
int /*<<< orphan*/ XtWindow(int /*<<< orphan*/);
void RedrawWidget(Widget wWidget) {
  XEvent eeEvent;
  eeEvent.type = Expose;
  eeEvent.xexpose.display = XtDisplay(wWidget);
  eeEvent.xexpose.window = XtWindow(wWidget);
  XtDispatchEvent(&eeEvent);
}


x86 assembly (clang, -O0):
<RedrawWidget>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    0x2ea6(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <XtDisplay@plt>
mov    %eax,-0xc(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <XtWindow@plt>
mov    %eax,-0x10(%rbp)
lea    -0x10(%rbp),%rdi
call   1050 <XtDispatchEvent@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<RedrawWidget>:
push   %rbx
sub    $0x10,%rsp
mov    %edi,%ebx
mov    0x2eaa(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x8(%rsp)
call   1040 <XtDisplay@plt>
mov    %eax,0x4(%rsp)
mov    %ebx,%edi
call   1030 <XtWindow@plt>
mov    %eax,(%rsp)
mov    %rsp,%rdi
call   1050 <XtDispatchEvent@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
%struct.TYPE_5__ = type { %struct.TYPE_4__, i32 }
%struct.TYPE_4__ = type { i32, i32 }
@Expose = global i32 0
define void @RedrawWidget(i32 %0) {
%2 = alloca i32
%3 = alloca %struct.TYPE_5__
store i32 %0, i32* %2
%4 = load i32, i32* @Expose
%5 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %3, i32 0, i32 1
store i32 %4, i32* %5
%6 = load i32, i32* %2
%7 = call i32 @XtDisplay(i32 %6)
%8 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %3, i32 0, i32 0
%9 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %8, i32 0, i32 1
store i32 %7, i32* %9
%10 = load i32, i32* %2
%11 = call i32 @XtWindow(i32 %10)
%12 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %3, i32 0, i32 0
%13 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %12, i32 0, i32 0
store i32 %11, i32* %13
%14 = call i32 @XtDispatchEvent(%struct.TYPE_5__* %3)
ret void
}

LLVM IR (-O2):
%struct.TYPE_5__ = type { %struct.TYPE_4__, i32 }
%struct.TYPE_4__ = type { i32, i32 }
@Expose = global i32 0
define void @RedrawWidget(i32 %0) {
%2 = alloca %struct.TYPE_5__
%3 = bitcast %struct.TYPE_5__* %2 to i8*
%4 = load i32, i32* @Expose
%5 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %2, i64 0, i32 1
store i32 %4, i32* %5
%6 = tail call i32 @XtDisplay(i32 %0)
%7 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %2, i64 0, i32 0, i32 1
store i32 %6, i32* %7
%8 = tail call i32 @XtWindow(i32 %0)
%9 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %2, i64 0, i32 0, i32 0
store i32 %8, i32* %9
%10 = call i32 @XtDispatchEvent(%struct.TYPE_5__* %2)
ret void
}