#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 t_weechat_plugin {
  int dummy;
};
struct t_plugin_script {
  int dummy;
};
struct t_hook {
  int dummy;
};

/* Variables and functions */
struct t_hook *plugin_script_api_hook_process_hashtable(
    struct t_weechat_plugin *, struct t_plugin_script *, char const *,
    int /*<<< orphan*/ *, int,
    int (*)(void *, char const *, int, char const *, char const *),
    char const *, char const *);
struct t_hook *plugin_script_api_hook_process(
    struct t_weechat_plugin *weechat_plugin, struct t_plugin_script *script,
    const char *command, int timeout,
    int (*callback)(void *data, const char *command, int return_code,
                    const char *out, const char *err),
    const char *function, const char *data) {
  return plugin_script_api_hook_process_hashtable(
      weechat_plugin, script, command, NULL, timeout, callback, function, data);
}


x86 assembly (clang, -O0):
<plugin_script_api_hook_process>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%r8d
mov    -0x28(%rbp),%r9
mov    -0x30(%rbp),%r10
mov    0x10(%rbp),%rax
xor    %ecx,%ecx
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1030 <plugin_script_api_hook_process_hashtable@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<plugin_script_api_hook_process>:
push   %rax
mov    %r9,%rax
mov    %r8,%r9
mov    %ecx,%r8d
xor    %ecx,%ecx
push   0x10(%rsp)
push   %rax
call   1030 <plugin_script_api_hook_process_hashtable@plt>
add    $0x10,%rsp
pop    %rcx
ret

LLVM IR (-O0):
%struct.t_hook = type { i32 }
%struct.t_weechat_plugin = type { i32 }
%struct.t_plugin_script = type { i32 }
define %struct.t_hook* @plugin_script_api_hook_process(%struct.t_weechat_plugin* %0, %struct.t_plugin_script* %1, i8* %2, i32 %3, i32 (i8*, i8*, i32, i8*, i8*)* %4, i8* %5, i8* %6) {
%8 = alloca %struct.t_weechat_plugin*
%9 = alloca %struct.t_plugin_script*
%10 = alloca i8*
%11 = alloca i32
%12 = alloca i32 (i8*, i8*, i32, i8*, i8*)*
%13 = alloca i8*
%14 = alloca i8*
store %struct.t_weechat_plugin* %0, %struct.t_weechat_plugin** %8
store %struct.t_plugin_script* %1, %struct.t_plugin_script** %9
store i8* %2, i8** %10
store i32 %3, i32* %11
store i32 (i8*, i8*, i32, i8*, i8*)* %4, i32 (i8*, i8*, i32, i8*, i8*)** %12
store i8* %5, i8** %13
store i8* %6, i8** %14
%15 = load %struct.t_weechat_plugin*, %struct.t_weechat_plugin** %8
%16 = load %struct.t_plugin_script*, %struct.t_plugin_script** %9
%17 = load i8*, i8** %10
%18 = load i32, i32* %11
%19 = load i32 (i8*, i8*, i32, i8*, i8*)*, i32 (i8*, i8*, i32, i8*, i8*)** %12
%20 = load i8*, i8** %13
%21 = load i8*, i8** %14
%22 = call %struct.t_hook* @plugin_script_api_hook_process_hashtable(%struct.t_weechat_plugin* %15, %struct.t_plugin_script* %16, i8* %17, i32* null, i32 %18, i32 (i8*, i8*, i32, i8*, i8*)* %19, i8* %20, i8* %21)
ret %struct.t_hook* %22
}

LLVM IR (-O2):
%struct.t_hook = type { i32 }
%struct.t_weechat_plugin = type { i32 }
%struct.t_plugin_script = type { i32 }
define %struct.t_hook* @plugin_script_api_hook_process(%struct.t_weechat_plugin* %0, %struct.t_plugin_script* %1, i8* %2, i32 %3, i32 (i8*, i8*, i32, i8*, i8*)* %4, i8* %5, i8* %6) {
%8 = tail call %struct.t_hook* @plugin_script_api_hook_process_hashtable(%struct.t_weechat_plugin* %0, %struct.t_plugin_script* %1, i8* %2, i32* null, i32 %3, i32 (i8*, i8*, i32, i8*, i8*)* %4, i8* %5, i8* %6)
ret %struct.t_hook* %8
}