#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 tgl_state {
  int dummy;
};
struct tgl_dc {
  int dummy;
};
struct query_methods {
  int dummy;
};
struct query {
  int dummy;
};

/* Variables and functions */
struct query *tglq_send_query_ex(struct tgl_state *, struct tgl_dc *, int,
                                 void *, struct query_methods *, void *, void *,
                                 void *, int /*<<< orphan*/);
struct query *tglq_send_query(struct tgl_state *TLS, struct tgl_dc *DC,
                              int ints, void *data,
                              struct query_methods *methods, void *extra,
                              void *callback, void *callback_extra) {
  return tglq_send_query_ex(TLS, DC, ints, data, methods, extra, callback,
                            callback_extra, 0);
}


x86 assembly (clang, -O0):
<tglq_send_query>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8
mov    -0x30(%rbp),%r9
mov    0x10(%rbp),%r10
mov    0x18(%rbp),%rax
xor    %r11d,%r11d
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
movl   $0x0,0x10(%rsp)
call   1030 <tglq_send_query_ex@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tglq_send_query>:
sub    $0x18,%rsp
movaps 0x20(%rsp),%xmm0
movups %xmm0,(%rsp)
movl   $0x0,0x10(%rsp)
call   1030 <tglq_send_query_ex@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
%struct.query = type { i32 }
%struct.tgl_state = type { i32 }
%struct.tgl_dc = type { i32 }
%struct.query_methods = type { i32 }
define %struct.query* @tglq_send_query(%struct.tgl_state* %0, %struct.tgl_dc* %1, i32 %2, i8* %3, %struct.query_methods* %4, i8* %5, i8* %6, i8* %7) {
%9 = alloca %struct.tgl_state*
%10 = alloca %struct.tgl_dc*
%11 = alloca i32
%12 = alloca i8*
%13 = alloca %struct.query_methods*
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i8*
store %struct.tgl_state* %0, %struct.tgl_state** %9
store %struct.tgl_dc* %1, %struct.tgl_dc** %10
store i32 %2, i32* %11
store i8* %3, i8** %12
store %struct.query_methods* %4, %struct.query_methods** %13
store i8* %5, i8** %14
store i8* %6, i8** %15
store i8* %7, i8** %16
%17 = load %struct.tgl_state*, %struct.tgl_state** %9
%18 = load %struct.tgl_dc*, %struct.tgl_dc** %10
%19 = load i32, i32* %11
%20 = load i8*, i8** %12
%21 = load %struct.query_methods*, %struct.query_methods** %13
%22 = load i8*, i8** %14
%23 = load i8*, i8** %15
%24 = load i8*, i8** %16
%25 = call %struct.query* @tglq_send_query_ex(%struct.tgl_state* %17, %struct.tgl_dc* %18, i32 %19, i8* %20, %struct.query_methods* %21, i8* %22, i8* %23, i8* %24, i32 0)
ret %struct.query* %25
}

LLVM IR (-O2):
%struct.query = type { i32 }
%struct.tgl_state = type { i32 }
%struct.tgl_dc = type { i32 }
%struct.query_methods = type { i32 }
define %struct.query* @tglq_send_query(%struct.tgl_state* %0, %struct.tgl_dc* %1, i32 %2, i8* %3, %struct.query_methods* %4, i8* %5, i8* %6, i8* %7) {
%9 = tail call %struct.query* @tglq_send_query_ex(%struct.tgl_state* %0, %struct.tgl_dc* %1, i32 %2, i8* %3, %struct.query_methods* %4, i8* %5, i8* %6, i8* %7, i32 0)
ret %struct.query* %9
}