user: Please show me the C implementation that matches the assembly code listed below:

```asm
<Get_Description_Url>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,%rbx
  mov    %rdi,0x18(%rsp)
  mov    %rsi,0x10(%rsp)
  call   <strlen@plt>
  lea    0x1(%rax),%edi
  call   <malloc@plt>
  test   %rax,%rax
  je     L80
  mov    %rax,%r15
  mov    %rax,%rsi
  mov    %rbx,%rdi
  call   <LNat_Str_To_Upper@plt>
  lea    D33(%rip),%rsi
  mov    %rbx,%rdi
  call   <strstr@plt>
  test   %rax,%rax
  je     L11
  mov    %r15,%rbx
  lea    D7(%rip),%r13
  lea    D29(%rip),%r14
L74:
  mov    %r13,%rsi
  mov    %rbx,%rdi
  call   <strstr@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  je     L22
  mov    %r13,%rdi
  call   <strlen@plt>
  cltq
  add    %rax,%rbx
  mov    %r13,%rsi
  mov    %rbx,%rdi
  call   <strstr@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L22
  mov    %r14,%rdi
  call   <strlen@plt>
  mov    %eax,0xc(%rsp)
  mov    %r14,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    %r14,%rsi
  mov    %rbx,%rdi
  call   <strncmp@plt>
  mov    %eax,%r12d
  test   %eax,%eax
  jne    L74
  movslq 0xc(%rsp),%rax
  add    %rax,%rbx
  sub    %rbx,%rbp
  lea    0x1(%rbp),%edi
  call   <malloc@plt>
  mov    %rax,%rdx
  mov    0x10(%rsp),%rax
  mov    %rdx,(%rax)
  test   %rdx,%rdx
  je     L106
  sub    %r15,%rbx
  movslq %ebx,%rbx
  mov    0x18(%rsp),%rdi
  add    %rbx,%rdi
  lea    D13(%rip),%rsi
  call   <sscanf@plt>
  mov    %r15,%rdi
  call   <free@plt>
  jmp    L95
L11:
  mov    %r15,%rdi
  call   <free@plt>
  mov    $0xfffffce3,%r12d
  jmp    L95
L106:
  mov    %r15,%rdi
  call   <free@plt>
  mov    $0xfffffe0d,%r12d
  jmp    L95
L22:
  mov    %r15,%rdi
  call   <free@plt>
  mov    0x10(%rsp),%rax
  mov    (%rax),%rdi
  call   <strlen@plt>
  mov    $0xfffffce5,%r12d
  cmp    $0x1ff,%eax
  jg     L53
L95:
  mov    %r12d,%eax
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L53:
  mov    0x10(%rsp),%rax
  mov    (%rax),%rdi
  call   <free@plt>
  mov    $0xfffffd49,%r12d
  jmp    L95
L80:
  mov    $0xfffffe0d,%r12d
  jmp    L95
```

tool_calls: name: retrieve_data
arguments: data_label: D33
type_infered: string
name: retrieve_data
arguments: data_label: D7
type_infered: string
name: retrieve_data
arguments: data_label: D29
type_infered: string
name: retrieve_data
arguments: data_label: D13
type_infered: string

tool: D33: 200 OK

tool: D7: 


tool: D29: LOCATION:

tool: D13: %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;
}
```