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

```asm
<main>:
  endbr64
  sub    $0x8,%rsp
  xor    %edi,%edi
  call   <_setvideomode@plt>
  lea    D2(%rip),%rdi
  mov    %eax,%esi
  call   <printf@plt>
  mov    $0x1,%edi
  call   <_setvideomode@plt>
  lea    D117(%rip),%rdi
  mov    %eax,%esi
  call   <printf@plt>
  mov    $0x2,%edi
  call   <_setvideomode@plt>
  lea    D64(%rip),%rdi
  mov    %eax,%esi
  call   <printf@plt>
  mov    $0x3,%edi
  call   <_setvideomode@plt>
  lea    D1(%rip),%rdi
  mov    %eax,%esi
  call   <printf@plt>
  mov    $0x4,%edi
  call   <_setvideomode@plt>
  lea    D68(%rip),%rdi
  mov    %eax,%esi
  call   <printf@plt>
  mov    $0x5,%edi
  call   <_setvideomode@plt>
  lea    D105(%rip),%rdi
  mov    %eax,%esi
  call   <printf@plt>
  mov    $0x6,%edi
  call   <_setvideomode@plt>
  lea    D54(%rip),%rdi
  mov    %eax,%esi
  call   <printf@plt>
  mov    $0x7,%edi
  call   <_setvideomode@plt>
  lea    D74(%rip),%rdi
  mov    %eax,%esi
  call   <printf@plt>
  mov    $0x8,%edi
  call   <_setvideomode@plt>
  lea    D149(%rip),%rdi
  mov    %eax,%esi
  call   <printf@plt>
  mov    $0xd,%edi
  call   <_setvideomode@plt>
  lea    D101(%rip),%rdi
  mov    %eax,%esi
  call   <printf@plt>
  mov    $0xe,%edi
  call   <_setvideomode@plt>
  lea    D56(%rip),%rdi
  mov    %eax,%esi
  call   <printf@plt>
  mov    $0xf,%edi
  call   <_setvideomode@plt>
  lea    D72(%rip),%rdi
  mov    %eax,%esi
  call   <printf@plt>
  mov    $0x10,%edi
  call   <_setvideomode@plt>
  lea    D55(%rip),%rdi
  mov    %eax,%esi
  call   <printf@plt>
  mov    $0x11,%edi
  call   <_setvideomode@plt>
  lea    D80(%rip),%rdi
  mov    %eax,%esi
  call   <printf@plt>
  mov    $0x12,%edi
  call   <_setvideomode@plt>
  lea    D108(%rip),%rdi
  mov    %eax,%esi
  call   <printf@plt>
  mov    $0x13,%edi
  call   <_setvideomode@plt>
  lea    D153(%rip),%rdi
  mov    %eax,%esi
  call   <printf@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D2
type_infered: string
name: retrieve_data
arguments: data_tag: D117
type_infered: string
name: retrieve_data
arguments: data_tag: D64
type_infered: string
name: retrieve_data
arguments: data_tag: D1
type_infered: string
name: retrieve_data
arguments: data_tag: D68
type_infered: string
name: retrieve_data
arguments: data_tag: D105
type_infered: string
name: retrieve_data
arguments: data_tag: D54
type_infered: string
name: retrieve_data
arguments: data_tag: D74
type_infered: string
name: retrieve_data
arguments: data_tag: D149
type_infered: string
name: retrieve_data
arguments: data_tag: D101
type_infered: string
name: retrieve_data
arguments: data_tag: D56
type_infered: string
name: retrieve_data
arguments: data_tag: D72
type_infered: string
name: retrieve_data
arguments: data_tag: D55
type_infered: string
name: retrieve_data
arguments: data_tag: D80
type_infered: string
name: retrieve_data
arguments: data_tag: D108
type_infered: string
name: retrieve_data
arguments: data_tag: D153
type_infered: string

tool: D2: _TEXTBW40 = %d


tool: D117: _TEXTC40 = %d


tool: D64: _TEXTBW80 = %d


tool: D1: _TEXTC80 = %d


tool: D68: _MRES4COLOR = %d


tool: D105: _MRESNOCOLOR = %d


tool: D54: _HRESBW = %d


tool: D74: _TEXTMONO = %d


tool: D149: _HERCMONO = %d


tool: D101: _MRES16COLOR = %d


tool: D56: _HRES16COLOR = %d


tool: D72: _ERESNOCOLOR = %d


tool: D55: _ERESCOLOR = %d


tool: D80: _VRES2COLOR = %d


tool: D108: _VRES16COLOR = %d


tool: D153: _MRES256COLOR = %d


assistant: ```c
int main() {
  int x;
  x = _setvideomode(0);
  printf("_TEXTBW40 = %d\n", x);
  x = _setvideomode(1);
  printf("_TEXTC40 = %d\n", x);
  x = _setvideomode(2);
  printf("_TEXTBW80 = %d\n", x);
  x = _setvideomode(3);
  printf("_TEXTC80 = %d\n", x);
  x = _setvideomode(4);
  printf("_MRES4COLOR = %d\n", x);
  x = _setvideomode(5);
  printf("_MRESNOCOLOR = %d\n", x);
  x = _setvideomode(6);
  printf("_HRESBW = %d\n", x);
  x = _setvideomode(7);
  printf("_TEXTMONO = %d\n", x);
  x = _setvideomode(8);
  printf("_HERCMONO = %d\n", x);
  x = _setvideomode(13);
  printf("_MRES16COLOR = %d\n", x);
  x = _setvideomode(14);
  printf("_HRES16COLOR = %d\n", x);
  x = _setvideomode(15);
  printf("_ERESNOCOLOR = %d\n", x);
  x = _setvideomode(16);
  printf("_ERESCOLOR = %d\n", x);
  x = _setvideomode(17);
  printf("_VRES2COLOR = %d\n", x);
  x = _setvideomode(18);
  printf("_VRES16COLOR = %d\n", x);
  x = _setvideomode(19);
  printf("_MRES256COLOR = %d\n", x);
}
```