#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 */
struct wl_resource {
  int dummy;
};
typedef int /*<<< orphan*/ int32_t;

/* Variables and functions */
int /*<<< orphan*/ wl_resource_post_event(
    struct wl_resource *, int /*<<< orphan*/, int /*<<< orphan*/,
    int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/,
    int /*<<< orphan*/, char const *, char const *, int /*<<< orphan*/);
void wl_output_send_geometry(struct wl_resource *resource_, int32_t x,
                             int32_t y, int32_t physical_width,
                             int32_t physical_height, int32_t subpixel,
                             const char *make, const char *model,
                             int32_t transform) {
  wl_resource_post_event(resource_, 0, x, y, physical_width, physical_height,
                         subpixel, make, model, transform);
}


x86 assembly (clang, -O0):
<wl_output_send_geometry>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x48,%rsp
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
mov    %r9d,-0x24(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x1c(%rbp),%r8d
mov    -0x20(%rbp),%r9d
mov    -0x24(%rbp),%ebx
mov    0x10(%rbp),%r11
mov    0x18(%rbp),%r10
mov    0x20(%rbp),%eax
xor    %esi,%esi
mov    %ebx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10,0x10(%rsp)
mov    %eax,0x18(%rsp)
call   1030 <wl_resource_post_event@plt>
add    $0x48,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<wl_output_send_geometry>:
sub    $0x28,%rsp
mov    %r8d,%eax
mov    %ecx,%r8d
mov    %edx,%ecx
mov    %esi,%edx
movaps 0x30(%rsp),%xmm0
mov    0x40(%rsp),%esi
mov    %esi,0x18(%rsp)
movups %xmm0,0x8(%rsp)
mov    %r9d,(%rsp)
xor    %esi,%esi
mov    %eax,%r9d
call   1030 <wl_resource_post_event@plt>
add    $0x28,%rsp
ret

LLVM IR (-O0):
%struct.wl_resource = type { i32 }
define void @wl_output_send_geometry(%struct.wl_resource* %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i8* %6, i8* %7, i32 %8) {
%10 = alloca %struct.wl_resource*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i8*
%17 = alloca i8*
%18 = alloca i32
store %struct.wl_resource* %0, %struct.wl_resource** %10
store i32 %1, i32* %11
store i32 %2, i32* %12
store i32 %3, i32* %13
store i32 %4, i32* %14
store i32 %5, i32* %15
store i8* %6, i8** %16
store i8* %7, i8** %17
store i32 %8, i32* %18
%19 = load %struct.wl_resource*, %struct.wl_resource** %10
%20 = load i32, i32* %11
%21 = load i32, i32* %12
%22 = load i32, i32* %13
%23 = load i32, i32* %14
%24 = load i32, i32* %15
%25 = load i8*, i8** %16
%26 = load i8*, i8** %17
%27 = load i32, i32* %18
%28 = call i32 @wl_resource_post_event(%struct.wl_resource* %19, i32 0, i32 %20, i32 %21, i32 %22, i32 %23, i32 %24, i8* %25, i8* %26, i32 %27)
ret void
}

LLVM IR (-O2):
%struct.wl_resource = type { i32 }
define void @wl_output_send_geometry(%struct.wl_resource* %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i8* %6, i8* %7, i32 %8) {
%10 = tail call i32 @wl_resource_post_event(%struct.wl_resource* %0, i32 0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i8* %6, i8* %7, i32 %8)
ret void
}