user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<Get_Description_Url>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x28,%rsp
  mov    %rdi,0x10(%rsp)
  mov    %rsi,0x8(%rsp)
  call   <strlen@plt>
  lea    0x1(%rax),%edi
  call   <malloc@plt>
  test   %rax,%rax
  je     L107
  mov    %rax,%rsi
  mov    %rbx,%rdi
  mov    %rax,%r13
  call   <LNat_Str_To_Upper@plt>
  lea    D15(%rip),%rsi
  mov    %rbx,%rdi
  call   <strstr@plt>
  test   %rax,%rax
  je     L81
  mov    %r13,%r14
  lea    D5(%rip),%rbx
  lea    D17(%rip),%rbp
  jmp    L75
  xchg   %ax,%ax
L87:
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    %rbx,%rsi
  cltq
  add    %rax,%r14
  mov    %r14,%rdi
  call   <strstr@plt>
  mov    %rax,%r15
  test   %rax,%rax
  je     L70
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %rbp,%rdi
  movslq %eax,%r12
  call   <strlen@plt>
  mov    %rbp,%rsi
  mov    %r14,%rdi
  mov    %eax,%edx
  call   <strncmp@plt>
  test   %eax,%eax
  je     L37
L75:
  mov    %r14,%rdi
  mov    %rbx,%rsi
  call   <strstr@plt>
  mov    %rax,%r14
  test   %rax,%rax
  jne    L87
L70:
  mov    %r13,%rdi
  call   <free@plt>
  mov    0x8(%rsp),%rax
  mov    (%rax),%rdi
  call   <strlen@plt>
  mov    $0xfffffce5,%r9d
  cmp    $0x1ff,%eax
  jg     L20
L117:
  add    $0x28,%rsp
  mov    %r9d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L37:
  add    %r14,%r12
  mov    %r15,%rcx
  mov    %eax,0x1c(%rsp)
  sub    %r12,%rcx
  lea    0x1(%rcx),%edi
  call   <malloc@plt>
  mov    0x1c(%rsp),%r9d
  mov    %rax,%rdx
  mov    0x8(%rsp),%rax
  test   %rdx,%rdx
  mov    %rdx,(%rax)
  je     L96
  mov    %r12,%r8
  mov    0x10(%rsp),%rdi
  mov    %r9d,0x8(%rsp)
  lea    D26(%rip),%rsi
  sub    %r13,%r8
  movslq %r8d,%r8
  add    %r8,%rdi
  call   <sscanf@plt>
  mov    %r13,%rdi
  call   <free@plt>
  mov    0x8(%rsp),%r9d
  jmp    L117
  nopl   0x0(%rax,%rax,1)
L20:
  mov    0x8(%rsp),%rax
  mov    (%rax),%rdi
  call   <free@plt>
  mov    $0xfffffd49,%r9d
  jmp    L117
L107:
  mov    $0xfffffe0d,%r9d
  jmp    L117
L96:
  mov    %r13,%rdi
  call   <free@plt>
  mov    $0xfffffe0d,%r9d
  jmp    L117
L81:
  mov    %r13,%rdi
  call   <free@plt>
  mov    $0xfffffce3,%r9d
  jmp    L117
```

tool_calls: name: unpack_data
arguments: label: D15
datatype: string
name: unpack_data
arguments: label: D5
datatype: string
name: unpack_data
arguments: label: D17
datatype: string
name: unpack_data
arguments: label: D26
datatype: string

tool: D15: 200 OK

tool: D5: 


tool: D17: LOCATION:

tool: D26: %s

assistant: ```c
int Get_Description_Url(const char *ssdp_response, char **desc_url) {
  const char *fir_rn;
  const char *sec_rn;
  const char *end_loc_tag;
  int end_loc_offset;
  int desc_url_malloc_size;
  char *ssdp_upper_response = (char *)malloc(strlen(ssdp_response) + 1);
  if (NULL == ssdp_upper_response) {
    return -499;
  }
  (void)LNat_Str_To_Upper(ssdp_response, ssdp_upper_response);
  if (NULL == strstr(ssdp_response, "200 OK")) {
    free(ssdp_upper_response);
    return -797;
  }
  fir_rn = ssdp_upper_response;
  while (1) {
    if ((fir_rn = strstr(fir_rn, "\r\n")) == NULL) {
      break;
    }
    fir_rn += strlen("\r\n");
    if ((sec_rn = strstr(fir_rn, "\r\n")) == NULL) {
      break;
    }
    end_loc_tag = fir_rn + strlen("LOCATION:");
    end_loc_offset = end_loc_tag - ssdp_upper_response;
    if (!strncmp(fir_rn, "LOCATION:", strlen("LOCATION:"))) {
      desc_url_malloc_size = (sec_rn - end_loc_tag) + 1;
      *desc_url = (char *)malloc(desc_url_malloc_size);
      if (NULL == *desc_url) {
        free(ssdp_upper_response);
        return -499;
      }
      sscanf(ssdp_response + end_loc_offset, "%s", *desc_url);
      free(ssdp_upper_response);
      return 0;
    }
  }
  free(ssdp_upper_response);
  if (strlen(*desc_url) + 1 > 512) {
    free(*desc_url);
    return -695;
  }
  return -795;
}
```