// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/mgth/mg_outputwriter.c
// Function: output_header_xml
static void output_header_xml(const ParseStruct *parsestruct_ptr)
{
  /* Aktuelle Datum in Variable speichern */
  struct tm *tmstamp;

  tmstamp = gt_today();

  /* Headerbereich schreiben inkl. Auflistung der Parametereinstellugen */
  gt_file_xprintf(FILEPOINTEROUT, "<?xml version=\"1.0\"?>\n");
  gt_file_xprintf(FILEPOINTEROUT,
                  "<!DOCTYPE BlastOutput PUBLIC \"-/""/NCBI/""/NCBI "
                  "BlastOutput/EN\" \"NCBI_BlastOutput.dtd\">\n");
  gt_file_xprintf(FILEPOINTEROUT, "<MetagenomethreaderOutput>\n");
  gt_file_xprintf(FILEPOINTEROUT,
                  "  <MetagenomethreaderOutput_title>Metagenomethreader"
                  "</MetagenomethreaderOutput_title>\n");

  if (!ARGUMENTSSTRUCT(testmodus_mode))
  {
    gt_file_xprintf(FILEPOINTEROUT,
                    "  <MetagenomethreaderOutput_date>Result %d.%d.%d"
                    "</MetagenomethreaderOutput_date>\n",
                    tmstamp->tm_mday, tmstamp->tm_mon + 1,
                    tmstamp->tm_year + 1900);
  }
  gt_file_xprintf(FILEPOINTEROUT, "  <MetagenomethreaderOutput_param>\n");
  gt_file_xprintf(FILEPOINTEROUT, "    <Parameters>\n");
  gt_file_xprintf(FILEPOINTEROUT,
                  "      <Parameters_syn>%.4f</Parameters_syn>\n",
                  ARGUMENTSSTRUCT(synonomic_value));
  gt_file_xprintf(FILEPOINTEROUT,
                  "      <Parameters_nonsyn>%.4f</Parameters_nonsyn>\n",
                  ARGUMENTSSTRUCT(nonsynonomic_value));
  gt_file_xprintf(FILEPOINTEROUT,
                  "      <Parameters_blastend>%.4f"
                  "</Parameters_blastend>\n",
                  ARGUMENTSSTRUCT(blasthit_end_value));
  gt_file_xprintf(FILEPOINTEROUT,
                  "      <Parameters_stopcodon-query>%.4f"
                  "</Parameters_stopcodon-query>\n",
                  ARGUMENTSSTRUCT(stopcodon_queryseq));
  gt_file_xprintf(FILEPOINTEROUT,
                  "      <Parameters_stopcodon-hit>%.4f"
                  "</Parameters_stopcodon-hit>\n",
                  ARGUMENTSSTRUCT(stopcodon_hitseq));
  gt_file_xprintf(FILEPOINTEROUT,
                  "      <Parameters_frameshift>%.4f"
                  "</Parameters_frameshift>\n",
                  ARGUMENTSSTRUCT(frameshift_span));
  gt_file_xprintf(FILEPOINTEROUT,
                  "      <Parameters_prediction>%.4f"
                  "</Parameters_prediction>\n",
                  ARGUMENTSSTRUCT(prediction_span));
  gt_file_xprintf(FILEPOINTEROUT,
                  "      <Parameters_leavegene>%.4f"
                  "</Parameters_leavegene>\n",
                  ARGUMENTSSTRUCT(leavegene_value));
  gt_file_xprintf(FILEPOINTEROUT,
                  "      <Parameters_curl-db>%s"
                  "</Parameters_curl-db>\n",
                  gt_str_get(ARGUMENTSSTRUCT(curl_fcgi_db)));
  gt_file_xprintf(FILEPOINTEROUT,
                  "      <Parameters_output-file>%s"
                  "</Parameters_output-file>\n",
                  gt_str_get(ARGUMENTSSTRUCT(outputtextfile_name)));
  gt_file_xprintf(FILEPOINTEROUT,
                  "      <Parameters_output-format>%d"
                  "</Parameters_output-format>\n",
                  ARGUMENTSSTRUCT(outputfile_format));
  gt_file_xprintf(FILEPOINTEROUT,
                  "      <Parameters_hitfile>%d</Parameters_hitfile>\n",
                  ARGUMENTSSTRUCT(hitfile_bool));
  gt_file_xprintf(FILEPOINTEROUT,
                  "      <Parameters_min-as>"GT_WU"</Parameters_min-as>\n",
                  ARGUMENTSSTRUCT(min_as));
  gt_file_xprintf(FILEPOINTEROUT,
                  "      <Parameters_min_resultpercentage>%.4f"
                  "</Parameters_min_resultpercentage>\n",
                  ARGUMENTSSTRUCT(percent_value));
  gt_file_xprintf(FILEPOINTEROUT,
                  "      <Parameters_extended_modus>%d"
                  "</Parameters_extended_modus>\n",
                  ARGUMENTSSTRUCT(extended_mode));
  gt_file_xprintf(FILEPOINTEROUT,
                  "      <Parameters_homology_modus>%d"
                  "</Parameters_homology_modus>\n",
                  ARGUMENTSSTRUCT(homology_mode));
  gt_file_xprintf(FILEPOINTEROUT,
                  "      <Parameters_codon_modus>%d"
                  "</Parameters_codon_modus>\n",
                  ARGUMENTSSTRUCT(codon_mode));
  gt_file_xprintf(FILEPOINTEROUT, "    </Parameters>\n");
  gt_file_xprintf(FILEPOINTEROUT, "  </MetagenomethreaderOutput_param>\n");
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
callq 0x316b60
movq %rax, 0x18(%rsp)
movq 0x20(%rsp), %rax
movq 0x90(%rax), %rdi
leaq 0x27bf4d(%rip), %rsi    # 0x596563
movb $0x0, %al
callq 0xddca0
movq 0x20(%rsp), %rax
movq 0x90(%rax), %rdi
leaq 0x27bf4a(%rip), %rsi    # 0x59657a
movb $0x0, %al
callq 0xddca0
movq 0x20(%rsp), %rax
movq 0x90(%rax), %rdi
leaq 0x27bf85(%rip), %rsi    # 0x5965cf
movb $0x0, %al
callq 0xddca0
movq 0x20(%rsp), %rax
movq 0x90(%rax), %rdi
leaq 0x27bf87(%rip), %rsi    # 0x5965eb
movb $0x0, %al
callq 0xddca0
movq 0x20(%rsp), %rax
testb $0x1, 0x1eb(%rax)
jne 0x31a6b6
movq 0x20(%rsp), %rax
movq 0x90(%rax), %rdi
movq 0x18(%rsp), %rax
movl 0xc(%rax), %edx
movq 0x18(%rsp), %rax
movl 0x10(%rax), %ecx
addl $0x1, %ecx
movq 0x18(%rsp), %rax
movl 0x14(%rax), %r8d
addl $0x76c, %r8d            # imm = 0x76C
leaq 0x27bf93(%rip), %rsi    # 0x596642
movb $0x0, %al
callq 0xddca0
movq 0x20(%rsp), %rax
movq 0x90(%rax), %rdi
leaq 0x27bfcb(%rip), %rsi    # 0x596694
movb $0x0, %al
callq 0xddca0
movq 0x20(%rsp), %rax
movq 0x90(%rax), %rdi
leaq 0x27bfd5(%rip), %rsi    # 0x5966b8
movb $0x0, %al
callq 0xddca0
movq 0x20(%rsp), %rax
movq 0x90(%rax), %rdi
movq 0x20(%rsp), %rax
movsd 0x180(%rax), %xmm0
leaq 0x27bfc0(%rip), %rsi    # 0x5966ca
movb $0x1, %al
callq 0xddca0
movq 0x20(%rsp), %rax
movq 0x90(%rax), %rdi
movq 0x20(%rsp), %rax
movsd 0x188(%rax), %xmm0
leaq 0x27bfc6(%rip), %rsi    # 0x5966f7
movb $0x1, %al
callq 0xddca0
movq 0x20(%rsp), %rax
movq 0x90(%rax), %rdi
movq 0x20(%rsp), %rax
movsd 0x190(%rax), %xmm0
leaq 0x27bfd2(%rip), %rsi    # 0x59672a
movb $0x1, %al
callq 0xddca0
movq 0x20(%rsp), %rax
movq 0x90(%rax), %rdi
movq 0x20(%rsp), %rax
movsd 0x198(%rax), %xmm0
leaq 0x27bfe2(%rip), %rsi    # 0x596761
movb $0x1, %al
callq 0xddca0
movq 0x20(%rsp), %rax
movq 0x90(%rax), %rdi
movq 0x20(%rsp), %rax
movsd 0x1a0(%rax), %xmm0
leaq 0x27c000(%rip), %rsi    # 0x5967a6
movb $0x1, %al
callq 0xddca0
movq 0x20(%rsp), %rax
movq 0x90(%rax), %rdi
movq 0x20(%rsp), %rax
movsd 0x1a8(%rax), %xmm0
leaq 0x27c01a(%rip), %rsi    # 0x5967e7
movb $0x1, %al
callq 0xddca0
movq 0x20(%rsp), %rax
movq 0x90(%rax), %rdi
movq 0x20(%rsp), %rax
movsd 0x1b0(%rax), %xmm0
leaq 0x27c02e(%rip), %rsi    # 0x596822
movb $0x1, %al
callq 0xddca0
movq 0x20(%rsp), %rax
movq 0x90(%rax), %rdi
movq 0x20(%rsp), %rax
movsd 0x1b8(%rax), %xmm0
leaq 0x27c042(%rip), %rsi    # 0x59685d
movb $0x1, %al
callq 0xddca0
movq 0x20(%rsp), %rax
movq 0x90(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x20(%rsp), %rax
movq 0x1c8(%rax), %rdi
callq 0x11dee0
movq 0x8(%rsp), %rdi
movq %rax, %rdx
leaq 0x27c043(%rip), %rsi    # 0x596896
movb $0x0, %al
callq 0xddca0
movq 0x20(%rsp), %rax
movq 0x90(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x20(%rsp), %rax
movq 0x1d0(%rax), %rdi
callq 0x11dee0
movq 0x10(%rsp), %rdi
movq %rax, %rdx
leaq 0x27c03e(%rip), %rsi    # 0x5968c9
movb $0x0, %al
callq 0xddca0
movq 0x20(%rsp), %rax
movq 0x90(%rax), %rdi
movq 0x20(%rsp), %rax
movl 0x1e0(%rax), %edx
leaq 0x27c054(%rip), %rsi    # 0x596904
movb $0x0, %al
callq 0xddca0
movq 0x20(%rsp), %rax
movq 0x90(%rax), %rdi
movq 0x20(%rsp), %rax
movb 0x1e8(%rax), %al
andb $0x1, %al
movzbl %al, %edx
leaq 0x27c069(%rip), %rsi    # 0x596943
movb $0x0, %al
callq 0xddca0
movq 0x20(%rsp), %rax
movq 0x90(%rax), %rdi
movq 0x20(%rsp), %rax
movq 0x1f0(%rax), %rdx
leaq 0x27c076(%rip), %rsi    # 0x596976
movb $0x0, %al
callq 0xddca0
movq 0x20(%rsp), %rax
movq 0x90(%rax), %rdi
movq 0x20(%rsp), %rax
movsd 0x1c0(%rax), %xmm0
leaq 0x27c081(%rip), %rsi    # 0x5969a8
movb $0x1, %al
callq 0xddca0
movq 0x20(%rsp), %rax
movq 0x90(%rax), %rdi
movq 0x20(%rsp), %rax
movb 0x1ea(%rax), %al
andb $0x1, %al
movzbl %al, %edx
leaq 0x27c0a6(%rip), %rsi    # 0x5969f7
movb $0x0, %al
callq 0xddca0
movq 0x20(%rsp), %rax
movq 0x90(%rax), %rdi
movq 0x20(%rsp), %rax
movb 0x1e9(%rax), %al
andb $0x1, %al
movzbl %al, %edx
leaq 0x27c0bd(%rip), %rsi    # 0x596a38
movb $0x0, %al
callq 0xddca0
movq 0x20(%rsp), %rax
movq 0x90(%rax), %rdi
movq 0x20(%rsp), %rax
movl 0x1e4(%rax), %edx
leaq 0x27c0d9(%rip), %rsi    # 0x596a79
movb $0x0, %al
callq 0xddca0
movq 0x20(%rsp), %rax
movq 0x90(%rax), %rdi
leaq 0x27c0fa(%rip), %rsi    # 0x596ab4
movb $0x0, %al
callq 0xddca0
movq 0x20(%rsp), %rax
movq 0x90(%rax), %rdi
leaq 0x27c0f3(%rip), %rsi    # 0x596ac7
movb $0x0, %al
callq 0xddca0
addq $0x28, %rsp
retq