user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  cmp    $0x1,%edi
  jg     L17
  lea    D25(%rip),%rbp
  lea    D90(%rip),%rdi
  call   <system@plt>
  xor    %ecx,%ecx
  mov    $0x1000,%edx
  mov    %rbp,%rsi
  lea    D51(%rip),%rdi
  call   <merge_flash@plt>
  xor    %ecx,%ecx
  mov    $0x8000,%edx
  mov    %rbp,%rsi
  lea    D52(%rip),%rdi
  call   <merge_flash@plt>
  xor    %ecx,%ecx
  mov    $0x10000,%edx
  mov    %rbp,%rsi
  lea    D54(%rip),%rdi
  call   <merge_flash@plt>
L34:
  lea    D105(%rip),%rdi
  call   <system@plt>
  pop    %rbx
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  ret
L17:
  mov    0x8(%rsi),%rdi
  mov    %rsi,%rbx
  lea    D1(%rip),%rsi
  lea    D25(%rip),%rbp
  lea    D51(%rip),%r12
  call   <strcmp@plt>
  test   %rax,%rax
  je     L37
L38:
  lea    D90(%rip),%rdi
  call   <system@plt>
  xor    %ecx,%ecx
  mov    %rbp,%rsi
  mov    %r12,%rdi
  mov    $0x1000,%edx
  call   <merge_flash@plt>
  xor    %ecx,%ecx
  mov    %rbp,%rsi
  mov    $0x8000,%edx
  lea    D52(%rip),%rdi
  call   <merge_flash@plt>
  mov    0x8(%rbx),%rdi
  xor    %ecx,%ecx
  mov    $0x10000,%edx
  mov    %rbp,%rsi
  call   <merge_flash@plt>
  jmp    L34
L37:
  lea    D14(%rip),%rdi
  call   <printf@plt>
  xor    %ecx,%ecx
  mov    $0x1000,%edx
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <merge_flash@plt>
  lea    D11(%rip),%rdi
  call   <system@plt>
  xor    %edi,%edi
  call   <exit@plt>
  jmp    L38
```

tool_calls: name: extract_symbolic_data
arguments: label: D25
data_type: string
name: extract_symbolic_data
arguments: label: D90
data_type: string
name: extract_symbolic_data
arguments: label: D51
data_type: string
name: extract_symbolic_data
arguments: label: D52
data_type: string
name: extract_symbolic_data
arguments: label: D54
data_type: string
name: extract_symbolic_data
arguments: label: D105
data_type: string
name: extract_symbolic_data
arguments: label: D1
data_type: string
name: extract_symbolic_data
arguments: label: D14
data_type: string
name: extract_symbolic_data
arguments: label: D11
data_type: string

tool: D25: esp32flash.bin

tool: D90: dd if=/dev/zero bs=1M count=4  | tr "\000" "\377" >  esp32flash.bin

tool: D51: build/bootloader/bootloader.bin

tool: D52: build/partition_table/partition-table.bin

tool: D54: build/app-template.bin

tool: D105: cp esp32flash.bin ~/qemu_esp32

tool: D1: -bl

tool: D14: Overwrite bootloader only 


tool: D11: cp esp32flash.bin ~/qemu_espressif

assistant: ```c
int main(int argc, char *argv[]) {
  if (argc > 1) {
    if (strcmp(argv[1], "-bl") == 0) {
      printf("Overwrite bootloader only \n");
      merge_flash("build/bootloader/bootloader.bin", "esp32flash.bin", 0x1000, 0);
      system("cp esp32flash.bin ~/qemu_espressif");
      exit(0);
    }
  }
  system("dd if=/dev/zero bs=1M count=4  | tr \"\\000\" \"\\377\" >  esp32flash.bin");
  merge_flash("build/bootloader/bootloader.bin", "esp32flash.bin", 0x1000, 0);
  merge_flash("build/partition_table/partition-table.bin", "esp32flash.bin", 0x8000, 0);
  if (argc > 1) {
    merge_flash(argv[1], "esp32flash.bin", 0x10000, 0);
  } else {
    merge_flash("build/app-template.bin", "esp32flash.bin", 0x10000, 0);
  }
  system("cp esp32flash.bin ~/qemu_esp32");
}
```