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

```asm
<http_argument_urldecode>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x38(%rbp),%rax
  mov    %rax,-0x28(%rbp)
  mov    -0x38(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %rax,-0x18(%rbp)
  jmp    L162
L86:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2b,%al
  jne    L101
  mov    -0x28(%rbp),%rax
  movb   $0x20,(%rax)
L101:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x25,%al
  je     L33
  mov    -0x28(%rbp),%rdx
  lea    0x1(%rdx),%rax
  mov    %rax,-0x28(%rbp)
  mov    -0x20(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    %rcx,-0x20(%rbp)
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  jmp    L162
L33:
  mov    -0x28(%rbp),%rax
  lea    0x2(%rax),%rdx
  mov    -0x38(%rbp),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  cmp    %rax,%rdx
  jb     L89
  mov    $0x0,%eax
  jmp    L125
L89:
  mov    -0x28(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <isxdigit@plt>
  test   %eax,%eax
  je     L26
  mov    -0x28(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <isxdigit@plt>
  test   %eax,%eax
  jne    L80
L26:
  mov    -0x28(%rbp),%rdx
  lea    0x1(%rdx),%rax
  mov    %rax,-0x28(%rbp)
  mov    -0x20(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    %rcx,-0x20(%rbp)
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  jmp    L162
L80:
  movb   $0x30,-0xd(%rbp)
  movb   $0x78,-0xc(%rbp)
  mov    -0x28(%rbp),%rax
  movzbl 0x1(%rax),%eax
  mov    %al,-0xb(%rbp)
  mov    -0x28(%rbp),%rax
  movzbl 0x2(%rax),%eax
  mov    %al,-0xa(%rbp)
  movb   $0x0,-0x9(%rbp)
  lea    -0x30(%rbp),%rdx
  lea    -0xd(%rbp),%rax
  mov    %rdx,%r8
  mov    $0xff,%ecx
  mov    $0x0,%edx
  mov    $0x10,%esi
  mov    %rax,%rdi
  call   <kore_strtonum@plt>
  mov    %eax,-0x2c(%rbp)
  mov    -0x30(%rbp),%eax
  cmp    $0x1,%eax
  je     L67
  mov    -0x30(%rbp),%eax
  jmp    L125
L67:
  cmpl   $0x1f,-0x2c(%rbp)
  jle    L69
  cmpl   $0x7f,-0x2c(%rbp)
  jne    L151
L69:
  mov    $0x0,%eax
  jmp    L125
L151:
  mov    -0x20(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x20(%rbp)
  mov    -0x2c(%rbp),%edx
  mov    %dl,(%rax)
  addq   $0x3,-0x28(%rbp)
L162:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L60
  mov    -0x38(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  cmp    %rax,-0x28(%rbp)
  jb     L86
L60:
  mov    -0x20(%rbp),%rax
  movb   $0x0,(%rax)
  mov    $0x1,%eax
L125:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L160
  call   <__stack_chk_fail@plt>
L160:
  leave
  ret
```

assistant: ```c
int http_argument_urldecode(char *arg) {
  u_int8_t v;
  int err;
  size_t len;
  char *p, *in, h[5];
  p = arg;
  in = arg;
  len = strlen(arg);
  while (*p != '\0' && p < (arg + len)) {
    if (*p == '+')
      *p = ' ';
    if (*p != '%') {
      *in++ = *p++;
      continue;
    }
    if ((p + 2) >= (arg + len)) {
      ;
      return (0);
    }
    if (!isxdigit((unsigned char)*(p + 1)) || !isxdigit((unsigned char)*(p + 2))) {
      *in++ = *p++;
      continue;
    }
    h[0] = '0';
    h[1] = 'x';
    h[2] = *(p + 1);
    h[3] = *(p + 2);
    h[4] = '\0';
    v = kore_strtonum(h, 16, 0x0, 0xff, &err);
    if (err != 1)
      return (err);
    if (v <= 0x1f || v == 0x7f)
      return (0);
    *in++ = (char)v;
    p += 3;
  }
  *in = '\0';
  return (1);
}
```