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

```asm
<mjson_unescape>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    %ecx,-0x30(%rbp)
  movl   $0x0,-0x1c(%rbp)
  movl   $0x0,-0x18(%rbp)
  jmp    L66
L78:
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x5c,%al
  jne    L18
  mov    -0x1c(%rbp),%eax
  add    $0x5,%eax
  cmp    %eax,-0x2c(%rbp)
  jle    L18
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x75,%al
  jne    L18
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x2(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x30,%al
  jne    L109
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x3(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x30,%al
  je     L82
L109:
  mov    $0xffffffff,%eax
  jmp    L148
L82:
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x4(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    -0x18(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x38(%rbp),%rdx
  lea    (%rcx,%rdx,1),%rbx
  mov    %rax,%rdi
  call   <mjson_unhex_nimble@plt>
  mov    %al,(%rbx)
  addl   $0x5,-0x1c(%rbp)
  jmp    L90
L18:
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x5c,%al
  jne    L69
  mov    -0x1c(%rbp),%eax
  add    $0x1,%eax
  cmp    %eax,-0x2c(%rbp)
  jle    L69
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    $0x0,%esi
  mov    %eax,%edi
  call   <mjson_esc@plt>
  mov    %eax,-0x14(%rbp)
  cmpl   $0x0,-0x14(%rbp)
  jne    L160
  mov    $0xffffffff,%eax
  jmp    L148
L160:
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    -0x14(%rbp),%edx
  mov    %dl,(%rax)
  addl   $0x1,-0x1c(%rbp)
  jmp    L90
L69:
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    -0x18(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x38(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
L90:
  addl   $0x1,-0x1c(%rbp)
  addl   $0x1,-0x18(%rbp)
L66:
  mov    -0x1c(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jge    L86
  mov    -0x18(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jl     L78
L86:
  mov    -0x18(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jl     L96
  mov    $0xffffffff,%eax
  jmp    L148
L96:
  cmpl   $0x0,-0x30(%rbp)
  jle    L157
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
L157:
  mov    -0x18(%rbp),%eax
L148:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
int mjson_unescape(const char *s, int len, char *to, int n) {
  int i, j;
  for (i = 0, j = 0; i < len && j < n; i++, j++) {
    if (s[i] == '\\' && i + 5 < len && s[i + 1] == 'u') {
      if (s[i + 2] != '0' || s[i + 3] != '0')
        return -1;
      ((unsigned char *)to)[j] = mjson_unhex_nimble(s + i + 4);
      i += 5;
    } else if (s[i] == '\\' && i + 1 < len) {
      int c = mjson_esc(s[i + 1], 0);
      if (c == 0)
        return -1;
      to[j] = (char)(unsigned char)c;
      i++;
    } else {
      to[j] = s[i];
    }
  }
  if (j >= n)
    return -1;
  if (n > 0)
    to[j] = '\0';
  return j;
}
```