#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*/ int8_t;

/* Variables and functions */
int ksw_extend2(int, int /*<<< orphan*/ const *, int,
                int /*<<< orphan*/ const *, int, int /*<<< orphan*/ const *,
                int, int, int, int, int, int, int, int, int *, int *, int *,
                int *, int *, int);
int ksw_extend(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 end_bonus, int zdrop, int h0, int *qle, int *tle, int *gtle,
               int *gscore, int *max_off, int opt_ext) {
  return ksw_extend2(qlen, query, tlen, target, m, mat, gapo, gape, gapo, gape,
                     w, end_bonus, zdrop, h0, qle, tle, gtle, gscore, max_off,
                     opt_ext);
}


x86 assembly (clang, -O0):
<ksw_extend>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xc8,%rsp
mov    0x68(%rbp),%eax
mov    0x60(%rbp),%rax
mov    0x58(%rbp),%rax
mov    0x50(%rbp),%rax
mov    0x48(%rbp),%rax
mov    0x40(%rbp),%rax
mov    0x38(%rbp),%eax
mov    0x30(%rbp),%eax
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %edi,-0x2c(%rbp)
mov    %rsi,-0x38(%rbp)
mov    %edx,-0x3c(%rbp)
mov    %rcx,-0x48(%rbp)
mov    %r8d,-0x4c(%rbp)
mov    %r9,-0x58(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x38(%rbp),%rsi
mov    -0x3c(%rbp),%edx
mov    -0x48(%rbp),%rcx
mov    -0x4c(%rbp),%r8d
mov    -0x58(%rbp),%r9
mov    0x10(%rbp),%eax
mov    %eax,-0x74(%rbp)
mov    0x18(%rbp),%eax
mov    %eax,-0x70(%rbp)
mov    0x10(%rbp),%eax
mov    %eax,-0x6c(%rbp)
mov    0x18(%rbp),%eax
mov    %eax,-0x68(%rbp)
mov    0x20(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    0x28(%rbp),%eax
mov    %eax,-0x60(%rbp)
mov    0x30(%rbp),%r13d
mov    0x38(%rbp),%r12d
mov    0x40(%rbp),%r15
mov    0x48(%rbp),%r14
mov    0x50(%rbp),%rbx
mov    0x58(%rbp),%r11
mov    0x60(%rbp),%r10
mov    0x68(%rbp),%eax
mov    %eax,-0x5c(%rbp)
mov    -0x74(%rbp),%eax
mov    %eax,(%rsp)
mov    -0x70(%rbp),%eax
mov    %eax,0x8(%rsp)
mov    -0x6c(%rbp),%eax
mov    %eax,0x10(%rsp)
mov    -0x68(%rbp),%eax
mov    %eax,0x18(%rsp)
mov    -0x64(%rbp),%eax
mov    %eax,0x20(%rsp)
mov    -0x60(%rbp),%eax
mov    %eax,0x28(%rsp)
mov    -0x5c(%rbp),%eax
mov    %r13d,0x30(%rsp)
mov    %r12d,0x38(%rsp)
mov    %r15,0x40(%rsp)
mov    %r14,0x48(%rsp)
mov    %rbx,0x50(%rsp)
mov    %r11,0x58(%rsp)
mov    %r10,0x60(%rsp)
mov    %eax,0x68(%rsp)
call   1030 <ksw_extend2@plt>
add    $0xc8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<ksw_extend>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x70,%rsp
mov    0xa0(%rsp),%r10d
mov    0xa8(%rsp),%eax
mov    0xb0(%rsp),%r11d
mov    0xb8(%rsp),%r14d
mov    0xc0(%rsp),%r15d
mov    0xc8(%rsp),%r12d
movaps 0xd0(%rsp),%xmm0
movaps 0xe0(%rsp),%xmm1
mov    0xf0(%rsp),%rbp
mov    0xf8(%rsp),%ebx
mov    %ebx,0x68(%rsp)
mov    %rbp,0x60(%rsp)
movups %xmm1,0x50(%rsp)
movups %xmm0,0x40(%rsp)
mov    %r12d,0x38(%rsp)
mov    %r15d,0x30(%rsp)
mov    %r14d,0x28(%rsp)
mov    %r11d,0x20(%rsp)
mov    %eax,0x18(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x8(%rsp)
mov    %r10d,(%rsp)
call   1030 <ksw_extend2@plt>
add    $0x70,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @ksw_extend(i32 %0, i32* %1, i32 %2, i32* %3, i32 %4, i32* %5, i32 %6, i32 %7, i32 %8, i32 %9, i32 %10, i32 %11, i32* %12, i32* %13, i32* %14, i32* %15, i32* %16, i32 %17) {
%19 = alloca i32
%20 = alloca i32*
%21 = alloca i32
%22 = alloca i32*
%23 = alloca i32
%24 = alloca i32*
%25 = alloca i32
%26 = alloca i32
%27 = alloca i32
%28 = alloca i32
%29 = alloca i32
%30 = alloca i32
%31 = alloca i32*
%32 = alloca i32*
%33 = alloca i32*
%34 = alloca i32*
%35 = alloca i32*
%36 = alloca i32
store i32 %0, i32* %19
store i32* %1, i32** %20
store i32 %2, i32* %21
store i32* %3, i32** %22
store i32 %4, i32* %23
store i32* %5, i32** %24
store i32 %6, i32* %25
store i32 %7, i32* %26
store i32 %8, i32* %27
store i32 %9, i32* %28
store i32 %10, i32* %29
store i32 %11, i32* %30
store i32* %12, i32** %31
store i32* %13, i32** %32
store i32* %14, i32** %33
store i32* %15, i32** %34
store i32* %16, i32** %35
store i32 %17, i32* %36
%37 = load i32, i32* %19
%38 = load i32*, i32** %20
%39 = load i32, i32* %21
%40 = load i32*, i32** %22
%41 = load i32, i32* %23
%42 = load i32*, i32** %24
%43 = load i32, i32* %25
%44 = load i32, i32* %26
%45 = load i32, i32* %25
%46 = load i32, i32* %26
%47 = load i32, i32* %27
%48 = load i32, i32* %28
%49 = load i32, i32* %29
%50 = load i32, i32* %30
%51 = load i32*, i32** %31
%52 = load i32*, i32** %32
%53 = load i32*, i32** %33
%54 = load i32*, i32** %34
%55 = load i32*, i32** %35
%56 = load i32, i32* %36
%57 = call i32 @ksw_extend2(i32 %37, i32* %38, i32 %39, i32* %40, i32 %41, i32* %42, i32 %43, i32 %44, i32 %45, i32 %46, i32 %47, i32 %48, i32 %49, i32 %50, i32* %51, i32* %52, i32* %53, i32* %54, i32* %55, i32 %56)
ret i32 %57
}

LLVM IR (-O2):
define i32 @ksw_extend(i32 %0, i32* %1, i32 %2, i32* %3, i32 %4, i32* %5, i32 %6, i32 %7, i32 %8, i32 %9, i32 %10, i32 %11, i32* %12, i32* %13, i32* %14, i32* %15, i32* %16, i32 %17) {
%19 = tail call i32 @ksw_extend2(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, i32 %11, i32* %12, i32* %13, i32* %14, i32* %15, i32* %16, i32 %17)
ret i32 %19
}