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

```asm
<init_can>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  lea    D127(%rip),%rax
  cmp    %rax,-0x18(%rbp)
  jne    L13
  lea    D85(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D52(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0xfffc0000,%eax
  movzbl (%rax),%eax
  or     $0x1,%eax
  mov    %al,-0x1(%rbp)
  mov    $0xfffc0000,%edx
  movzbl -0x1(%rbp),%eax
  mov    %al,(%rdx)
  mov    $0xfffc001f,%eax
  movzbl (%rax),%eax
  and    $0x78,%eax
  or     $0x7,%eax
  mov    %al,-0x1(%rbp)
  mov    $0xfffc001f,%edx
  movzbl -0x1(%rbp),%eax
  mov    %al,(%rdx)
  mov    $0xfffc0006,%eax
  movb   $0x83,(%rax)
  mov    $0xfffc0007,%eax
  movb   $0x25,(%rax)
  mov    $0xfffc0004,%eax
  movb   $0x88,(%rax)
  mov    $0xfffc0005,%eax
  movb   $0xff,(%rax)
  mov    $0x32,%edi
  call   <kill_time@plt>
  lea    D20(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0xfffc0000,%eax
  movzbl (%rax),%eax
  and    $0xfffffffe,%eax
  mov    %al,-0x1(%rbp)
  mov    $0xfffc0000,%edx
  movzbl -0x1(%rbp),%eax
  mov    %al,(%rdx)
  mov    $0x32,%edi
  call   <kill_time@plt>
  jmp    L16
L13:
  lea    D209(%rip),%rax
  cmp    %rax,-0x18(%rbp)
  jne    L16
  lea    D300(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D11(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D300(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D52(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0xfffc0000,%eax
  movzbl (%rax),%eax
  or     $0x1,%eax
  mov    %al,-0x1(%rbp)
  mov    $0xfffc0000,%edx
  movzbl -0x1(%rbp),%eax
  mov    %al,(%rdx)
  mov    $0xfffc0000,%eax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  lea    D49(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x32,%edi
  call   <kill_time@plt>
  lea    D298(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0xfffc001f,%eax
  movzbl (%rax),%eax
  or     $0xffffff87,%eax
  mov    %al,-0x1(%rbp)
  mov    $0xfffc001f,%edx
  movzbl -0x1(%rbp),%eax
  mov    %al,(%rdx)
  mov    $0xfffc001f,%eax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  lea    D64(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x32,%edi
  call   <kill_time@plt>
  lea    D230(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D16(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0xfffc0006,%eax
  movb   $0xa8,(%rax)
  mov    $0xfffc0006,%eax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  lea    D27(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D162(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D170(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0xfffc0007,%eax
  movb   $0x34,(%rax)
  mov    $0xfffc0007,%eax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  lea    D91(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D37(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0xfffc0010,%eax
  movb   $0xa6,(%rax)
  mov    $0xfffc0010,%eax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  lea    D309(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xfffc0011,%eax
  movb   $0xb0,(%rax)
  mov    $0xfffc0011,%eax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  lea    D182(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xfffc0012,%eax
  movb   $0x12,(%rax)
  mov    $0xfffc0012,%eax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  lea    D152(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xfffc0013,%eax
  movb   $0x30,(%rax)
  mov    $0xfffc0013,%eax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  lea    D213(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D225(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0xfffc0014,%eax
  movb   $0x0,(%rax)
  mov    $0xfffc0014,%eax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  lea    D206(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xfffc0015,%eax
  movb   $0x0,(%rax)
  mov    $0xfffc0015,%eax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  lea    D206(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xfffc0016,%eax
  movb   $0x0,(%rax)
  mov    $0xfffc0016,%eax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  lea    D206(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xfffc0017,%eax
  movb   $0x0,(%rax)
  mov    $0xfffc0017,%eax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  lea    D98(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D26(%rip),%rax
  cmp    %rax,-0x20(%rbp)
  jne    L15
  mov    $0x0,%eax
  call   <self_testing_mode@plt>
L15:
  lea    D20(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0xfffc0000,%eax
  movzbl (%rax),%eax
  and    $0xfffffffe,%eax
  mov    %al,-0x1(%rbp)
  mov    $0xfffc0000,%edx
  movzbl -0x1(%rbp),%eax
  mov    %al,(%rdx)
  mov    $0xfffc0000,%eax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  lea    D208(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x32,%edi
  call   <kill_time@plt>
L16:
  nop
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D127
datatype: string
name: unpack_data
arguments: data_label: D85
datatype: string
name: unpack_data
arguments: data_label: D52
datatype: string
name: unpack_data
arguments: data_label: D20
datatype: string
name: unpack_data
arguments: data_label: D209
datatype: string
name: unpack_data
arguments: data_label: D300
datatype: string
name: unpack_data
arguments: data_label: D11
datatype: string
name: unpack_data
arguments: data_label: D49
datatype: string
name: unpack_data
arguments: data_label: D298
datatype: string
name: unpack_data
arguments: data_label: D64
datatype: string
name: unpack_data
arguments: data_label: D230
datatype: string
name: unpack_data
arguments: data_label: D16
datatype: string
name: unpack_data
arguments: data_label: D27
datatype: string
name: unpack_data
arguments: data_label: D162
datatype: string
name: unpack_data
arguments: data_label: D170
datatype: string
name: unpack_data
arguments: data_label: D91
datatype: string
name: unpack_data
arguments: data_label: D37
datatype: string
name: unpack_data
arguments: data_label: D309
datatype: string
name: unpack_data
arguments: data_label: D182
datatype: string
name: unpack_data
arguments: data_label: D152
datatype: string
name: unpack_data
arguments: data_label: D213
datatype: string
name: unpack_data
arguments: data_label: D225
datatype: string
name: unpack_data
arguments: data_label: D206
datatype: string
name: unpack_data
arguments: data_label: D98
datatype: string
name: unpack_data
arguments: data_label: D26
datatype: string
name: unpack_data
arguments: data_label: D208
datatype: string

tool: D127: Basic

tool: D85: ********** Basic Can Mode **********

tool: D52: Switch on Reset Mode

tool: D20: Switch off reset mode

tool: D209: Extended

tool: D300: ************************************

tool: D11: ******** Extended Can Mode *********

tool: D49: control_register: 0x%X 



tool: D298: Set clock divider register to extended can mode

tool: D64: clock_divider_register: 0x%X 



tool: D230: Set bus timing register 0

tool: D16: Sync Jump Width = 2  Baudrate Prescaler = 1

tool: D27: bus timing register 0: 0x%X 



tool: D162: Set bus timing register 1

tool: D170: SAM = 0 ---> Single Sampling

tool: D91: bus timing register 1: 0x%X 



tool: D37: Set acceptance code register

tool: D309: acceptance code register 0: 0x%X 


tool: D182: acceptance code register 1: 0x%X 


tool: D152: acceptance code register 2: 0x%X 


tool: D213: acceptance code register 3: 0x%X 



tool: D225: Set acceptance mask register

tool: D206: acceptance mask register: 0x%X 


tool: D98: acceptance mask register: 0x%X 



tool: D26: self_test

tool: D208: control_register 0x%X 



assistant: ```c
void init_can(char *mode, char *self_test) {
  unsigned char r_val;
  if (mode == "Basic") {
    printf("********** Basic Can Mode **********\n");
    printf("Switch on Reset Mode\n");
    r_val = *((unsigned char *)(0xfffc0000 + 0x0000)) | 0x01;
    *((unsigned char *)(0xfffc0000 + 0x0000)) = r_val;
    r_val = *((unsigned char *)(0xfffc0000 + 0x001F)) & 0x7F | 0x07;
    *((unsigned char *)(0xfffc0000 + 0x001F)) = r_val;
    *((unsigned char *)(0xfffc0000 + 0x0006)) = 0x83;
    *((unsigned char *)(0xfffc0000 + 0x0007)) = 0x25;
    *((unsigned char *)(0xfffc0000 + 0x0004)) = 0x88;
    *((unsigned char *)(0xfffc0000 + 0x0005)) = 0xFF;
    kill_time(50);
    printf("Switch off reset mode\n");
    r_val = *((unsigned char *)(0xfffc0000 + 0x0000)) & 0xFE;
    *((unsigned char *)(0xfffc0000 + 0x0000)) = r_val;
    kill_time(50);
  } else if (mode == "Extended") {
    printf("************************************\n");
    printf("******** Extended Can Mode *********\n");
    printf("************************************\n");
    printf("Switch on Reset Mode\n");
    r_val = *((unsigned char *)(0xfffc0000 + 0x0000)) | 0x01;
    *((unsigned char *)(0xfffc0000 + 0x0000)) = r_val;
    printf("control_register: 0x%X \n\n", *((unsigned char *)(0xfffc0000 + 0x0000)));
    kill_time(50);
    printf("Set clock divider register to extended can mode\n");
    r_val = *((unsigned char *)(0xfffc0000 + 0x001F)) | 0x80 | 0x07;
    *((unsigned char *)(0xfffc0000 + 0x001F)) = r_val;
    printf("clock_divider_register: 0x%X \n\n", *((unsigned char *)(0xfffc0000 + 0x001F)));
    kill_time(50);
    printf("Set bus timing register 0\n");
    printf("Sync Jump Width = 2  Baudrate Prescaler = 1\n");
    *((unsigned char *)(0xfffc0000 + 0x0006)) = 0xA8;
    printf("bus timing register 0: 0x%X \n\n", *((unsigned char *)(0xfffc0000 + 0x0006)));
    printf("Set bus timing register 1\n");
    printf("SAM = 0 ---> Single Sampling\n");
    *((unsigned char *)(0xfffc0000 + 0x0007)) = 0x34;
    printf("bus timing register 1: 0x%X \n\n", *((unsigned char *)(0xfffc0000 + 0x0007)));
    printf("Set acceptance code register\n");
    *((unsigned char *)(0xfffc0000 + 0x0010)) = 0xA6;
    printf("acceptance code register 0: 0x%X \n", *((unsigned char *)(0xfffc0000 + 0x0010)));
    *((unsigned char *)(0xfffc0000 + 0x0011)) = 0xB0;
    printf("acceptance code register 1: 0x%X \n", *((unsigned char *)(0xfffc0000 + 0x0011)));
    *((unsigned char *)(0xfffc0000 + 0x0012)) = 0x12;
    printf("acceptance code register 2: 0x%X \n", *((unsigned char *)(0xfffc0000 + 0x0012)));
    *((unsigned char *)(0xfffc0000 + 0x0013)) = 0x30;
    printf("acceptance code register 3: 0x%X \n\n", *((unsigned char *)(0xfffc0000 + 0x0013)));
    printf("Set acceptance mask register\n");
    *((unsigned char *)(0xfffc0000 + 0x0014)) = 0x00;
    printf("acceptance mask register: 0x%X \n", *((unsigned char *)(0xfffc0000 + 0x0014)));
    *((unsigned char *)(0xfffc0000 + 0x0015)) = 0x00;
    printf("acceptance mask register: 0x%X \n", *((unsigned char *)(0xfffc0000 + 0x0015)));
    *((unsigned char *)(0xfffc0000 + 0x0016)) = 0x00;
    printf("acceptance mask register: 0x%X \n", *((unsigned char *)(0xfffc0000 + 0x0016)));
    *((unsigned char *)(0xfffc0000 + 0x0017)) = 0x00;
    printf("acceptance mask register: 0x%X \n\n", *((unsigned char *)(0xfffc0000 + 0x0017)));
    if (self_test == "self_test") {
      self_testing_mode();
    }
    printf("Switch off reset mode\n");
    r_val = *((unsigned char *)(0xfffc0000 + 0x0000)) & 0xFE;
    *((unsigned char *)(0xfffc0000 + 0x0000)) = r_val;
    printf("control_register 0x%X \n\n", *((unsigned char *)(0xfffc0000 + 0x0000)));
    kill_time(50);
  }
}
```