#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*/ uint8_t;
typedef int /*<<< orphan*/ uint32_t;
typedef int /*<<< orphan*/ int8_t;

/* Variables and functions */
int ksw_global2(int, int /*<<< orphan*/ const *, int,
                int /*<<< orphan*/ const *, int, int /*<<< orphan*/ const *,
                int, int, int, int, int, int *, int /*<<< orphan*/ **);
int ksw_global(int qlen, const uint8_t *query, int tlen, const uint8_t *target,
               int m, const int8_t *mat, int gapo, int gape, int w,
               int *n_cigar_, uint32_t **cigar_) {
  return ksw_global2(qlen, query, tlen, target, m, mat, gapo, gape, gapo, gape,
                     w, n_cigar_, cigar_);
}


x86 assembly (clang, -O0):
<ksw_global>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x70,%rsp
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %edi,-0x24(%rbp)
mov    %rsi,-0x30(%rbp)
mov    %edx,-0x34(%rbp)
mov    %rcx,-0x40(%rbp)
mov    %r8d,-0x44(%rbp)
mov    %r9,-0x50(%rbp)
mov    -0x24(%rbp),%edi
mov    -0x30(%rbp),%rsi
mov    -0x34(%rbp),%edx
mov    -0x40(%rbp),%rcx
mov    -0x44(%rbp),%r8d
mov    -0x50(%rbp),%r9
mov    0x10(%rbp),%r12d
mov    0x18(%rbp),%r15d
mov    0x10(%rbp),%r14d
mov    0x18(%rbp),%ebx
mov    0x20(%rbp),%r11d
mov    0x28(%rbp),%r10
mov    0x30(%rbp),%rax
mov    %r12d,(%rsp)
mov    %r15d,0x8(%rsp)
mov    %r14d,0x10(%rsp)
mov    %ebx,0x18(%rsp)
mov    %r11d,0x20(%rsp)
mov    %r10,0x28(%rsp)
mov    %rax,0x30(%rsp)
call   1030 <ksw_global2@plt>
add    $0x70,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<ksw_global>:
sub    $0x38,%rsp
mov    0x40(%rsp),%r10d
mov    0x48(%rsp),%eax
mov    0x50(%rsp),%r11d
movups 0x58(%rsp),%xmm0
movups %xmm0,0x28(%rsp)
mov    %r11d,0x20(%rsp)
mov    %eax,0x18(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x8(%rsp)
mov    %r10d,(%rsp)
call   1030 <ksw_global2@plt>
add    $0x38,%rsp
ret

LLVM IR (-O0):
define i32 @ksw_global(i32 %0, i32* %1, i32 %2, i32* %3, i32 %4, i32* %5, i32 %6, i32 %7, i32 %8, i32* %9, i32** %10) {
%12 = alloca i32
%13 = alloca i32*
%14 = alloca i32
%15 = alloca i32*
%16 = alloca i32
%17 = alloca i32*
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32*
%22 = alloca i32**
store i32 %0, i32* %12
store i32* %1, i32** %13
store i32 %2, i32* %14
store i32* %3, i32** %15
store i32 %4, i32* %16
store i32* %5, i32** %17
store i32 %6, i32* %18
store i32 %7, i32* %19
store i32 %8, i32* %20
store i32* %9, i32** %21
store i32** %10, i32*** %22
%23 = load i32, i32* %12
%24 = load i32*, i32** %13
%25 = load i32, i32* %14
%26 = load i32*, i32** %15
%27 = load i32, i32* %16
%28 = load i32*, i32** %17
%29 = load i32, i32* %18
%30 = load i32, i32* %19
%31 = load i32, i32* %18
%32 = load i32, i32* %19
%33 = load i32, i32* %20
%34 = load i32*, i32** %21
%35 = load i32**, i32*** %22
%36 = call i32 @ksw_global2(i32 %23, i32* %24, i32 %25, i32* %26, i32 %27, i32* %28, i32 %29, i32 %30, i32 %31, i32 %32, i32 %33, i32* %34, i32** %35)
ret i32 %36
}

LLVM IR (-O2):
define i32 @ksw_global(i32 %0, i32* %1, i32 %2, i32* %3, i32 %4, i32* %5, i32 %6, i32 %7, i32 %8, i32* %9, i32** %10) {
%12 = tail call i32 @ksw_global2(i32 %0, i32* %1, i32 %2, i32* %3, i32 %4, i32* %5, i32 %6, i32 %7, i32 %6, i32 %7, i32 %8, i32* %9, i32** %10)
ret i32 %12
}