
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

int posix_output_handler
              (cflow_output_command cmd,FILE *outfile,int line,void *data,void *handler_data)

{
  int iVar1;
  undefined4 uVar2;
  
  if (cmd == cflow_output_newline) {
    fputc(10,(FILE *)outfile);
    return 0;
  }
  if (cmd < cflow_output_separator) {
    if (cmd == cflow_output_init) {
      if (emacs_option != 0) {
        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);
        error(3,0,uVar2);
      }
      omit_symbol_names_option = 1;
      print_line_numbers = 1;
      brief_listing = 1;
      return 0;
    }
  }
  else if (cmd == cflow_output_symbol) {
    print_level(*(int *)((int)data + 4),*(int *)((int)data + 8));
    __fprintf_chk(outfile,1,&DAT_0002c07a,*(undefined4 *)(*(int *)((int)data + 0xc) + 0x10));
    iVar1 = *(int *)((int)data + 0xc);
    if (brief_listing != 0) {
      if (*(int *)(iVar1 + 0x20) != 0) {
        __fprintf_chk(outfile,1,"%d",*(int *)(iVar1 + 0x20));
        return 1;
      }
      if (*(int *)(iVar1 + 0x50) != 0) {
        *(int *)(iVar1 + 0x20) = line;
      }
    }
    if (*(int *)(iVar1 + 0x38) != 0) {
      __fprintf_chk(outfile,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),
                    *(undefined4 *)(iVar1 + 0x2c));
      return 0;
    }
    fwrite(&DAT_0002c08b,1,2,(FILE *)outfile);
  }
  else if (cmd == cflow_output_text) {
    fputs((char *)data,(FILE *)outfile);
    return 0;
  }
  return 0;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 FUN_0001ad90(uint param_1,FILE *param_2,undefined4 param_3,char *param_4)

{
  int iVar1;
  undefined4 uVar2;
  
  if (param_1 == 3) {
    fputc(10,param_2);
    return 0;
  }
  if (param_1 < 4) {
    if (param_1 == 0) {
      if (DAT_00036b10 != 0) {
        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);
        error(3,0,uVar2);
      }
      DAT_00036b30 = 1;
      DAT_00036b24 = 1;
      DAT_00036af8 = 1;
      return 0;
    }
  }
  else if (param_1 == 5) {
    FUN_00017500(*(undefined4 *)(param_4 + 4),*(undefined4 *)(param_4 + 8));
    __fprintf_chk(param_2,1,&DAT_0002c07a,*(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10));
    iVar1 = *(int *)(param_4 + 0xc);
    if (DAT_00036af8 != 0) {
      if (*(int *)(iVar1 + 0x20) != 0) {
        __fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));
        return 1;
      }
      if (*(int *)(iVar1 + 0x50) != 0) {
        *(undefined4 *)(iVar1 + 0x20) = param_3;
      }
    }
    if (*(int *)(iVar1 + 0x38) != 0) {
      __fprintf_chk(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),
                    *(undefined4 *)(iVar1 + 0x2c));
      return 0;
    }
    fwrite(&DAT_0002c08b,1,2,param_2);
  }
  else if (param_1 == 6) {
    fputs(param_4,param_2);
    return 0;
  }
  return 0;
}


