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

```asm
<main>:
  endbr64
  push   %r15
  xor    %esi,%esi
  mov    $0x400,%edx
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x828,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x818(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%r15
  lea    0x410(%rsp),%r13
  mov    %r15,%rdi
  call   <memset@plt>
  xor    %esi,%esi
  mov    $0x400,%edx
  mov    %r13,%rdi
  call   <memset@plt>
  lea    D536(%rip),%rdi
  call   <getenv@plt>
  lea    D361(%rip),%rdi
  mov    %rax,%rbp
  call   <getenv@plt>
  test   %rbp,%rbp
  je     L199
  mov    %rax,%r12
  test   %rax,%rax
  je     L118
  mov    %rbp,%rdi
  call   <strlen@plt>
  cmp    $0x39c,%eax
  ja     L138
  mov    %rbp,%rsi
  mov    %r15,%rdi
  call   <strcat@plt>
  mov    $0x4,%edx
  lea    D529(%rip),%rsi
  mov    %r12,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L233
L50:
  lea    D446(%rip),%rsi
  mov    %r15,%rdi
  call   <strcat@plt>
L64:
  mov    %rbp,%rsi
  mov    %r13,%rdi
  call   <strcat@plt>
  lea    D41(%rip),%rsi
  mov    %r13,%rdi
  call   <strcat@plt>
  lea    D198(%rip),%rsi
  mov    %r15,%rdi
  call   <fopen@plt>
  mov    %rax,%r14
  test   %rax,%rax
  je     L156
  lea    D177(%rip),%rsi
  mov    %r13,%rdi
  call   <fopen@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L134
  mov    %rax,%rcx
  mov    $0x3,%edx
  mov    $0x1,%esi
  lea    D343(%rip),%rdi
  lea    D201(%rip),%r12
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x34,%edx
  mov    $0x1,%esi
  lea    D448(%rip),%rdi
  lea    D348(%rip),%r15
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x18,%edx
  mov    $0x1,%esi
  lea    D613(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x42,%edx
  mov    $0x1,%esi
  lea    D230(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x49,%edx
  mov    $0x1,%esi
  lea    D401(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x8,%edx
  mov    $0x1,%esi
  lea    D390(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x47,%edx
  mov    $0x1,%esi
  lea    D53(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x44,%edx
  mov    $0x1,%esi
  lea    D450(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x23,%edx
  mov    $0x1,%esi
  lea    D69(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x4c,%edx
  mov    $0x1,%esi
  lea    D557(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x4a,%edx
  mov    $0x1,%esi
  lea    D523(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x37,%edx
  mov    $0x1,%esi
  lea    D124(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x4c,%edx
  mov    $0x1,%esi
  lea    D567(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x12,%edx
  mov    $0x1,%esi
  lea    D87(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x4d,%edx
  mov    $0x1,%esi
  lea    D123(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x48,%edx
  mov    $0x1,%esi
  lea    D321(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x46,%edx
  mov    $0x1,%esi
  lea    D153(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x44,%edx
  mov    $0x1,%esi
  lea    D419(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x40,%edx
  mov    $0x1,%esi
  lea    D612(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x47,%edx
  mov    $0x1,%esi
  lea    D402(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x3c,%edx
  mov    $0x1,%esi
  lea    D560(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x49,%edx
  mov    $0x1,%esi
  lea    D23(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x47,%edx
  mov    $0x1,%esi
  lea    D318(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x1d,%edx
  mov    $0x1,%esi
  lea    D337(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x46,%edx
  mov    $0x1,%esi
  lea    D77(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x49,%edx
  mov    $0x1,%esi
  lea    D576(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x44,%edx
  mov    $0x1,%esi
  lea    D299(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x49,%edx
  mov    $0x1,%esi
  lea    D379(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x46,%edx
  mov    $0x1,%esi
  lea    D413(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x47,%edx
  mov    $0x1,%esi
  lea    D85(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x48,%edx
  mov    $0x1,%esi
  lea    D364(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x49,%edx
  mov    $0x1,%esi
  lea    D356(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x48,%edx
  mov    $0x1,%esi
  lea    D181(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x49,%edx
  xor    %r13d,%r13d
  mov    $0x1,%esi
  lea    D593(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x43,%edx
  mov    $0x1,%esi
  lea    D154(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0xa,%edx
  mov    $0x1,%esi
  lea    D224(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x4,%edx
  mov    $0x1,%esi
  lea    D313(%rip),%rdi
  call   <fwrite@plt>
  mov    %r12,%rdi
  mov    %rbp,%rcx
  mov    $0x28,%edx
  mov    $0x1,%esi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x28,%edx
  mov    %r12,%rdi
  mov    $0x1,%esi
  lea    0xd(%rsp),%r12
  call   <fwrite@plt>
  mov    %rbp,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  mov    %rbp,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  mov    %rbp,%rcx
  mov    $0x1c,%edx
  mov    $0x1,%esi
  lea    D279(%rip),%rdi
  call   <fwrite@plt>
  jmp    L200
  nop
L221:
  add    $0x1,%r13d
L125:
  mov    %rbp,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  mov    %r15,%rdi
  call   <fwrite@plt>
  movzbl %bl,%edx
  lea    D184(%rip),%rsi
  mov    %r12,%rdi
  call   <sprintf@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <fputs@plt>
  mov    %rbp,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D405(%rip),%rdi
  call   <fwrite@plt>
L200:
  mov    %r14,%rdi
  call   <getc@plt>
  mov    %r14,%rdi
  mov    %eax,%ebx
  call   <feof@plt>
  test   %rax,%rax
  jne    L59
  xor    %esi,%esi
  mov    $0x2,%edx
  mov    %r12,%rdi
  call   <memset@plt>
  cmp    $0x10,%r13d
  jne    L221
  mov    %rbp,%rsi
  mov    $0xa,%edi
  mov    $0x1,%r13d
  call   <fputc@plt>
  jmp    L125
  nopl   0x0(%rax,%rax,1)
L59:
  mov    %rbp,%rcx
  mov    $0x4,%edx
  mov    $0x1,%esi
  lea    D563(%rip),%rdi
  call   <fwrite@plt>
  mov    %r14,%rdi
  call   <fclose@plt>
  mov    %rbp,%rdi
  call   <fclose@plt>
  xor    %edi,%edi
  call   <exit@plt>
  xor    %eax,%eax
L18:
  mov    0x818(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L12
  add    $0x828,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L233:
  mov    $0x4,%edx
  lea    D550(%rip),%rsi
  mov    %r12,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L77
  mov    $0x4,%edx
  lea    D24(%rip),%rsi
  mov    %r12,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L50
  mov    $0x4,%edx
  lea    D296(%rip),%rsi
  mov    %r12,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L77
  mov    $0x4,%edx
  lea    D398(%rip),%rsi
  mov    %r12,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L77
  mov    $0x4,%edx
  lea    D214(%rip),%rsi
  mov    %r12,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L77
  mov    $0x4,%edx
  lea    D531(%rip),%rsi
  mov    %r12,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L77
  mov    $0x3,%edx
  lea    D317(%rip),%rsi
  mov    %r12,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L77
  mov    $0x3,%edx
  lea    D104(%rip),%rsi
  mov    %r12,%rdi
  call   <strncmp@plt>
  jmp    L50
L77:
  lea    D5(%rip),%rsi
  mov    %r15,%rdi
  call   <strcat@plt>
  jmp    L64
L138:
  lea    D639(%rip),%rdi
  call   <puts@plt>
L124:
  or     $0xffffffff,%eax
  jmp    L18
L118:
  lea    D406(%rip),%rdi
  call   <puts@plt>
  jmp    L124
L199:
  lea    D482(%rip),%rdi
  call   <puts@plt>
  jmp    L124
L134:
  mov    %r13,%rsi
  lea    D213(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L124
L156:
  mov    %r15,%rsi
  lea    D283(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L124
L12:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_tag: D536
type_guessed: string
name: read_data
arguments: data_tag: D361
type_guessed: string
name: read_data
arguments: data_tag: D529
type_guessed: string
name: read_data
arguments: data_tag: D446
type_guessed: string
name: read_data
arguments: data_tag: D41
type_guessed: string
name: read_data
arguments: data_tag: D198
type_guessed: string
name: read_data
arguments: data_tag: D177
type_guessed: string
name: read_data
arguments: data_tag: D343
type_guessed: string
name: read_data
arguments: data_tag: D201
type_guessed: string
name: read_data
arguments: data_tag: D448
type_guessed: string
name: read_data
arguments: data_tag: D348
type_guessed: string
name: read_data
arguments: data_tag: D613
type_guessed: string
name: read_data
arguments: data_tag: D230
type_guessed: string
name: read_data
arguments: data_tag: D401
type_guessed: string
name: read_data
arguments: data_tag: D390
type_guessed: string
name: read_data
arguments: data_tag: D53
type_guessed: string
name: read_data
arguments: data_tag: D450
type_guessed: string
name: read_data
arguments: data_tag: D69
type_guessed: string
name: read_data
arguments: data_tag: D557
type_guessed: string
name: read_data
arguments: data_tag: D523
type_guessed: string
name: read_data
arguments: data_tag: D124
type_guessed: string
name: read_data
arguments: data_tag: D567
type_guessed: string
name: read_data
arguments: data_tag: D87
type_guessed: string
name: read_data
arguments: data_tag: D123
type_guessed: string
name: read_data
arguments: data_tag: D321
type_guessed: string
name: read_data
arguments: data_tag: D153
type_guessed: string
name: read_data
arguments: data_tag: D419
type_guessed: string
name: read_data
arguments: data_tag: D612
type_guessed: string
name: read_data
arguments: data_tag: D402
type_guessed: string
name: read_data
arguments: data_tag: D560
type_guessed: string
name: read_data
arguments: data_tag: D23
type_guessed: string
name: read_data
arguments: data_tag: D318
type_guessed: string
name: read_data
arguments: data_tag: D337
type_guessed: string
name: read_data
arguments: data_tag: D77
type_guessed: string
name: read_data
arguments: data_tag: D576
type_guessed: string
name: read_data
arguments: data_tag: D299
type_guessed: string
name: read_data
arguments: data_tag: D379
type_guessed: string
name: read_data
arguments: data_tag: D413
type_guessed: string
name: read_data
arguments: data_tag: D85
type_guessed: string
name: read_data
arguments: data_tag: D364
type_guessed: string
name: read_data
arguments: data_tag: D356
type_guessed: string
name: read_data
arguments: data_tag: D181
type_guessed: string
name: read_data
arguments: data_tag: D593
type_guessed: string
name: read_data
arguments: data_tag: D154
type_guessed: string
name: read_data
arguments: data_tag: D224
type_guessed: string
name: read_data
arguments: data_tag: D313
type_guessed: string
name: read_data
arguments: data_tag: D279
type_guessed: string
name: read_data
arguments: data_tag: D184
type_guessed: string
name: read_data
arguments: data_tag: D405
type_guessed: string
name: read_data
arguments: data_tag: D563
type_guessed: string
name: read_data
arguments: data_tag: D550
type_guessed: string
name: read_data
arguments: data_tag: D24
type_guessed: string
name: read_data
arguments: data_tag: D296
type_guessed: string
name: read_data
arguments: data_tag: D398
type_guessed: string
name: read_data
arguments: data_tag: D214
type_guessed: string
name: read_data
arguments: data_tag: D531
type_guessed: string
name: read_data
arguments: data_tag: D317
type_guessed: string
name: read_data
arguments: data_tag: D104
type_guessed: string
name: read_data
arguments: data_tag: D5
type_guessed: string
name: read_data
arguments: data_tag: D639
type_guessed: string
name: read_data
arguments: data_tag: D406
type_guessed: string
name: read_data
arguments: data_tag: D482
type_guessed: string
name: read_data
arguments: data_tag: D213
type_guessed: string
name: read_data
arguments: data_tag: D283
type_guessed: string

tool: D536: RT28xx_DIR

tool: D361: CHIPSET

tool: D529: 2860

tool: D446: /common/rt2860.bin

tool: D41: /include/firmware.h

tool: D198: r

tool: D177: w

tool: D343: /*


tool: D201: /* AUTO GEN PLEASE DO NOT MODIFY IT */ 


tool: D448:  Copyright (c) 2007, Ralink Technology Corporation 


tool: D348: 0x

tool: D613:  All rights reserved. 



tool: D230:  Redistribution.  Redistribution and use in binary form, without 


tool: D401:  modification, are permitted provided that the following conditions are 


tool: D390:  met: 



tool: D53:  	* Redistributions must reproduce the above copyright notice and the 


tool: D450:  	following disclaimer in the documentation and/or other materials 


tool: D69:  	provided with the distribution. 


tool: D557:  	* Neither the name of Ralink Technology Corporation nor the names of its 


tool: D523:  	suppliers may be used to endorse or promote products derived from this 


tool: D124:  	software without specific prior written permission. 


tool: D567:  	* No reverse engineering, decompilation, or disassembly of this software 


tool: D87:  	is permitted. 



tool: D123:  Limited patent license. Ralink Technology Corporation grants a world-wide, 


tool: D321:  royalty-free, non-exclusive license under patents it now or hereafter 


tool: D153:  owns or controls to make, have made, use, import, offer to sell and 


tool: D419:  sell ("Utilize") this software, but solely to the extent that any 


tool: D612:  such patent is necessary to Utilize the software alone, or in 


tool: D402:  combination with an operating system licensed under an approved Open 


tool: D560:  Source license as listed by the Open Source Initiative at 


tool: D23:  http://opensource.org/licenses.  The patent license shall not apply to 


tool: D318:  any other combinations which include this software.  No hardware per 


tool: D337:  se is licensed hereunder. 



tool: D77:  DISCLAIMER.  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 


tool: D576:  CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, 


tool: D299:  BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 


tool: D379:  FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 


tool: D413:  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 


tool: D85:  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 


tool: D364:  BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 


tool: D356:  OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 


tool: D181:  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 


tool: D593:  TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE 


tool: D154:  USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 


tool: D224:  DAMAGE. 


tool: D313: */ 


tool: D279: UCHAR FirmwareImage [] = { 


tool: D184: %02x

tool: D405: , 

tool: D563: } ;


tool: D550: 2870

tool: D24: 3090

tool: D296: 2070

tool: D398: 3070

tool: D214: 3572

tool: D531: 3370

tool: D317: USB

tool: D104: PCI

tool: D5: /common/rt2870.bin

tool: D639: Environment value "RT28xx_DIR" is too long!

tool: D406: Environment value "CHIPSET" not export 

tool: D482: Environment value "RT28xx_DIR" not export 

tool: D213: Can't open write file %s 


tool: D283: Can't read file %s 


assistant: ```c
int main(int argc, char *argv[]) {
  FILE *infile, *outfile;
  char infname[1024];
  char outfname[1024];
  char *rt28xxdir;
  char *chipset;
  int i = 0;
  unsigned char c;
  memset(infname, 0, 1024);
  memset(outfname, 0, 1024);
  rt28xxdir = (char *)getenv("RT28xx_DIR");
  chipset = (char *)getenv("CHIPSET");
  if (!rt28xxdir) {
    printf("Environment value \"RT28xx_DIR\" not export \n");
    return -1;
  }
  if (!chipset) {
    printf("Environment value \"CHIPSET\" not export \n");
    return -1;
  }
  if (strlen(rt28xxdir) > (sizeof(infname) - 100)) {
    printf("Environment value \"RT28xx_DIR\" is too long!\n");
    return -1;
  }
  strcat(infname, rt28xxdir);
  if (strncmp(chipset, "2860", 4) == 0)
    strcat(infname, "/common/rt2860.bin");
  else if (strncmp(chipset, "2870", 4) == 0)
    strcat(infname, "/common/rt2870.bin");
  else if (strncmp(chipset, "3090", 4) == 0)
    strcat(infname, "/common/rt2860.bin");
  else if (strncmp(chipset, "2070", 4) == 0)
    strcat(infname, "/common/rt2870.bin");
  else if (strncmp(chipset, "3070", 4) == 0)
    strcat(infname, "/common/rt2870.bin");
  else if (strncmp(chipset, "3572", 4) == 0)
    strcat(infname, "/common/rt2870.bin");
  else if (strncmp(chipset, "3370", 4) == 0)
    strcat(infname, "/common/rt2870.bin");
  else if (strncmp(chipset, "USB", 3) == 0)
    strcat(infname, "/common/rt2870.bin");
  else if (strncmp(chipset, "PCI", 3) == 0)
    strcat(infname, "/common/rt2860.bin");
  else
    strcat(infname, "/common/rt2860.bin");
  strcat(outfname, rt28xxdir);
  strcat(outfname, "/include/firmware.h");
  infile = fopen(infname, "r");
  if (infile == (FILE *)NULL) {
    printf("Can't read file %s \n", infname);
    return -1;
  }
  outfile = fopen(outfname, "w");
  if (outfile == (FILE *)NULL) {
    printf("Can't open write file %s \n", outfname);
    return -1;
  }
  fputs("/*\n", outfile);
  fputs(" Copyright (c) 2007, Ralink Technology Corporation \n", outfile);
  fputs(" All rights reserved. \n\n", outfile);
  fputs(" Redistribution.  Redistribution and use in binary form, without \n", outfile);
  fputs(" modification, are permitted provided that the following conditions are \n", outfile);
  fputs(" met: \n\n", outfile);
  fputs(" \t* Redistributions must reproduce the above copyright notice and the \n", outfile);
  fputs(" \tfollowing disclaimer in the documentation and/or other materials \n", outfile);
  fputs(" \tprovided with the distribution. \n", outfile);
  fputs(" \t* Neither the name of Ralink Technology Corporation nor the names of its \n", outfile);
  fputs(" \tsuppliers may be used to endorse or promote products derived from this \n", outfile);
  fputs(" \tsoftware without specific prior written permission. \n", outfile);
  fputs(" \t* No reverse engineering, decompilation, or disassembly of this software \n", outfile);
  fputs(" \tis permitted. \n\n", outfile);
  fputs(" Limited patent license. Ralink Technology Corporation grants a world-wide, \n", outfile);
  fputs(" royalty-free, non-exclusive license under patents it now or hereafter \n", outfile);
  fputs(" owns or controls to make, have made, use, import, offer to sell and \n", outfile);
  fputs(" sell (\"Utilize\") this software, but solely to the extent that any \n", outfile);
  fputs(" such patent is necessary to Utilize the software alone, or in \n", outfile);
  fputs(" combination with an operating system licensed under an approved Open \n", outfile);
  fputs(" Source license as listed by the Open Source Initiative at \n", outfile);
  fputs(" http://opensource.org/licenses.  The patent license shall not apply to \n", outfile);
  fputs(" any other combinations which include this software.  No hardware per \n", outfile);
  fputs(" se is licensed hereunder. \n\n", outfile);
  fputs(" DISCLAIMER.  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND \n", outfile);
  fputs(" CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, \n", outfile);
  fputs(" BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND \n", outfile);
  fputs(" FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE \n", outfile);
  fputs(" COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, \n", outfile);
  fputs(" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, \n", outfile);
  fputs(" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS \n", outfile);
  fputs(" OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND \n", outfile);
  fputs(" ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR \n", outfile);
  fputs(" TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE \n", outfile);
  fputs(" USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH \n", outfile);
  fputs(" DAMAGE. \n", outfile);
  fputs("*/ \n", outfile);
  fputs("/* AUTO GEN PLEASE DO NOT MODIFY IT */ \n", outfile);
  fputs("/* AUTO GEN PLEASE DO NOT MODIFY IT */ \n", outfile);
  fputs("\n", outfile);
  fputs("\n", outfile);
  fputs("UCHAR FirmwareImage [] = { \n", outfile);
  while (1) {
    char cc[3];
    c = getc(infile);
    if (feof(infile))
      break;
    memset(cc, 0, 2);
    if (i >= 16) {
      fputs("\n", outfile);
      i = 0;
    }
    fputs("0x", outfile);
    sprintf(cc, "%02x", c);
    fputs(cc, outfile);
    fputs(", ", outfile);
    i++;
  }
  fputs("} ;\n", outfile);
  fclose(infile);
  fclose(outfile);
  exit(0);
}
```