#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 sba_crsm {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ sba_motstr_chkjac_x(
    void (*)(double *, struct sba_crsm *, int *, int *, double *, void *),
    void (*)(double *, struct sba_crsm *, int *, int *, double *, void *),
    double *, struct sba_crsm *, int *, int *, int, int /*<<< orphan*/,
    int /*<<< orphan*/, int, int, void *, void *);
void sba_str_chkjac_x(
    void (*func)(double *p, struct sba_crsm *idxij, int *rcidxs, int *rcsubs,
                 double *hx, void *adata),
    void (*jacf)(double *p, struct sba_crsm *idxij, int *rcidxs, int *rcsubs,
                 double *jac, void *adata),
    double *p, struct sba_crsm *idxij, int *rcidxs, int *rcsubs, int ncon,
    int pnp, int mnp, void *func_adata, void *jac_adata) {
  sba_motstr_chkjac_x(func, jacf, p, idxij, rcidxs, rcsubs, ncon, 0, 0, pnp,
                      mnp, func_adata, jac_adata);
}


x86 assembly (clang, -O0):
<sba_str_chkjac_x>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %rbx
sub    $0x68,%rsp
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %rdi,-0x20(%rbp)
mov    %rsi,-0x28(%rbp)
mov    %rdx,-0x30(%rbp)
mov    %rcx,-0x38(%rbp)
mov    %r8,-0x40(%rbp)
mov    %r9,-0x48(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    -0x38(%rbp),%rcx
mov    -0x40(%rbp),%r8
mov    -0x48(%rbp),%r9
mov    0x10(%rbp),%r14d
mov    0x18(%rbp),%ebx
mov    0x20(%rbp),%r11d
mov    0x28(%rbp),%r10
mov    0x30(%rbp),%rax
xor    %r15d,%r15d
mov    %r14d,(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x0,0x10(%rsp)
mov    %ebx,0x18(%rsp)
mov    %r11d,0x20(%rsp)
mov    %r10,0x28(%rsp)
mov    %rax,0x30(%rsp)
call   1030 <sba_motstr_chkjac_x@plt>
add    $0x68,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O0):
%struct.sba_crsm = type { i32 }
define void @sba_str_chkjac_x(void (double*, %struct.sba_crsm*, i32*, i32*, double*, i8*)* %0, void (double*, %struct.sba_crsm*, i32*, i32*, double*, i8*)* %1, double* %2, %struct.sba_crsm* %3, i32* %4, i32* %5, i32 %6, i32 %7, i32 %8, i8* %9, i8* %10) {
%12 = alloca void (double*, %struct.sba_crsm*, i32*, i32*, double*, i8*)*
%13 = alloca void (double*, %struct.sba_crsm*, i32*, i32*, double*, i8*)*
%14 = alloca double*
%15 = alloca %struct.sba_crsm*
%16 = alloca i32*
%17 = alloca i32*
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i8*
%22 = alloca i8*
store void (double*, %struct.sba_crsm*, i32*, i32*, double*, i8*)* %0, void (double*, %struct.sba_crsm*, i32*, i32*, double*, i8*)** %12
store void (double*, %struct.sba_crsm*, i32*, i32*, double*, i8*)* %1, void (double*, %struct.sba_crsm*, i32*, i32*, double*, i8*)** %13
store double* %2, double** %14
store %struct.sba_crsm* %3, %struct.sba_crsm** %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 i8* %9, i8** %21
store i8* %10, i8** %22
%23 = load void (double*, %struct.sba_crsm*, i32*, i32*, double*, i8*)*, void (double*, %struct.sba_crsm*, i32*, i32*, double*, i8*)** %12
%24 = load void (double*, %struct.sba_crsm*, i32*, i32*, double*, i8*)*, void (double*, %struct.sba_crsm*, i32*, i32*, double*, i8*)** %13
%25 = load double*, double** %14
%26 = load %struct.sba_crsm*, %struct.sba_crsm** %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* %20
%32 = load i8*, i8** %21
%33 = load i8*, i8** %22
%34 = call i32 @sba_motstr_chkjac_x(void (double*, %struct.sba_crsm*, i32*, i32*, double*, i8*)* %23, void (double*, %struct.sba_crsm*, i32*, i32*, double*, i8*)* %24, double* %25, %struct.sba_crsm* %26, i32* %27, i32* %28, i32 %29, i32 0, i32 0, i32 %30, i32 %31, i8* %32, i8* %33)
ret void
}

LLVM IR (-O2):
%struct.sba_crsm = type { i32 }
define void @sba_str_chkjac_x(void (double*, %struct.sba_crsm*, i32*, i32*, double*, i8*)* %0, void (double*, %struct.sba_crsm*, i32*, i32*, double*, i8*)* %1, double* %2, %struct.sba_crsm* %3, i32* %4, i32* %5, i32 %6, i32 %7, i32 %8, i8* %9, i8* %10) {
%12 = tail call i32 @sba_motstr_chkjac_x(void (double*, %struct.sba_crsm*, i32*, i32*, double*, i8*)* %0, void (double*, %struct.sba_crsm*, i32*, i32*, double*, i8*)* %1, double* %2, %struct.sba_crsm* %3, i32* %4, i32* %5, i32 %6, i32 0, i32 0, i32 %7, i32 %8, i8* %9, i8* %10)
ret void
}