PUSH ESI
PUSH EBX
CALL 0x00012800
ADD EBX,0x1b0d9
SUB ESP,0x4
MOV EAX,dword ptr [ESP + 0x10]
MOV ESI,dword ptr [ESP + 0x1c]
CMP EAX,0x3
JZ 0x0001aec0
JBE 0x0001ade0
CMP EAX,0x5
JZ 0x0001ae40
CMP EAX,0x6
JNZ 0x0001ae37
SUB ESP,0x8
PUSH dword ptr [ESP + 0x1c]
PUSH ESI
CALL 0x00012470
ADD ESP,0x10
XOR EAX,EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
TEST EAX,EAX
JNZ 0x0001ae37
LEA EAX,[EBX + 0xca0]
MOV ESI,dword ptr [EAX]
TEST ESI,ESI
JNZ 0x0001aee0
LEA EAX,[EBX + 0xcc0]
MOV dword ptr [EAX],0x1
LEA EAX,[EBX + 0xcb4]
MOV dword ptr [EAX],0x1
LEA EAX,[EBX + 0xc88]
MOV dword ptr [EAX],0x1
ADD ESP,0x4
XOR EAX,EAX
POP EBX
POP ESI
RET
LEA EAX,[EBX + 0xffff621b]
PUSH dword ptr [ESP + 0x14]
PUSH 0x2
PUSH 0x1
PUSH EAX
CALL 0x00012190
ADD ESP,0x10
ADD ESP,0x4
XOR EAX,EAX
POP EBX
POP ESI
RET
SUB ESP,0x8
PUSH dword ptr [ESI + 0x8]
PUSH dword ptr [ESI + 0x4]
CALL 0x00017500
MOV EAX,dword ptr [ESI + 0xc]
PUSH dword ptr [EAX + 0x10]
LEA EAX,[EBX + 0xffff620a]
PUSH EAX
PUSH 0x1
PUSH dword ptr [ESP + 0x30]
CALL 0x000123f0
LEA EAX,[EBX + 0xc88]
ADD ESP,0x20
MOV ECX,dword ptr [EAX]
MOV EAX,dword ptr [ESI + 0xc]
TEST ECX,ECX
JZ 0x0001ae91
MOV EDX,dword ptr [EAX + 0x20]
TEST EDX,EDX
JNZ 0x0001af10
MOV EDX,dword ptr [EAX + 0x50]
TEST EDX,EDX
JZ 0x0001ae91
MOV EDX,dword ptr [ESP + 0x18]
MOV dword ptr [EAX + 0x20],EDX
MOV EDX,dword ptr [EAX + 0x38]
TEST EDX,EDX
JZ 0x0001ae20
SUB ESP,0x8
PUSH dword ptr [EAX + 0x2c]
PUSH dword ptr [EAX + 0x28]
LEA EAX,[EBX + 0xffff620f]
PUSH EDX
PUSH EAX
PUSH 0x1
PUSH dword ptr [ESP + 0x30]
CALL 0x000123f0
ADD ESP,0x20
XOR EAX,EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
SUB ESP,0x8
PUSH dword ptr [ESP + 0x1c]
PUSH 0xa
CALL 0x000123b0
ADD ESP,0x10
XOR EAX,EAX
JMP 0x0001add3
SUB ESP,0x4
LEA EAX,[EBX + 0xffff61dc]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00012110
ADD ESP,0xc
PUSH EAX
PUSH 0x0
PUSH 0x3
CALL 0x000121d0
ADD ESP,0x10
JMP 0x0001adf4
LEA EAX,[EBX + 0xffff5cee]
PUSH EDX
PUSH EAX
PUSH 0x1
PUSH dword ptr [ESP + 0x20]
CALL 0x000123f0
ADD ESP,0x10
MOV EAX,0x1
JMP 0x0001add3
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_0001ad90(uint param_1,FILE *param_2,undefined4 param_3,char *param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 3) {\n    fputc(10,param_2);\n    return 0;\n  }\n  if (param_1 < 4) {\n    if (param_1 == 0) {\n      if (DAT_00036b10 != 0) {\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }\n      DAT_00036b30 = 1;\n      DAT_00036b24 = 1;\n      DAT_00036af8 = 1;\n      return 0;\n    }\n  }\n  else if (param_1 == 5) {\n    FUN_00017500(*(undefined4 *)(param_4 + 4),*(undefined4 *)(param_4 + 8));\n    __fprintf_chk(param_2,1,&DAT_0002c07a,*(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10));\n    iVar1 = *(int *)(param_4 + 0xc);\n    if (DAT_00036af8 != 0) {\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(undefined4 *)(iVar1 + 0x20) = param_3;\n      }\n    }\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      __fprintf_chk(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }\n    fwrite(&DAT_0002c08b,1,2,param_2);\n  }\n  else if (param_1 == 6) {\n    fputs(param_4,param_2);\n    return 0;\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 FUN_0001ad90(uint param_1,FILE *param_2,undefined4 param_3,char *param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 3) {\n    fputc(10,param_2);\n    return 0;\n  }\n  if (param_1 < 4) {\n    if (param_1 == 0) {\n      if (DAT_00036b10 != 0) {\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }\n      DAT_00036b30 = 1;\n      DAT_00036b24 = 1;\n      DAT_00036af8 = 1;\n      return 0;\n    }\n  }\n  else if (param_1 == 5) {\n    FUN_00017500(*(undefined4 *)(param_4 + 4),*(undefined4 *)(param_4 + 8));\n    __fprintf_chk(param_2,1,&DAT_0002c07a,*(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10));\n    iVar1 = *(int *)(param_4 + 0xc);\n    if (DAT_00036af8 != 0) {\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(undefined4 *)(iVar1 + 0x20) = param_3;\n      }\n    }\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      __fprintf_chk(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }\n    fwrite(&DAT_0002c08b,1,2,param_2);\n  }\n  else if (param_1 == 6) {\n    fputs(param_4,param_2);\n    return 0;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0001ad90(uint param_1,FILE *param_2,undefined4 param_3,char *param_4)" identifier (parameter_list "(uint param_1,FILE *param_2,undefined4 param_3,char *param_4)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "FILE *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "char *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 3) {\n    fputc(10,param_2);\n    return 0;\n  }\n  if (param_1 < 4) {\n    if (param_1 == 0) {\n      if (DAT_00036b10 != 0) {\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }\n      DAT_00036b30 = 1;\n      DAT_00036b24 = 1;\n      DAT_00036af8 = 1;\n      return 0;\n    }\n  }\n  else if (param_1 == 5) {\n    FUN_00017500(*(undefined4 *)(param_4 + 4),*(undefined4 *)(param_4 + 8));\n    __fprintf_chk(param_2,1,&DAT_0002c07a,*(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10));\n    iVar1 = *(int *)(param_4 + 0xc);\n    if (DAT_00036af8 != 0) {\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(undefined4 *)(iVar1 + 0x20) = param_3;\n      }\n    }\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      __fprintf_chk(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }\n    fwrite(&DAT_0002c08b,1,2,param_2);\n  }\n  else if (param_1 == 6) {\n    fputs(param_4,param_2);\n    return 0;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (param_1 == 3) {\n    fputc(10,param_2);\n    return 0;\n  }" if (parenthesized_expression "(param_1 == 3)" ( (binary_expression "param_1 == 3" identifier == number_literal) )) (compound_statement "{\n    fputc(10,param_2);\n    return 0;\n  }" { (expression_statement "fputc(10,param_2);" (call_expression "fputc(10,param_2)" identifier (argument_list "(10,param_2)" ( number_literal , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_1 < 4) {\n    if (param_1 == 0) {\n      if (DAT_00036b10 != 0) {\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }\n      DAT_00036b30 = 1;\n      DAT_00036b24 = 1;\n      DAT_00036af8 = 1;\n      return 0;\n    }\n  }\n  else if (param_1 == 5) {\n    FUN_00017500(*(undefined4 *)(param_4 + 4),*(undefined4 *)(param_4 + 8));\n    __fprintf_chk(param_2,1,&DAT_0002c07a,*(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10));\n    iVar1 = *(int *)(param_4 + 0xc);\n    if (DAT_00036af8 != 0) {\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(undefined4 *)(iVar1 + 0x20) = param_3;\n      }\n    }\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      __fprintf_chk(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }\n    fwrite(&DAT_0002c08b,1,2,param_2);\n  }\n  else if (param_1 == 6) {\n    fputs(param_4,param_2);\n    return 0;\n  }" if (parenthesized_expression "(param_1 < 4)" ( (binary_expression "param_1 < 4" identifier < number_literal) )) (compound_statement "{\n    if (param_1 == 0) {\n      if (DAT_00036b10 != 0) {\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }\n      DAT_00036b30 = 1;\n      DAT_00036b24 = 1;\n      DAT_00036af8 = 1;\n      return 0;\n    }\n  }" { (if_statement "if (param_1 == 0) {\n      if (DAT_00036b10 != 0) {\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }\n      DAT_00036b30 = 1;\n      DAT_00036b24 = 1;\n      DAT_00036af8 = 1;\n      return 0;\n    }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n      if (DAT_00036b10 != 0) {\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }\n      DAT_00036b30 = 1;\n      DAT_00036b24 = 1;\n      DAT_00036af8 = 1;\n      return 0;\n    }" { (if_statement "if (DAT_00036b10 != 0) {\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }" if (parenthesized_expression "(DAT_00036b10 != 0)" ( (binary_expression "DAT_00036b10 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }" { (expression_statement "uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);" (assignment_expression "uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5)" identifier = (call_expression "dcgettext(0,"--format=posix is not compatible with --emacs",5)" identifier (argument_list "(0,"--format=posix is not compatible with --emacs",5)" ( number_literal , (string_literal ""--format=posix is not compatible with --emacs"" " string_content ") , number_literal )))) ;) (expression_statement "error(3,0,uVar2);" (call_expression "error(3,0,uVar2)" identifier (argument_list "(3,0,uVar2)" ( number_literal , number_literal , identifier ))) ;) })) (expression_statement "DAT_00036b30 = 1;" (assignment_expression "DAT_00036b30 = 1" identifier = number_literal) ;) (expression_statement "DAT_00036b24 = 1;" (assignment_expression "DAT_00036b24 = 1" identifier = number_literal) ;) (expression_statement "DAT_00036af8 = 1;" (assignment_expression "DAT_00036af8 = 1" identifier = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else if (param_1 == 5) {\n    FUN_00017500(*(undefined4 *)(param_4 + 4),*(undefined4 *)(param_4 + 8));\n    __fprintf_chk(param_2,1,&DAT_0002c07a,*(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10));\n    iVar1 = *(int *)(param_4 + 0xc);\n    if (DAT_00036af8 != 0) {\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(undefined4 *)(iVar1 + 0x20) = param_3;\n      }\n    }\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      __fprintf_chk(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }\n    fwrite(&DAT_0002c08b,1,2,param_2);\n  }\n  else if (param_1 == 6) {\n    fputs(param_4,param_2);\n    return 0;\n  }" else (if_statement "if (param_1 == 5) {\n    FUN_00017500(*(undefined4 *)(param_4 + 4),*(undefined4 *)(param_4 + 8));\n    __fprintf_chk(param_2,1,&DAT_0002c07a,*(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10));\n    iVar1 = *(int *)(param_4 + 0xc);\n    if (DAT_00036af8 != 0) {\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(undefined4 *)(iVar1 + 0x20) = param_3;\n      }\n    }\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      __fprintf_chk(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }\n    fwrite(&DAT_0002c08b,1,2,param_2);\n  }\n  else if (param_1 == 6) {\n    fputs(param_4,param_2);\n    return 0;\n  }" if (parenthesized_expression "(param_1 == 5)" ( (binary_expression "param_1 == 5" identifier == number_literal) )) (compound_statement "{\n    FUN_00017500(*(undefined4 *)(param_4 + 4),*(undefined4 *)(param_4 + 8));\n    __fprintf_chk(param_2,1,&DAT_0002c07a,*(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10));\n    iVar1 = *(int *)(param_4 + 0xc);\n    if (DAT_00036af8 != 0) {\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(undefined4 *)(iVar1 + 0x20) = param_3;\n      }\n    }\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      __fprintf_chk(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }\n    fwrite(&DAT_0002c08b,1,2,param_2);\n  }" { (expression_statement "FUN_00017500(*(undefined4 *)(param_4 + 4),*(undefined4 *)(param_4 + 8));" (call_expression "FUN_00017500(*(undefined4 *)(param_4 + 4),*(undefined4 *)(param_4 + 8))" identifier (argument_list "(*(undefined4 *)(param_4 + 4),*(undefined4 *)(param_4 + 8))" ( (pointer_expression "*(undefined4 *)(param_4 + 4)" * (cast_expression "(undefined4 *)(param_4 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 4)" ( (binary_expression "param_4 + 4" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_4 + 8)" * (cast_expression "(undefined4 *)(param_4 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 8)" ( (binary_expression "param_4 + 8" identifier + number_literal) )))) ))) ;) (expression_statement "__fprintf_chk(param_2,1,&DAT_0002c07a,*(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10));" (call_expression "__fprintf_chk(param_2,1,&DAT_0002c07a,*(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10))" identifier (argument_list "(param_2,1,&DAT_0002c07a,*(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10))" ( identifier , number_literal , (pointer_expression "&DAT_0002c07a" & identifier) , (pointer_expression "*(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10)" * (cast_expression "(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_4 + 0xc) + 0x10)" ( (binary_expression "*(int *)(param_4 + 0xc) + 0x10" (pointer_expression "*(int *)(param_4 + 0xc)" * (cast_expression "(int *)(param_4 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0xc)" ( (binary_expression "param_4 + 0xc" identifier + number_literal) )))) + number_literal) )))) ))) ;) (expression_statement "iVar1 = *(int *)(param_4 + 0xc);" (assignment_expression "iVar1 = *(int *)(param_4 + 0xc)" identifier = (pointer_expression "*(int *)(param_4 + 0xc)" * (cast_expression "(int *)(param_4 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0xc)" ( (binary_expression "param_4 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (DAT_00036af8 != 0) {\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(undefined4 *)(iVar1 + 0x20) = param_3;\n      }\n    }" if (parenthesized_expression "(DAT_00036af8 != 0)" ( (binary_expression "DAT_00036af8 != 0" identifier != number_literal) )) (compound_statement "{\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(undefined4 *)(iVar1 + 0x20) = param_3;\n      }\n    }" { (if_statement "if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }" if (parenthesized_expression "(*(int *)(iVar1 + 0x20) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x20) != 0" (pointer_expression "*(int *)(iVar1 + 0x20)" * (cast_expression "(int *)(iVar1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        __fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }" { (expression_statement "__fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));" (call_expression "__fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20))" identifier (argument_list "(param_2,1,"%d",*(int *)(iVar1 + 0x20))" ( identifier , number_literal , (string_literal ""%d"" " string_content ") , (pointer_expression "*(int *)(iVar1 + 0x20)" * (cast_expression "(int *)(iVar1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) ))) ;) (return_statement "return 1;" return number_literal ;) })) (if_statement "if (*(int *)(iVar1 + 0x50) != 0) {\n        *(undefined4 *)(iVar1 + 0x20) = param_3;\n      }" if (parenthesized_expression "(*(int *)(iVar1 + 0x50) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x50) != 0" (pointer_expression "*(int *)(iVar1 + 0x50)" * (cast_expression "(int *)(iVar1 + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x50)" ( (binary_expression "iVar1 + 0x50" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        *(undefined4 *)(iVar1 + 0x20) = param_3;\n      }" { (expression_statement "*(undefined4 *)(iVar1 + 0x20) = param_3;" (assignment_expression "*(undefined4 *)(iVar1 + 0x20) = param_3" (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" * (cast_expression "(undefined4 *)(iVar1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = identifier) ;) })) })) (if_statement "if (*(int *)(iVar1 + 0x38) != 0) {\n      __fprintf_chk(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }" if (parenthesized_expression "(*(int *)(iVar1 + 0x38) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x38) != 0" (pointer_expression "*(int *)(iVar1 + 0x38)" * (cast_expression "(int *)(iVar1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x38)" ( (binary_expression "iVar1 + 0x38" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      __fprintf_chk(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }" { (expression_statement "__fprintf_chk(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));" (call_expression "__fprintf_chk(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c))" identifier (argument_list "(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c))" ( identifier , number_literal , (string_literal ""%s, <%s %d>"" " string_content ") , (pointer_expression "*(int *)(iVar1 + 0x38)" * (cast_expression "(int *)(iVar1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x38)" ( (binary_expression "iVar1 + 0x38" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar1 + 0x28)" * (cast_expression "(undefined4 *)(iVar1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x28)" ( (binary_expression "iVar1 + 0x28" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar1 + 0x2c)" * (cast_expression "(undefined4 *)(iVar1 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2c)" ( (binary_expression "iVar1 + 0x2c" identifier + number_literal) )))) ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "fwrite(&DAT_0002c08b,1,2,param_2);" (call_expression "fwrite(&DAT_0002c08b,1,2,param_2)" identifier (argument_list "(&DAT_0002c08b,1,2,param_2)" ( (pointer_expression "&DAT_0002c08b" & identifier) , number_literal , number_literal , identifier ))) ;) }) (else_clause "else if (param_1 == 6) {\n    fputs(param_4,param_2);\n    return 0;\n  }" else (if_statement "if (param_1 == 6) {\n    fputs(param_4,param_2);\n    return 0;\n  }" if (parenthesized_expression "(param_1 == 6)" ( (binary_expression "param_1 == 6" identifier == number_literal) )) (compound_statement "{\n    fputs(param_4,param_2);\n    return 0;\n  }" { (expression_statement "fputs(param_4,param_2);" (call_expression "fputs(param_4,param_2)" identifier (argument_list "(param_4,param_2)" ( identifier , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint posix_output_handler\n              (cflow_output_command cmd,FILE *outfile,int line,void *data,void *handler_data)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (cmd == cflow_output_newline) {\n    fputc(10,(FILE *)outfile);\n    return 0;\n  }\n  if (cmd < cflow_output_separator) {\n    if (cmd == cflow_output_init) {\n      if (emacs_option != 0) {\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }\n      omit_symbol_names_option = 1;\n      print_line_numbers = 1;\n      brief_listing = 1;\n      return 0;\n    }\n  }\n  else if (cmd == cflow_output_symbol) {\n    print_level(*(int *)((int)data + 4),*(int *)((int)data + 8));\n    __fprintf_chk(outfile,1,&DAT_0002c07a,*(undefined4 *)(*(int *)((int)data + 0xc) + 0x10));\n    iVar1 = *(int *)((int)data + 0xc);\n    if (brief_listing != 0) {\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(outfile,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(int *)(iVar1 + 0x20) = line;\n      }\n    }\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      __fprintf_chk(outfile,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }\n    fwrite(&DAT_0002c08b,1,2,(FILE *)outfile);\n  }\n  else if (cmd == cflow_output_text) {\n    fputs((char *)data,(FILE *)outfile);\n    return 0;\n  }\n  return 0;\n}\n\n" comment comment (function_definition "int posix_output_handler\n              (cflow_output_command cmd,FILE *outfile,int line,void *data,void *handler_data)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (cmd == cflow_output_newline) {\n    fputc(10,(FILE *)outfile);\n    return 0;\n  }\n  if (cmd < cflow_output_separator) {\n    if (cmd == cflow_output_init) {\n      if (emacs_option != 0) {\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }\n      omit_symbol_names_option = 1;\n      print_line_numbers = 1;\n      brief_listing = 1;\n      return 0;\n    }\n  }\n  else if (cmd == cflow_output_symbol) {\n    print_level(*(int *)((int)data + 4),*(int *)((int)data + 8));\n    __fprintf_chk(outfile,1,&DAT_0002c07a,*(undefined4 *)(*(int *)((int)data + 0xc) + 0x10));\n    iVar1 = *(int *)((int)data + 0xc);\n    if (brief_listing != 0) {\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(outfile,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(int *)(iVar1 + 0x20) = line;\n      }\n    }\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      __fprintf_chk(outfile,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }\n    fwrite(&DAT_0002c08b,1,2,(FILE *)outfile);\n  }\n  else if (cmd == cflow_output_text) {\n    fputs((char *)data,(FILE *)outfile);\n    return 0;\n  }\n  return 0;\n}" primitive_type (function_declarator "posix_output_handler\n              (cflow_output_command cmd,FILE *outfile,int line,void *data,void *handler_data)" identifier (parameter_list "(cflow_output_command cmd,FILE *outfile,int line,void *data,void *handler_data)" ( (parameter_declaration "cflow_output_command cmd" type_identifier identifier) , (parameter_declaration "FILE *outfile" type_identifier (pointer_declarator "*outfile" * identifier)) , (parameter_declaration "int line" primitive_type identifier) , (parameter_declaration "void *data" primitive_type (pointer_declarator "*data" * identifier)) , (parameter_declaration "void *handler_data" primitive_type (pointer_declarator "*handler_data" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (cmd == cflow_output_newline) {\n    fputc(10,(FILE *)outfile);\n    return 0;\n  }\n  if (cmd < cflow_output_separator) {\n    if (cmd == cflow_output_init) {\n      if (emacs_option != 0) {\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }\n      omit_symbol_names_option = 1;\n      print_line_numbers = 1;\n      brief_listing = 1;\n      return 0;\n    }\n  }\n  else if (cmd == cflow_output_symbol) {\n    print_level(*(int *)((int)data + 4),*(int *)((int)data + 8));\n    __fprintf_chk(outfile,1,&DAT_0002c07a,*(undefined4 *)(*(int *)((int)data + 0xc) + 0x10));\n    iVar1 = *(int *)((int)data + 0xc);\n    if (brief_listing != 0) {\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(outfile,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(int *)(iVar1 + 0x20) = line;\n      }\n    }\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      __fprintf_chk(outfile,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }\n    fwrite(&DAT_0002c08b,1,2,(FILE *)outfile);\n  }\n  else if (cmd == cflow_output_text) {\n    fputs((char *)data,(FILE *)outfile);\n    return 0;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (cmd == cflow_output_newline) {\n    fputc(10,(FILE *)outfile);\n    return 0;\n  }" if (parenthesized_expression "(cmd == cflow_output_newline)" ( (binary_expression "cmd == cflow_output_newline" identifier == identifier) )) (compound_statement "{\n    fputc(10,(FILE *)outfile);\n    return 0;\n  }" { (expression_statement "fputc(10,(FILE *)outfile);" (call_expression "fputc(10,(FILE *)outfile)" identifier (argument_list "(10,(FILE *)outfile)" ( number_literal , (cast_expression "(FILE *)outfile" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (cmd < cflow_output_separator) {\n    if (cmd == cflow_output_init) {\n      if (emacs_option != 0) {\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }\n      omit_symbol_names_option = 1;\n      print_line_numbers = 1;\n      brief_listing = 1;\n      return 0;\n    }\n  }\n  else if (cmd == cflow_output_symbol) {\n    print_level(*(int *)((int)data + 4),*(int *)((int)data + 8));\n    __fprintf_chk(outfile,1,&DAT_0002c07a,*(undefined4 *)(*(int *)((int)data + 0xc) + 0x10));\n    iVar1 = *(int *)((int)data + 0xc);\n    if (brief_listing != 0) {\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(outfile,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(int *)(iVar1 + 0x20) = line;\n      }\n    }\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      __fprintf_chk(outfile,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }\n    fwrite(&DAT_0002c08b,1,2,(FILE *)outfile);\n  }\n  else if (cmd == cflow_output_text) {\n    fputs((char *)data,(FILE *)outfile);\n    return 0;\n  }" if (parenthesized_expression "(cmd < cflow_output_separator)" ( (binary_expression "cmd < cflow_output_separator" identifier < identifier) )) (compound_statement "{\n    if (cmd == cflow_output_init) {\n      if (emacs_option != 0) {\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }\n      omit_symbol_names_option = 1;\n      print_line_numbers = 1;\n      brief_listing = 1;\n      return 0;\n    }\n  }" { (if_statement "if (cmd == cflow_output_init) {\n      if (emacs_option != 0) {\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }\n      omit_symbol_names_option = 1;\n      print_line_numbers = 1;\n      brief_listing = 1;\n      return 0;\n    }" if (parenthesized_expression "(cmd == cflow_output_init)" ( (binary_expression "cmd == cflow_output_init" identifier == identifier) )) (compound_statement "{\n      if (emacs_option != 0) {\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }\n      omit_symbol_names_option = 1;\n      print_line_numbers = 1;\n      brief_listing = 1;\n      return 0;\n    }" { (if_statement "if (emacs_option != 0) {\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }" if (parenthesized_expression "(emacs_option != 0)" ( (binary_expression "emacs_option != 0" identifier != number_literal) )) (compound_statement "{\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }" { (expression_statement "uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);" (assignment_expression "uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5)" identifier = (call_expression "dcgettext(0,"--format=posix is not compatible with --emacs",5)" identifier (argument_list "(0,"--format=posix is not compatible with --emacs",5)" ( number_literal , (string_literal ""--format=posix is not compatible with --emacs"" " string_content ") , number_literal )))) ;) (expression_statement "error(3,0,uVar2);" (call_expression "error(3,0,uVar2)" identifier (argument_list "(3,0,uVar2)" ( number_literal , number_literal , identifier ))) ;) })) (expression_statement "omit_symbol_names_option = 1;" (assignment_expression "omit_symbol_names_option = 1" identifier = number_literal) ;) (expression_statement "print_line_numbers = 1;" (assignment_expression "print_line_numbers = 1" identifier = number_literal) ;) (expression_statement "brief_listing = 1;" (assignment_expression "brief_listing = 1" identifier = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else if (cmd == cflow_output_symbol) {\n    print_level(*(int *)((int)data + 4),*(int *)((int)data + 8));\n    __fprintf_chk(outfile,1,&DAT_0002c07a,*(undefined4 *)(*(int *)((int)data + 0xc) + 0x10));\n    iVar1 = *(int *)((int)data + 0xc);\n    if (brief_listing != 0) {\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(outfile,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(int *)(iVar1 + 0x20) = line;\n      }\n    }\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      __fprintf_chk(outfile,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }\n    fwrite(&DAT_0002c08b,1,2,(FILE *)outfile);\n  }\n  else if (cmd == cflow_output_text) {\n    fputs((char *)data,(FILE *)outfile);\n    return 0;\n  }" else (if_statement "if (cmd == cflow_output_symbol) {\n    print_level(*(int *)((int)data + 4),*(int *)((int)data + 8));\n    __fprintf_chk(outfile,1,&DAT_0002c07a,*(undefined4 *)(*(int *)((int)data + 0xc) + 0x10));\n    iVar1 = *(int *)((int)data + 0xc);\n    if (brief_listing != 0) {\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(outfile,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(int *)(iVar1 + 0x20) = line;\n      }\n    }\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      __fprintf_chk(outfile,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }\n    fwrite(&DAT_0002c08b,1,2,(FILE *)outfile);\n  }\n  else if (cmd == cflow_output_text) {\n    fputs((char *)data,(FILE *)outfile);\n    return 0;\n  }" if (parenthesized_expression "(cmd == cflow_output_symbol)" ( (binary_expression "cmd == cflow_output_symbol" identifier == identifier) )) (compound_statement "{\n    print_level(*(int *)((int)data + 4),*(int *)((int)data + 8));\n    __fprintf_chk(outfile,1,&DAT_0002c07a,*(undefined4 *)(*(int *)((int)data + 0xc) + 0x10));\n    iVar1 = *(int *)((int)data + 0xc);\n    if (brief_listing != 0) {\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(outfile,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(int *)(iVar1 + 0x20) = line;\n      }\n    }\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      __fprintf_chk(outfile,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }\n    fwrite(&DAT_0002c08b,1,2,(FILE *)outfile);\n  }" { (expression_statement "print_level(*(int *)((int)data + 4),*(int *)((int)data + 8));" (call_expression "print_level(*(int *)((int)data + 4),*(int *)((int)data + 8))" identifier (argument_list "(*(int *)((int)data + 4),*(int *)((int)data + 8))" ( (pointer_expression "*(int *)((int)data + 4)" * (cast_expression "(int *)((int)data + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 4)" ( (binary_expression "(int)data + 4" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , (pointer_expression "*(int *)((int)data + 8)" * (cast_expression "(int *)((int)data + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 8)" ( (binary_expression "(int)data + 8" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (expression_statement "__fprintf_chk(outfile,1,&DAT_0002c07a,*(undefined4 *)(*(int *)((int)data + 0xc) + 0x10));" (call_expression "__fprintf_chk(outfile,1,&DAT_0002c07a,*(undefined4 *)(*(int *)((int)data + 0xc) + 0x10))" identifier (argument_list "(outfile,1,&DAT_0002c07a,*(undefined4 *)(*(int *)((int)data + 0xc) + 0x10))" ( identifier , number_literal , (pointer_expression "&DAT_0002c07a" & identifier) , (pointer_expression "*(undefined4 *)(*(int *)((int)data + 0xc) + 0x10)" * (cast_expression "(undefined4 *)(*(int *)((int)data + 0xc) + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)((int)data + 0xc) + 0x10)" ( (binary_expression "*(int *)((int)data + 0xc) + 0x10" (pointer_expression "*(int *)((int)data + 0xc)" * (cast_expression "(int *)((int)data + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0xc)" ( (binary_expression "(int)data + 0xc" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal) )))) ))) ;) (expression_statement "iVar1 = *(int *)((int)data + 0xc);" (assignment_expression "iVar1 = *(int *)((int)data + 0xc)" identifier = (pointer_expression "*(int *)((int)data + 0xc)" * (cast_expression "(int *)((int)data + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0xc)" ( (binary_expression "(int)data + 0xc" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (brief_listing != 0) {\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(outfile,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(int *)(iVar1 + 0x20) = line;\n      }\n    }" if (parenthesized_expression "(brief_listing != 0)" ( (binary_expression "brief_listing != 0" identifier != number_literal) )) (compound_statement "{\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(outfile,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(int *)(iVar1 + 0x20) = line;\n      }\n    }" { (if_statement "if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(outfile,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }" if (parenthesized_expression "(*(int *)(iVar1 + 0x20) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x20) != 0" (pointer_expression "*(int *)(iVar1 + 0x20)" * (cast_expression "(int *)(iVar1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        __fprintf_chk(outfile,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }" { (expression_statement "__fprintf_chk(outfile,1,"%d",*(int *)(iVar1 + 0x20));" (call_expression "__fprintf_chk(outfile,1,"%d",*(int *)(iVar1 + 0x20))" identifier (argument_list "(outfile,1,"%d",*(int *)(iVar1 + 0x20))" ( identifier , number_literal , (string_literal ""%d"" " string_content ") , (pointer_expression "*(int *)(iVar1 + 0x20)" * (cast_expression "(int *)(iVar1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) ))) ;) (return_statement "return 1;" return number_literal ;) })) (if_statement "if (*(int *)(iVar1 + 0x50) != 0) {\n        *(int *)(iVar1 + 0x20) = line;\n      }" if (parenthesized_expression "(*(int *)(iVar1 + 0x50) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x50) != 0" (pointer_expression "*(int *)(iVar1 + 0x50)" * (cast_expression "(int *)(iVar1 + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x50)" ( (binary_expression "iVar1 + 0x50" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        *(int *)(iVar1 + 0x20) = line;\n      }" { (expression_statement "*(int *)(iVar1 + 0x20) = line;" (assignment_expression "*(int *)(iVar1 + 0x20) = line" (pointer_expression "*(int *)(iVar1 + 0x20)" * (cast_expression "(int *)(iVar1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = identifier) ;) })) })) (if_statement "if (*(int *)(iVar1 + 0x38) != 0) {\n      __fprintf_chk(outfile,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }" if (parenthesized_expression "(*(int *)(iVar1 + 0x38) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x38) != 0" (pointer_expression "*(int *)(iVar1 + 0x38)" * (cast_expression "(int *)(iVar1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x38)" ( (binary_expression "iVar1 + 0x38" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      __fprintf_chk(outfile,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }" { (expression_statement "__fprintf_chk(outfile,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));" (call_expression "__fprintf_chk(outfile,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c))" identifier (argument_list "(outfile,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c))" ( identifier , number_literal , (string_literal ""%s, <%s %d>"" " string_content ") , (pointer_expression "*(int *)(iVar1 + 0x38)" * (cast_expression "(int *)(iVar1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x38)" ( (binary_expression "iVar1 + 0x38" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar1 + 0x28)" * (cast_expression "(undefined4 *)(iVar1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x28)" ( (binary_expression "iVar1 + 0x28" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar1 + 0x2c)" * (cast_expression "(undefined4 *)(iVar1 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2c)" ( (binary_expression "iVar1 + 0x2c" identifier + number_literal) )))) ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "fwrite(&DAT_0002c08b,1,2,(FILE *)outfile);" (call_expression "fwrite(&DAT_0002c08b,1,2,(FILE *)outfile)" identifier (argument_list "(&DAT_0002c08b,1,2,(FILE *)outfile)" ( (pointer_expression "&DAT_0002c08b" & identifier) , number_literal , number_literal , (cast_expression "(FILE *)outfile" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) }) (else_clause "else if (cmd == cflow_output_text) {\n    fputs((char *)data,(FILE *)outfile);\n    return 0;\n  }" else (if_statement "if (cmd == cflow_output_text) {\n    fputs((char *)data,(FILE *)outfile);\n    return 0;\n  }" if (parenthesized_expression "(cmd == cflow_output_text)" ( (binary_expression "cmd == cflow_output_text" identifier == identifier) )) (compound_statement "{\n    fputs((char *)data,(FILE *)outfile);\n    return 0;\n  }" { (expression_statement "fputs((char *)data,(FILE *)outfile);" (call_expression "fputs((char *)data,(FILE *)outfile)" identifier (argument_list "((char *)data,(FILE *)outfile)" ( (cast_expression "(char *)data" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(FILE *)outfile" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (return_statement "return 0;" return number_literal ;) })))))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_0001ad90(uint param_1,FILE *param_2,undefined4 param_3,char *param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 3) {\n    fputc(10,param_2);\n    return 0;\n  }\n  if (param_1 < 4) {\n    if (param_1 == 0) {\n      if (DAT_00036b10 != 0) {\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }\n      DAT_00036b30 = 1;\n      DAT_00036b24 = 1;\n      DAT_00036af8 = 1;\n      return 0;\n    }\n  }\n  else if (param_1 == 5) {\n    FUN_00017500(*(undefined4 *)(param_4 + 4),*(undefined4 *)(param_4 + 8));\n    __fprintf_chk(param_2,1,&DAT_0002c07a,*(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10));\n    iVar1 = *(int *)(param_4 + 0xc);\n    if (DAT_00036af8 != 0) {\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(undefined4 *)(iVar1 + 0x20) = param_3;\n      }\n    }\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      __fprintf_chk(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }\n    fwrite(&DAT_0002c08b,1,2,param_2);\n  }\n  else if (param_1 == 6) {\n    fputs(param_4,param_2);\n    return 0;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0001ad90(uint param_1,FILE *param_2,undefined4 param_3,char *param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 3) {\n    fputc(10,param_2);\n    return 0;\n  }\n  if (param_1 < 4) {\n    if (param_1 == 0) {\n      if (DAT_00036b10 != 0) {\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }\n      DAT_00036b30 = 1;\n      DAT_00036b24 = 1;\n      DAT_00036af8 = 1;\n      return 0;\n    }\n  }\n  else if (param_1 == 5) {\n    FUN_00017500(*(undefined4 *)(param_4 + 4),*(undefined4 *)(param_4 + 8));\n    __fprintf_chk(param_2,1,&DAT_0002c07a,*(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10));\n    iVar1 = *(int *)(param_4 + 0xc);\n    if (DAT_00036af8 != 0) {\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(undefined4 *)(iVar1 + 0x20) = param_3;\n      }\n    }\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      __fprintf_chk(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }\n    fwrite(&DAT_0002c08b,1,2,param_2);\n  }\n  else if (param_1 == 6) {\n    fputs(param_4,param_2);\n    return 0;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0001ad90(uint param_1,FILE *param_2,undefined4 param_3,char *param_4)" identifier (parameter_list "(uint param_1,FILE *param_2,undefined4 param_3,char *param_4)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "FILE *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "char *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 3) {\n    fputc(10,param_2);\n    return 0;\n  }\n  if (param_1 < 4) {\n    if (param_1 == 0) {\n      if (DAT_00036b10 != 0) {\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }\n      DAT_00036b30 = 1;\n      DAT_00036b24 = 1;\n      DAT_00036af8 = 1;\n      return 0;\n    }\n  }\n  else if (param_1 == 5) {\n    FUN_00017500(*(undefined4 *)(param_4 + 4),*(undefined4 *)(param_4 + 8));\n    __fprintf_chk(param_2,1,&DAT_0002c07a,*(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10));\n    iVar1 = *(int *)(param_4 + 0xc);\n    if (DAT_00036af8 != 0) {\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(undefined4 *)(iVar1 + 0x20) = param_3;\n      }\n    }\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      __fprintf_chk(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }\n    fwrite(&DAT_0002c08b,1,2,param_2);\n  }\n  else if (param_1 == 6) {\n    fputs(param_4,param_2);\n    return 0;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (param_1 == 3) {\n    fputc(10,param_2);\n    return 0;\n  }" if (parenthesized_expression "(param_1 == 3)" ( (binary_expression "param_1 == 3" identifier == number_literal) )) (compound_statement "{\n    fputc(10,param_2);\n    return 0;\n  }" { (expression_statement "fputc(10,param_2);" (call_expression "fputc(10,param_2)" identifier (argument_list "(10,param_2)" ( number_literal , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_1 < 4) {\n    if (param_1 == 0) {\n      if (DAT_00036b10 != 0) {\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }\n      DAT_00036b30 = 1;\n      DAT_00036b24 = 1;\n      DAT_00036af8 = 1;\n      return 0;\n    }\n  }\n  else if (param_1 == 5) {\n    FUN_00017500(*(undefined4 *)(param_4 + 4),*(undefined4 *)(param_4 + 8));\n    __fprintf_chk(param_2,1,&DAT_0002c07a,*(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10));\n    iVar1 = *(int *)(param_4 + 0xc);\n    if (DAT_00036af8 != 0) {\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(undefined4 *)(iVar1 + 0x20) = param_3;\n      }\n    }\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      __fprintf_chk(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }\n    fwrite(&DAT_0002c08b,1,2,param_2);\n  }\n  else if (param_1 == 6) {\n    fputs(param_4,param_2);\n    return 0;\n  }" if (parenthesized_expression "(param_1 < 4)" ( (binary_expression "param_1 < 4" identifier < number_literal) )) (compound_statement "{\n    if (param_1 == 0) {\n      if (DAT_00036b10 != 0) {\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }\n      DAT_00036b30 = 1;\n      DAT_00036b24 = 1;\n      DAT_00036af8 = 1;\n      return 0;\n    }\n  }" { (if_statement "if (param_1 == 0) {\n      if (DAT_00036b10 != 0) {\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }\n      DAT_00036b30 = 1;\n      DAT_00036b24 = 1;\n      DAT_00036af8 = 1;\n      return 0;\n    }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n      if (DAT_00036b10 != 0) {\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }\n      DAT_00036b30 = 1;\n      DAT_00036b24 = 1;\n      DAT_00036af8 = 1;\n      return 0;\n    }" { (if_statement "if (DAT_00036b10 != 0) {\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }" if (parenthesized_expression "(DAT_00036b10 != 0)" ( (binary_expression "DAT_00036b10 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }" { (expression_statement "uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);" (assignment_expression "uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5)" identifier = (call_expression "dcgettext(0,"--format=posix is not compatible with --emacs",5)" identifier (argument_list "(0,"--format=posix is not compatible with --emacs",5)" ( number_literal , (string_literal ""--format=posix is not compatible with --emacs"" " string_content ") , number_literal )))) ;) (expression_statement "error(3,0,uVar2);" (call_expression "error(3,0,uVar2)" identifier (argument_list "(3,0,uVar2)" ( number_literal , number_literal , identifier ))) ;) })) (expression_statement "DAT_00036b30 = 1;" (assignment_expression "DAT_00036b30 = 1" identifier = number_literal) ;) (expression_statement "DAT_00036b24 = 1;" (assignment_expression "DAT_00036b24 = 1" identifier = number_literal) ;) (expression_statement "DAT_00036af8 = 1;" (assignment_expression "DAT_00036af8 = 1" identifier = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else if (param_1 == 5) {\n    FUN_00017500(*(undefined4 *)(param_4 + 4),*(undefined4 *)(param_4 + 8));\n    __fprintf_chk(param_2,1,&DAT_0002c07a,*(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10));\n    iVar1 = *(int *)(param_4 + 0xc);\n    if (DAT_00036af8 != 0) {\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(undefined4 *)(iVar1 + 0x20) = param_3;\n      }\n    }\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      __fprintf_chk(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }\n    fwrite(&DAT_0002c08b,1,2,param_2);\n  }\n  else if (param_1 == 6) {\n    fputs(param_4,param_2);\n    return 0;\n  }" else (if_statement "if (param_1 == 5) {\n    FUN_00017500(*(undefined4 *)(param_4 + 4),*(undefined4 *)(param_4 + 8));\n    __fprintf_chk(param_2,1,&DAT_0002c07a,*(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10));\n    iVar1 = *(int *)(param_4 + 0xc);\n    if (DAT_00036af8 != 0) {\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(undefined4 *)(iVar1 + 0x20) = param_3;\n      }\n    }\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      __fprintf_chk(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }\n    fwrite(&DAT_0002c08b,1,2,param_2);\n  }\n  else if (param_1 == 6) {\n    fputs(param_4,param_2);\n    return 0;\n  }" if (parenthesized_expression "(param_1 == 5)" ( (binary_expression "param_1 == 5" identifier == number_literal) )) (compound_statement "{\n    FUN_00017500(*(undefined4 *)(param_4 + 4),*(undefined4 *)(param_4 + 8));\n    __fprintf_chk(param_2,1,&DAT_0002c07a,*(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10));\n    iVar1 = *(int *)(param_4 + 0xc);\n    if (DAT_00036af8 != 0) {\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(undefined4 *)(iVar1 + 0x20) = param_3;\n      }\n    }\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      __fprintf_chk(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }\n    fwrite(&DAT_0002c08b,1,2,param_2);\n  }" { (expression_statement "FUN_00017500(*(undefined4 *)(param_4 + 4),*(undefined4 *)(param_4 + 8));" (call_expression "FUN_00017500(*(undefined4 *)(param_4 + 4),*(undefined4 *)(param_4 + 8))" identifier (argument_list "(*(undefined4 *)(param_4 + 4),*(undefined4 *)(param_4 + 8))" ( (pointer_expression "*(undefined4 *)(param_4 + 4)" * (cast_expression "(undefined4 *)(param_4 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 4)" ( (binary_expression "param_4 + 4" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_4 + 8)" * (cast_expression "(undefined4 *)(param_4 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 8)" ( (binary_expression "param_4 + 8" identifier + number_literal) )))) ))) ;) (expression_statement "__fprintf_chk(param_2,1,&DAT_0002c07a,*(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10));" (call_expression "__fprintf_chk(param_2,1,&DAT_0002c07a,*(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10))" identifier (argument_list "(param_2,1,&DAT_0002c07a,*(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10))" ( identifier , number_literal , (pointer_expression "&DAT_0002c07a" & identifier) , (pointer_expression "*(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10)" * (cast_expression "(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_4 + 0xc) + 0x10)" ( (binary_expression "*(int *)(param_4 + 0xc) + 0x10" (pointer_expression "*(int *)(param_4 + 0xc)" * (cast_expression "(int *)(param_4 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0xc)" ( (binary_expression "param_4 + 0xc" identifier + number_literal) )))) + number_literal) )))) ))) ;) (expression_statement "iVar1 = *(int *)(param_4 + 0xc);" (assignment_expression "iVar1 = *(int *)(param_4 + 0xc)" identifier = (pointer_expression "*(int *)(param_4 + 0xc)" * (cast_expression "(int *)(param_4 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0xc)" ( (binary_expression "param_4 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (DAT_00036af8 != 0) {\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(undefined4 *)(iVar1 + 0x20) = param_3;\n      }\n    }" if (parenthesized_expression "(DAT_00036af8 != 0)" ( (binary_expression "DAT_00036af8 != 0" identifier != number_literal) )) (compound_statement "{\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(undefined4 *)(iVar1 + 0x20) = param_3;\n      }\n    }" { (if_statement "if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }" if (parenthesized_expression "(*(int *)(iVar1 + 0x20) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x20) != 0" (pointer_expression "*(int *)(iVar1 + 0x20)" * (cast_expression "(int *)(iVar1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        __fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }" { (expression_statement "__fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));" (call_expression "__fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20))" identifier (argument_list "(param_2,1,"%d",*(int *)(iVar1 + 0x20))" ( identifier , number_literal , (string_literal ""%d"" " string_content ") , (pointer_expression "*(int *)(iVar1 + 0x20)" * (cast_expression "(int *)(iVar1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) ))) ;) (return_statement "return 1;" return number_literal ;) })) (if_statement "if (*(int *)(iVar1 + 0x50) != 0) {\n        *(undefined4 *)(iVar1 + 0x20) = param_3;\n      }" if (parenthesized_expression "(*(int *)(iVar1 + 0x50) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x50) != 0" (pointer_expression "*(int *)(iVar1 + 0x50)" * (cast_expression "(int *)(iVar1 + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x50)" ( (binary_expression "iVar1 + 0x50" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        *(undefined4 *)(iVar1 + 0x20) = param_3;\n      }" { (expression_statement "*(undefined4 *)(iVar1 + 0x20) = param_3;" (assignment_expression "*(undefined4 *)(iVar1 + 0x20) = param_3" (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" * (cast_expression "(undefined4 *)(iVar1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = identifier) ;) })) })) (if_statement "if (*(int *)(iVar1 + 0x38) != 0) {\n      __fprintf_chk(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }" if (parenthesized_expression "(*(int *)(iVar1 + 0x38) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x38) != 0" (pointer_expression "*(int *)(iVar1 + 0x38)" * (cast_expression "(int *)(iVar1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x38)" ( (binary_expression "iVar1 + 0x38" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      __fprintf_chk(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }" { (expression_statement "__fprintf_chk(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));" (call_expression "__fprintf_chk(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c))" identifier (argument_list "(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c))" ( identifier , number_literal , (string_literal ""%s, <%s %d>"" " string_content ") , (pointer_expression "*(int *)(iVar1 + 0x38)" * (cast_expression "(int *)(iVar1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x38)" ( (binary_expression "iVar1 + 0x38" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar1 + 0x28)" * (cast_expression "(undefined4 *)(iVar1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x28)" ( (binary_expression "iVar1 + 0x28" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar1 + 0x2c)" * (cast_expression "(undefined4 *)(iVar1 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2c)" ( (binary_expression "iVar1 + 0x2c" identifier + number_literal) )))) ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "fwrite(&DAT_0002c08b,1,2,param_2);" (call_expression "fwrite(&DAT_0002c08b,1,2,param_2)" identifier (argument_list "(&DAT_0002c08b,1,2,param_2)" ( (pointer_expression "&DAT_0002c08b" & identifier) , number_literal , number_literal , identifier ))) ;) }) (else_clause "else if (param_1 == 6) {\n    fputs(param_4,param_2);\n    return 0;\n  }" else (if_statement "if (param_1 == 6) {\n    fputs(param_4,param_2);\n    return 0;\n  }" if (parenthesized_expression "(param_1 == 6)" ( (binary_expression "param_1 == 6" identifier == number_literal) )) (compound_statement "{\n    fputs(param_4,param_2);\n    return 0;\n  }" { (expression_statement "fputs(param_4,param_2);" (call_expression "fputs(param_4,param_2)" identifier (argument_list "(param_4,param_2)" ( identifier , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT ))) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , LIT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (return_statement return LIT ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression & IDENT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (string_literal " string_content ") , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (string_literal " string_content ") , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (return_statement return LIT ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT , LIT , IDENT ))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return LIT ;) })))))) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0001ad90(uint param_1,FILE *param_2,undefined4 param_3,char *param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 3) {\n    fputc(10,param_2);\n    return 0;\n  }\n  if (param_1 < 4) {\n    if (param_1 == 0) {\n      if (DAT_00036b10 != 0) {\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }\n      DAT_00036b30 = 1;\n      DAT_00036b24 = 1;\n      DAT_00036af8 = 1;\n      return 0;\n    }\n  }\n  else if (param_1 == 5) {\n    FUN_00017500(*(undefined4 *)(param_4 + 4),*(undefined4 *)(param_4 + 8));\n    __fprintf_chk(param_2,1,&DAT_0002c07a,*(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10));\n    iVar1 = *(int *)(param_4 + 0xc);\n    if (DAT_00036af8 != 0) {\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(undefined4 *)(iVar1 + 0x20) = param_3;\n      }\n    }\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      __fprintf_chk(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }\n    fwrite(&DAT_0002c08b,1,2,param_2);\n  }\n  else if (param_1 == 6) {\n    fputs(param_4,param_2);\n    return 0;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_0001ad90(uint param_1,FILE *param_2,undefined4 param_3,char *param_4)" (identifier "FUN_0001ad90") (parameter_list "(uint param_1,FILE *param_2,undefined4 param_3,char *param_4)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) (, ",") (parameter_declaration "FILE *param_2" (type_identifier "FILE") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "char *param_4" (primitive_type "char") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 3) {\n    fputc(10,param_2);\n    return 0;\n  }\n  if (param_1 < 4) {\n    if (param_1 == 0) {\n      if (DAT_00036b10 != 0) {\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }\n      DAT_00036b30 = 1;\n      DAT_00036b24 = 1;\n      DAT_00036af8 = 1;\n      return 0;\n    }\n  }\n  else if (param_1 == 5) {\n    FUN_00017500(*(undefined4 *)(param_4 + 4),*(undefined4 *)(param_4 + 8));\n    __fprintf_chk(param_2,1,&DAT_0002c07a,*(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10));\n    iVar1 = *(int *)(param_4 + 0xc);\n    if (DAT_00036af8 != 0) {\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(undefined4 *)(iVar1 + 0x20) = param_3;\n      }\n    }\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      __fprintf_chk(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }\n    fwrite(&DAT_0002c08b,1,2,param_2);\n  }\n  else if (param_1 == 6) {\n    fputs(param_4,param_2);\n    return 0;\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (if_statement "if (param_1 == 3) {\n    fputc(10,param_2);\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_1 == 3)" (( "(") (binary_expression "param_1 == 3" (identifier "param_1") (== "==") (number_literal "3")) () ")")) (compound_statement "{\n    fputc(10,param_2);\n    return 0;\n  }" ({ "{") (expression_statement "fputc(10,param_2);" (call_expression "fputc(10,param_2)" (identifier "fputc") (argument_list "(10,param_2)" (( "(") (number_literal "10") (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (param_1 < 4) {\n    if (param_1 == 0) {\n      if (DAT_00036b10 != 0) {\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }\n      DAT_00036b30 = 1;\n      DAT_00036b24 = 1;\n      DAT_00036af8 = 1;\n      return 0;\n    }\n  }\n  else if (param_1 == 5) {\n    FUN_00017500(*(undefined4 *)(param_4 + 4),*(undefined4 *)(param_4 + 8));\n    __fprintf_chk(param_2,1,&DAT_0002c07a,*(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10));\n    iVar1 = *(int *)(param_4 + 0xc);\n    if (DAT_00036af8 != 0) {\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(undefined4 *)(iVar1 + 0x20) = param_3;\n      }\n    }\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      __fprintf_chk(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }\n    fwrite(&DAT_0002c08b,1,2,param_2);\n  }\n  else if (param_1 == 6) {\n    fputs(param_4,param_2);\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_1 < 4)" (( "(") (binary_expression "param_1 < 4" (identifier "param_1") (< "<") (number_literal "4")) () ")")) (compound_statement "{\n    if (param_1 == 0) {\n      if (DAT_00036b10 != 0) {\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }\n      DAT_00036b30 = 1;\n      DAT_00036b24 = 1;\n      DAT_00036af8 = 1;\n      return 0;\n    }\n  }" ({ "{") (if_statement "if (param_1 == 0) {\n      if (DAT_00036b10 != 0) {\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }\n      DAT_00036b30 = 1;\n      DAT_00036b24 = 1;\n      DAT_00036af8 = 1;\n      return 0;\n    }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if (DAT_00036b10 != 0) {\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }\n      DAT_00036b30 = 1;\n      DAT_00036b24 = 1;\n      DAT_00036af8 = 1;\n      return 0;\n    }" ({ "{") (if_statement "if (DAT_00036b10 != 0) {\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }" (if "if") (parenthesized_expression "(DAT_00036b10 != 0)" (( "(") (binary_expression "DAT_00036b10 != 0" (identifier "DAT_00036b10") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);\n        error(3,0,uVar2);\n      }" ({ "{") (expression_statement "uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);" (assignment_expression "uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5)" (identifier "uVar2") (= "=") (call_expression "dcgettext(0,"--format=posix is not compatible with --emacs",5)" (identifier "dcgettext") (argument_list "(0,"--format=posix is not compatible with --emacs",5)" (( "(") (number_literal "0") (, ",") (string_literal ""--format=posix is not compatible with --emacs"" (" """) (string_content "--format=posix is not compatible with --emacs") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "error(3,0,uVar2);" (call_expression "error(3,0,uVar2)" (identifier "error") (argument_list "(3,0,uVar2)" (( "(") (number_literal "3") (, ",") (number_literal "0") (, ",") (identifier "uVar2") () ")"))) (; ";")) (} "}"))) (expression_statement "DAT_00036b30 = 1;" (assignment_expression "DAT_00036b30 = 1" (identifier "DAT_00036b30") (= "=") (number_literal "1")) (; ";")) (expression_statement "DAT_00036b24 = 1;" (assignment_expression "DAT_00036b24 = 1" (identifier "DAT_00036b24") (= "=") (number_literal "1")) (; ";")) (expression_statement "DAT_00036af8 = 1;" (assignment_expression "DAT_00036af8 = 1" (identifier "DAT_00036af8") (= "=") (number_literal "1")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (else_clause "else if (param_1 == 5) {\n    FUN_00017500(*(undefined4 *)(param_4 + 4),*(undefined4 *)(param_4 + 8));\n    __fprintf_chk(param_2,1,&DAT_0002c07a,*(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10));\n    iVar1 = *(int *)(param_4 + 0xc);\n    if (DAT_00036af8 != 0) {\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(undefined4 *)(iVar1 + 0x20) = param_3;\n      }\n    }\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      __fprintf_chk(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }\n    fwrite(&DAT_0002c08b,1,2,param_2);\n  }\n  else if (param_1 == 6) {\n    fputs(param_4,param_2);\n    return 0;\n  }" (else "else") (if_statement "if (param_1 == 5) {\n    FUN_00017500(*(undefined4 *)(param_4 + 4),*(undefined4 *)(param_4 + 8));\n    __fprintf_chk(param_2,1,&DAT_0002c07a,*(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10));\n    iVar1 = *(int *)(param_4 + 0xc);\n    if (DAT_00036af8 != 0) {\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(undefined4 *)(iVar1 + 0x20) = param_3;\n      }\n    }\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      __fprintf_chk(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }\n    fwrite(&DAT_0002c08b,1,2,param_2);\n  }\n  else if (param_1 == 6) {\n    fputs(param_4,param_2);\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_1 == 5)" (( "(") (binary_expression "param_1 == 5" (identifier "param_1") (== "==") (number_literal "5")) () ")")) (compound_statement "{\n    FUN_00017500(*(undefined4 *)(param_4 + 4),*(undefined4 *)(param_4 + 8));\n    __fprintf_chk(param_2,1,&DAT_0002c07a,*(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10));\n    iVar1 = *(int *)(param_4 + 0xc);\n    if (DAT_00036af8 != 0) {\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(undefined4 *)(iVar1 + 0x20) = param_3;\n      }\n    }\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      __fprintf_chk(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }\n    fwrite(&DAT_0002c08b,1,2,param_2);\n  }" ({ "{") (expression_statement "FUN_00017500(*(undefined4 *)(param_4 + 4),*(undefined4 *)(param_4 + 8));" (call_expression "FUN_00017500(*(undefined4 *)(param_4 + 4),*(undefined4 *)(param_4 + 8))" (identifier "FUN_00017500") (argument_list "(*(undefined4 *)(param_4 + 4),*(undefined4 *)(param_4 + 8))" (( "(") (pointer_expression "*(undefined4 *)(param_4 + 4)" (* "*") (cast_expression "(undefined4 *)(param_4 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 4)" (( "(") (binary_expression "param_4 + 4" (identifier "param_4") (+ "+") (number_literal "4")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_4 + 8)" (* "*") (cast_expression "(undefined4 *)(param_4 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 8)" (( "(") (binary_expression "param_4 + 8" (identifier "param_4") (+ "+") (number_literal "8")) () ")")))) () ")"))) (; ";")) (expression_statement "__fprintf_chk(param_2,1,&DAT_0002c07a,*(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10));" (call_expression "__fprintf_chk(param_2,1,&DAT_0002c07a,*(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10))" (identifier "__fprintf_chk") (argument_list "(param_2,1,&DAT_0002c07a,*(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10))" (( "(") (identifier "param_2") (, ",") (number_literal "1") (, ",") (pointer_expression "&DAT_0002c07a" (& "&") (identifier "DAT_0002c07a")) (, ",") (pointer_expression "*(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_4 + 0xc) + 0x10)" (( "(") (binary_expression "*(int *)(param_4 + 0xc) + 0x10" (pointer_expression "*(int *)(param_4 + 0xc)" (* "*") (cast_expression "(int *)(param_4 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0xc)" (( "(") (binary_expression "param_4 + 0xc" (identifier "param_4") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "0x10")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar1 = *(int *)(param_4 + 0xc);" (assignment_expression "iVar1 = *(int *)(param_4 + 0xc)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_4 + 0xc)" (* "*") (cast_expression "(int *)(param_4 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0xc)" (( "(") (binary_expression "param_4 + 0xc" (identifier "param_4") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (DAT_00036af8 != 0) {\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(undefined4 *)(iVar1 + 0x20) = param_3;\n      }\n    }" (if "if") (parenthesized_expression "(DAT_00036af8 != 0)" (( "(") (binary_expression "DAT_00036af8 != 0" (identifier "DAT_00036af8") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }\n      if (*(int *)(iVar1 + 0x50) != 0) {\n        *(undefined4 *)(iVar1 + 0x20) = param_3;\n      }\n    }" ({ "{") (if_statement "if (*(int *)(iVar1 + 0x20) != 0) {\n        __fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 0x20) != 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0x20) != 0" (pointer_expression "*(int *)(iVar1 + 0x20)" (* "*") (cast_expression "(int *)(iVar1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        __fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));\n        return 1;\n      }" ({ "{") (expression_statement "__fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));" (call_expression "__fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20))" (identifier "__fprintf_chk") (argument_list "(param_2,1,"%d",*(int *)(iVar1 + 0x20))" (( "(") (identifier "param_2") (, ",") (number_literal "1") (, ",") (string_literal ""%d"" (" """) (string_content "%d") (" """)) (, ",") (pointer_expression "*(int *)(iVar1 + 0x20)" (* "*") (cast_expression "(int *)(iVar1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")")))) () ")"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (if_statement "if (*(int *)(iVar1 + 0x50) != 0) {\n        *(undefined4 *)(iVar1 + 0x20) = param_3;\n      }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 0x50) != 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0x50) != 0" (pointer_expression "*(int *)(iVar1 + 0x50)" (* "*") (cast_expression "(int *)(iVar1 + 0x50)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x50)" (( "(") (binary_expression "iVar1 + 0x50" (identifier "iVar1") (+ "+") (number_literal "0x50")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        *(undefined4 *)(iVar1 + 0x20) = param_3;\n      }" ({ "{") (expression_statement "*(undefined4 *)(iVar1 + 0x20) = param_3;" (assignment_expression "*(undefined4 *)(iVar1 + 0x20) = param_3" (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (} "}"))) (} "}"))) (if_statement "if (*(int *)(iVar1 + 0x38) != 0) {\n      __fprintf_chk(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 0x38) != 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0x38) != 0" (pointer_expression "*(int *)(iVar1 + 0x38)" (* "*") (cast_expression "(int *)(iVar1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x38)" (( "(") (binary_expression "iVar1 + 0x38" (identifier "iVar1") (+ "+") (number_literal "0x38")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      __fprintf_chk(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));\n      return 0;\n    }" ({ "{") (expression_statement "__fprintf_chk(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c));" (call_expression "__fprintf_chk(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c))" (identifier "__fprintf_chk") (argument_list "(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),\n                    *(undefined4 *)(iVar1 + 0x2c))" (( "(") (identifier "param_2") (, ",") (number_literal "1") (, ",") (string_literal ""%s, <%s %d>"" (" """) (string_content "%s, <%s %d>") (" """)) (, ",") (pointer_expression "*(int *)(iVar1 + 0x38)" (* "*") (cast_expression "(int *)(iVar1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x38)" (( "(") (binary_expression "iVar1 + 0x38" (identifier "iVar1") (+ "+") (number_literal "0x38")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(iVar1 + 0x28)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x28)" (( "(") (binary_expression "iVar1 + 0x28" (identifier "iVar1") (+ "+") (number_literal "0x28")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(iVar1 + 0x2c)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x2c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x2c)" (( "(") (binary_expression "iVar1 + 0x2c" (identifier "iVar1") (+ "+") (number_literal "0x2c")) () ")")))) () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "fwrite(&DAT_0002c08b,1,2,param_2);" (call_expression "fwrite(&DAT_0002c08b,1,2,param_2)" (identifier "fwrite") (argument_list "(&DAT_0002c08b,1,2,param_2)" (( "(") (pointer_expression "&DAT_0002c08b" (& "&") (identifier "DAT_0002c08b")) (, ",") (number_literal "1") (, ",") (number_literal "2") (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}")) (else_clause "else if (param_1 == 6) {\n    fputs(param_4,param_2);\n    return 0;\n  }" (else "else") (if_statement "if (param_1 == 6) {\n    fputs(param_4,param_2);\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_1 == 6)" (( "(") (binary_expression "param_1 == 6" (identifier "param_1") (== "==") (number_literal "6")) () ")")) (compound_statement "{\n    fputs(param_4,param_2);\n    return 0;\n  }" ({ "{") (expression_statement "fputs(param_4,param_2);" (call_expression "fputs(param_4,param_2)" (identifier "fputs") (argument_list "(param_4,param_2)" (( "(") (identifier "param_4") (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))))))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

int function_1
              (type_1 var_1,type_2 *outfile,int line,void *data,void *handler_data)

{
  int var_13;
  type_3 uVar2;
  
  if (var_1 == var_2) {
    var_3(10,(type_2 *)outfile);
    return 0;
  }
  if (var_1 < var_4) {
    if (var_1 == var_5) {
      if (var_6 != 0) {
        uVar2 = var_7(0,"--format=posix is not compatible with --emacs",5);
        var_8(3,0,uVar2);
      }
      omit_symbol_names_option = 1;
      print_line_numbers = 1;
      var_12 = 1;
      return 0;
    }
  }
  else if (var_1 == var_9) {
    var_10(*(int *)((int)data + 4),*(int *)((int)data + 8));
    var_11(outfile,1,&DAT_0002c07a,*(type_3 *)(*(int *)((int)data + 0xc) + 0x10));
    var_13 = *(int *)((int)data + 0xc);
    if (var_12 != 0) {
      if (*(int *)(var_13 + 0x20) != 0) {
        var_11(outfile,1,"%d",*(int *)(var_13 + 0x20));
        return 1;
      }
      if (*(int *)(var_13 + 0x50) != 0) {
        *(int *)(var_13 + 0x20) = line;
      }
    }
    if (*(int *)(var_13 + 0x38) != 0) {
      var_11(outfile,1,"%s, <%s %d>",*(int *)(var_13 + 0x38),*(type_3 *)(var_13 + 0x28),
                    *(type_3 *)(var_13 + 0x2c));
      return 0;
    }
    var_14(&DAT_0002c08b,1,2,(type_2 *)outfile);
  }
  else if (var_1 == var_15) {
    var_16((char *)data,(type_2 *)outfile);
    return 0;
  }
  return 0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier)))) (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (return_statement (number_literal))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (pointer_expression argument: (identifier)) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (string_literal (string_content)) (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (string_literal (string_content)) (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (return_statement (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (number_literal) (number_literal) (identifier))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (return_statement (number_literal)))))))) (return_statement (number_literal)))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 MASKED(uint param_1,FILE *param_2,undefined4 param_3,char *param_4)

{
  int iVar1;
  undefined4 uVar2;
  
  if (param_1 == 3) {
    fputc(10,param_2);
    return 0;
  }
  if (param_1 < 4) {
    if (param_1 == 0) {
      if (DAT_00036b10 != 0) {
        uVar2 = dcgettext(0,"--format=posix is not compatible with --emacs",5);
        error(3,0,uVar2);
      }
      DAT_00036b30 = 1;
      DAT_00036b24 = 1;
      DAT_00036af8 = 1;
      return 0;
    }
  }
  else if (param_1 == 5) {
    FUN_00017500(*(undefined4 *)(param_4 + 4),*(undefined4 *)(param_4 + 8));
    __fprintf_chk(param_2,1,&DAT_0002c07a,*(undefined4 *)(*(int *)(param_4 + 0xc) + 0x10));
    iVar1 = *(int *)(param_4 + 0xc);
    if (DAT_00036af8 != 0) {
      if (*(int *)(iVar1 + 0x20) != 0) {
        __fprintf_chk(param_2,1,"%d",*(int *)(iVar1 + 0x20));
        return 1;
      }
      if (*(int *)(iVar1 + 0x50) != 0) {
        *(undefined4 *)(iVar1 + 0x20) = param_3;
      }
    }
    if (*(int *)(iVar1 + 0x38) != 0) {
      __fprintf_chk(param_2,1,"%s, <%s %d>",*(int *)(iVar1 + 0x38),*(undefined4 *)(iVar1 + 0x28),
                    *(undefined4 *)(iVar1 + 0x2c));
      return 0;
    }
    fwrite(&DAT_0002c08b,1,2,param_2);
  }
  else if (param_1 == 6) {
    fputs(param_4,param_2);
    return 0;
  }
  return 0;
}

