user: What is the c source code of the assembly code below:

```asm
<get_wday>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %rdi,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  lea    D19(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcasecmp@plt>
  test   %eax,%eax
  je     L170
  mov    -0x8(%rbp),%rax
  lea    D74(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcasecmp@plt>
  test   %eax,%eax
  jne    L74
L170:
  mov    $0x1,%eax
  jmp    L164
L74:
  mov    -0x8(%rbp),%rax
  lea    D11(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcasecmp@plt>
  test   %eax,%eax
  je     L155
  mov    -0x8(%rbp),%rax
  lea    D43(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcasecmp@plt>
  test   %eax,%eax
  jne    L166
L155:
  mov    $0x2,%eax
  jmp    L164
L166:
  mov    -0x8(%rbp),%rax
  lea    D87(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcasecmp@plt>
  test   %eax,%eax
  je     L202
  mov    -0x8(%rbp),%rax
  lea    D57(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcasecmp@plt>
  test   %eax,%eax
  jne    L209
L202:
  mov    $0x3,%eax
  jmp    L164
L209:
  mov    -0x8(%rbp),%rax
  lea    D20(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcasecmp@plt>
  test   %eax,%eax
  je     L89
  mov    -0x8(%rbp),%rax
  lea    D82(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcasecmp@plt>
  test   %eax,%eax
  jne    L142
L89:
  mov    $0x4,%eax
  jmp    L164
L142:
  mov    -0x8(%rbp),%rax
  lea    D48(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcasecmp@plt>
  test   %eax,%eax
  je     L103
  mov    -0x8(%rbp),%rax
  lea    D115(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcasecmp@plt>
  test   %eax,%eax
  jne    L56
L103:
  mov    $0x5,%eax
  jmp    L164
L56:
  mov    -0x8(%rbp),%rax
  lea    D63(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcasecmp@plt>
  test   %eax,%eax
  je     L160
  mov    -0x8(%rbp),%rax
  lea    D28(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcasecmp@plt>
  test   %eax,%eax
  jne    L38
L160:
  mov    $0x6,%eax
  jmp    L164
L38:
  mov    -0x8(%rbp),%rax
  lea    D1(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcasecmp@plt>
  test   %eax,%eax
  je     L33
  mov    -0x8(%rbp),%rax
  lea    D99(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcasecmp@plt>
  test   %eax,%eax
  jne    L132
L33:
  mov    $0x0,%eax
  jmp    L164
L132:
  mov    $0xffffffff,%eax
L164:
  leave
  ret
```

tool_calls: name: read_data
arguments: data_tag: D19
datatype: string
name: read_data
arguments: data_tag: D74
datatype: string
name: read_data
arguments: data_tag: D11
datatype: string
name: read_data
arguments: data_tag: D43
datatype: string
name: read_data
arguments: data_tag: D87
datatype: string
name: read_data
arguments: data_tag: D57
datatype: string
name: read_data
arguments: data_tag: D20
datatype: string
name: read_data
arguments: data_tag: D82
datatype: string
name: read_data
arguments: data_tag: D48
datatype: string
name: read_data
arguments: data_tag: D115
datatype: string
name: read_data
arguments: data_tag: D63
datatype: string
name: read_data
arguments: data_tag: D28
datatype: string
name: read_data
arguments: data_tag: D1
datatype: string
name: read_data
arguments: data_tag: D99
datatype: string

tool: D19: Mon

tool: D74: Monday

tool: D11: Tue

tool: D43: Tuesday

tool: D87: Wed

tool: D57: Wednesday

tool: D20: Thu

tool: D82: Thursday

tool: D48: Fri

tool: D115: Friday

tool: D63: Sat

tool: D28: Saturday

tool: D1: Sun

tool: D99: Sunday

assistant: ```c
int get_wday(char *wday) {
  if (!strcasecmp(wday, "Mon") || !strcasecmp(wday, "Monday"))
    return 1;
  else if (!strcasecmp(wday, "Tue") || !strcasecmp(wday, "Tuesday"))
    return 2;
  else if (!strcasecmp(wday, "Wed") || !strcasecmp(wday, "Wednesday"))
    return 3;
  else if (!strcasecmp(wday, "Thu") || !strcasecmp(wday, "Thursday"))
    return 4;
  else if (!strcasecmp(wday, "Fri") || !strcasecmp(wday, "Friday"))
    return 5;
  else if (!strcasecmp(wday, "Sat") || !strcasecmp(wday, "Saturday"))
    return 6;
  else if (!strcasecmp(wday, "Sun") || !strcasecmp(wday, "Sunday"))
    return 0;
  else
    return -1;
}
```