user: Demonstrate the C code that generates the assembly output below:

```asm
<insertionsort_const>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x38(%rbp)
  mov    %esi,-0x3c(%rbp)
  mov    -0x3c(%rbp),%eax
  mov    %eax,-0x20(%rbp)
  movl   $0x0,-0x30(%rbp)
  jmp    L60
L116:
  mov    -0x30(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x1c(%rbp)
  movl   $0x1,-0x24(%rbp)
  movl   $0x0,-0x28(%rbp)
  jmp    L148
L30:
  mov    -0x2c(%rbp),%eax
  not    %eax
  shr    $0x1f,%eax
  movzbl %al,%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x24(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  cmpl   $0x0,-0x18(%rbp)
  je     L67
  cmpl   $0x0,-0x14(%rbp)
  je     L67
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x1c(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x10(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  jg     L150
  movl   $0x0,-0x24(%rbp)
L150:
  mov    -0x10(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  jle    L40
  movl   $0x1,-0x24(%rbp)
L40:
  mov    -0x2c(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x4(%rbp)
  cmpl   $0x0,-0x24(%rbp)
  je     L50
  mov    -0x2c(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rax,%rdx
  mov    -0x4(%rbp),%eax
  mov    %eax,(%rdx)
L50:
  cmpl   $0x0,-0x24(%rbp)
  jne    L17
  mov    -0x2c(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rax,%rdx
  mov    -0x8(%rbp),%eax
  mov    %eax,(%rdx)
L17:
  subl   $0x1,-0x2c(%rbp)
L67:
  cmpl   $0x0,-0x18(%rbp)
  je     L18
  cmpl   $0x0,-0x14(%rbp)
  jne    L4
L18:
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x1c(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x10(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  jg     L120
  movl   $0x0,-0x24(%rbp)
L120:
  mov    -0x10(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  jle    L158
  movl   $0x0,-0x24(%rbp)
L158:
  mov    -0x2c(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x4(%rbp)
  cmpl   $0x0,-0x24(%rbp)
  je     L86
  mov    -0x2c(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rax,%rdx
  mov    -0x4(%rbp),%eax
  mov    %eax,(%rdx)
L86:
  cmpl   $0x0,-0x24(%rbp)
  jne    L4
  mov    -0x2c(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rax,%rdx
  mov    -0x8(%rbp),%eax
  mov    %eax,(%rdx)
L4:
  addl   $0x1,-0x28(%rbp)
L148:
  mov    -0x28(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L30
  mov    -0x2c(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rax,%rdx
  mov    -0x1c(%rbp),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x30(%rbp)
L60:
  mov    -0x30(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L116
  nop
  nop
  pop    %rbp
  ret
```

assistant: ```c
void insertionsort_const(int list[], int n) {
  int i, j, k, v, bool, j1, j2, ljtemp, vtemp;
  int max = n;
  for (i = 0; i < n; i++) {
    j = i - 1, v = list[i], bool = 1;
    k = 0;
    while (k < n) {
      int b1 = (j >= 0);
      int b2 = bool;
      if (b1 && b2) {
        ljtemp = list[j];
        vtemp = v;
        if (ljtemp <= vtemp)
          bool = 0;
        if (ljtemp > vtemp)
          bool = 1;
        j1 = list[j + 1], j2 = list[j];
        if (bool)
          list[j + 1] = j2;
        if (!bool)
          list[j + 1] = j1;
        j = j - 1;
      }
      if (!(b1 && b2)) {
        ljtemp = list[j];
        vtemp = v;
        if (ljtemp <= vtemp)
          bool = 0;
        if (ljtemp > vtemp)
          bool = 0;
        j1 = list[j + 1], j2 = list[j];
        if (bool)
          list[j + 1] = j2;
        if (!bool)
          list[j + 1] = j1;
        j = j - 0;
      }
      k++;
    }
    list[j + 1] = v;
  }
}
```