user: What is the c source code of the assembly code below:

```asm
<searchRange>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %edx,-0x30(%rbp)
  mov    %rcx,-0x38(%rbp)
  mov    $0x8,%edi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  movl   $0x0,-0x20(%rbp)
  mov    -0x2c(%rbp),%eax
  mov    %eax,-0x1c(%rbp)
  movl   $0xffffffff,-0x18(%rbp)
  jmp    L143
L148:
  mov    -0x20(%rbp),%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x30(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  jge    L55
  mov    -0x10(%rbp),%eax
  mov    %eax,-0x1c(%rbp)
  jmp    L143
L55:
  mov    -0x30(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  jle    L156
  mov    -0x10(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x20(%rbp)
  jmp    L143
L156:
  mov    -0x10(%rbp),%eax
  mov    %eax,-0x18(%rbp)
  jmp    L85
L143:
  mov    -0x20(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jl     L148
L85:
  mov    -0x38(%rbp),%rax
  movl   $0x2,(%rax)
  cmpl   $0xffffffff,-0x18(%rbp)
  jne    L29
  mov    -0x8(%rbp),%rax
  movl   $0xffffffff,(%rax)
  mov    -0x8(%rbp),%rax
  add    $0x4,%rax
  movl   $0xffffffff,(%rax)
  mov    -0x8(%rbp),%rax
  jmp    L118
L29:
  mov    -0x18(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x14(%rbp)
  jmp    L120
L84:
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jne    L21
  subl   $0x1,-0x14(%rbp)
L120:
  cmpl   $0x0,-0x18(%rbp)
  jg     L84
  jmp    L135
L21:
  nop
L135:
  mov    -0x14(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x18(%rbp)
  cmpl   $0xffffffff,-0x18(%rbp)
  jne    L124
  movl   $0x0,-0x18(%rbp)
L124:
  mov    -0x18(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x18(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x14(%rbp)
  jmp    L111
L72:
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jne    L147
  addl   $0x1,-0x14(%rbp)
L111:
  mov    -0x14(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L72
  jmp    L22
L147:
  nop
L22:
  mov    -0x8(%rbp),%rax
  mov    -0x18(%rbp),%edx
  mov    %edx,(%rax)
  mov    -0x8(%rbp),%rax
  add    $0x4,%rax
  mov    -0x14(%rbp),%edx
  sub    $0x1,%edx
  mov    %edx,(%rax)
  mov    -0x8(%rbp),%rax
L118:
  leave
  ret
```

assistant: ```c
int *searchRange(int *nums, int numsSize, int target, int *returnSize) {
  int *buf = (int *)malloc(sizeof(int) * 2);
  int a = 0;
  int b = numsSize;
  int ret = -1;
  while (a < b) {
    int mid = (a + b) / 2;
    int val = nums[mid];
    if (target < val) {
      b = mid;
    } else if (target > val) {
      a = mid + 1;
    } else {
      ret = mid;
      break;
    }
  }
  *returnSize = 2;
  if (ret == -1) {
    buf[0] = -1;
    buf[1] = -1;
    return buf;
  }
  int i;
  for (i = ret - 1; ret > 0; --i) {
    if (nums[ret] != nums[i])
      break;
  }
  ret = i + 1;
  if (ret == -1)
    ret = 0;
  i = ret;
  for (i = ret + 1; i < numsSize; ++i) {
    if (nums[ret] != nums[i])
      break;
  }
  buf[0] = ret;
  buf[1] = i - 1;
  return buf;
}
```