#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*/ uint32_t;
struct wl_surface {
  int dummy;
};
struct wl_shell_surface {
  int dummy;
};
struct wl_seat {
  int dummy;
};
struct wl_proxy {
  int dummy;
};
typedef int /*<<< orphan*/ int32_t;

/* Variables and functions */
int /*<<< orphan*/ wl_proxy_marshal(struct wl_proxy *, int, struct wl_seat *,
                                    int /*<<< orphan*/, struct wl_surface *,
                                    int /*<<< orphan*/, int /*<<< orphan*/,
                                    int /*<<< orphan*/);
void wl_shell_surface_set_popup(struct wl_shell_surface *wl_shell_surface,
                                struct wl_seat *seat, uint32_t serial,
                                struct wl_surface *parent, int32_t x, int32_t y,
                                uint32_t flags) {
  wl_proxy_marshal((struct wl_proxy *)wl_shell_surface, 6, seat, serial, parent,
                   x, y, flags);
}


x86 assembly (clang, -O0):
<wl_shell_surface_set_popup>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    %r9d,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    -0x14(%rbp),%ecx
mov    -0x20(%rbp),%r8
mov    -0x24(%rbp),%r9d
mov    -0x28(%rbp),%r10d
mov    0x10(%rbp),%eax
mov    $0x6,%esi
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1030 <wl_proxy_marshal@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<wl_shell_surface_set_popup>:
push   %rax
mov    %r9d,%eax
mov    %r8d,%r9d
mov    %rcx,%r8
mov    %edx,%ecx
mov    %rsi,%rdx
mov    0x10(%rsp),%r10d
mov    $0x6,%esi
push   %r10
push   %rax
call   1030 <wl_proxy_marshal@plt>
add    $0x10,%rsp
pop    %rax
ret

LLVM IR (-O0):
%struct.wl_shell_surface = type { i32 }
%struct.wl_seat = type { i32 }
%struct.wl_surface = type { i32 }
%struct.wl_proxy = type { i32 }
define void @wl_shell_surface_set_popup(%struct.wl_shell_surface* %0, %struct.wl_seat* %1, i32 %2, %struct.wl_surface* %3, i32 %4, i32 %5, i32 %6) {
%8 = alloca %struct.wl_shell_surface*
%9 = alloca %struct.wl_seat*
%10 = alloca i32
%11 = alloca %struct.wl_surface*
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
store %struct.wl_shell_surface* %0, %struct.wl_shell_surface** %8
store %struct.wl_seat* %1, %struct.wl_seat** %9
store i32 %2, i32* %10
store %struct.wl_surface* %3, %struct.wl_surface** %11
store i32 %4, i32* %12
store i32 %5, i32* %13
store i32 %6, i32* %14
%15 = load %struct.wl_shell_surface*, %struct.wl_shell_surface** %8
%16 = bitcast %struct.wl_shell_surface* %15 to %struct.wl_proxy*
%17 = load %struct.wl_seat*, %struct.wl_seat** %9
%18 = load i32, i32* %10
%19 = load %struct.wl_surface*, %struct.wl_surface** %11
%20 = load i32, i32* %12
%21 = load i32, i32* %13
%22 = load i32, i32* %14
%23 = call i32 @wl_proxy_marshal(%struct.wl_proxy* %16, i32 6, %struct.wl_seat* %17, i32 %18, %struct.wl_surface* %19, i32 %20, i32 %21, i32 %22)
ret void
}

LLVM IR (-O2):
%struct.wl_shell_surface = type { i32 }
%struct.wl_seat = type { i32 }
%struct.wl_surface = type { i32 }
%struct.wl_proxy = type { i32 }
define void @wl_shell_surface_set_popup(%struct.wl_shell_surface* %0, %struct.wl_seat* %1, i32 %2, %struct.wl_surface* %3, i32 %4, i32 %5, i32 %6) {
%8 = bitcast %struct.wl_shell_surface* %0 to %struct.wl_proxy*
%9 = tail call i32 @wl_proxy_marshal(%struct.wl_proxy* %8, i32 6, %struct.wl_seat* %1, i32 %2, %struct.wl_surface* %3, i32 %4, i32 %5, i32 %6)
ret void
}