user: What would the C source look like for the assembly code provided here:

```asm
<search_range_v2>:
  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)
  mov    -0x8(%rbp),%rax
  add    $0x4,%rax
  movl   $0xffffffff,(%rax)
  mov    (%rax),%edx
  mov    -0x8(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x38(%rbp),%rax
  movl   $0x2,(%rax)
  cmpl   $0x0,-0x2c(%rbp)
  jg     L48
  mov    -0x8(%rbp),%rax
  jmp    L85
L48:
  movl   $0x0,-0x14(%rbp)
  mov    -0x2c(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x10(%rbp)
  jmp    L144
L170:
  mov    -0x10(%rbp),%eax
  sub    -0x14(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x30(%rbp)
  jne    L114
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  jmp    L144
L114:
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x30(%rbp)
  jle    L72
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  jmp    L144
L72:
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x10(%rbp)
L144:
  mov    -0x14(%rbp),%eax
  add    $0x1,%eax
  cmp    %eax,-0x10(%rbp)
  jg     L170
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x30(%rbp)
  jne    L203
  mov    -0x8(%rbp),%rax
  mov    -0x14(%rbp),%edx
  mov    %edx,(%rax)
  jmp    L107
L203:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x30(%rbp)
  jne    L162
  mov    -0x8(%rbp),%rax
  mov    -0x10(%rbp),%edx
  mov    %edx,(%rax)
  jmp    L107
L162:
  mov    -0x8(%rbp),%rax
  jmp    L85
L107:
  movl   $0x0,-0x14(%rbp)
  mov    -0x2c(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x10(%rbp)
  jmp    L37
L129:
  mov    -0x10(%rbp),%eax
  sub    -0x14(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x30(%rbp)
  jne    L46
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  jmp    L37
L46:
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x30(%rbp)
  jle    L145
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  jmp    L37
L145:
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x10(%rbp)
L37:
  mov    -0x14(%rbp),%eax
  add    $0x1,%eax
  cmp    %eax,-0x10(%rbp)
  jg     L129
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x30(%rbp)
  jne    L59
  mov    -0x8(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    -0x10(%rbp),%eax
  mov    %eax,(%rdx)
  jmp    L54
L59:
  mov    -0x8(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    -0x14(%rbp),%eax
  mov    %eax,(%rdx)
L54:
  mov    -0x8(%rbp),%rax
L85:
  leave
  ret
```

assistant: ```c
int *search_range_v2(int *nums, int nums_size, int target, int *return_size) {
  int low, high, mid;
  int *range;
  range = (int *)malloc(sizeof(int) * 2);
  range[0] = range[1] = -1;
  *return_size = 2;
  if (nums_size < 1) {
    return range;
  }
  low = 0;
  high = nums_size - 1;
  while (low + 1 < high) {
    mid = low + (high - low) / 2;
    if (nums[mid] == target) {
      high = mid;
    } else if (nums[mid] < target) {
      low = mid;
    } else {
      high = mid;
    }
  }
  if (nums[low] == target) {
    range[0] = low;
  } else if (nums[high] == target) {
    range[0] = high;
  } else {
    return range;
  }
  low = 0;
  high = nums_size - 1;
  while (low + 1 < high) {
    mid = low + (high - low) / 2;
    if (nums[mid] == target) {
      low = mid;
    } else if (nums[mid] < target) {
      low = mid;
    } else {
      high = mid;
    }
  }
  if (nums[high] == target) {
    range[1] = high;
  } else {
    range[1] = low;
  }
  return range;
}
```