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

```asm
<java_script_src>:
  endbr64
  push   %r13
  lea    D199(%rip),%rsi
  lea    D3(%rip),%r13
  push   %r12
  lea    D46(%rip),%r12
  push   %rbp
  mov    %rdi,%rbp
  call   <fprintf@plt>
  mov    %rbp,%rdi
  lea    D40(%rip),%rsi
  call   <fprintf@plt>
  mov    %rbp,%rdi
  lea    D163(%rip),%rsi
  call   <fprintf@plt>
  mov    %rbp,%rdi
  lea    D75(%rip),%rsi
  call   <fprintf@plt>
  mov    %rbp,%rdi
  lea    D153(%rip),%rsi
  call   <fprintf@plt>
  mov    %rbp,%rdi
  lea    D215(%rip),%rsi
  call   <fprintf@plt>
  mov    %rbp,%rdi
  lea    D125(%rip),%rsi
  call   <fprintf@plt>
  mov    %rbp,%rdi
  lea    D217(%rip),%rsi
  call   <fprintf@plt>
  mov    %rbp,%rdi
  lea    D38(%rip),%rsi
  call   <fprintf@plt>
  mov    %rbp,%rdi
  lea    D105(%rip),%rsi
  call   <fprintf@plt>
  mov    %rbp,%rdi
  lea    D141(%rip),%rsi
  call   <fprintf@plt>
  mov    %rbp,%rdi
  lea    D23(%rip),%rsi
  call   <fprintf@plt>
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <fprintf@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <fprintf@plt>
  mov    %rbp,%rdi
  lea    D155(%rip),%rsi
  call   <fprintf@plt>
  mov    %rbp,%rdi
  lea    D15(%rip),%rsi
  call   <fprintf@plt>
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <fprintf@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <fprintf@plt>
  mov    %rbp,%rdi
  lea    D133(%rip),%rsi
  call   <fprintf@plt>
  mov    %rbp,%rdi
  lea    D186(%rip),%rsi
  call   <fprintf@plt>
  mov    %rbp,%rdi
  lea    D147(%rip),%rsi
  call   <fprintf@plt>
  mov    %rbp,%rdi
  lea    D22(%rip),%rsi
  call   <fprintf@plt>
  mov    %rbp,%rdi
  lea    D167(%rip),%rsi
  call   <fprintf@plt>
  mov    %rbp,%rdi
  lea    D158(%rip),%rsi
  pop    %rbp
  pop    %r12
  pop    %r13
  jmp    1050 <fprintf@plt>
```

tool_calls: name: parse_data
arguments: label: D199
data_type: string
name: parse_data
arguments: label: D3
data_type: string
name: parse_data
arguments: label: D46
data_type: string
name: parse_data
arguments: label: D40
data_type: string
name: parse_data
arguments: label: D163
data_type: string
name: parse_data
arguments: label: D75
data_type: string
name: parse_data
arguments: label: D153
data_type: string
name: parse_data
arguments: label: D215
data_type: string
name: parse_data
arguments: label: D125
data_type: string
name: parse_data
arguments: label: D217
data_type: string
name: parse_data
arguments: label: D38
data_type: string
name: parse_data
arguments: label: D105
data_type: string
name: parse_data
arguments: label: D141
data_type: string
name: parse_data
arguments: label: D23
data_type: string
name: parse_data
arguments: label: D155
data_type: string
name: parse_data
arguments: label: D15
data_type: string
name: parse_data
arguments: label: D133
data_type: string
name: parse_data
arguments: label: D186
data_type: string
name: parse_data
arguments: label: D147
data_type: string
name: parse_data
arguments: label: D22
data_type: string
name: parse_data
arguments: label: D167
data_type: string
name: parse_data
arguments: label: D158
data_type: string

tool: D199: <script type='text/javascript'>


tool: D3:             checkboxElem.checked = (status==0);


tool: D46:          }


tool: D40: function switch_relay(checkboxElem){


tool: D163:    var status = checkboxElem.checked ? 1 : 0;


tool: D75:    var pin = checkboxElem.id;


tool: D153:    var url = '/gpio?pin='+pin+'&status='+status;


tool: D215:    var xmlHttp = new XMLHttpRequest();


tool: D125:    xmlHttp.onreadystatechange = function () {


tool: D217:       if (this.readyState < 4)


tool: D38:          document.getElementById('status').innerHTML = '';


tool: D105:       else if (this.readyState == 4) {


tool: D141:          if (this.status == 0) {


tool: D23:             document.getElementById('status').innerHTML = "Network error";


tool: D155:          else if (this.status != 200) {


tool: D15:             document.getElementById('status').innerHTML = this.statusText;


tool: D133:       }


tool: D186:    }


tool: D147:    xmlHttp.open( 'GET', url, true );


tool: D22:    xmlHttp.send( null );


tool: D167: }


tool: D158: </script>


assistant: ```c
void java_script_src(FILE *f) {
  fprintf(f, "<script type='text/javascript'>\r\n");
  fprintf(f, "function switch_relay(checkboxElem){\r\n");
  fprintf(f, "   var status = checkboxElem.checked ? 1 : 0;\r\n");
  fprintf(f, "   var pin = checkboxElem.id;\r\n");
  fprintf(f, "   var url = '/gpio?pin='+pin+'&status='+status;\r\n");
  fprintf(f, "   var xmlHttp = new XMLHttpRequest();\r\n");
  fprintf(f, "   xmlHttp.onreadystatechange = function () {\r\n");
  fprintf(f, "      if (this.readyState < 4)\r\n");
  fprintf(f, "         document.getElementById('status').innerHTML = '';\r\n");
  fprintf(f, "      else if (this.readyState == 4) {\r\n");
  fprintf(f, "         if (this.status == 0) {\r\n");
  fprintf(f, "            document.getElementById('status').innerHTML = \"Network error\";\r\n");
  fprintf(f, "            checkboxElem.checked = (status==0);\r\n");
  fprintf(f, "         }\r\n");
  fprintf(f, "         else if (this.status != 200) {\r\n");
  fprintf(f, "            document.getElementById('status').innerHTML = this.statusText;\r\n");
  fprintf(f, "            checkboxElem.checked = (status==0);\r\n");
  fprintf(f, "         }\r\n");
  fprintf(f, "      }\r\n");
  fprintf(f, "   }\r\n");
  fprintf(f, "   xmlHttp.open( 'GET', url, true );\r\n");
  fprintf(f, "   xmlHttp.send( null );\r\n");
  fprintf(f, "}\r\n");
  fprintf(f, "</script>\r\n");
}
```