LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/ohkimur[P]the-c-programming-language-2nd-edition-solutions/chapter_5/exercise_5_09/date_conversion_pointers.c
// Function: month_day
void month_day(int year, int yearday, int *pmonth, int *pda)
{
  int leap = (year % 4 == 0 && year % 100 != 0) || year % 400 == 0;

  // Additional check for yearday.
  if ((!leap && yearday > 365) || (leap && yearday > 366))
  {
    // Reset the provided month and day.
    *pmonth = 0;
    *pda = 0;
    printf("Error: year %d has %d days.\n", year, leap ? 366 : 365);

    return;
  }

  int i;
  for (i = 0; yearday > daytab[leap][i]; i++)
  {
    yearday -= daytab[leap][i];
  }

  *pmonth = i;
  *pda = yearday;
}

// Assembly:
movq %rdx, %r8
movl %edi, %r9d
pushq $0x64
popq %rdi
movl %r9d, %eax
cltd
idivl %edi
testb $0x3, %r9b
jne 0x12e3
testl %edx, %edx
je 0x12e3
movl $0x16e, %edx            # imm = 0x16E
pushq $0x1
popq %rax
jmp 0x12fb
movl $0x190, %edi            # imm = 0x190
movl %r9d, %eax
cltd
idivl %edi
xorl %eax, %eax
testl %edx, %edx
sete %al
leal 0x16d(%rax), %edx
cmpl %esi, %edx
jge 0x1317
andl $0x0, (%r8)
andl $0x0, (%rcx)
leaq 0xd4f(%rip), %rdi       # 0x205c
movl %r9d, %esi
xorl %eax, %eax
jmp 0x1040
leaq 0x2ab2(%rip), %rdx      # 0x3dd0
movq (%rdx,%rax,8), %rdx
xorl %eax, %eax
movl %esi, %edi
movsbl (%rdx,%rax), %r9d
subl %r9d, %edi
jle 0x1337
incq %rax
movl %edi, %esi
jmp 0x1326
movl %eax, (%r8)
movl %esi, (%rcx)
retq
// File: /workspace/github_c_makefile_star2_O2/aligusnet[P]morpheus/benchmarks/bench_activation.c
// Function: bench_sigmoid
void bench_sigmoid(int n, const char *message, int size, double *x) {
  double *y = calloc(size*size, sizeof(double));
  double start = get_time();
  for (int i = 0; i < n; ++i) {
    morpheus_sigmoid(size*size, x, y);
  }
  double finish = get_time();
  free(y);
  double ms = (finish-start)/n;
  printf("Benchmark %s: %f ms\n", message, ms);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r14
movl %edx, %r15d
movq %rsi, %rbx
movl %edi, %ebp
imull %r15d, %r15d
pushq $0x8
popq %rsi
movq %r15, %rdi
callq 0x10e0
movq %rax, %r12
xorl %r13d, %r13d
xorl %eax, %eax
callq 0x2050
movsd %xmm0, 0x10(%rsp)
testl %ebp, %ebp
cmovgl %ebp, %r13d
subl $0x1, %r13d
jb 0x12b3
movl %r15d, %edi
movq %r14, %rsi
movq %r12, %rdx
callq 0x235c
jmp 0x129d
xorl %eax, %eax
callq 0x2050
movsd %xmm0, 0x8(%rsp)
movq %r12, %rdi
callq 0x1090
movsd 0x8(%rsp), %xmm1
subsd 0x10(%rsp), %xmm1
cvtsi2sd %ebp, %xmm0
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
leaq 0x1d1d(%rip), %rdi      # 0x3004
movq %rbx, %rsi
movb $0x1, %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O2/aligusnet[P]morpheus/benchmarks/bench_activation.c
// Function: bench_sigmoid_gradient
void bench_sigmoid_gradient(int n, const char *message, int size, double *x) {
  double *y = calloc(size*size, sizeof(double));
  double start = get_time();
  for (int i = 0; i < n; ++i) {
    morpheus_sigmoid_gradient(size*size, x, y);
  }
  double finish = get_time();
  free(y);
  double ms = (finish-start)/n;
  printf("Benchmark %s: %f ms\n", message, ms);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r14
movl %edx, %r15d
movq %rsi, %rbx
movl %edi, %ebp
imull %r15d, %r15d
pushq $0x8
popq %rsi
movq %r15, %rdi
callq 0x10e0
movq %rax, %r12
xorl %r13d, %r13d
xorl %eax, %eax
callq 0x2050
movsd %xmm0, 0x10(%rsp)
testl %ebp, %ebp
cmovgl %ebp, %r13d
subl $0x1, %r13d
jb 0x1356
movl %r15d, %edi
movq %r14, %rsi
movq %r12, %rdx
callq 0x23b5
jmp 0x1340
xorl %eax, %eax
callq 0x2050
movsd %xmm0, 0x8(%rsp)
movq %r12, %rdi
callq 0x1090
movsd 0x8(%rsp), %xmm1
subsd 0x10(%rsp), %xmm1
cvtsi2sd %ebp, %xmm0
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
leaq 0x1c7a(%rip), %rdi      # 0x3004
movq %rbx, %rsi
movb $0x1, %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O2/aligusnet[P]morpheus/benchmarks/bench_activation.c
// Function: bench_relu
void bench_relu(int n, const char *message, int size, double *x) {
  double *y = calloc(size*size, sizeof(double));
  double start = get_time();
  for (int i = 0; i < n; ++i) {
    morpheus_relu(size*size, x, y);
  }
  double finish = get_time();
  free(y);
  double ms = (finish-start)/n;
  printf("Benchmark %s: %f ms\n", message, ms);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r14
movl %edx, %r15d
movq %rsi, %rbx
movl %edi, %ebp
imull %r15d, %r15d
pushq $0x8
popq %rsi
movq %r15, %rdi
callq 0x10e0
movq %rax, %r12
xorl %r13d, %r13d
xorl %eax, %eax
callq 0x2050
movsd %xmm0, 0x10(%rsp)
testl %ebp, %ebp
cmovgl %ebp, %r13d
subl $0x1, %r13d
jb 0x13f9
movl %r15d, %edi
movq %r14, %rsi
movq %r12, %rdx
callq 0x241e
jmp 0x13e3
xorl %eax, %eax
callq 0x2050
movsd %xmm0, 0x8(%rsp)
movq %r12, %rdi
callq 0x1090
movsd 0x8(%rsp), %xmm1
subsd 0x10(%rsp), %xmm1
cvtsi2sd %ebp, %xmm0
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
leaq 0x1bd7(%rip), %rdi      # 0x3004
movq %rbx, %rsi
movb $0x1, %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O2/aligusnet[P]morpheus/benchmarks/bench_activation.c
// Function: bench_relu_gradient
void bench_relu_gradient(int n, const char *message, int size, double *x) {
  double *y = calloc(size*size, sizeof(double));
  double start = get_time();
  for (int i = 0; i < n; ++i) {
    morpheus_relu_gradient(size*size, x, y);
  }
  double finish = get_time();
  free(y);
  double ms = (finish-start)/n;
  printf("Benchmark %s: %f ms\n", message, ms);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r14
movl %edx, %r15d
movq %rsi, %rbx
movl %edi, %ebp
imull %r15d, %r15d
pushq $0x8
popq %rsi
movq %r15, %rdi
callq 0x10e0
movq %rax, %r12
xorl %r13d, %r13d
xorl %eax, %eax
callq 0x2050
movsd %xmm0, 0x10(%rsp)
testl %ebp, %ebp
cmovgl %ebp, %r13d
subl $0x1, %r13d
jb 0x149c
movl %r15d, %edi
movq %r14, %rsi
movq %r12, %rdx
callq 0x2442
jmp 0x1486
xorl %eax, %eax
callq 0x2050
movsd %xmm0, 0x8(%rsp)
movq %r12, %rdi
callq 0x1090
movsd 0x8(%rsp), %xmm1
subsd 0x10(%rsp), %xmm1
cvtsi2sd %ebp, %xmm0
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
leaq 0x1b34(%rip), %rdi      # 0x3004
movq %rbx, %rsi
movb $0x1, %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O2/aligusnet[P]morpheus/benchmarks/bench_activation.c
// Function: bench_tanh_gradient
void bench_tanh_gradient(int n, const char *message, int size, double *x) {
  double *y = calloc(size*size, sizeof(double));
  double start = get_time();
  for (int i = 0; i < n; ++i) {
    morpheus_tanh_gradient(size*size, x, y);
  }
  double finish = get_time();
  free(y);
  double ms = (finish-start)/n;
  printf("Benchmark %s: %f ms\n", message, ms);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r14
movl %edx, %r15d
movq %rsi, %rbx
movl %edi, %ebp
imull %r15d, %r15d
pushq $0x8
popq %rsi
movq %r15, %rdi
callq 0x10e0
movq %rax, %r12
xorl %r13d, %r13d
xorl %eax, %eax
callq 0x2050
movsd %xmm0, 0x10(%rsp)
testl %ebp, %ebp
cmovgl %ebp, %r13d
subl $0x1, %r13d
jb 0x15e2
movl %r15d, %edi
movq %r14, %rsi
movq %r12, %rdx
callq 0x24b0
jmp 0x15cc
xorl %eax, %eax
callq 0x2050
movsd %xmm0, 0x8(%rsp)
movq %r12, %rdi
callq 0x1090
movsd 0x8(%rsp), %xmm1
subsd 0x10(%rsp), %xmm1
cvtsi2sd %ebp, %xmm0
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
leaq 0x19ee(%rip), %rdi      # 0x3004
movq %rbx, %rsi
movb $0x1, %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1030
nop
// File: /workspace/github_c_makefile_star2_O2/aligusnet[P]morpheus/benchmarks/bench_matrix_reduce.c
// Function: bench_column_pred
void bench_column_pred(int n, const char *message,
                       double (*pred)(double, double),
                       morpheus_layout_e layout,
                       int size, double *x) {
  double *y = calloc(size, sizeof(double));
  double start = get_time();
  for (int i = 0; i < n; ++i) {
    y[0] = i;
    morpheus_column_predicate(pred, layout, size, size, x, y);
  }
  double finish = get_time();
  free(y);
  double ms = (finish-start)/n;
  printf("Benchmark %s: %f ms\n", message, ms);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, %r14
movl %r8d, %r15d
movl %ecx, %r12d
movq %rdx, %r13
movq %rsi, 0x20(%rsp)
movl %edi, 0xc(%rsp)
movslq %r8d, %rdi
pushq $0x8
popq %rsi
callq 0x10e0
movq %rax, %rbx
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x2050
movsd %xmm0, 0x18(%rsp)
movl 0xc(%rsp), %eax
testl %eax, %eax
cmovgl %eax, %ebp
xorpd %xmm0, %xmm0
subl $0x1, %ebp
jb 0x16b3
movsd %xmm0, (%rbx)
movq %r13, %rdi
movl %r12d, %esi
movl %r15d, %edx
movl %r15d, %ecx
movq %r14, %r8
movq %rbx, %r9
movsd %xmm0, 0x10(%rsp)
callq 0x2504
movsd 0x10(%rsp), %xmm0
addsd 0x196f(%rip), %xmm0     # 0x3020
jmp 0x167d
xorl %eax, %eax
callq 0x2050
movsd %xmm0, 0x10(%rsp)
movq %rbx, %rdi
callq 0x1090
movsd 0x10(%rsp), %xmm1
subsd 0x18(%rsp), %xmm1
cvtsi2sdl 0xc(%rsp), %xmm0
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
leaq 0x191b(%rip), %rdi      # 0x3004
movq 0x20(%rsp), %rsi
movb $0x1, %al
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O2/aligusnet[P]morpheus/benchmarks/bench_matrix_reduce.c
// Function: bench_row_pred
void bench_row_pred(int n, const char *message,
                    double (*pred)(double, double),
                    morpheus_layout_e layout,
                    int size, double *x) {
  double *y = calloc(size, sizeof(double));
  double start = get_time();
  for (int i = 0; i < n; ++i) {
    y[0] = i;
    morpheus_row_predicate(pred, layout, size, size, x, y);
  }
  double finish = get_time();
  free(y);
  double ms = (finish-start)/n;
  printf("Benchmark %s: %f ms\n", message, ms);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, %r14
movl %r8d, %r15d
movl %ecx, %r12d
movq %rdx, %r13
movq %rsi, 0x20(%rsp)
movl %edi, 0xc(%rsp)
movslq %r8d, %rdi
pushq $0x8
popq %rsi
callq 0x10e0
movq %rax, %rbx
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x2050
movsd %xmm0, 0x18(%rsp)
movl 0xc(%rsp), %eax
testl %eax, %eax
cmovgl %eax, %ebp
xorpd %xmm0, %xmm0
subl $0x1, %ebp
jb 0x1786
movsd %xmm0, (%rbx)
movq %r13, %rdi
movl %r12d, %esi
movl %r15d, %edx
movl %r15d, %ecx
movq %r14, %r8
movq %rbx, %r9
movsd %xmm0, 0x10(%rsp)
callq 0x263c
movsd 0x10(%rsp), %xmm0
addsd 0x189c(%rip), %xmm0     # 0x3020
jmp 0x1750
xorl %eax, %eax
callq 0x2050
movsd %xmm0, 0x10(%rsp)
movq %rbx, %rdi
callq 0x1090
movsd 0x10(%rsp), %xmm1
subsd 0x18(%rsp), %xmm1
cvtsi2sdl 0xc(%rsp), %xmm0
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
leaq 0x1848(%rip), %rdi      # 0x3004
movq 0x20(%rsp), %rsi
movb $0x1, %al
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O2/aligusnet[P]morpheus/benchmarks/bench_matrix_reduce.c
// Function: bench_column_max_index
void bench_column_max_index(int n, const char *message,
                            morpheus_layout_e layout,
                            int size, double *x) {
  double *y = calloc(size, sizeof(double));
  int *is = calloc(size, sizeof(int));
  double start = get_time();
  for (int i = 0; i < n; ++i) {
    y[0] = i;
    morpheus_column_max_index(layout, size, size, x, y, is);
  }
  double finish = get_time();
  free(y);
  free(is);
  double ms = (finish-start)/n;
  printf("Benchmark %s: %f ms\n", message, ms);

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, %r14
movl %ecx, %r15d
movl %edx, %r12d
movq %rsi, 0x20(%rsp)
movl %edi, 0xc(%rsp)
movslq %ecx, %rbx
pushq $0x8
popq %rsi
movq %rbx, %rdi
callq 0x10e0
movq %rax, %r13
pushq $0x4
popq %rsi
movq %rbx, %rdi
callq 0x10e0
movq %rax, %rbx
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x2050
movsd %xmm0, 0x18(%rsp)
movl 0xc(%rsp), %eax
testl %eax, %eax
cmovgl %eax, %ebp
xorpd %xmm0, %xmm0
subl $0x1, %ebp
jb 0x1869
movsd %xmm0, (%r13)
movl %r12d, %edi
movl %r15d, %esi
movl %r15d, %edx
movq %r14, %rcx
movq %r13, %r8
movq %rbx, %r9
movsd %xmm0, 0x10(%rsp)
callq 0x2776
movsd 0x10(%rsp), %xmm0
addsd 0x17b9(%rip), %xmm0     # 0x3020
jmp 0x1831
xorl %eax, %eax
callq 0x2050
movsd %xmm0, 0x10(%rsp)
movq %r13, %rdi
callq 0x1090
movq %rbx, %rdi
callq 0x1090
movsd 0x10(%rsp), %xmm1
subsd 0x18(%rsp), %xmm1
cvtsi2sdl 0xc(%rsp), %xmm0
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
leaq 0x175d(%rip), %rdi      # 0x3004
movq 0x20(%rsp), %rsi
movb $0x1, %al
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O2/aligusnet[P]morpheus/benchmarks/bench_matrix_reduce.c
// Function: bench_column_min_index
void bench_column_min_index(int n, const char *message,
                            morpheus_layout_e layout,
                            int size, double *x) {
  double *y = calloc(size, sizeof(double));
  int *is = calloc(size, sizeof(int));
  double start = get_time();
  for (int i = 0; i < n; ++i) {
    y[0] = i;
    morpheus_column_min_index(layout, size, size, x, y, is);
  }
  double finish = get_time();
  free(y);
  free(is);
  double ms = (finish-start)/n;
  printf("Benchmark %s: %f ms\n", message, ms);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, %r14
movl %ecx, %r15d
movl %edx, %r12d
movq %rsi, 0x20(%rsp)
movl %edi, 0xc(%rsp)
movslq %ecx, %rbx
pushq $0x8
popq %rsi
movq %rbx, %rdi
callq 0x10e0
movq %rax, %r13
pushq $0x4
popq %rsi
movq %rbx, %rdi
callq 0x10e0
movq %rax, %rbx
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x2050
movsd %xmm0, 0x18(%rsp)
movl 0xc(%rsp), %eax
testl %eax, %eax
cmovgl %eax, %ebp
xorpd %xmm0, %xmm0
subl $0x1, %ebp
jb 0x1954
movsd %xmm0, (%r13)
movl %r12d, %edi
movl %r15d, %esi
movl %r15d, %edx
movq %r14, %rcx
movq %r13, %r8
movq %rbx, %r9
movsd %xmm0, 0x10(%rsp)
callq 0x2881
movsd 0x10(%rsp), %xmm0
addsd 0x16ce(%rip), %xmm0     # 0x3020
jmp 0x191c
xorl %eax, %eax
callq 0x2050
movsd %xmm0, 0x10(%rsp)
movq %r13, %rdi
callq 0x1090
movq %rbx, %rdi
callq 0x1090
movsd 0x10(%rsp), %xmm1
subsd 0x18(%rsp), %xmm1
cvtsi2sdl 0xc(%rsp), %xmm0
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
leaq 0x1672(%rip), %rdi      # 0x3004
movq 0x20(%rsp), %rsi
movb $0x1, %al
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O2/aligusnet[P]morpheus/benchmarks/bench_matrix_reduce.c
// Function: bench_column_sum
void bench_column_sum(int n, const char *message,
                      morpheus_layout_e layout,
                      int size, double *x) {
  double *y = calloc(size, sizeof(double));
  double start = get_time();
  for (int i = 0; i < n; ++i) {
    y[0] = i;
    morpheus_column_sum(layout, size, size, x, y);
  }
  double finish = get_time();
  free(y);
  double ms = (finish-start)/n;
  printf("Benchmark %s: %f ms\n", message, ms);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %r14
movl %ecx, %r15d
movl %edx, %r12d
movq %rsi, 0x10(%rsp)
movl %edi, %ebp
movslq %ecx, %rdi
pushq $0x8
popq %rsi
callq 0x10e0
movq %rax, %r13
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x2050
movsd %xmm0, 0x8(%rsp)
testl %ebp, %ebp
cmovgl %ebp, %ebx
xorpd %xmm0, %xmm0
subl $0x1, %ebx
jb 0x1bf9
movsd %xmm0, (%r13)
movl %r12d, %edi
movl %r15d, %esi
movl %r15d, %edx
movq %r14, %rcx
movq %r13, %r8
movsd %xmm0, (%rsp)
callq 0x2bb0
movsd (%rsp), %xmm0
addsd 0x1429(%rip), %xmm0     # 0x3020
jmp 0x1bc6
xorl %eax, %eax
callq 0x2050
movsd %xmm0, (%rsp)
movq %r13, %rdi
callq 0x1090
movsd (%rsp), %xmm1
subsd 0x8(%rsp), %xmm1
cvtsi2sd %ebp, %xmm0
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
leaq 0x13d9(%rip), %rdi      # 0x3004
movq 0x10(%rsp), %rsi
movb $0x1, %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O2/aligusnet[P]morpheus/benchmarks/bench_simple_blas.c
// Function: bench_morpheus_identity
void bench_morpheus_identity(int n, const char *message, int size) {
  double *x = calloc(size*size, sizeof(double));

  double start = get_time();
  for (int i = 0; i < n; ++i) {
    x[0] = i;
    morpheus_identity(size, x);
  }
  double finish = get_time();
  free(x);
  double ms = (finish-start)/n;
  printf("Benchmark %s: %f ms\n", message, ms);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %edx, %r14d
movq %rsi, %rbx
movl %edi, %ebp
movl %edx, %edi
imull %edi, %edi
pushq $0x8
popq %rsi
callq 0x10e0
movq %rax, %r15
xorl %r12d, %r12d
xorl %eax, %eax
callq 0x2050
movsd %xmm0, 0x8(%rsp)
testl %ebp, %ebp
cmovgl %ebp, %r12d
xorpd %xmm0, %xmm0
subl $0x1, %r12d
jb 0x1d70
movsd %xmm0, (%r15)
movl %r14d, %edi
movq %r15, %rsi
movsd %xmm0, (%rsp)
callq 0x2f6a
movsd (%rsp), %xmm0
addsd 0x12b2(%rip), %xmm0     # 0x3020
jmp 0x1d46
xorl %eax, %eax
callq 0x2050
movsd %xmm0, (%rsp)
movq %r15, %rdi
callq 0x1090
movsd (%rsp), %xmm1
subsd 0x8(%rsp), %xmm1
cvtsi2sd %ebp, %xmm0
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
leaq 0x1262(%rip), %rdi      # 0x3004
movq %rbx, %rsi
movb $0x1, %al
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O2/aligusnet[P]morpheus/benchmarks/bench_simple_blas.c
// Function: manual_identity
void manual_identity(int n, double *x) {
  int m = n*n;
  for (int i = 0; i < n; ++i) {
    double *row = x + i*n;
    for (int j = 0; j < n; ++j) {
      row[j] = i != j ? 0 : 1;
    }
  }
}

// Assembly:
movslq %edi, %rax
xorl %ecx, %ecx
testl %eax, %eax
movl $0x0, %edx
cmovgl %eax, %edx
movl %eax, %edi
shlq $0x3, %rax
movsd 0x124b(%rip), %xmm0     # 0x3020
cmpq %rdx, %rcx
je 0x1e00
xorl %r8d, %r8d
cmpq %r8, %rdi
je 0x1df8
movaps %xmm0, %xmm1
cmpq %r8, %rcx
je 0x1ded
xorps %xmm1, %xmm1
movsd %xmm1, (%rsi,%r8,8)
incq %r8
jmp 0x1ddd
incq %rcx
addq %rax, %rsi
jmp 0x1dd5
retq
// File: /workspace/github_c_makefile_star2_O2/aligusnet[P]morpheus/benchmarks/bench_simple_blas.c
// Function: bench_manual_identity
void bench_manual_identity(int n, const char *message, int size) {
  double *x = calloc(size*size, sizeof(double));

  double start = get_time();
  for (int i = 0; i < n; ++i) {
    x[0] = i;
    manual_identity(size, x);
  }
  double finish = get_time();
  free(x);
  double ms = (finish-start)/n;
  printf("Benchmark %s: %f ms\n", message, ms);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %edx, %r14d
movq %rsi, %rbx
movl %edi, %ebp
movl %edx, %edi
imull %edi, %edi
pushq $0x8
popq %rsi
callq 0x10e0
movq %rax, %r15
xorl %r12d, %r12d
xorl %eax, %eax
callq 0x2050
movsd %xmm0, 0x8(%rsp)
testl %ebp, %ebp
cmovgl %ebp, %r12d
xorpd %xmm0, %xmm0
subl $0x1, %r12d
jb 0x1e69
movsd %xmm0, (%r15)
movl %r14d, %edi
movq %r15, %rsi
movsd %xmm0, (%rsp)
callq 0x1db8
movsd (%rsp), %xmm0
addsd 0x11b9(%rip), %xmm0     # 0x3020
jmp 0x1e3f
xorl %eax, %eax
callq 0x2050
movsd %xmm0, (%rsp)
movq %r15, %rdi
callq 0x1090
movsd (%rsp), %xmm1
subsd 0x8(%rsp), %xmm1
cvtsi2sd %ebp, %xmm0
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
leaq 0x1169(%rip), %rdi      # 0x3004
movq %rbx, %rsi
movb $0x1, %al
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O2/aligusnet[P]morpheus/benchmarks/bench_simple_blas.c
// Function: bench_morpheus_dcopy
void bench_morpheus_dcopy(int n, const char *message, int size, double *x) {
  double *y = calloc(size*size, sizeof(double));
  double start = get_time();
  for (int i = 0; i < n; ++i) {
    y[0] = i;
    morpheus_dcopy(size*size, x, y);
  }
  double finish = get_time();
  free(y);
  double ms = (finish-start)/n;
  printf("Benchmark %s: %f ms\n", message, ms);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r14
movl %edx, %r15d
movq %rsi, %rbx
movl %edi, %ebp
imull %r15d, %r15d
pushq $0x8
popq %rsi
movq %r15, %rdi
callq 0x10e0
movq %rax, %r12
xorl %r13d, %r13d
xorl %eax, %eax
callq 0x2050
movsd %xmm0, 0x10(%rsp)
testl %ebp, %ebp
cmovgl %ebp, %r13d
xorpd %xmm0, %xmm0
subl $0x1, %r13d
jb 0x1f26
movsd %xmm0, (%r12)
movl %r15d, %edi
movq %r14, %rsi
movq %r12, %rdx
movsd %xmm0, 0x8(%rsp)
callq 0x2d92
movsd 0x8(%rsp), %xmm0
addsd 0x10fc(%rip), %xmm0     # 0x3020
jmp 0x1ef6
xorl %eax, %eax
callq 0x2050
movsd %xmm0, 0x8(%rsp)
movq %r12, %rdi
callq 0x1090
movsd 0x8(%rsp), %xmm1
subsd 0x10(%rsp), %xmm1
cvtsi2sd %ebp, %xmm0
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
leaq 0x10aa(%rip), %rdi      # 0x3004
movq %rbx, %rsi
movb $0x1, %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O2/aligusnet[P]morpheus/benchmarks/bench_simple_blas.c
// Function: bench_manual_dcopy
void bench_manual_dcopy(int n, const char *message, int size, double *x) {
  double *y = calloc(size*size, sizeof(double));
  double k = 0;
  double start = get_time();
  for (int i = 0; i < n; ++i) {
    k += y[0];
    manual_dcopy(size*size, x, y);
  }
  double finish = get_time();
  free(y);
  double ms = (finish-start)/n;
  printf("Benchmark %s: %f ms (_hack: %5.2f)\n", message, ms, k);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r14
movl %edx, %r15d
movq %rsi, %rbx
movl %edi, %ebp
imull %r15d, %r15d
pushq $0x8
popq %rsi
movq %r15, %rdi
callq 0x10e0
movq %rax, %r12
xorl %r13d, %r13d
xorl %eax, %eax
callq 0x2050
movsd %xmm0, 0x10(%rsp)
testl %ebp, %ebp
cmovgl %ebp, %r13d
xorpd %xmm0, %xmm0
movsd %xmm0, (%rsp)
subl $0x1, %r13d
jb 0x1ffe
movsd (%rsp), %xmm0
addsd (%r12), %xmm0
movsd %xmm0, (%rsp)
movl %r15d, %edi
movq %r14, %rsi
movq %r12, %rdx
callq 0x1f72
jmp 0x1fd8
xorl %eax, %eax
callq 0x2050
movsd %xmm0, 0x8(%rsp)
movq %r12, %rdi
callq 0x1090
cvtsi2sd %ebp, %xmm0
movsd 0x8(%rsp), %xmm1
subsd 0x10(%rsp), %xmm1
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
leaq 0xff6(%rip), %rdi       # 0x3028
movq %rbx, %rsi
movsd (%rsp), %xmm1
movb $0x2, %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1030
nop
// File: /workspace/github_c_makefile_star2_O2/aligusnet[P]morpheus/src/matrix_reduce.c
// Function: morpheus_column_predicate
void morpheus_column_predicate(double (*pred)(double, double),
                               morpheus_layout_e layout,
                               int nrows,
                               int ncols,
                               const double *x,
                               double *y) {
  if (layout == morpheus_row_major) {
    /* first row is initial values */
    morpheus_dcopy(ncols, x, y);
    for (int i = 1; i < nrows; ++i) {
      const double *row = x + i*ncols;
      for (int j = 0; j < ncols; ++j) {
        y[j] = pred(y[j], row[j]);
      }
    }
  } else if (layout == morpheus_col_major) {
    for (int j = 0; j < ncols; ++j) {
      const double *column = &x[j*nrows];
      y[j] = column[0];
      for (int i = 1; i < nrows; ++i) {
        y[j] = pred(y[j], column[i]);
      }
    }
  } else {
    perror("unkwnown matrix layout");
    assert(0);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %rbx
movq %r8, %r15
movl %edx, %ebp
movq %rdi, %r14
cmpl $0x15, %esi
je 0x259c
cmpl $0x16, %esi
jne 0x2613
xorl %r13d, %r13d
testl %ecx, %ecx
cmovlel %r13d, %ecx
movslq %ebp, %rbp
leaq (,%rbp,8), %rax
movq %rax, 0x10(%rsp)
movq %r15, %r12
movq %r15, (%rsp)
movq %rcx, 0x8(%rsp)
cmpq %rcx, %r13
je 0x2604
movq %r13, %rax
imulq %rbp, %rax
movsd (%r15,%rax,8), %xmm0
movsd %xmm0, (%rbx,%r13,8)
pushq $0x1
popq %r15
cmpq %rbp, %r15
jge 0x2589
movsd (%r12,%r15,8), %xmm1
callq *%r14
movsd %xmm0, (%rbx,%r13,8)
incq %r15
jmp 0x2570
incq %r13
addq 0x10(%rsp), %r12
movq (%rsp), %r15
movq 0x8(%rsp), %rcx
jmp 0x2550
movl %ecx, %edi
movq %r15, %rsi
movq %rbx, %rdx
movq %rcx, %r12
callq 0x2d92
xorl %r13d, %r13d
testl %r12d, %r12d
cmovgl %r12d, %r13d
movslq %ebp, %rax
movq %rax, 0x8(%rsp)
movslq %r12d, %rax
leaq (%r15,%rax,8), %rbp
shlq $0x3, %rax
movq %rax, (%rsp)
pushq $0x1
popq %r15
cmpq 0x8(%rsp), %r15
jge 0x2604
xorl %r12d, %r12d
cmpq %r12, %r13
je 0x25fb
movsd (%rbx,%r12,8), %xmm0
movsd (%rbp,%r12,8), %xmm1
callq *%r14
movsd %xmm0, (%rbx,%r12,8)
incq %r12
jmp 0x25db
incq %r15
addq (%rsp), %rbp
jmp 0x25d1
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xca6(%rip), %rdi       # 0x32c0
callq 0x1110
leaq 0xcb1(%rip), %rdi       # 0x32d7
leaq 0xcac(%rip), %rsi       # 0x32d9
leaq 0xcb9(%rip), %rcx       # 0x32ed
pushq $0x20
popq %rdx
callq 0x1070
// File: /workspace/github_c_makefile_star2_O2/aligusnet[P]morpheus/src/matrix_reduce.c
// Function: morpheus_row_predicate
void morpheus_row_predicate(double (*pred)(double, double),
                            morpheus_layout_e layout,
                            int nrows, int ncols,
                            const double *x,
                            double *y) {
  if (layout == morpheus_row_major) {
    for (int i = 0; i < nrows; ++i) {
      const double *row = x + i*ncols;
      y[i] = row[0];
      for (int j = 1; j < ncols; ++j) {
        y[i] = pred(y[i], row[j]);
      }
    }
  } else if (layout == morpheus_col_major) {
    /* first column is initial values */
    morpheus_dcopy(nrows, x, y);
    for (int j = 1; j < ncols; ++j) {
      const double *column = x + j*nrows;
      for (int i = 0; i < nrows; ++i) {
        y[i] = pred(y[i], column[i]);
      }
    }
  } else {
    perror("unkwnown matrix layout");
    assert(0);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %rbx
movq %r8, %r15
movl %ecx, %ebp
movl %edx, %eax
movq %rdi, %r14
cmpl $0x16, %esi
je 0x26d6
cmpl $0x15, %esi
jne 0x274d
xorl %r13d, %r13d
testl %eax, %eax
cmovlel %r13d, %eax
movslq %ebp, %rbp
leaq (,%rbp,8), %rcx
movq %rcx, 0x10(%rsp)
movq %r15, %r12
movq %r15, (%rsp)
movq %rax, 0x8(%rsp)
cmpq %rax, %r13
je 0x273e
movq %r13, %rax
imulq %rbp, %rax
movsd (%r15,%rax,8), %xmm0
movsd %xmm0, (%rbx,%r13,8)
pushq $0x1
popq %r15
cmpq %rbp, %r15
jge 0x26c3
movsd (%r12,%r15,8), %xmm1
callq *%r14
movsd %xmm0, (%rbx,%r13,8)
incq %r15
jmp 0x26aa
incq %r13
addq 0x10(%rsp), %r12
movq (%rsp), %r15
movq 0x8(%rsp), %rax
jmp 0x268a
movl %eax, %edi
movq %r15, %rsi
movq %rbx, %rdx
movq %rax, %r12
callq 0x2d92
xorl %r13d, %r13d
testl %r12d, %r12d
cmovgl %r12d, %r13d
movslq %ebp, %rax
movq %rax, 0x8(%rsp)
movslq %r12d, %rax
leaq (%r15,%rax,8), %rbp
shlq $0x3, %rax
movq %rax, (%rsp)
pushq $0x1
popq %r15
cmpq 0x8(%rsp), %r15
jge 0x273e
xorl %r12d, %r12d
cmpq %r12, %r13
je 0x2735
movsd (%rbx,%r12,8), %xmm0
movsd (%rbp,%r12,8), %xmm1
callq *%r14
movsd %xmm0, (%rbx,%r12,8)
incq %r12
jmp 0x2715
incq %r15
addq (%rsp), %rbp
jmp 0x270b
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xb6c(%rip), %rdi       # 0x32c0
callq 0x1110
leaq 0xb77(%rip), %rdi       # 0x32d7
leaq 0xb72(%rip), %rsi       # 0x32d9
leaq 0xbf1(%rip), %rcx       # 0x335f
pushq $0x3c
popq %rdx
callq 0x1070
// File: /workspace/github_c_makefile_star2_O2/aligusnet[P]morpheus/src/matrix_reduce.c
// Function: morpheus_column_max_index
void morpheus_column_max_index(morpheus_layout_e layout,
                               int nrows, int ncols,
                               const double *x,
                               double *y,
                               int *is) {
  if (layout == morpheus_row_major) {
    for (int j = 0; j < ncols; ++j) {
      is[j] = 0;
      y[j] = x[j];
    }
    for (int i = 1; i < nrows; ++i) {
      const double *row = x + i*ncols;
      for (int j = 0; j < ncols; ++j) {
        if (y[j] < row[j]) {
          y[j] = row[j];
          is[j] = i;
        }
      }
    }
  } else if (layout == morpheus_col_major) {
    for (int j = 0; j < ncols; ++j) {
      const double *column = &x[j*nrows];
      y[j] = column[0];
      is[j] = 0;
      for (int i = 1; i < nrows; ++i) {
        if (y[j] < column[i]) {
          y[j] = column[i];
          is[j] = i;
        }
      }
    }
  } else {
    perror("unkwnown matrix layout");
    assert(0);
  }
}

// Assembly:
pushq %rbx
cmpl $0x15, %edi
je 0x27ed
cmpl $0x16, %edi
jne 0x2858
xorl %eax, %eax
testl %edx, %edx
cmovlel %eax, %edx
movslq %esi, %rsi
leaq (,%rsi,8), %rdi
pushq $0x1
popq %r10
movq %rcx, %r11
cmpq %rdx, %rax
je 0x2856
movq %rax, %rbx
imulq %rsi, %rbx
movsd (%rcx,%rbx,8), %xmm0
movsd %xmm0, (%r8,%rax,8)
andl $0x0, (%r9,%rax,4)
movq %r10, %rbx
cmpq %rsi, %rbx
jge 0x27e5
movsd (%r11,%rbx,8), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x27e0
movsd %xmm1, (%r8,%rax,8)
movl %ebx, (%r9,%rax,4)
movapd %xmm1, %xmm0
incq %rbx
jmp 0x27c1
incq %rax
addq %rdi, %r11
jmp 0x279e
xorl %edi, %edi
testl %edx, %edx
movl $0x0, %eax
cmovgl %edx, %eax
cmpq %rdi, %rax
je 0x2813
andl $0x0, (%r9,%rdi,4)
movsd (%rcx,%rdi,8), %xmm0
movsd %xmm0, (%r8,%rdi,8)
incq %rdi
jmp 0x27f9
movslq %esi, %rsi
movslq %edx, %rdx
leaq (%rcx,%rdx,8), %rcx
shlq $0x3, %rdx
pushq $0x1
popq %rdi
cmpq %rsi, %rdi
jge 0x2856
xorl %r10d, %r10d
cmpq %r10, %rax
je 0x284e
movsd (%rcx,%r10,8), %xmm0
ucomisd (%r8,%r10,8), %xmm0
jbe 0x2849
movsd %xmm0, (%r8,%r10,8)
movl %edi, (%r9,%r10,4)
incq %r10
jmp 0x282c
incq %rdi
addq %rdx, %rcx
jmp 0x2824
popq %rbx
retq
leaq 0xa61(%rip), %rdi       # 0x32c0
callq 0x1110
leaq 0xa6c(%rip), %rdi       # 0x32d7
leaq 0xa67(%rip), %rsi       # 0x32d9
leaq 0xb55(%rip), %rcx       # 0x33ce
pushq $0x61
popq %rdx
callq 0x1070
// File: /workspace/github_c_makefile_star2_O2/aligusnet[P]morpheus/src/matrix_reduce.c
// Function: morpheus_row_max_index
void morpheus_row_max_index(morpheus_layout_e layout,
                            int nrows, int ncols,
                            const double *x,
                            double *y,
                            int *is) {
  if (layout == morpheus_row_major) {
    for (int i = 0; i < nrows; ++i) {
      const double *row = x + i*ncols;
      y[i] = row[0];
      is[i] = 0;
      for (int j = 1; j < ncols; ++j) {
        if (y[i] < row[j]) {
          y[i] = row[j];
          is[i] = j;
        }
      }
    }
  } else if (layout == morpheus_col_major) {
    for (int i = 0; i < nrows; ++i) {
      is[i] = 0;
      y[i] = x[i];
    }
    for (int j = 1; j < ncols; ++j) {
      const double *column = x + j*nrows;
      for (int i = 0; i < nrows; ++i) {
        if (y[i] < column[i]) {
          y[i] = column[i];
          is[i] = j;
        }
      }
    }
  } else {
    perror("unkwnown matrix layout");
    assert(0);
  }
}

// Assembly:
pushq %rbx
cmpl $0x15, %edi
je 0x29c7
cmpl $0x16, %edi
jne 0x2a74
xorl %edi, %edi
testl %esi, %esi
movl $0x0, %eax
cmovgl %esi, %eax
cmpq %rdi, %rax
je 0x2a2f
andl $0x0, (%r9,%rdi,4)
movsd (%rcx,%rdi,8), %xmm0
movsd %xmm0, (%r8,%rdi,8)
incq %rdi
jmp 0x29ad
xorl %eax, %eax
testl %esi, %esi
cmovlel %eax, %esi
movslq %edx, %rdx
leaq (,%rdx,8), %rdi
pushq $0x1
popq %r10
movq %rcx, %r11
cmpq %rsi, %rax
je 0x2a72
movq %rax, %rbx
imulq %rdx, %rbx
movsd (%rcx,%rbx,8), %xmm0
movsd %xmm0, (%r8,%rax,8)
andl $0x0, (%r9,%rax,4)
movq %r10, %rbx
cmpq %rdx, %rbx
jge 0x2a27
movsd (%r11,%rbx,8), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x2a22
movsd %xmm1, (%r8,%rax,8)
movl %ebx, (%r9,%rax,4)
movapd %xmm1, %xmm0
incq %rbx
jmp 0x2a03
incq %rax
addq %rdi, %r11
jmp 0x29e0
movslq %edx, %rdx
movslq %esi, %rsi
leaq (%rcx,%rsi,8), %rcx
shlq $0x3, %rsi
pushq $0x1
popq %rdi
cmpq %rdx, %rdi
jge 0x2a72
xorl %r10d, %r10d
cmpq %r10, %rax
je 0x2a6a
movsd (%rcx,%r10,8), %xmm0
ucomisd (%r8,%r10,8), %xmm0
jbe 0x2a65
movsd %xmm0, (%r8,%r10,8)
movl %edi, (%r9,%r10,4)
incq %r10
jmp 0x2a48
incq %rdi
addq %rsi, %rcx
jmp 0x2a40
popq %rbx
retq
leaq 0x845(%rip), %rdi       # 0x32c0
callq 0x1110
leaq 0x850(%rip), %rdi       # 0x32d7
leaq 0x84b(%rip), %rsi       # 0x32d9
leaq 0x9f3(%rip), %rcx       # 0x3488
movl $0xac, %edx
callq 0x1070
// File: /workspace/github_c_makefile_star2_O2/aligusnet[P]morpheus/src/matrix_reduce.c
// Function: morpheus_column_sum
void morpheus_column_sum(morpheus_layout_e layout,
                         int nrows, int ncols,
                         const double *x,
                         double *y) {
  if (layout == morpheus_row_major) {
    for (int j = 0; j < ncols; ++j) {
      y[j] = 0;
    }
    for (int i = 0; i < nrows; ++i) {
      const double *row = x + i*ncols;
      for (int j = 0; j < ncols; ++j) {
        y[j] += row[j];
      }
    }
  } else if (layout == morpheus_col_major) {
    for (int j = 0; j < ncols; ++j) {
      const double *column = &x[j*nrows];
      y[j] = 0;
      for (int i = 0; i < nrows; ++i) {
        y[j] += column[i];
      }
    }
  } else {
    perror("unkwnown matrix layout");
    assert(0);
  }
}

// Assembly:
pushq %rax
cmpl $0x15, %edi
je 0x2c06
cmpl $0x16, %edi
jne 0x2c5d
xorl %eax, %eax
testl %esi, %esi
movl $0x0, %edi
cmovgl %esi, %edi
movslq %esi, %rsi
testl %edx, %edx
cmovlel %eax, %edx
shlq $0x3, %rsi
cmpq %rdx, %rax
je 0x2c5b
andq $0x0, (%r8,%rax,8)
xorpd %xmm0, %xmm0
xorl %r9d, %r9d
cmpq %r9, %rdi
je 0x2bfe
addsd (%rcx,%r9,8), %xmm0
movsd %xmm0, (%r8,%rax,8)
incq %r9
jmp 0x2be8
incq %rax
addq %rsi, %rcx
jmp 0x2bd7
xorl %edi, %edi
testl %edx, %edx
movl $0x0, %eax
cmovgl %edx, %eax
cmpq %rdi, %rax
je 0x2c21
andq $0x0, (%r8,%rdi,8)
incq %rdi
jmp 0x2c12
movslq %edx, %rdx
xorl %edi, %edi
testl %esi, %esi
cmovlel %edi, %esi
shlq $0x3, %rdx
cmpq %rsi, %rdi
je 0x2c5b
xorl %r9d, %r9d
cmpq %r9, %rax
je 0x2c53
movsd (%rcx,%r9,8), %xmm0
addsd (%r8,%r9,8), %xmm0
movsd %xmm0, (%r8,%r9,8)
incq %r9
jmp 0x2c37
incq %rdi
addq %rdx, %rcx
jmp 0x2c2f
popq %rax
retq
leaq 0x65c(%rip), %rdi       # 0x32c0
callq 0x1110
leaq 0x667(%rip), %rdi       # 0x32d7
leaq 0x662(%rip), %rsi       # 0x32d9
leaq 0x8be(%rip), %rcx       # 0x353c
movl $0xed, %edx
callq 0x1070
// File: /workspace/github_c_makefile_star2_O2/aligusnet[P]morpheus/src/matrix_reduce.c
// Function: morpheus_row_sum
void morpheus_row_sum(morpheus_layout_e layout,
                      int nrows, int ncols,
                      const double *x,
                      double *y) {
  if (layout == morpheus_row_major) {
    for (int i = 0; i < nrows; ++i) {
      const double *row = x + i*ncols;
      y[i] = 0;
      for (int j = 0; j < ncols; ++j) {
        y[i] += row[j];
      }
    }
  } else if (layout == morpheus_col_major) {
    for (int i = 0; i < nrows; ++i) {
      y[i] = 0;
    }
    for (int j = 0; j < ncols; ++j) {
      const double *column = x + j*nrows;
      for (int i = 0; i < nrows; ++i) {
        y[i] += column[i];
      }
    }
  } else {
    perror("unkwnown matrix layout");
    assert(0);
  }
}

// Assembly:
pushq %rax
cmpl $0x15, %edi
je 0x2cb2
cmpl $0x16, %edi
jne 0x2d35
xorl %edi, %edi
testl %esi, %esi
movl $0x0, %eax
cmovgl %esi, %eax
cmpq %rdi, %rax
je 0x2cf9
andq $0x0, (%r8,%rdi,8)
incq %rdi
jmp 0x2ca3
xorl %eax, %eax
testl %edx, %edx
movl $0x0, %edi
cmovgl %edx, %edi
movslq %edx, %rdx
testl %esi, %esi
cmovlel %eax, %esi
shlq $0x3, %rdx
cmpq %rsi, %rax
je 0x2d33
andq $0x0, (%r8,%rax,8)
xorpd %xmm0, %xmm0
xorl %r9d, %r9d
cmpq %r9, %rdi
je 0x2cf1
addsd (%rcx,%r9,8), %xmm0
movsd %xmm0, (%r8,%rax,8)
incq %r9
jmp 0x2cdb
incq %rax
addq %rdx, %rcx
jmp 0x2cca
movslq %esi, %rsi
xorl %edi, %edi
testl %edx, %edx
cmovlel %edi, %edx
shlq $0x3, %rsi
cmpq %rdx, %rdi
je 0x2d33
xorl %r9d, %r9d
cmpq %r9, %rax
je 0x2d2b
movsd (%rcx,%r9,8), %xmm0
addsd (%r8,%r9,8), %xmm0
movsd %xmm0, (%r8,%r9,8)
incq %r9
jmp 0x2d0f
incq %rdi
addq %rsi, %rcx
jmp 0x2d07
popq %rax
retq
leaq 0x584(%rip), %rdi       # 0x32c0
callq 0x1110
leaq 0x58f(%rip), %rdi       # 0x32d7
leaq 0x58a(%rip), %rsi       # 0x32d9
leaq 0x836(%rip), %rcx       # 0x358c
movl $0x109, %edx            # imm = 0x109
callq 0x1070
// File: /workspace/github_c_makefile_star2_O2/aligusnet[P]morpheus/src/simple_blas.c
// Function: morpheus_dgemv
void morpheus_dgemv(const morpheus_layout_e layout,
                    const morpheus_transpose_e trans,
                    const int nrows, const int ncols,
                    const double alpha, const double *A, const double *x,
                    const double beta, double *y) {
  const int inc = 1;
  const int lda = layout == morpheus_row_major ? ncols : nrows;
  cblas_dgemv(to_cblas_layout(layout), to_cblas_transpose(trans), nrows, ncols,
              alpha, A, lda, x, inc, beta, y, inc);
}

// Assembly:
pushq %rax
movq %r9, %rax
xorl %r10d, %r10d
cmpl $0x16, %edi
pushq $0x66
popq %r11
cmovnel %r10d, %r11d
cmpl $0x15, %edi
movl %edx, %r9d
cmovel %ecx, %r9d
pushq $0x65
popq %rdi
cmovnel %r11d, %edi
cmpl $0xc, %esi
pushq $0x70
popq %r11
cmovnel %r10d, %r11d
cmpl $0xb, %esi
pushq $0x6f
popq %rsi
cmovnel %r11d, %esi
pushq $0x1
popq %r10
pushq %r10
pushq 0x18(%rsp)
pushq %r10
pushq %rax
callq 0x10b0
addq $0x20, %rsp
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/aligusnet[P]morpheus/src/simple_blas.c
// Function: morpheus_inverse
int morpheus_inverse(int n, double *x, int *pivot, double *workspace) {
  workspace = workspace+n;
  int lwork = n*n;

  int rc;
  dgetrf_(&n, &n, x, &n, pivot, &rc);
  if (rc != 0) {
    return rc;
  }
  dgetri_(&n, x, &n, pivot, workspace, &lwork, &rc);
  return rc;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rcx, %r15
movq %rdx, %rbx
movq %rsi, %r14
movl %edi, %ebp
leaq 0x1c(%rsp), %rcx
movl %edi, (%rcx)
movl %edi, %eax
imull %edi, %eax
movl %eax, 0x18(%rsp)
leaq 0x14(%rsp), %r12
movq %rcx, %rdi
movq %rcx, %rsi
movq %r14, %rdx
movq %rbx, %r8
movq %r12, %r9
callq 0x10c0
movl (%r12), %eax
testl %eax, %eax
jne 0x2e9b
movslq %ebp, %rax
leaq (%r15,%rax,8), %r8
movq %r12, (%rsp)
leaq 0x1c(%rsp), %rdi
leaq 0x18(%rsp), %r9
movq %r14, %rsi
movq %rdi, %rdx
movq %rbx, %rcx
callq 0x1150
movl 0x14(%rsp), %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/aligusnet[P]morpheus/src/simple_blas.c
// Function: morpheus_dger
void morpheus_dger(const morpheus_layout_e layout,
                   const int nrows,
                   const int ncols,
                   const double alpha,
                   const double *x,
                   const double *y,
                   double *a) {
  const int inc = 1;
  const int lda = layout == morpheus_row_major ? ncols : nrows;
  cblas_dger(to_cblas_layout(layout), nrows, ncols,
                             alpha, x, inc, y, inc, a, lda);
}

// Assembly:
pushq %rax
movq %r9, %rax
movq %r8, %r9
xorl %r8d, %r8d
cmpl $0x16, %edi
pushq $0x66
popq %r10
cmovnel %r8d, %r10d
cmpl $0x15, %edi
movl %esi, %r11d
cmovel %edx, %r11d
pushq $0x65
popq %rdi
cmovnel %r10d, %edi
subq $0x8, %rsp
pushq $0x1
popq %r8
pushq %r11
pushq %rax
pushq $0x1
callq 0x10a0
addq $0x20, %rsp
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/aligusnet[P]morpheus/src/simple_blas.c
// Function: morpheus_dgemm
void morpheus_dgemm(const morpheus_layout_e layout,
                    const morpheus_transpose_e trans_a,
                    const morpheus_transpose_e trans_b,
                    const int m,
                    const int n,
                    const int k,
                    const double alpha,
                    const double *a,
                    const double *b,
                    const double beta,
                    double *c) {
  int lda, ldb, ldc;
  if (layout == morpheus_row_major) {
    lda = trans_a == morpheus_no_trans ? k : m;
    ldb = trans_b == morpheus_no_trans ? n : k;
    ldc = n;
  } else {
    lda = trans_a == morpheus_no_trans ? m : k;
    ldb = trans_b == morpheus_no_trans ? k : n;
    ldc = m;
  }
  cblas_dgemm(to_cblas_layout(layout),
              to_cblas_transpose(trans_a), to_cblas_transpose(trans_b),
              m, n, k, alpha, a, lda, b, ldb, beta, c, ldc);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %edx, %eax
movl %esi, %r10d
xorl %edx, %edx
cmpl $0x16, %edi
pushq $0x66
popq %r11
cmovnel %edx, %r11d
cmpl $0xc, %esi
pushq $0x70
popq %rbx
movl $0x0, %esi
cmovel %ebx, %esi
cmpl $0xc, %eax
cmovel %ebx, %edx
cmpl $0xb, %eax
sete %al
pushq $0x6f
popq %rbx
cmovel %ebx, %edx
cmpl $0xb, %r10d
sete %r10b
cmovel %ebx, %esi
cmpl $0x15, %edi
movl %ecx, %ebx
cmovel %r8d, %ebx
sete %bpl
pushq $0x65
popq %rdi
cmovnel %r11d, %edi
xorb %bpl, %r10b
movl %r9d, %r10d
cmovnel %ecx, %r10d
xorb %bpl, %al
movl %r8d, %eax
cmovnel %r9d, %eax
pushq %rbx
pushq 0x38(%rsp)
pushq %rax
pushq 0x40(%rsp)
pushq %r10
pushq 0x48(%rsp)
callq 0x1130
addq $0x38, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/aligusnet[P]morpheus/src/simple_blas.c
// Function: morpheus_identity
void morpheus_identity(const int n, double *a) {
  const int m = n*n;
  const double zero = 0;
  const double one = 1;
  cblas_dcopy(m, &zero, 0, a, 1);
  cblas_dcopy(n, &one, 0, a, n+1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movl %edi, %r14d
leaq 0x8(%rsp), %rsi
andq $0x0, (%rsi)
imull %edi, %edi
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rsp, %r15
movq %rax, (%r15)
pushq $0x1
popq %r8
xorl %edx, %edx
movq %rbx, %rcx
callq 0x10d0
leal 0x1(%r14), %r8d
movl %r14d, %edi
movq %r15, %rsi
xorl %edx, %edx
movq %rbx, %rcx
callq 0x10d0
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/Carton32[P]quectel-CM/quectel-mbim-proxy.c
// Function: non_block_write
static int non_block_write(int fd, void *data, int len)
{
    int ret;
    struct pollfd pollfd = {fd, POLLOUT, 0};
    ret = poll(&pollfd, 1, 3000);

    if (ret <= 0) {
        mbim_debug("%s poll ret=%d, errno: %d(%s)\n", __func__, ret, errno, strerror(errno));
    }

    ret = write (fd, data, len);
    if (ret != len)
        mbim_debug("%s write ret=%d, errno: %d(%s)\n", __func__, ret, errno, strerror(errno));

    return len;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, %ebx
movq %rsi, %r14
movl %edi, %ebp
leaq 0x10(%rsp), %rdi
movl %ebp, (%rdi)
movl $0x4, 0x4(%rdi)
pushq $0x1
popq %rsi
movl $0xbb8, %edx            # imm = 0xBB8
callq 0x1100
testl %eax, %eax
jg 0x1d7c
movl %eax, %r15d
movq 0x2295(%rip), %rax      # 0x3fd0
movq (%rax), %r12
callq 0x127c
callq 0x1040
movl (%rax), %r13d
movl %r13d, %edi
callq 0x1150
movq %rax, (%rsp)
leaq 0x3eb(%rip), %rsi       # 0x2149
leaq 0x237b(%rip), %rdx      # 0x40e0
leaq 0x3ff(%rip), %rcx       # 0x216b
movq %r12, %rdi
movl %r15d, %r8d
movl %r13d, %r9d
xorl %eax, %eax
callq 0x10e0
movl %ebx, %edx
movl %ebp, %edi
movq %r14, %rsi
callq 0x1070
movq %rax, %r14
cmpl %ebx, %r14d
je 0x1dd6
movq 0x2239(%rip), %rax      # 0x3fd0
movq (%rax), %r15
callq 0x127c
callq 0x1040
movl (%rax), %ebp
movl %ebp, %edi
callq 0x1150
movq %rax, (%rsp)
leaq 0x3c3(%rip), %rsi       # 0x217b
leaq 0x2321(%rip), %rdx      # 0x40e0
leaq 0x3a5(%rip), %rcx       # 0x216b
movq %r15, %rdi
movl %r14d, %r8d
movl %ebp, %r9d
xorl %eax, %eax
callq 0x10e0
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/Carton32[P]quectel-CM/quectel-mbim-proxy.c
// Function: handle_client_disconnect
static void handle_client_disconnect(int client_fd)
{
    int i;

    for (i = 0; i < CM_MAX_CLIENT; i++) {
        if (cm_clients[i].client_fd == client_fd) {
            mbim_debug("%s client_fd=%d, client_idx=%d\n", __func__, cm_clients[i].client_fd, cm_clients[i].client_idx);
            safe_close(cm_clients[i].client_fd);
            return;
        }
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
pushq $-0x1
popq %rax
leaq 0x237a(%rip), %r14      # 0x4170
cmpq $0x1f, %rax
je 0x1e57
leaq 0x1(%rax), %r15
cmpl %edi, 0x8(%r14,%rax,8)
movq %r15, %rax
jne 0x1df6
movq 0x21bf(%rip), %rax      # 0x3fd0
movq (%rax), %rbx
callq 0x127c
movl (%r14,%r15,8), %r8d
movl 0x4(%r14,%r15,8), %r9d
leaq 0x428(%rip), %rsi       # 0x2251
leaq 0x22b0(%rip), %rdx      # 0x40e0
leaq 0x43d(%rip), %rcx       # 0x2274
movq %rbx, %rdi
xorl %eax, %eax
callq 0x10e0
movl (%r14,%r15,8), %edi
testl %edi, %edi
jle 0x1e57
shlq $0x3, %r15
callq 0x10c0
orl $-0x1, (%r15,%r14)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/test-unssa.c
// Function: main
int main(int argc, char **argv)
{
	struct string_list * filelist = NULL;
	char *file;

	compile(sparse_initialize(argc, argv, &filelist));
	FOR_EACH_PTR(filelist, file) {
		compile(sparse(file));
	} END_FOR_EACH_PTR(file);

	report_stats();
	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
leaq 0x8(%rsp), %rbx
andq $0x0, (%rbx)
movq %rbx, %rdx
callq 0x13184
movq %rax, %rdi
callq 0xe494
movq (%rbx), %rbx
testq %rbx, %rbx
je 0xe483
movq %rbx, %r14
xorl %r15d, %r15d
movl (%r14), %eax
movsbq %al, %rcx
cmpq %rcx, %r15
jge 0xe47a
movq 0x18(%r14,%r15,8), %rdi
cmpw $0x100, %ax             # imm = 0x100
jb 0xe468
testq %rdi, %rdi
je 0xe475
callq 0x134a8
movq %rax, %rdi
callq 0xe494
incq %r15
jmp 0xe44c
movq 0x10(%r14), %r14
cmpq %rbx, %r14
jne 0xe449
callq 0x28544
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/test-unssa.c
// Function: compile
static int compile(struct symbol_list *list)
{
	struct symbol *sym;
	FOR_EACH_PTR(list, sym) {
		struct entrypoint *ep;
		expand_symbol(sym);
		ep = linearize_symbol(sym);
		if (!(fdump_ir & PASS_FINAL))
			continue;
		if (ep)
			output_fn(ep);
		else
			output_data(sym);
	}
	END_FOR_EACH_PTR(sym);

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, (%rsp)
testq %rdi, %rdi
je 0xe69a
leaq 0x319a0(%rip), %rbx     # 0x3fe56
movq (%rsp), %rdx
xorl %esi, %esi
movq %rdx, 0x10(%rsp)
movl (%rdx), %eax
movsbq %al, %rcx
cmpq %rcx, %rsi
jge 0xe68c
movq %rsi, 0x18(%rsp)
movq 0x18(%rdx,%rsi,8), %r14
cmpw $0x100, %ax             # imm = 0x100
jb 0xe4e9
testq %r14, %r14
je 0xe67a
movq %r14, %rdi
callq 0xe933
movq %r14, %rdi
callq 0x14bcf
movq %rax, %r13
leaq 0x52a25(%rip), %rax     # 0x60f28
testb $0x10, (%rax)
je 0xe67a
testq %r13, %r13
je 0xe54b
leaq 0x50fb8(%rip), %rax     # 0x5f4d0
movq (%rax), %r12
incq %r12
movq %r12, (%rax)
movq (%r13), %r14
movq 0x18(%r14), %rdi
callq 0x2b201
testb $0x4, 0x68(%r14)
jne 0xe591
leaq 0x2aacf(%rip), %rdi     # 0x3900b
movq %rax, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe0f0
jmp 0xe5a2
movq 0x18(%r14), %rdi
callq 0x2b201
leaq 0x2aac1(%rip), %rdi     # 0x3901c
movq %rax, %rsi
xorl %eax, %eax
callq 0xe0f0
movq 0x60(%r14), %rax
movzbl (%rax), %esi
leaq 0x2aab5(%rip), %rdi     # 0x39028
xorl %eax, %eax
callq 0xe0f0
movq 0x68(%r14), %rsi
leaq 0x2aaaf(%rip), %rdi     # 0x39034
xorl %eax, %eax
callq 0xe0f0
jmp 0xe67a
leaq 0x2aa6c(%rip), %rdi     # 0x39004
movq %rax, %rsi
xorl %eax, %eax
callq 0xe0f0
movq %r13, %rdi
callq 0x2c44c
movq 0x18(%r13), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0xe67a
movq 0x8(%rsp), %r13
movq %r12, 0x20(%rsp)
xorl %r15d, %r15d
movl (%r13), %eax
movsbq %al, %rcx
cmpq %rcx, %r15
jge 0xe66b
movq 0x18(%r13,%r15,8), %r14
cmpw $0x100, %ax             # imm = 0x100
jb 0xe5ea
testq %r14, %r14
je 0xe663
cmpq %r12, 0x8(%r14)
je 0xe663
movq %r12, 0x8(%r14)
movq %r14, %rdi
callq 0x13635
movq %rax, %rdi
callq 0xe0a0
movq 0x28(%r14), %rbp
testq %rbp, %rbp
je 0xe656
movq %rbp, %r14
xorl %r12d, %r12d
movl (%r14), %eax
movsbq %al, %rcx
cmpq %rcx, %r12
jge 0xe64d
movq 0x18(%r14,%r12,8), %rdi
cmpw $0x100, %ax             # imm = 0x100
jb 0xe62f
testq %rdi, %rdi
je 0xe648
cmpq $0x0, 0x8(%rdi)
je 0xe648
callq 0x13874
movq %rbx, %rdi
movq %rax, %rsi
xorl %eax, %eax
callq 0xe0f0
incq %r12
jmp 0xe613
movq 0x10(%r14), %r14
cmpq %rbp, %r14
jne 0xe610
pushq $0xa
popq %rdi
callq 0xe040
movq 0x20(%rsp), %r12
incq %r15
jmp 0xe5c9
movq 0x10(%r13), %r13
cmpq 0x8(%rsp), %r13
jne 0xe5c6
movq 0x18(%rsp), %rsi
incq %rsi
movq 0x10(%rsp), %rdx
jmp 0xe4c1
movq 0x10(%rdx), %rdx
cmpq (%rsp), %rdx
jne 0xe4ba
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)