#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_proxy {
  int dummy;
};
struct wl_data_source {
  int dummy;
};
struct wl_data_device {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ wl_proxy_marshal(struct wl_proxy *, int /*<<< orphan*/,
                                    struct wl_data_source *,
                                    struct wl_surface *, struct wl_surface *,
                                    int /*<<< orphan*/);
void wl_data_device_start_drag(struct wl_data_device *wl_data_device,
                               struct wl_data_source *source,
                               struct wl_surface *origin,
                               struct wl_surface *icon, uint32_t serial) {
  wl_proxy_marshal((struct wl_proxy *)wl_data_device, 0, source, origin, icon,
                   serial);
}


x86 assembly (clang, -O0):
<wl_data_device_start_drag>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    -0x20(%rbp),%r8
mov    -0x24(%rbp),%r9d
xor    %esi,%esi
call   1030 <wl_proxy_marshal@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<wl_data_device_start_drag>:
mov    %r8d,%r9d
mov    %rcx,%r8
mov    %rdx,%rcx
mov    %rsi,%rdx
xor    %esi,%esi
jmp    1030 <wl_proxy_marshal@plt>

LLVM IR (-O0):
%struct.wl_data_device = type { i32 }
%struct.wl_data_source = type { i32 }
%struct.wl_surface = type { i32 }
%struct.wl_proxy = type { i32 }
define void @wl_data_device_start_drag(%struct.wl_data_device* %0, %struct.wl_data_source* %1, %struct.wl_surface* %2, %struct.wl_surface* %3, i32 %4) {
%6 = alloca %struct.wl_data_device*
%7 = alloca %struct.wl_data_source*
%8 = alloca %struct.wl_surface*
%9 = alloca %struct.wl_surface*
%10 = alloca i32
store %struct.wl_data_device* %0, %struct.wl_data_device** %6
store %struct.wl_data_source* %1, %struct.wl_data_source** %7
store %struct.wl_surface* %2, %struct.wl_surface** %8
store %struct.wl_surface* %3, %struct.wl_surface** %9
store i32 %4, i32* %10
%11 = load %struct.wl_data_device*, %struct.wl_data_device** %6
%12 = bitcast %struct.wl_data_device* %11 to %struct.wl_proxy*
%13 = load %struct.wl_data_source*, %struct.wl_data_source** %7
%14 = load %struct.wl_surface*, %struct.wl_surface** %8
%15 = load %struct.wl_surface*, %struct.wl_surface** %9
%16 = load i32, i32* %10
%17 = call i32 @wl_proxy_marshal(%struct.wl_proxy* %12, i32 0, %struct.wl_data_source* %13, %struct.wl_surface* %14, %struct.wl_surface* %15, i32 %16)
ret void
}

LLVM IR (-O2):
%struct.wl_data_device = type { i32 }
%struct.wl_data_source = type { i32 }
%struct.wl_surface = type { i32 }
%struct.wl_proxy = type { i32 }
define void @wl_data_device_start_drag(%struct.wl_data_device* %0, %struct.wl_data_source* %1, %struct.wl_surface* %2, %struct.wl_surface* %3, i32 %4) {
%6 = bitcast %struct.wl_data_device* %0 to %struct.wl_proxy*
%7 = tail call i32 @wl_proxy_marshal(%struct.wl_proxy* %6, i32 0, %struct.wl_data_source* %1, %struct.wl_surface* %2, %struct.wl_surface* %3, i32 %4)
ret void
}