void jacmodhs52(double *p, double *jac, int m, int n, void *data) {
  register int j = 0;
  jac[j++] = 4.0;
  jac[j++] = -1.0;
  jac[j++] = 0.0;
  jac[j++] = 0.0;
  jac[j++] = 0.0;
  jac[j++] = 0.0;
  jac[j++] = 1.0;
  jac[j++] = 1.0;
  jac[j++] = 0.0;
  jac[j++] = 0.0;
  jac[j++] = 0.0;
  jac[j++] = 0.0;
  jac[j++] = 0.0;
  jac[j++] = 1.0;
  jac[j++] = 0.0;
  jac[j++] = 0.0;
  jac[j++] = 0.0;
  jac[j++] = 0.0;
  jac[j++] = 0.0;
  jac[j++] = 1.0;
}


x86 assembly (clang, -O0):
<jacmodhs52>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
movslq %ecx,%rcx
movsd  0xed9(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
movslq %ecx,%rcx
movsd  0xeb2(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
movslq %ecx,%rcx
movsd  0xe23(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
movslq %ecx,%rcx
movsd  0xe04(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
movslq %ecx,%rcx
movsd  0xd63(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
movslq %ecx,%rcx
movsd  0xcc2(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
pop    %rbp
ret

x86 assembly (clang, -O2):
<jacmodhs52>:
movaps 0xef9(%rip),%xmm0
movups %xmm0,(%rsi)
xorps  %xmm0,%xmm0
movups %xmm0,0x10(%rsi)
movups %xmm0,0x20(%rsi)
movaps 0xef4(%rip),%xmm1
movups %xmm1,0x30(%rsi)
movups %xmm0,0x40(%rsi)
movups %xmm0,0x50(%rsi)
movq   $0x0,0x60(%rsi)
movabs $0x3ff0000000000000,%rax
mov    %rax,0x68(%rsi)
movups %xmm0,0x70(%rsi)
movups %xmm0,0x80(%rsi)
movq   $0x0,0x90(%rsi)
mov    %rax,0x98(%rsi)
ret

LLVM IR (-O0):
define void @jacmodhs52(double* %0, double* %1, i32 %2, i32 %3, i8* %4) {
%6 = alloca double*
%7 = alloca double*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i32
store double* %0, double** %6
store double* %1, double** %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i8* %4, i8** %10
store i32 0, i32* %11
%12 = load double*, double** %7
%13 = load i32, i32* %11
%14 = add nsw i32 %13, 1
store i32 %14, i32* %11
%15 = sext i32 %13 to i64
%16 = getelementptr inbounds double, double* %12, i64 %15
store double 4.000000e+00, double* %16
%17 = load double*, double** %7
%18 = load i32, i32* %11
%19 = add nsw i32 %18, 1
store i32 %19, i32* %11
%20 = sext i32 %18 to i64
%21 = getelementptr inbounds double, double* %17, i64 %20
store double -1.000000e+00, double* %21
%22 = load double*, double** %7
%23 = load i32, i32* %11
%24 = add nsw i32 %23, 1
store i32 %24, i32* %11
%25 = sext i32 %23 to i64
%26 = getelementptr inbounds double, double* %22, i64 %25
store double 0.000000e+00, double* %26
%27 = load double*, double** %7
%28 = load i32, i32* %11
%29 = add nsw i32 %28, 1
store i32 %29, i32* %11
%30 = sext i32 %28 to i64
%31 = getelementptr inbounds double, double* %27, i64 %30
store double 0.000000e+00, double* %31
%32 = load double*, double** %7
%33 = load i32, i32* %11
%34 = add nsw i32 %33, 1
store i32 %34, i32* %11
%35 = sext i32 %33 to i64
%36 = getelementptr inbounds double, double* %32, i64 %35
store double 0.000000e+00, double* %36
%37 = load double*, double** %7
%38 = load i32, i32* %11
%39 = add nsw i32 %38, 1
store i32 %39, i32* %11
%40 = sext i32 %38 to i64
%41 = getelementptr inbounds double, double* %37, i64 %40
store double 0.000000e+00, double* %41
%42 = load double*, double** %7
%43 = load i32, i32* %11
%44 = add nsw i32 %43, 1
store i32 %44, i32* %11
%45 = sext i32 %43 to i64
%46 = getelementptr inbounds double, double* %42, i64 %45
store double 1.000000e+00, double* %46
%47 = load double*, double** %7
%48 = load i32, i32* %11
%49 = add nsw i32 %48, 1
store i32 %49, i32* %11
%50 = sext i32 %48 to i64
%51 = getelementptr inbounds double, double* %47, i64 %50
store double 1.000000e+00, double* %51
%52 = load double*, double** %7
%53 = load i32, i32* %11
%54 = add nsw i32 %53, 1
store i32 %54, i32* %11
%55 = sext i32 %53 to i64
%56 = getelementptr inbounds double, double* %52, i64 %55
store double 0.000000e+00, double* %56
%57 = load double*, double** %7
%58 = load i32, i32* %11
%59 = add nsw i32 %58, 1
store i32 %59, i32* %11
%60 = sext i32 %58 to i64
%61 = getelementptr inbounds double, double* %57, i64 %60
store double 0.000000e+00, double* %61
%62 = load double*, double** %7
%63 = load i32, i32* %11
%64 = add nsw i32 %63, 1
store i32 %64, i32* %11
%65 = sext i32 %63 to i64
%66 = getelementptr inbounds double, double* %62, i64 %65
store double 0.000000e+00, double* %66
%67 = load double*, double** %7
%68 = load i32, i32* %11
%69 = add nsw i32 %68, 1
store i32 %69, i32* %11
%70 = sext i32 %68 to i64
%71 = getelementptr inbounds double, double* %67, i64 %70
store double 0.000000e+00, double* %71
%72 = load double*, double** %7
%73 = load i32, i32* %11
%74 = add nsw i32 %73, 1
store i32 %74, i32* %11
%75 = sext i32 %73 to i64
%76 = getelementptr inbounds double, double* %72, i64 %75
store double 0.000000e+00, double* %76
%77 = load double*, double** %7
%78 = load i32, i32* %11
%79 = add nsw i32 %78, 1
store i32 %79, i32* %11
%80 = sext i32 %78 to i64
%81 = getelementptr inbounds double, double* %77, i64 %80
store double 1.000000e+00, double* %81
%82 = load double*, double** %7
%83 = load i32, i32* %11
%84 = add nsw i32 %83, 1
store i32 %84, i32* %11
%85 = sext i32 %83 to i64
%86 = getelementptr inbounds double, double* %82, i64 %85
store double 0.000000e+00, double* %86
%87 = load double*, double** %7
%88 = load i32, i32* %11
%89 = add nsw i32 %88, 1
store i32 %89, i32* %11
%90 = sext i32 %88 to i64
%91 = getelementptr inbounds double, double* %87, i64 %90
store double 0.000000e+00, double* %91
%92 = load double*, double** %7
%93 = load i32, i32* %11
%94 = add nsw i32 %93, 1
store i32 %94, i32* %11
%95 = sext i32 %93 to i64
%96 = getelementptr inbounds double, double* %92, i64 %95
store double 0.000000e+00, double* %96
%97 = load double*, double** %7
%98 = load i32, i32* %11
%99 = add nsw i32 %98, 1
store i32 %99, i32* %11
%100 = sext i32 %98 to i64
%101 = getelementptr inbounds double, double* %97, i64 %100
store double 0.000000e+00, double* %101
%102 = load double*, double** %7
%103 = load i32, i32* %11
%104 = add nsw i32 %103, 1
store i32 %104, i32* %11
%105 = sext i32 %103 to i64
%106 = getelementptr inbounds double, double* %102, i64 %105
store double 0.000000e+00, double* %106
%107 = load double*, double** %7
%108 = load i32, i32* %11
%109 = add nsw i32 %108, 1
store i32 %109, i32* %11
%110 = sext i32 %108 to i64
%111 = getelementptr inbounds double, double* %107, i64 %110
store double 1.000000e+00, double* %111
ret void
}

LLVM IR (-O2):
define void @jacmodhs52(double* nocapture readnone %0, double* nocapture writeonly %1, i32 %2, i32 %3, i8* nocapture readnone %4) {
%6 = bitcast double* %1 to <2 x double>*
store <2 x double> <double 4.000000e+00, double -1.000000e+00>, <2 x double>* %6
%7 = getelementptr inbounds double, double* %1, i64 2
%8 = getelementptr inbounds double, double* %1, i64 6
%9 = bitcast double* %7 to i8*
%10 = bitcast double* %8 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %10
%11 = getelementptr inbounds double, double* %1, i64 8
%12 = getelementptr inbounds double, double* %1, i64 13
%13 = bitcast double* %11 to i8*
store double 1.000000e+00, double* %12
%14 = getelementptr inbounds double, double* %1, i64 14
%15 = getelementptr inbounds double, double* %1, i64 19
%16 = bitcast double* %14 to i8*
store double 1.000000e+00, double* %15
ret void
}