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

void print_arelt_descr(FILE *file,bfd *abfd,bfd_boolean verbose,bfd_boolean offsets)

{
  int iVar1;
  char *pcVar2;
  char *__format;
  time_t when;
  char modebuf [11];
  char timebuf [40];
  stat buf;
  
  if (verbose != 0) {
    iVar1 = (*abfd->xvec->_bfd_stat_arch_elt)(abfd,&buf);
    if (iVar1 == 0) {
      when = buf.st_mtim.tv_sec;
      pcVar2 = ctime(&when);
      if (pcVar2 == (char *)0x0) {
        pcVar2 = (char *)0x5;
        __format = (char *)dcgettext(0,"<time data corrupt>",5);
      }
      else {
        pcVar2 = pcVar2 + 4;
        __format = "%.12s %.4s";
      }
      sprintf(timebuf,__format,pcVar2);
      mode_string(buf.st_mode,modebuf);
      modebuf[10] = '\0';
      fprintf((FILE *)file,"%s %ld/%ld %6llu %s ",modebuf + 1,buf.st_uid,buf.st_gid,
              (undefined4)buf.st_size,buf.st_size._4_4_,timebuf);
    }
  }
  fputs(abfd->filename,(FILE *)file);
  if (offsets != 0) {
    if ((abfd->field_0x2c & 1) == 0) {
      iVar1 = (int)abfd->origin;
      if (iVar1 == 0 && *(int *)((int)&abfd->origin + 4) == 0) goto LAB_00012d50;
    }
    else {
      iVar1 = (int)abfd->proxy_origin;
      if (iVar1 == 0 && *(int *)((int)&abfd->proxy_origin + 4) == 0) goto LAB_00012d50;
    }
    fprintf((FILE *)file," 0x%lx",iVar1);
  }
LAB_00012d50:
  fputc(10,(FILE *)file);
  return;
}



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

void FUN_00012ce0(FILE *param_1,undefined4 *param_2,int param_3,int param_4)

{
  int iVar1;
  char *pcVar2;
  char *__format;
  time_t local_b4;
  undefined1 local_af;
  undefined1 local_ae [9];
  undefined1 local_a5;
  char local_a4 [40];
  undefined1 local_7c [16];
  undefined4 local_6c;
  undefined4 local_64;
  undefined4 local_60;
  undefined4 local_50;
  undefined4 local_4c;
  time_t local_34;
  undefined4 uStack_14;
  
  uStack_14 = 0x12ce9;
  if (param_3 != 0) {
    iVar1 = (**(code **)(param_2[1] + 0xfc))(param_2,local_7c);
    if (iVar1 == 0) {
      local_b4 = local_34;
      pcVar2 = ctime(&local_b4);
      if (pcVar2 == (char *)0x0) {
        pcVar2 = (char *)0x5;
        __format = (char *)dcgettext(0,"<time data corrupt>",5);
      }
      else {
        pcVar2 = pcVar2 + 4;
        __format = "%.12s %.4s";
      }
      sprintf(local_a4,__format,pcVar2);
      FUN_00013330(local_6c,&local_af);
      local_a5 = 0;
      fprintf(param_1,"%s %ld/%ld %6llu %s ",local_ae,local_64,local_60,local_50,local_4c,local_a4);
    }
  }
  fputs((char *)*param_2,param_1);
  if (param_4 != 0) {
    if ((*(byte *)(param_2 + 0xb) & 1) == 0) {
      iVar1 = param_2[0xd];
      if (iVar1 == 0 && param_2[0xe] == 0) goto LAB_00012d50;
    }
    else {
      iVar1 = param_2[0xf];
      if (iVar1 == 0 && param_2[0x10] == 0) goto LAB_00012d50;
    }
    fprintf(param_1," 0x%lx",iVar1);
  }
LAB_00012d50:
  fputc(10,param_1);
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00011ca0
ADD EBX,0x6317
SUB ESP,0xac
MOV EBP,dword ptr [ESP + 0xc8]
MOV EDI,dword ptr [ESP + 0xc0]
MOV ESI,dword ptr [ESP + 0xc4]
TEST EBP,EBP
JZ 0x00012d27
SUB ESP,0x8
MOV EAX,dword ptr [ESI + 0x4]
LEA EDX,[ESP + 0x48]
PUSH EDX
PUSH ESI
CALL dword ptr [EAX + 0xfc]
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00012d90
SUB ESP,0x8
PUSH EDI
PUSH dword ptr [ESI]
CALL 0x00011450
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0xcc]
TEST EAX,EAX
JZ 0x00012d50
TEST byte ptr [ESI + 0x2c],0x1
JZ 0x00012d70
MOV EAX,dword ptr [ESI + 0x3c]
MOV ECX,EAX
OR ECX,dword ptr [ESI + 0x40]
JNZ 0x00012d7a
SUB ESP,0x8
PUSH EDI
PUSH 0xa
CALL 0x00011390
ADD ESP,0xbc
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESI + 0x34]
MOV ECX,EAX
OR ECX,dword ptr [ESI + 0x38]
JZ 0x00012d50
SUB ESP,0x4
PUSH EAX
LEA EAX,[EBX + 0xffffc95f]
PUSH EAX
PUSH EDI
CALL 0x000112c0
ADD ESP,0x10
JMP 0x00012d50
MOV EAX,dword ptr [ESP + 0x88]
SUB ESP,0xc
MOV dword ptr [ESP + 0x14],EAX
LEA EAX,[ESP + 0x14]
PUSH EAX
CALL 0x00011100
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00012e18
LEA EDX,[EAX + 0x14]
ADD EAX,0x4
PUSH EDX
PUSH EAX
LEA EAX,[EBX + 0xffffc93f]
PUSH EAX
LEA EBP,[ESP + 0x24]
PUSH EBP
CALL 0x000113e0
ADD ESP,0x10
SUB ESP,0x8
LEA EAX,[ESP + 0x15]
PUSH EAX
PUSH dword ptr [ESP + 0x5c]
CALL 0x00013330
MOV byte ptr [ESP + 0x27],0x0
PUSH EBP
PUSH dword ptr [ESP + 0x84]
PUSH dword ptr [ESP + 0x84]
PUSH dword ptr [ESP + 0x78]
PUSH dword ptr [ESP + 0x78]
LEA EAX,[ESP + 0x32]
PUSH EAX
LEA EAX,[EBX + 0xffffc94a]
PUSH EAX
PUSH EDI
CALL 0x000112c0
ADD ESP,0x30
JMP 0x00012d27
SUB ESP,0x4
LEA EAX,[EBX + 0xffffc92b]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00011110
POP EDX
POP ECX
JMP 0x00012dbd
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00012ce0(FILE *param_1,undefined4 *param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  char *pcVar2;\n  char *__format;\n  time_t local_b4;\n  undefined1 local_af;\n  undefined1 local_ae [9];\n  undefined1 local_a5;\n  char local_a4 [40];\n  undefined1 local_7c [16];\n  undefined4 local_6c;\n  undefined4 local_64;\n  undefined4 local_60;\n  undefined4 local_50;\n  undefined4 local_4c;\n  time_t local_34;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x12ce9;\n  if (param_3 != 0) {\n    iVar1 = (**(code **)(param_2[1] + 0xfc))(param_2,local_7c);\n    if (iVar1 == 0) {\n      local_b4 = local_34;\n      pcVar2 = ctime(&local_b4);\n      if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }\n      else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }\n      sprintf(local_a4,__format,pcVar2);\n      FUN_00013330(local_6c,&local_af);\n      local_a5 = 0;\n      fprintf(param_1,"%s %ld/%ld %6llu %s ",local_ae,local_64,local_60,local_50,local_4c,local_a4);\n    }\n  }\n  fputs((char *)*param_2,param_1);\n  if (param_4 != 0) {\n    if ((*(byte *)(param_2 + 0xb) & 1) == 0) {\n      iVar1 = param_2[0xd];\n      if (iVar1 == 0 && param_2[0xe] == 0) goto LAB_00012d50;\n    }\n    else {\n      iVar1 = param_2[0xf];\n      if (iVar1 == 0 && param_2[0x10] == 0) goto LAB_00012d50;\n    }\n    fprintf(param_1," 0x%lx",iVar1);\n  }\nLAB_00012d50:\n  fputc(10,param_1);\n  return;\n}\n\n" comment (function_definition "void FUN_00012ce0(FILE *param_1,undefined4 *param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  char *pcVar2;\n  char *__format;\n  time_t local_b4;\n  undefined1 local_af;\n  undefined1 local_ae [9];\n  undefined1 local_a5;\n  char local_a4 [40];\n  undefined1 local_7c [16];\n  undefined4 local_6c;\n  undefined4 local_64;\n  undefined4 local_60;\n  undefined4 local_50;\n  undefined4 local_4c;\n  time_t local_34;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x12ce9;\n  if (param_3 != 0) {\n    iVar1 = (**(code **)(param_2[1] + 0xfc))(param_2,local_7c);\n    if (iVar1 == 0) {\n      local_b4 = local_34;\n      pcVar2 = ctime(&local_b4);\n      if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }\n      else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }\n      sprintf(local_a4,__format,pcVar2);\n      FUN_00013330(local_6c,&local_af);\n      local_a5 = 0;\n      fprintf(param_1,"%s %ld/%ld %6llu %s ",local_ae,local_64,local_60,local_50,local_4c,local_a4);\n    }\n  }\n  fputs((char *)*param_2,param_1);\n  if (param_4 != 0) {\n    if ((*(byte *)(param_2 + 0xb) & 1) == 0) {\n      iVar1 = param_2[0xd];\n      if (iVar1 == 0 && param_2[0xe] == 0) goto LAB_00012d50;\n    }\n    else {\n      iVar1 = param_2[0xf];\n      if (iVar1 == 0 && param_2[0x10] == 0) goto LAB_00012d50;\n    }\n    fprintf(param_1," 0x%lx",iVar1);\n  }\nLAB_00012d50:\n  fputc(10,param_1);\n  return;\n}" primitive_type (function_declarator "FUN_00012ce0(FILE *param_1,undefined4 *param_2,int param_3,int param_4)" identifier (parameter_list "(FILE *param_1,undefined4 *param_2,int param_3,int param_4)" ( (parameter_declaration "FILE *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  char *__format;\n  time_t local_b4;\n  undefined1 local_af;\n  undefined1 local_ae [9];\n  undefined1 local_a5;\n  char local_a4 [40];\n  undefined1 local_7c [16];\n  undefined4 local_6c;\n  undefined4 local_64;\n  undefined4 local_60;\n  undefined4 local_50;\n  undefined4 local_4c;\n  time_t local_34;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x12ce9;\n  if (param_3 != 0) {\n    iVar1 = (**(code **)(param_2[1] + 0xfc))(param_2,local_7c);\n    if (iVar1 == 0) {\n      local_b4 = local_34;\n      pcVar2 = ctime(&local_b4);\n      if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }\n      else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }\n      sprintf(local_a4,__format,pcVar2);\n      FUN_00013330(local_6c,&local_af);\n      local_a5 = 0;\n      fprintf(param_1,"%s %ld/%ld %6llu %s ",local_ae,local_64,local_60,local_50,local_4c,local_a4);\n    }\n  }\n  fputs((char *)*param_2,param_1);\n  if (param_4 != 0) {\n    if ((*(byte *)(param_2 + 0xb) & 1) == 0) {\n      iVar1 = param_2[0xd];\n      if (iVar1 == 0 && param_2[0xe] == 0) goto LAB_00012d50;\n    }\n    else {\n      iVar1 = param_2[0xf];\n      if (iVar1 == 0 && param_2[0x10] == 0) goto LAB_00012d50;\n    }\n    fprintf(param_1," 0x%lx",iVar1);\n  }\nLAB_00012d50:\n  fputc(10,param_1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *__format;" primitive_type (pointer_declarator "*__format" * identifier) ;) (declaration "time_t local_b4;" type_identifier identifier ;) (declaration "undefined1 local_af;" type_identifier identifier ;) (declaration "undefined1 local_ae [9];" type_identifier (array_declarator "local_ae [9]" identifier [ number_literal ]) ;) (declaration "undefined1 local_a5;" type_identifier identifier ;) (declaration "char local_a4 [40];" primitive_type (array_declarator "local_a4 [40]" identifier [ number_literal ]) ;) (declaration "undefined1 local_7c [16];" type_identifier (array_declarator "local_7c [16]" identifier [ number_literal ]) ;) (declaration "undefined4 local_6c;" type_identifier identifier ;) (declaration "undefined4 local_64;" type_identifier identifier ;) (declaration "undefined4 local_60;" type_identifier identifier ;) (declaration "undefined4 local_50;" type_identifier identifier ;) (declaration "undefined4 local_4c;" type_identifier identifier ;) (declaration "time_t local_34;" type_identifier identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x12ce9;" (assignment_expression "uStack_14 = 0x12ce9" identifier = number_literal) ;) (if_statement "if (param_3 != 0) {\n    iVar1 = (**(code **)(param_2[1] + 0xfc))(param_2,local_7c);\n    if (iVar1 == 0) {\n      local_b4 = local_34;\n      pcVar2 = ctime(&local_b4);\n      if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }\n      else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }\n      sprintf(local_a4,__format,pcVar2);\n      FUN_00013330(local_6c,&local_af);\n      local_a5 = 0;\n      fprintf(param_1,"%s %ld/%ld %6llu %s ",local_ae,local_64,local_60,local_50,local_4c,local_a4);\n    }\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = (**(code **)(param_2[1] + 0xfc))(param_2,local_7c);\n    if (iVar1 == 0) {\n      local_b4 = local_34;\n      pcVar2 = ctime(&local_b4);\n      if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }\n      else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }\n      sprintf(local_a4,__format,pcVar2);\n      FUN_00013330(local_6c,&local_af);\n      local_a5 = 0;\n      fprintf(param_1,"%s %ld/%ld %6llu %s ",local_ae,local_64,local_60,local_50,local_4c,local_a4);\n    }\n  }" { (expression_statement "iVar1 = (**(code **)(param_2[1] + 0xfc))(param_2,local_7c);" (assignment_expression "iVar1 = (**(code **)(param_2[1] + 0xfc))(param_2,local_7c)" identifier = (call_expression "(**(code **)(param_2[1] + 0xfc))(param_2,local_7c)" (parenthesized_expression "(**(code **)(param_2[1] + 0xfc))" ( (pointer_expression "**(code **)(param_2[1] + 0xfc)" * (pointer_expression "*(code **)(param_2[1] + 0xfc)" * (cast_expression "(code **)(param_2[1] + 0xfc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2[1] + 0xfc)" ( (binary_expression "param_2[1] + 0xfc" (subscript_expression "param_2[1]" identifier [ number_literal ]) + number_literal) ))))) )) (argument_list "(param_2,local_7c)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      local_b4 = local_34;\n      pcVar2 = ctime(&local_b4);\n      if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }\n      else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }\n      sprintf(local_a4,__format,pcVar2);\n      FUN_00013330(local_6c,&local_af);\n      local_a5 = 0;\n      fprintf(param_1,"%s %ld/%ld %6llu %s ",local_ae,local_64,local_60,local_50,local_4c,local_a4);\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      local_b4 = local_34;\n      pcVar2 = ctime(&local_b4);\n      if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }\n      else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }\n      sprintf(local_a4,__format,pcVar2);\n      FUN_00013330(local_6c,&local_af);\n      local_a5 = 0;\n      fprintf(param_1,"%s %ld/%ld %6llu %s ",local_ae,local_64,local_60,local_50,local_4c,local_a4);\n    }" { (expression_statement "local_b4 = local_34;" (assignment_expression "local_b4 = local_34" identifier = identifier) ;) (expression_statement "pcVar2 = ctime(&local_b4);" (assignment_expression "pcVar2 = ctime(&local_b4)" identifier = (call_expression "ctime(&local_b4)" identifier (argument_list "(&local_b4)" ( (pointer_expression "&local_b4" & identifier) )))) ;) (if_statement "if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }\n      else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }" { (expression_statement "pcVar2 = (char *)0x5;" (assignment_expression "pcVar2 = (char *)0x5" identifier = (cast_expression "(char *)0x5" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "__format = (char *)dcgettext(0,"<time data corrupt>",5);" (assignment_expression "__format = (char *)dcgettext(0,"<time data corrupt>",5)" identifier = (cast_expression "(char *)dcgettext(0,"<time data corrupt>",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"<time data corrupt>",5)" identifier (argument_list "(0,"<time data corrupt>",5)" ( number_literal , (string_literal ""<time data corrupt>"" " string_content ") , number_literal ))))) ;) }) (else_clause "else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }" else (compound_statement "{\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }" { (expression_statement "pcVar2 = pcVar2 + 4;" (assignment_expression "pcVar2 = pcVar2 + 4" identifier = (binary_expression "pcVar2 + 4" identifier + number_literal)) ;) (expression_statement "__format = "%.12s %.4s";" (assignment_expression "__format = "%.12s %.4s"" identifier = (string_literal ""%.12s %.4s"" " string_content ")) ;) }))) (expression_statement "sprintf(local_a4,__format,pcVar2);" (call_expression "sprintf(local_a4,__format,pcVar2)" identifier (argument_list "(local_a4,__format,pcVar2)" ( identifier , identifier , identifier ))) ;) (expression_statement "FUN_00013330(local_6c,&local_af);" (call_expression "FUN_00013330(local_6c,&local_af)" identifier (argument_list "(local_6c,&local_af)" ( identifier , (pointer_expression "&local_af" & identifier) ))) ;) (expression_statement "local_a5 = 0;" (assignment_expression "local_a5 = 0" identifier = number_literal) ;) (expression_statement "fprintf(param_1,"%s %ld/%ld %6llu %s ",local_ae,local_64,local_60,local_50,local_4c,local_a4);" (call_expression "fprintf(param_1,"%s %ld/%ld %6llu %s ",local_ae,local_64,local_60,local_50,local_4c,local_a4)" identifier (argument_list "(param_1,"%s %ld/%ld %6llu %s ",local_ae,local_64,local_60,local_50,local_4c,local_a4)" ( identifier , (string_literal ""%s %ld/%ld %6llu %s "" " string_content ") , identifier , identifier , identifier , identifier , identifier , identifier ))) ;) })) })) (expression_statement "fputs((char *)*param_2,param_1);" (call_expression "fputs((char *)*param_2,param_1)" identifier (argument_list "((char *)*param_2,param_1)" ( (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) , identifier ))) ;) (if_statement "if (param_4 != 0) {\n    if ((*(byte *)(param_2 + 0xb) & 1) == 0) {\n      iVar1 = param_2[0xd];\n      if (iVar1 == 0 && param_2[0xe] == 0) goto LAB_00012d50;\n    }\n    else {\n      iVar1 = param_2[0xf];\n      if (iVar1 == 0 && param_2[0x10] == 0) goto LAB_00012d50;\n    }\n    fprintf(param_1," 0x%lx",iVar1);\n  }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n    if ((*(byte *)(param_2 + 0xb) & 1) == 0) {\n      iVar1 = param_2[0xd];\n      if (iVar1 == 0 && param_2[0xe] == 0) goto LAB_00012d50;\n    }\n    else {\n      iVar1 = param_2[0xf];\n      if (iVar1 == 0 && param_2[0x10] == 0) goto LAB_00012d50;\n    }\n    fprintf(param_1," 0x%lx",iVar1);\n  }" { (if_statement "if ((*(byte *)(param_2 + 0xb) & 1) == 0) {\n      iVar1 = param_2[0xd];\n      if (iVar1 == 0 && param_2[0xe] == 0) goto LAB_00012d50;\n    }\n    else {\n      iVar1 = param_2[0xf];\n      if (iVar1 == 0 && param_2[0x10] == 0) goto LAB_00012d50;\n    }" if (parenthesized_expression "((*(byte *)(param_2 + 0xb) & 1) == 0)" ( (binary_expression "(*(byte *)(param_2 + 0xb) & 1) == 0" (parenthesized_expression "(*(byte *)(param_2 + 0xb) & 1)" ( (binary_expression "*(byte *)(param_2 + 0xb) & 1" (pointer_expression "*(byte *)(param_2 + 0xb)" * (cast_expression "(byte *)(param_2 + 0xb)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xb)" ( (binary_expression "param_2 + 0xb" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      iVar1 = param_2[0xd];\n      if (iVar1 == 0 && param_2[0xe] == 0) goto LAB_00012d50;\n    }" { (expression_statement "iVar1 = param_2[0xd];" (assignment_expression "iVar1 = param_2[0xd]" identifier = (subscript_expression "param_2[0xd]" identifier [ number_literal ])) ;) (if_statement "if (iVar1 == 0 && param_2[0xe] == 0) goto LAB_00012d50;" if (parenthesized_expression "(iVar1 == 0 && param_2[0xe] == 0)" ( (binary_expression "iVar1 == 0 && param_2[0xe] == 0" (binary_expression "iVar1 == 0" identifier == number_literal) && (binary_expression "param_2[0xe] == 0" (subscript_expression "param_2[0xe]" identifier [ number_literal ]) == number_literal)) )) (goto_statement "goto LAB_00012d50;" goto statement_identifier ;)) }) (else_clause "else {\n      iVar1 = param_2[0xf];\n      if (iVar1 == 0 && param_2[0x10] == 0) goto LAB_00012d50;\n    }" else (compound_statement "{\n      iVar1 = param_2[0xf];\n      if (iVar1 == 0 && param_2[0x10] == 0) goto LAB_00012d50;\n    }" { (expression_statement "iVar1 = param_2[0xf];" (assignment_expression "iVar1 = param_2[0xf]" identifier = (subscript_expression "param_2[0xf]" identifier [ number_literal ])) ;) (if_statement "if (iVar1 == 0 && param_2[0x10] == 0) goto LAB_00012d50;" if (parenthesized_expression "(iVar1 == 0 && param_2[0x10] == 0)" ( (binary_expression "iVar1 == 0 && param_2[0x10] == 0" (binary_expression "iVar1 == 0" identifier == number_literal) && (binary_expression "param_2[0x10] == 0" (subscript_expression "param_2[0x10]" identifier [ number_literal ]) == number_literal)) )) (goto_statement "goto LAB_00012d50;" goto statement_identifier ;)) }))) (expression_statement "fprintf(param_1," 0x%lx",iVar1);" (call_expression "fprintf(param_1," 0x%lx",iVar1)" identifier (argument_list "(param_1," 0x%lx",iVar1)" ( identifier , (string_literal "" 0x%lx"" " string_content ") , identifier ))) ;) })) (labeled_statement "LAB_00012d50:\n  fputc(10,param_1);" statement_identifier : (expression_statement "fputc(10,param_1);" (call_expression "fputc(10,param_1)" identifier (argument_list "(10,param_1)" ( number_literal , identifier ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid print_arelt_descr(FILE *file,bfd *abfd,bfd_boolean verbose,bfd_boolean offsets)\n\n{\n  int iVar1;\n  char *pcVar2;\n  char *__format;\n  time_t when;\n  char modebuf [11];\n  char timebuf [40];\n  stat buf;\n  \n  if (verbose != 0) {\n    iVar1 = (*abfd->xvec->_bfd_stat_arch_elt)(abfd,&buf);\n    if (iVar1 == 0) {\n      when = buf.st_mtim.tv_sec;\n      pcVar2 = ctime(&when);\n      if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }\n      else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }\n      sprintf(timebuf,__format,pcVar2);\n      mode_string(buf.st_mode,modebuf);\n      modebuf[10] = '\0';\n      fprintf((FILE *)file,"%s %ld/%ld %6llu %s ",modebuf + 1,buf.st_uid,buf.st_gid,\n              (undefined4)buf.st_size,buf.st_size._4_4_,timebuf);\n    }\n  }\n  fputs(abfd->filename,(FILE *)file);\n  if (offsets != 0) {\n    if ((abfd->field_0x2c & 1) == 0) {\n      iVar1 = (int)abfd->origin;\n      if (iVar1 == 0 && *(int *)((int)&abfd->origin + 4) == 0) goto LAB_00012d50;\n    }\n    else {\n      iVar1 = (int)abfd->proxy_origin;\n      if (iVar1 == 0 && *(int *)((int)&abfd->proxy_origin + 4) == 0) goto LAB_00012d50;\n    }\n    fprintf((FILE *)file," 0x%lx",iVar1);\n  }\nLAB_00012d50:\n  fputc(10,(FILE *)file);\n  return;\n}\n\n" comment comment (function_definition "void print_arelt_descr(FILE *file,bfd *abfd,bfd_boolean verbose,bfd_boolean offsets)\n\n{\n  int iVar1;\n  char *pcVar2;\n  char *__format;\n  time_t when;\n  char modebuf [11];\n  char timebuf [40];\n  stat buf;\n  \n  if (verbose != 0) {\n    iVar1 = (*abfd->xvec->_bfd_stat_arch_elt)(abfd,&buf);\n    if (iVar1 == 0) {\n      when = buf.st_mtim.tv_sec;\n      pcVar2 = ctime(&when);\n      if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }\n      else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }\n      sprintf(timebuf,__format,pcVar2);\n      mode_string(buf.st_mode,modebuf);\n      modebuf[10] = '\0';\n      fprintf((FILE *)file,"%s %ld/%ld %6llu %s ",modebuf + 1,buf.st_uid,buf.st_gid,\n              (undefined4)buf.st_size,buf.st_size._4_4_,timebuf);\n    }\n  }\n  fputs(abfd->filename,(FILE *)file);\n  if (offsets != 0) {\n    if ((abfd->field_0x2c & 1) == 0) {\n      iVar1 = (int)abfd->origin;\n      if (iVar1 == 0 && *(int *)((int)&abfd->origin + 4) == 0) goto LAB_00012d50;\n    }\n    else {\n      iVar1 = (int)abfd->proxy_origin;\n      if (iVar1 == 0 && *(int *)((int)&abfd->proxy_origin + 4) == 0) goto LAB_00012d50;\n    }\n    fprintf((FILE *)file," 0x%lx",iVar1);\n  }\nLAB_00012d50:\n  fputc(10,(FILE *)file);\n  return;\n}" primitive_type (function_declarator "print_arelt_descr(FILE *file,bfd *abfd,bfd_boolean verbose,bfd_boolean offsets)" identifier (parameter_list "(FILE *file,bfd *abfd,bfd_boolean verbose,bfd_boolean offsets)" ( (parameter_declaration "FILE *file" type_identifier (pointer_declarator "*file" * identifier)) , (parameter_declaration "bfd *abfd" type_identifier (pointer_declarator "*abfd" * identifier)) , (parameter_declaration "bfd_boolean verbose" type_identifier identifier) , (parameter_declaration "bfd_boolean offsets" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  char *__format;\n  time_t when;\n  char modebuf [11];\n  char timebuf [40];\n  stat buf;\n  \n  if (verbose != 0) {\n    iVar1 = (*abfd->xvec->_bfd_stat_arch_elt)(abfd,&buf);\n    if (iVar1 == 0) {\n      when = buf.st_mtim.tv_sec;\n      pcVar2 = ctime(&when);\n      if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }\n      else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }\n      sprintf(timebuf,__format,pcVar2);\n      mode_string(buf.st_mode,modebuf);\n      modebuf[10] = '\0';\n      fprintf((FILE *)file,"%s %ld/%ld %6llu %s ",modebuf + 1,buf.st_uid,buf.st_gid,\n              (undefined4)buf.st_size,buf.st_size._4_4_,timebuf);\n    }\n  }\n  fputs(abfd->filename,(FILE *)file);\n  if (offsets != 0) {\n    if ((abfd->field_0x2c & 1) == 0) {\n      iVar1 = (int)abfd->origin;\n      if (iVar1 == 0 && *(int *)((int)&abfd->origin + 4) == 0) goto LAB_00012d50;\n    }\n    else {\n      iVar1 = (int)abfd->proxy_origin;\n      if (iVar1 == 0 && *(int *)((int)&abfd->proxy_origin + 4) == 0) goto LAB_00012d50;\n    }\n    fprintf((FILE *)file," 0x%lx",iVar1);\n  }\nLAB_00012d50:\n  fputc(10,(FILE *)file);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *__format;" primitive_type (pointer_declarator "*__format" * identifier) ;) (declaration "time_t when;" type_identifier identifier ;) (declaration "char modebuf [11];" primitive_type (array_declarator "modebuf [11]" identifier [ number_literal ]) ;) (declaration "char timebuf [40];" primitive_type (array_declarator "timebuf [40]" identifier [ number_literal ]) ;) (declaration "stat buf;" type_identifier identifier ;) (if_statement "if (verbose != 0) {\n    iVar1 = (*abfd->xvec->_bfd_stat_arch_elt)(abfd,&buf);\n    if (iVar1 == 0) {\n      when = buf.st_mtim.tv_sec;\n      pcVar2 = ctime(&when);\n      if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }\n      else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }\n      sprintf(timebuf,__format,pcVar2);\n      mode_string(buf.st_mode,modebuf);\n      modebuf[10] = '\0';\n      fprintf((FILE *)file,"%s %ld/%ld %6llu %s ",modebuf + 1,buf.st_uid,buf.st_gid,\n              (undefined4)buf.st_size,buf.st_size._4_4_,timebuf);\n    }\n  }" if (parenthesized_expression "(verbose != 0)" ( (binary_expression "verbose != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = (*abfd->xvec->_bfd_stat_arch_elt)(abfd,&buf);\n    if (iVar1 == 0) {\n      when = buf.st_mtim.tv_sec;\n      pcVar2 = ctime(&when);\n      if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }\n      else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }\n      sprintf(timebuf,__format,pcVar2);\n      mode_string(buf.st_mode,modebuf);\n      modebuf[10] = '\0';\n      fprintf((FILE *)file,"%s %ld/%ld %6llu %s ",modebuf + 1,buf.st_uid,buf.st_gid,\n              (undefined4)buf.st_size,buf.st_size._4_4_,timebuf);\n    }\n  }" { (expression_statement "iVar1 = (*abfd->xvec->_bfd_stat_arch_elt)(abfd,&buf);" (assignment_expression "iVar1 = (*abfd->xvec->_bfd_stat_arch_elt)(abfd,&buf)" identifier = (call_expression "(*abfd->xvec->_bfd_stat_arch_elt)(abfd,&buf)" (parenthesized_expression "(*abfd->xvec->_bfd_stat_arch_elt)" ( (pointer_expression "*abfd->xvec->_bfd_stat_arch_elt" * (field_expression "abfd->xvec->_bfd_stat_arch_elt" (field_expression "abfd->xvec" identifier -> field_identifier) -> field_identifier)) )) (argument_list "(abfd,&buf)" ( identifier , (pointer_expression "&buf" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n      when = buf.st_mtim.tv_sec;\n      pcVar2 = ctime(&when);\n      if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }\n      else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }\n      sprintf(timebuf,__format,pcVar2);\n      mode_string(buf.st_mode,modebuf);\n      modebuf[10] = '\0';\n      fprintf((FILE *)file,"%s %ld/%ld %6llu %s ",modebuf + 1,buf.st_uid,buf.st_gid,\n              (undefined4)buf.st_size,buf.st_size._4_4_,timebuf);\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      when = buf.st_mtim.tv_sec;\n      pcVar2 = ctime(&when);\n      if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }\n      else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }\n      sprintf(timebuf,__format,pcVar2);\n      mode_string(buf.st_mode,modebuf);\n      modebuf[10] = '\0';\n      fprintf((FILE *)file,"%s %ld/%ld %6llu %s ",modebuf + 1,buf.st_uid,buf.st_gid,\n              (undefined4)buf.st_size,buf.st_size._4_4_,timebuf);\n    }" { (expression_statement "when = buf.st_mtim.tv_sec;" (assignment_expression "when = buf.st_mtim.tv_sec" identifier = (field_expression "buf.st_mtim.tv_sec" (field_expression "buf.st_mtim" identifier . field_identifier) . field_identifier)) ;) (expression_statement "pcVar2 = ctime(&when);" (assignment_expression "pcVar2 = ctime(&when)" identifier = (call_expression "ctime(&when)" identifier (argument_list "(&when)" ( (pointer_expression "&when" & identifier) )))) ;) (if_statement "if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }\n      else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }" { (expression_statement "pcVar2 = (char *)0x5;" (assignment_expression "pcVar2 = (char *)0x5" identifier = (cast_expression "(char *)0x5" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "__format = (char *)dcgettext(0,"<time data corrupt>",5);" (assignment_expression "__format = (char *)dcgettext(0,"<time data corrupt>",5)" identifier = (cast_expression "(char *)dcgettext(0,"<time data corrupt>",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"<time data corrupt>",5)" identifier (argument_list "(0,"<time data corrupt>",5)" ( number_literal , (string_literal ""<time data corrupt>"" " string_content ") , number_literal ))))) ;) }) (else_clause "else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }" else (compound_statement "{\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }" { (expression_statement "pcVar2 = pcVar2 + 4;" (assignment_expression "pcVar2 = pcVar2 + 4" identifier = (binary_expression "pcVar2 + 4" identifier + number_literal)) ;) (expression_statement "__format = "%.12s %.4s";" (assignment_expression "__format = "%.12s %.4s"" identifier = (string_literal ""%.12s %.4s"" " string_content ")) ;) }))) (expression_statement "sprintf(timebuf,__format,pcVar2);" (call_expression "sprintf(timebuf,__format,pcVar2)" identifier (argument_list "(timebuf,__format,pcVar2)" ( identifier , identifier , identifier ))) ;) (expression_statement "mode_string(buf.st_mode,modebuf);" (call_expression "mode_string(buf.st_mode,modebuf)" identifier (argument_list "(buf.st_mode,modebuf)" ( (field_expression "buf.st_mode" identifier . field_identifier) , identifier ))) ;) (expression_statement "modebuf[10] = '\0';" (assignment_expression "modebuf[10] = '\0'" (subscript_expression "modebuf[10]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "fprintf((FILE *)file,"%s %ld/%ld %6llu %s ",modebuf + 1,buf.st_uid,buf.st_gid,\n              (undefined4)buf.st_size,buf.st_size._4_4_,timebuf);" (call_expression "fprintf((FILE *)file,"%s %ld/%ld %6llu %s ",modebuf + 1,buf.st_uid,buf.st_gid,\n              (undefined4)buf.st_size,buf.st_size._4_4_,timebuf)" identifier (argument_list "((FILE *)file,"%s %ld/%ld %6llu %s ",modebuf + 1,buf.st_uid,buf.st_gid,\n              (undefined4)buf.st_size,buf.st_size._4_4_,timebuf)" ( (cast_expression "(FILE *)file" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""%s %ld/%ld %6llu %s "" " string_content ") , (binary_expression "modebuf + 1" identifier + number_literal) , (field_expression "buf.st_uid" identifier . field_identifier) , (field_expression "buf.st_gid" identifier . field_identifier) , (cast_expression "(undefined4)buf.st_size" ( (type_descriptor "undefined4" type_identifier) ) (field_expression "buf.st_size" identifier . field_identifier)) , (field_expression "buf.st_size._4_4_" (field_expression "buf.st_size" identifier . field_identifier) . field_identifier) , identifier ))) ;) })) })) (expression_statement "fputs(abfd->filename,(FILE *)file);" (call_expression "fputs(abfd->filename,(FILE *)file)" identifier (argument_list "(abfd->filename,(FILE *)file)" ( (field_expression "abfd->filename" identifier -> field_identifier) , (cast_expression "(FILE *)file" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (if_statement "if (offsets != 0) {\n    if ((abfd->field_0x2c & 1) == 0) {\n      iVar1 = (int)abfd->origin;\n      if (iVar1 == 0 && *(int *)((int)&abfd->origin + 4) == 0) goto LAB_00012d50;\n    }\n    else {\n      iVar1 = (int)abfd->proxy_origin;\n      if (iVar1 == 0 && *(int *)((int)&abfd->proxy_origin + 4) == 0) goto LAB_00012d50;\n    }\n    fprintf((FILE *)file," 0x%lx",iVar1);\n  }" if (parenthesized_expression "(offsets != 0)" ( (binary_expression "offsets != 0" identifier != number_literal) )) (compound_statement "{\n    if ((abfd->field_0x2c & 1) == 0) {\n      iVar1 = (int)abfd->origin;\n      if (iVar1 == 0 && *(int *)((int)&abfd->origin + 4) == 0) goto LAB_00012d50;\n    }\n    else {\n      iVar1 = (int)abfd->proxy_origin;\n      if (iVar1 == 0 && *(int *)((int)&abfd->proxy_origin + 4) == 0) goto LAB_00012d50;\n    }\n    fprintf((FILE *)file," 0x%lx",iVar1);\n  }" { (if_statement "if ((abfd->field_0x2c & 1) == 0) {\n      iVar1 = (int)abfd->origin;\n      if (iVar1 == 0 && *(int *)((int)&abfd->origin + 4) == 0) goto LAB_00012d50;\n    }\n    else {\n      iVar1 = (int)abfd->proxy_origin;\n      if (iVar1 == 0 && *(int *)((int)&abfd->proxy_origin + 4) == 0) goto LAB_00012d50;\n    }" if (parenthesized_expression "((abfd->field_0x2c & 1) == 0)" ( (binary_expression "(abfd->field_0x2c & 1) == 0" (parenthesized_expression "(abfd->field_0x2c & 1)" ( (binary_expression "abfd->field_0x2c & 1" (field_expression "abfd->field_0x2c" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n      iVar1 = (int)abfd->origin;\n      if (iVar1 == 0 && *(int *)((int)&abfd->origin + 4) == 0) goto LAB_00012d50;\n    }" { (expression_statement "iVar1 = (int)abfd->origin;" (assignment_expression "iVar1 = (int)abfd->origin" identifier = (cast_expression "(int)abfd->origin" ( (type_descriptor "int" primitive_type) ) (field_expression "abfd->origin" identifier -> field_identifier))) ;) (if_statement "if (iVar1 == 0 && *(int *)((int)&abfd->origin + 4) == 0) goto LAB_00012d50;" if (parenthesized_expression "(iVar1 == 0 && *(int *)((int)&abfd->origin + 4) == 0)" ( (binary_expression "iVar1 == 0 && *(int *)((int)&abfd->origin + 4) == 0" (binary_expression "iVar1 == 0" identifier == number_literal) && (binary_expression "*(int *)((int)&abfd->origin + 4) == 0" (pointer_expression "*(int *)((int)&abfd->origin + 4)" * (cast_expression "(int *)((int)&abfd->origin + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&abfd->origin + 4)" ( (binary_expression "(int)&abfd->origin + 4" (cast_expression "(int)&abfd->origin" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&abfd->origin" & (field_expression "abfd->origin" identifier -> field_identifier))) + number_literal) )))) == number_literal)) )) (goto_statement "goto LAB_00012d50;" goto statement_identifier ;)) }) (else_clause "else {\n      iVar1 = (int)abfd->proxy_origin;\n      if (iVar1 == 0 && *(int *)((int)&abfd->proxy_origin + 4) == 0) goto LAB_00012d50;\n    }" else (compound_statement "{\n      iVar1 = (int)abfd->proxy_origin;\n      if (iVar1 == 0 && *(int *)((int)&abfd->proxy_origin + 4) == 0) goto LAB_00012d50;\n    }" { (expression_statement "iVar1 = (int)abfd->proxy_origin;" (assignment_expression "iVar1 = (int)abfd->proxy_origin" identifier = (cast_expression "(int)abfd->proxy_origin" ( (type_descriptor "int" primitive_type) ) (field_expression "abfd->proxy_origin" identifier -> field_identifier))) ;) (if_statement "if (iVar1 == 0 && *(int *)((int)&abfd->proxy_origin + 4) == 0) goto LAB_00012d50;" if (parenthesized_expression "(iVar1 == 0 && *(int *)((int)&abfd->proxy_origin + 4) == 0)" ( (binary_expression "iVar1 == 0 && *(int *)((int)&abfd->proxy_origin + 4) == 0" (binary_expression "iVar1 == 0" identifier == number_literal) && (binary_expression "*(int *)((int)&abfd->proxy_origin + 4) == 0" (pointer_expression "*(int *)((int)&abfd->proxy_origin + 4)" * (cast_expression "(int *)((int)&abfd->proxy_origin + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&abfd->proxy_origin + 4)" ( (binary_expression "(int)&abfd->proxy_origin + 4" (cast_expression "(int)&abfd->proxy_origin" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&abfd->proxy_origin" & (field_expression "abfd->proxy_origin" identifier -> field_identifier))) + number_literal) )))) == number_literal)) )) (goto_statement "goto LAB_00012d50;" goto statement_identifier ;)) }))) (expression_statement "fprintf((FILE *)file," 0x%lx",iVar1);" (call_expression "fprintf((FILE *)file," 0x%lx",iVar1)" identifier (argument_list "((FILE *)file," 0x%lx",iVar1)" ( (cast_expression "(FILE *)file" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal "" 0x%lx"" " string_content ") , identifier ))) ;) })) (labeled_statement "LAB_00012d50:\n  fputc(10,(FILE *)file);" statement_identifier : (expression_statement "fputc(10,(FILE *)file);" (call_expression "fputc(10,(FILE *)file)" identifier (argument_list "(10,(FILE *)file)" ( number_literal , (cast_expression "(FILE *)file" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00012ce0(FILE *param_1,undefined4 *param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  char *pcVar2;\n  char *__format;\n  time_t local_b4;\n  undefined1 local_af;\n  undefined1 local_ae [9];\n  undefined1 local_a5;\n  char local_a4 [40];\n  undefined1 local_7c [16];\n  undefined4 local_6c;\n  undefined4 local_64;\n  undefined4 local_60;\n  undefined4 local_50;\n  undefined4 local_4c;\n  time_t local_34;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x12ce9;\n  if (param_3 != 0) {\n    iVar1 = (**(code **)(param_2[1] + 0xfc))(param_2,local_7c);\n    if (iVar1 == 0) {\n      local_b4 = local_34;\n      pcVar2 = ctime(&local_b4);\n      if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }\n      else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }\n      sprintf(local_a4,__format,pcVar2);\n      FUN_00013330(local_6c,&local_af);\n      local_a5 = 0;\n      fprintf(param_1,"%s %ld/%ld %6llu %s ",local_ae,local_64,local_60,local_50,local_4c,local_a4);\n    }\n  }\n  fputs((char *)*param_2,param_1);\n  if (param_4 != 0) {\n    if ((*(byte *)(param_2 + 0xb) & 1) == 0) {\n      iVar1 = param_2[0xd];\n      if (iVar1 == 0 && param_2[0xe] == 0) goto LAB_00012d50;\n    }\n    else {\n      iVar1 = param_2[0xf];\n      if (iVar1 == 0 && param_2[0x10] == 0) goto LAB_00012d50;\n    }\n    fprintf(param_1," 0x%lx",iVar1);\n  }\nLAB_00012d50:\n  fputc(10,param_1);\n  return;\n}\n\n" (function_definition "void FUN_00012ce0(FILE *param_1,undefined4 *param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  char *pcVar2;\n  char *__format;\n  time_t local_b4;\n  undefined1 local_af;\n  undefined1 local_ae [9];\n  undefined1 local_a5;\n  char local_a4 [40];\n  undefined1 local_7c [16];\n  undefined4 local_6c;\n  undefined4 local_64;\n  undefined4 local_60;\n  undefined4 local_50;\n  undefined4 local_4c;\n  time_t local_34;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x12ce9;\n  if (param_3 != 0) {\n    iVar1 = (**(code **)(param_2[1] + 0xfc))(param_2,local_7c);\n    if (iVar1 == 0) {\n      local_b4 = local_34;\n      pcVar2 = ctime(&local_b4);\n      if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }\n      else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }\n      sprintf(local_a4,__format,pcVar2);\n      FUN_00013330(local_6c,&local_af);\n      local_a5 = 0;\n      fprintf(param_1,"%s %ld/%ld %6llu %s ",local_ae,local_64,local_60,local_50,local_4c,local_a4);\n    }\n  }\n  fputs((char *)*param_2,param_1);\n  if (param_4 != 0) {\n    if ((*(byte *)(param_2 + 0xb) & 1) == 0) {\n      iVar1 = param_2[0xd];\n      if (iVar1 == 0 && param_2[0xe] == 0) goto LAB_00012d50;\n    }\n    else {\n      iVar1 = param_2[0xf];\n      if (iVar1 == 0 && param_2[0x10] == 0) goto LAB_00012d50;\n    }\n    fprintf(param_1," 0x%lx",iVar1);\n  }\nLAB_00012d50:\n  fputc(10,param_1);\n  return;\n}" primitive_type (function_declarator "FUN_00012ce0(FILE *param_1,undefined4 *param_2,int param_3,int param_4)" identifier (parameter_list "(FILE *param_1,undefined4 *param_2,int param_3,int param_4)" ( (parameter_declaration "FILE *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  char *__format;\n  time_t local_b4;\n  undefined1 local_af;\n  undefined1 local_ae [9];\n  undefined1 local_a5;\n  char local_a4 [40];\n  undefined1 local_7c [16];\n  undefined4 local_6c;\n  undefined4 local_64;\n  undefined4 local_60;\n  undefined4 local_50;\n  undefined4 local_4c;\n  time_t local_34;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x12ce9;\n  if (param_3 != 0) {\n    iVar1 = (**(code **)(param_2[1] + 0xfc))(param_2,local_7c);\n    if (iVar1 == 0) {\n      local_b4 = local_34;\n      pcVar2 = ctime(&local_b4);\n      if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }\n      else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }\n      sprintf(local_a4,__format,pcVar2);\n      FUN_00013330(local_6c,&local_af);\n      local_a5 = 0;\n      fprintf(param_1,"%s %ld/%ld %6llu %s ",local_ae,local_64,local_60,local_50,local_4c,local_a4);\n    }\n  }\n  fputs((char *)*param_2,param_1);\n  if (param_4 != 0) {\n    if ((*(byte *)(param_2 + 0xb) & 1) == 0) {\n      iVar1 = param_2[0xd];\n      if (iVar1 == 0 && param_2[0xe] == 0) goto LAB_00012d50;\n    }\n    else {\n      iVar1 = param_2[0xf];\n      if (iVar1 == 0 && param_2[0x10] == 0) goto LAB_00012d50;\n    }\n    fprintf(param_1," 0x%lx",iVar1);\n  }\nLAB_00012d50:\n  fputc(10,param_1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *__format;" primitive_type (pointer_declarator "*__format" * identifier) ;) (declaration "time_t local_b4;" type_identifier identifier ;) (declaration "undefined1 local_af;" type_identifier identifier ;) (declaration "undefined1 local_ae [9];" type_identifier (array_declarator "local_ae [9]" identifier [ number_literal ]) ;) (declaration "undefined1 local_a5;" type_identifier identifier ;) (declaration "char local_a4 [40];" primitive_type (array_declarator "local_a4 [40]" identifier [ number_literal ]) ;) (declaration "undefined1 local_7c [16];" type_identifier (array_declarator "local_7c [16]" identifier [ number_literal ]) ;) (declaration "undefined4 local_6c;" type_identifier identifier ;) (declaration "undefined4 local_64;" type_identifier identifier ;) (declaration "undefined4 local_60;" type_identifier identifier ;) (declaration "undefined4 local_50;" type_identifier identifier ;) (declaration "undefined4 local_4c;" type_identifier identifier ;) (declaration "time_t local_34;" type_identifier identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x12ce9;" (assignment_expression "uStack_14 = 0x12ce9" identifier = number_literal) ;) (if_statement "if (param_3 != 0) {\n    iVar1 = (**(code **)(param_2[1] + 0xfc))(param_2,local_7c);\n    if (iVar1 == 0) {\n      local_b4 = local_34;\n      pcVar2 = ctime(&local_b4);\n      if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }\n      else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }\n      sprintf(local_a4,__format,pcVar2);\n      FUN_00013330(local_6c,&local_af);\n      local_a5 = 0;\n      fprintf(param_1,"%s %ld/%ld %6llu %s ",local_ae,local_64,local_60,local_50,local_4c,local_a4);\n    }\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = (**(code **)(param_2[1] + 0xfc))(param_2,local_7c);\n    if (iVar1 == 0) {\n      local_b4 = local_34;\n      pcVar2 = ctime(&local_b4);\n      if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }\n      else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }\n      sprintf(local_a4,__format,pcVar2);\n      FUN_00013330(local_6c,&local_af);\n      local_a5 = 0;\n      fprintf(param_1,"%s %ld/%ld %6llu %s ",local_ae,local_64,local_60,local_50,local_4c,local_a4);\n    }\n  }" { (expression_statement "iVar1 = (**(code **)(param_2[1] + 0xfc))(param_2,local_7c);" (assignment_expression "iVar1 = (**(code **)(param_2[1] + 0xfc))(param_2,local_7c)" identifier = (call_expression "(**(code **)(param_2[1] + 0xfc))(param_2,local_7c)" (parenthesized_expression "(**(code **)(param_2[1] + 0xfc))" ( (pointer_expression "**(code **)(param_2[1] + 0xfc)" * (pointer_expression "*(code **)(param_2[1] + 0xfc)" * (cast_expression "(code **)(param_2[1] + 0xfc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2[1] + 0xfc)" ( (binary_expression "param_2[1] + 0xfc" (subscript_expression "param_2[1]" identifier [ number_literal ]) + number_literal) ))))) )) (argument_list "(param_2,local_7c)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      local_b4 = local_34;\n      pcVar2 = ctime(&local_b4);\n      if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }\n      else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }\n      sprintf(local_a4,__format,pcVar2);\n      FUN_00013330(local_6c,&local_af);\n      local_a5 = 0;\n      fprintf(param_1,"%s %ld/%ld %6llu %s ",local_ae,local_64,local_60,local_50,local_4c,local_a4);\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      local_b4 = local_34;\n      pcVar2 = ctime(&local_b4);\n      if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }\n      else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }\n      sprintf(local_a4,__format,pcVar2);\n      FUN_00013330(local_6c,&local_af);\n      local_a5 = 0;\n      fprintf(param_1,"%s %ld/%ld %6llu %s ",local_ae,local_64,local_60,local_50,local_4c,local_a4);\n    }" { (expression_statement "local_b4 = local_34;" (assignment_expression "local_b4 = local_34" identifier = identifier) ;) (expression_statement "pcVar2 = ctime(&local_b4);" (assignment_expression "pcVar2 = ctime(&local_b4)" identifier = (call_expression "ctime(&local_b4)" identifier (argument_list "(&local_b4)" ( (pointer_expression "&local_b4" & identifier) )))) ;) (if_statement "if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }\n      else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }" { (expression_statement "pcVar2 = (char *)0x5;" (assignment_expression "pcVar2 = (char *)0x5" identifier = (cast_expression "(char *)0x5" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "__format = (char *)dcgettext(0,"<time data corrupt>",5);" (assignment_expression "__format = (char *)dcgettext(0,"<time data corrupt>",5)" identifier = (cast_expression "(char *)dcgettext(0,"<time data corrupt>",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"<time data corrupt>",5)" identifier (argument_list "(0,"<time data corrupt>",5)" ( number_literal , (string_literal ""<time data corrupt>"" " string_content ") , number_literal ))))) ;) }) (else_clause "else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }" else (compound_statement "{\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }" { (expression_statement "pcVar2 = pcVar2 + 4;" (assignment_expression "pcVar2 = pcVar2 + 4" identifier = (binary_expression "pcVar2 + 4" identifier + number_literal)) ;) (expression_statement "__format = "%.12s %.4s";" (assignment_expression "__format = "%.12s %.4s"" identifier = (string_literal ""%.12s %.4s"" " string_content ")) ;) }))) (expression_statement "sprintf(local_a4,__format,pcVar2);" (call_expression "sprintf(local_a4,__format,pcVar2)" identifier (argument_list "(local_a4,__format,pcVar2)" ( identifier , identifier , identifier ))) ;) (expression_statement "FUN_00013330(local_6c,&local_af);" (call_expression "FUN_00013330(local_6c,&local_af)" identifier (argument_list "(local_6c,&local_af)" ( identifier , (pointer_expression "&local_af" & identifier) ))) ;) (expression_statement "local_a5 = 0;" (assignment_expression "local_a5 = 0" identifier = number_literal) ;) (expression_statement "fprintf(param_1,"%s %ld/%ld %6llu %s ",local_ae,local_64,local_60,local_50,local_4c,local_a4);" (call_expression "fprintf(param_1,"%s %ld/%ld %6llu %s ",local_ae,local_64,local_60,local_50,local_4c,local_a4)" identifier (argument_list "(param_1,"%s %ld/%ld %6llu %s ",local_ae,local_64,local_60,local_50,local_4c,local_a4)" ( identifier , (string_literal ""%s %ld/%ld %6llu %s "" " string_content ") , identifier , identifier , identifier , identifier , identifier , identifier ))) ;) })) })) (expression_statement "fputs((char *)*param_2,param_1);" (call_expression "fputs((char *)*param_2,param_1)" identifier (argument_list "((char *)*param_2,param_1)" ( (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) , identifier ))) ;) (if_statement "if (param_4 != 0) {\n    if ((*(byte *)(param_2 + 0xb) & 1) == 0) {\n      iVar1 = param_2[0xd];\n      if (iVar1 == 0 && param_2[0xe] == 0) goto LAB_00012d50;\n    }\n    else {\n      iVar1 = param_2[0xf];\n      if (iVar1 == 0 && param_2[0x10] == 0) goto LAB_00012d50;\n    }\n    fprintf(param_1," 0x%lx",iVar1);\n  }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n    if ((*(byte *)(param_2 + 0xb) & 1) == 0) {\n      iVar1 = param_2[0xd];\n      if (iVar1 == 0 && param_2[0xe] == 0) goto LAB_00012d50;\n    }\n    else {\n      iVar1 = param_2[0xf];\n      if (iVar1 == 0 && param_2[0x10] == 0) goto LAB_00012d50;\n    }\n    fprintf(param_1," 0x%lx",iVar1);\n  }" { (if_statement "if ((*(byte *)(param_2 + 0xb) & 1) == 0) {\n      iVar1 = param_2[0xd];\n      if (iVar1 == 0 && param_2[0xe] == 0) goto LAB_00012d50;\n    }\n    else {\n      iVar1 = param_2[0xf];\n      if (iVar1 == 0 && param_2[0x10] == 0) goto LAB_00012d50;\n    }" if (parenthesized_expression "((*(byte *)(param_2 + 0xb) & 1) == 0)" ( (binary_expression "(*(byte *)(param_2 + 0xb) & 1) == 0" (parenthesized_expression "(*(byte *)(param_2 + 0xb) & 1)" ( (binary_expression "*(byte *)(param_2 + 0xb) & 1" (pointer_expression "*(byte *)(param_2 + 0xb)" * (cast_expression "(byte *)(param_2 + 0xb)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xb)" ( (binary_expression "param_2 + 0xb" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      iVar1 = param_2[0xd];\n      if (iVar1 == 0 && param_2[0xe] == 0) goto LAB_00012d50;\n    }" { (expression_statement "iVar1 = param_2[0xd];" (assignment_expression "iVar1 = param_2[0xd]" identifier = (subscript_expression "param_2[0xd]" identifier [ number_literal ])) ;) (if_statement "if (iVar1 == 0 && param_2[0xe] == 0) goto LAB_00012d50;" if (parenthesized_expression "(iVar1 == 0 && param_2[0xe] == 0)" ( (binary_expression "iVar1 == 0 && param_2[0xe] == 0" (binary_expression "iVar1 == 0" identifier == number_literal) && (binary_expression "param_2[0xe] == 0" (subscript_expression "param_2[0xe]" identifier [ number_literal ]) == number_literal)) )) (goto_statement "goto LAB_00012d50;" goto statement_identifier ;)) }) (else_clause "else {\n      iVar1 = param_2[0xf];\n      if (iVar1 == 0 && param_2[0x10] == 0) goto LAB_00012d50;\n    }" else (compound_statement "{\n      iVar1 = param_2[0xf];\n      if (iVar1 == 0 && param_2[0x10] == 0) goto LAB_00012d50;\n    }" { (expression_statement "iVar1 = param_2[0xf];" (assignment_expression "iVar1 = param_2[0xf]" identifier = (subscript_expression "param_2[0xf]" identifier [ number_literal ])) ;) (if_statement "if (iVar1 == 0 && param_2[0x10] == 0) goto LAB_00012d50;" if (parenthesized_expression "(iVar1 == 0 && param_2[0x10] == 0)" ( (binary_expression "iVar1 == 0 && param_2[0x10] == 0" (binary_expression "iVar1 == 0" identifier == number_literal) && (binary_expression "param_2[0x10] == 0" (subscript_expression "param_2[0x10]" identifier [ number_literal ]) == number_literal)) )) (goto_statement "goto LAB_00012d50;" goto statement_identifier ;)) }))) (expression_statement "fprintf(param_1," 0x%lx",iVar1);" (call_expression "fprintf(param_1," 0x%lx",iVar1)" identifier (argument_list "(param_1," 0x%lx",iVar1)" ( identifier , (string_literal "" 0x%lx"" " string_content ") , identifier ))) ;) })) (labeled_statement "LAB_00012d50:\n  fputc(10,param_1);" statement_identifier : (expression_statement "fputc(10,param_1);" (call_expression "fputc(10,param_1)" identifier (argument_list "(10,param_1)" ( number_literal , identifier ))) ;)) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))))) )) (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT ))) ;) })) })) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) && (binary_expression (subscript_expression IDENT [ LIT ]) == LIT)) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) && (binary_expression (subscript_expression IDENT [ LIT ]) == LIT)) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT ))) ;) })) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT ))) ;)) (return_statement return ;) })))
(function_definition "void FUN_00012ce0(FILE *param_1,undefined4 *param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  char *pcVar2;\n  char *__format;\n  time_t local_b4;\n  undefined1 local_af;\n  undefined1 local_ae [9];\n  undefined1 local_a5;\n  char local_a4 [40];\n  undefined1 local_7c [16];\n  undefined4 local_6c;\n  undefined4 local_64;\n  undefined4 local_60;\n  undefined4 local_50;\n  undefined4 local_4c;\n  time_t local_34;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x12ce9;\n  if (param_3 != 0) {\n    iVar1 = (**(code **)(param_2[1] + 0xfc))(param_2,local_7c);\n    if (iVar1 == 0) {\n      local_b4 = local_34;\n      pcVar2 = ctime(&local_b4);\n      if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }\n      else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }\n      sprintf(local_a4,__format,pcVar2);\n      FUN_00013330(local_6c,&local_af);\n      local_a5 = 0;\n      fprintf(param_1,"%s %ld/%ld %6llu %s ",local_ae,local_64,local_60,local_50,local_4c,local_a4);\n    }\n  }\n  fputs((char *)*param_2,param_1);\n  if (param_4 != 0) {\n    if ((*(byte *)(param_2 + 0xb) & 1) == 0) {\n      iVar1 = param_2[0xd];\n      if (iVar1 == 0 && param_2[0xe] == 0) goto LAB_00012d50;\n    }\n    else {\n      iVar1 = param_2[0xf];\n      if (iVar1 == 0 && param_2[0x10] == 0) goto LAB_00012d50;\n    }\n    fprintf(param_1," 0x%lx",iVar1);\n  }\nLAB_00012d50:\n  fputc(10,param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00012ce0(FILE *param_1,undefined4 *param_2,int param_3,int param_4)" (identifier "FUN_00012ce0") (parameter_list "(FILE *param_1,undefined4 *param_2,int param_3,int param_4)" (( "(") (parameter_declaration "FILE *param_1" (type_identifier "FILE") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  char *__format;\n  time_t local_b4;\n  undefined1 local_af;\n  undefined1 local_ae [9];\n  undefined1 local_a5;\n  char local_a4 [40];\n  undefined1 local_7c [16];\n  undefined4 local_6c;\n  undefined4 local_64;\n  undefined4 local_60;\n  undefined4 local_50;\n  undefined4 local_4c;\n  time_t local_34;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x12ce9;\n  if (param_3 != 0) {\n    iVar1 = (**(code **)(param_2[1] + 0xfc))(param_2,local_7c);\n    if (iVar1 == 0) {\n      local_b4 = local_34;\n      pcVar2 = ctime(&local_b4);\n      if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }\n      else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }\n      sprintf(local_a4,__format,pcVar2);\n      FUN_00013330(local_6c,&local_af);\n      local_a5 = 0;\n      fprintf(param_1,"%s %ld/%ld %6llu %s ",local_ae,local_64,local_60,local_50,local_4c,local_a4);\n    }\n  }\n  fputs((char *)*param_2,param_1);\n  if (param_4 != 0) {\n    if ((*(byte *)(param_2 + 0xb) & 1) == 0) {\n      iVar1 = param_2[0xd];\n      if (iVar1 == 0 && param_2[0xe] == 0) goto LAB_00012d50;\n    }\n    else {\n      iVar1 = param_2[0xf];\n      if (iVar1 == 0 && param_2[0x10] == 0) goto LAB_00012d50;\n    }\n    fprintf(param_1," 0x%lx",iVar1);\n  }\nLAB_00012d50:\n  fputc(10,param_1);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "char *__format;" (primitive_type "char") (pointer_declarator "*__format" (* "*") (identifier "__format")) (; ";")) (declaration "time_t local_b4;" (type_identifier "time_t") (identifier "local_b4") (; ";")) (declaration "undefined1 local_af;" (type_identifier "undefined1") (identifier "local_af") (; ";")) (declaration "undefined1 local_ae [9];" (type_identifier "undefined1") (array_declarator "local_ae [9]" (identifier "local_ae") ([ "[") (number_literal "9") (] "]")) (; ";")) (declaration "undefined1 local_a5;" (type_identifier "undefined1") (identifier "local_a5") (; ";")) (declaration "char local_a4 [40];" (primitive_type "char") (array_declarator "local_a4 [40]" (identifier "local_a4") ([ "[") (number_literal "40") (] "]")) (; ";")) (declaration "undefined1 local_7c [16];" (type_identifier "undefined1") (array_declarator "local_7c [16]" (identifier "local_7c") ([ "[") (number_literal "16") (] "]")) (; ";")) (declaration "undefined4 local_6c;" (type_identifier "undefined4") (identifier "local_6c") (; ";")) (declaration "undefined4 local_64;" (type_identifier "undefined4") (identifier "local_64") (; ";")) (declaration "undefined4 local_60;" (type_identifier "undefined4") (identifier "local_60") (; ";")) (declaration "undefined4 local_50;" (type_identifier "undefined4") (identifier "local_50") (; ";")) (declaration "undefined4 local_4c;" (type_identifier "undefined4") (identifier "local_4c") (; ";")) (declaration "time_t local_34;" (type_identifier "time_t") (identifier "local_34") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x12ce9;" (assignment_expression "uStack_14 = 0x12ce9" (identifier "uStack_14") (= "=") (number_literal "0x12ce9")) (; ";")) (if_statement "if (param_3 != 0) {\n    iVar1 = (**(code **)(param_2[1] + 0xfc))(param_2,local_7c);\n    if (iVar1 == 0) {\n      local_b4 = local_34;\n      pcVar2 = ctime(&local_b4);\n      if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }\n      else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }\n      sprintf(local_a4,__format,pcVar2);\n      FUN_00013330(local_6c,&local_af);\n      local_a5 = 0;\n      fprintf(param_1,"%s %ld/%ld %6llu %s ",local_ae,local_64,local_60,local_50,local_4c,local_a4);\n    }\n  }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = (**(code **)(param_2[1] + 0xfc))(param_2,local_7c);\n    if (iVar1 == 0) {\n      local_b4 = local_34;\n      pcVar2 = ctime(&local_b4);\n      if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }\n      else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }\n      sprintf(local_a4,__format,pcVar2);\n      FUN_00013330(local_6c,&local_af);\n      local_a5 = 0;\n      fprintf(param_1,"%s %ld/%ld %6llu %s ",local_ae,local_64,local_60,local_50,local_4c,local_a4);\n    }\n  }" ({ "{") (expression_statement "iVar1 = (**(code **)(param_2[1] + 0xfc))(param_2,local_7c);" (assignment_expression "iVar1 = (**(code **)(param_2[1] + 0xfc))(param_2,local_7c)" (identifier "iVar1") (= "=") (call_expression "(**(code **)(param_2[1] + 0xfc))(param_2,local_7c)" (parenthesized_expression "(**(code **)(param_2[1] + 0xfc))" (( "(") (pointer_expression "**(code **)(param_2[1] + 0xfc)" (* "*") (pointer_expression "*(code **)(param_2[1] + 0xfc)" (* "*") (cast_expression "(code **)(param_2[1] + 0xfc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2[1] + 0xfc)" (( "(") (binary_expression "param_2[1] + 0xfc" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "0xfc")) () ")"))))) () ")")) (argument_list "(param_2,local_7c)" (( "(") (identifier "param_2") (, ",") (identifier "local_7c") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      local_b4 = local_34;\n      pcVar2 = ctime(&local_b4);\n      if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }\n      else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }\n      sprintf(local_a4,__format,pcVar2);\n      FUN_00013330(local_6c,&local_af);\n      local_a5 = 0;\n      fprintf(param_1,"%s %ld/%ld %6llu %s ",local_ae,local_64,local_60,local_50,local_4c,local_a4);\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      local_b4 = local_34;\n      pcVar2 = ctime(&local_b4);\n      if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }\n      else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }\n      sprintf(local_a4,__format,pcVar2);\n      FUN_00013330(local_6c,&local_af);\n      local_a5 = 0;\n      fprintf(param_1,"%s %ld/%ld %6llu %s ",local_ae,local_64,local_60,local_50,local_4c,local_a4);\n    }" ({ "{") (expression_statement "local_b4 = local_34;" (assignment_expression "local_b4 = local_34" (identifier "local_b4") (= "=") (identifier "local_34")) (; ";")) (expression_statement "pcVar2 = ctime(&local_b4);" (assignment_expression "pcVar2 = ctime(&local_b4)" (identifier "pcVar2") (= "=") (call_expression "ctime(&local_b4)" (identifier "ctime") (argument_list "(&local_b4)" (( "(") (pointer_expression "&local_b4" (& "&") (identifier "local_b4")) () ")")))) (; ";")) (if_statement "if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }\n      else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }" (if "if") (parenthesized_expression "(pcVar2 == (char *)0x0)" (( "(") (binary_expression "pcVar2 == (char *)0x0" (identifier "pcVar2") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        pcVar2 = (char *)0x5;\n        __format = (char *)dcgettext(0,"<time data corrupt>",5);\n      }" ({ "{") (expression_statement "pcVar2 = (char *)0x5;" (assignment_expression "pcVar2 = (char *)0x5" (identifier "pcVar2") (= "=") (cast_expression "(char *)0x5" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x5"))) (; ";")) (expression_statement "__format = (char *)dcgettext(0,"<time data corrupt>",5);" (assignment_expression "__format = (char *)dcgettext(0,"<time data corrupt>",5)" (identifier "__format") (= "=") (cast_expression "(char *)dcgettext(0,"<time data corrupt>",5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "dcgettext(0,"<time data corrupt>",5)" (identifier "dcgettext") (argument_list "(0,"<time data corrupt>",5)" (( "(") (number_literal "0") (, ",") (string_literal ""<time data corrupt>"" (" """) (string_content "<time data corrupt>") (" """)) (, ",") (number_literal "5") () ")"))))) (; ";")) (} "}")) (else_clause "else {\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }" (else "else") (compound_statement "{\n        pcVar2 = pcVar2 + 4;\n        __format = "%.12s %.4s";\n      }" ({ "{") (expression_statement "pcVar2 = pcVar2 + 4;" (assignment_expression "pcVar2 = pcVar2 + 4" (identifier "pcVar2") (= "=") (binary_expression "pcVar2 + 4" (identifier "pcVar2") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "__format = "%.12s %.4s";" (assignment_expression "__format = "%.12s %.4s"" (identifier "__format") (= "=") (string_literal ""%.12s %.4s"" (" """) (string_content "%.12s %.4s") (" """))) (; ";")) (} "}")))) (expression_statement "sprintf(local_a4,__format,pcVar2);" (call_expression "sprintf(local_a4,__format,pcVar2)" (identifier "sprintf") (argument_list "(local_a4,__format,pcVar2)" (( "(") (identifier "local_a4") (, ",") (identifier "__format") (, ",") (identifier "pcVar2") () ")"))) (; ";")) (expression_statement "FUN_00013330(local_6c,&local_af);" (call_expression "FUN_00013330(local_6c,&local_af)" (identifier "FUN_00013330") (argument_list "(local_6c,&local_af)" (( "(") (identifier "local_6c") (, ",") (pointer_expression "&local_af" (& "&") (identifier "local_af")) () ")"))) (; ";")) (expression_statement "local_a5 = 0;" (assignment_expression "local_a5 = 0" (identifier "local_a5") (= "=") (number_literal "0")) (; ";")) (expression_statement "fprintf(param_1,"%s %ld/%ld %6llu %s ",local_ae,local_64,local_60,local_50,local_4c,local_a4);" (call_expression "fprintf(param_1,"%s %ld/%ld %6llu %s ",local_ae,local_64,local_60,local_50,local_4c,local_a4)" (identifier "fprintf") (argument_list "(param_1,"%s %ld/%ld %6llu %s ",local_ae,local_64,local_60,local_50,local_4c,local_a4)" (( "(") (identifier "param_1") (, ",") (string_literal ""%s %ld/%ld %6llu %s "" (" """) (string_content "%s %ld/%ld %6llu %s ") (" """)) (, ",") (identifier "local_ae") (, ",") (identifier "local_64") (, ",") (identifier "local_60") (, ",") (identifier "local_50") (, ",") (identifier "local_4c") (, ",") (identifier "local_a4") () ")"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "fputs((char *)*param_2,param_1);" (call_expression "fputs((char *)*param_2,param_1)" (identifier "fputs") (argument_list "((char *)*param_2,param_1)" (( "(") (cast_expression "(char *)*param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (, ",") (identifier "param_1") () ")"))) (; ";")) (if_statement "if (param_4 != 0) {\n    if ((*(byte *)(param_2 + 0xb) & 1) == 0) {\n      iVar1 = param_2[0xd];\n      if (iVar1 == 0 && param_2[0xe] == 0) goto LAB_00012d50;\n    }\n    else {\n      iVar1 = param_2[0xf];\n      if (iVar1 == 0 && param_2[0x10] == 0) goto LAB_00012d50;\n    }\n    fprintf(param_1," 0x%lx",iVar1);\n  }" (if "if") (parenthesized_expression "(param_4 != 0)" (( "(") (binary_expression "param_4 != 0" (identifier "param_4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if ((*(byte *)(param_2 + 0xb) & 1) == 0) {\n      iVar1 = param_2[0xd];\n      if (iVar1 == 0 && param_2[0xe] == 0) goto LAB_00012d50;\n    }\n    else {\n      iVar1 = param_2[0xf];\n      if (iVar1 == 0 && param_2[0x10] == 0) goto LAB_00012d50;\n    }\n    fprintf(param_1," 0x%lx",iVar1);\n  }" ({ "{") (if_statement "if ((*(byte *)(param_2 + 0xb) & 1) == 0) {\n      iVar1 = param_2[0xd];\n      if (iVar1 == 0 && param_2[0xe] == 0) goto LAB_00012d50;\n    }\n    else {\n      iVar1 = param_2[0xf];\n      if (iVar1 == 0 && param_2[0x10] == 0) goto LAB_00012d50;\n    }" (if "if") (parenthesized_expression "((*(byte *)(param_2 + 0xb) & 1) == 0)" (( "(") (binary_expression "(*(byte *)(param_2 + 0xb) & 1) == 0" (parenthesized_expression "(*(byte *)(param_2 + 0xb) & 1)" (( "(") (binary_expression "*(byte *)(param_2 + 0xb) & 1" (pointer_expression "*(byte *)(param_2 + 0xb)" (* "*") (cast_expression "(byte *)(param_2 + 0xb)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xb)" (( "(") (binary_expression "param_2 + 0xb" (identifier "param_2") (+ "+") (number_literal "0xb")) () ")")))) (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = param_2[0xd];\n      if (iVar1 == 0 && param_2[0xe] == 0) goto LAB_00012d50;\n    }" ({ "{") (expression_statement "iVar1 = param_2[0xd];" (assignment_expression "iVar1 = param_2[0xd]" (identifier "iVar1") (= "=") (subscript_expression "param_2[0xd]" (identifier "param_2") ([ "[") (number_literal "0xd") (] "]"))) (; ";")) (if_statement "if (iVar1 == 0 && param_2[0xe] == 0) goto LAB_00012d50;" (if "if") (parenthesized_expression "(iVar1 == 0 && param_2[0xe] == 0)" (( "(") (binary_expression "iVar1 == 0 && param_2[0xe] == 0" (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) (&& "&&") (binary_expression "param_2[0xe] == 0" (subscript_expression "param_2[0xe]" (identifier "param_2") ([ "[") (number_literal "0xe") (] "]")) (== "==") (number_literal "0"))) () ")")) (goto_statement "goto LAB_00012d50;" (goto "goto") (statement_identifier "LAB_00012d50") (; ";"))) (} "}")) (else_clause "else {\n      iVar1 = param_2[0xf];\n      if (iVar1 == 0 && param_2[0x10] == 0) goto LAB_00012d50;\n    }" (else "else") (compound_statement "{\n      iVar1 = param_2[0xf];\n      if (iVar1 == 0 && param_2[0x10] == 0) goto LAB_00012d50;\n    }" ({ "{") (expression_statement "iVar1 = param_2[0xf];" (assignment_expression "iVar1 = param_2[0xf]" (identifier "iVar1") (= "=") (subscript_expression "param_2[0xf]" (identifier "param_2") ([ "[") (number_literal "0xf") (] "]"))) (; ";")) (if_statement "if (iVar1 == 0 && param_2[0x10] == 0) goto LAB_00012d50;" (if "if") (parenthesized_expression "(iVar1 == 0 && param_2[0x10] == 0)" (( "(") (binary_expression "iVar1 == 0 && param_2[0x10] == 0" (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) (&& "&&") (binary_expression "param_2[0x10] == 0" (subscript_expression "param_2[0x10]" (identifier "param_2") ([ "[") (number_literal "0x10") (] "]")) (== "==") (number_literal "0"))) () ")")) (goto_statement "goto LAB_00012d50;" (goto "goto") (statement_identifier "LAB_00012d50") (; ";"))) (} "}")))) (expression_statement "fprintf(param_1," 0x%lx",iVar1);" (call_expression "fprintf(param_1," 0x%lx",iVar1)" (identifier "fprintf") (argument_list "(param_1," 0x%lx",iVar1)" (( "(") (identifier "param_1") (, ",") (string_literal "" 0x%lx"" (" """) (string_content " 0x%lx") (" """)) (, ",") (identifier "iVar1") () ")"))) (; ";")) (} "}"))) (labeled_statement "LAB_00012d50:\n  fputc(10,param_1);" (statement_identifier "LAB_00012d50") (: ":") (expression_statement "fputc(10,param_1);" (call_expression "fputc(10,param_1)" (identifier "fputc") (argument_list "(10,param_1)" (( "(") (number_literal "10") (, ",") (identifier "param_1") () ")"))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *file,type_2 *abfd,type_3 var_1,type_3 var_11)

{
  int var_2;
  char *var_4;
  char *__format;
  type_4 when;
  char var_9 [11];
  char timebuf [40];
  type_5 buf;
  
  if (var_1 != 0) {
    var_2 = (*abfd->xvec->_bfd_stat_arch_elt)(abfd,&buf);
    if (var_2 == 0) {
      when = buf.st_mtim.tv_sec;
      var_4 = var_3(&when);
      if (var_4 == (char *)0x0) {
        var_4 = (char *)0x5;
        __format = (char *)var_5(0,"<time data corrupt>",5);
      }
      else {
        var_4 = var_4 + 4;
        __format = "%.12s %.4s";
      }
      var_6(timebuf,__format,var_4);
      var_7(buf.st_mode,var_9);
      var_9[10] = '\0';
      var_8((type_1 *)file,"%s %ld/%ld %6llu %s ",var_9 + 1,buf.st_uid,buf.st_gid,
              (type_6)buf.st_size,buf.st_size._4_4_,timebuf);
    }
  }
  var_10(abfd->filename,(type_1 *)file);
  if (var_11 != 0) {
    if ((abfd->field_0x2c & 1) == 0) {
      var_2 = (int)abfd->origin;
      if (var_2 == 0 && *(int *)((int)&abfd->origin + 4) == 0) goto LAB_00012d50;
    }
    else {
      var_2 = (int)abfd->proxy_origin;
      if (var_2 == 0 && *(int *)((int)&abfd->proxy_origin + 4) == 0) goto LAB_00012d50;
    }
    var_8((type_1 *)file," 0x%lx",var_2);
  }
LAB_00012d50:
  var_12(10,(type_1 *)file);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))))) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (number_literal))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (identifier) (identifier) (identifier) (identifier) (identifier) (identifier)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_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: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) consequence: (goto_statement label: (statement_identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) consequence: (goto_statement label: (statement_identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (identifier)))))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier))))) (return_statement))))

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

void MASKED(FILE *param_1,undefined4 *param_2,int param_3,int param_4)

{
  int iVar1;
  char *pcVar2;
  char *__format;
  time_t local_b4;
  undefined1 local_af;
  undefined1 local_ae [9];
  undefined1 local_a5;
  char local_a4 [40];
  undefined1 local_7c [16];
  undefined4 local_6c;
  undefined4 local_64;
  undefined4 local_60;
  undefined4 local_50;
  undefined4 local_4c;
  time_t local_34;
  undefined4 uStack_14;
  
  uStack_14 = 0x12ce9;
  if (param_3 != 0) {
    iVar1 = (**(code **)(param_2[1] + 0xfc))(param_2,local_7c);
    if (iVar1 == 0) {
      local_b4 = local_34;
      pcVar2 = ctime(&local_b4);
      if (pcVar2 == (char *)0x0) {
        pcVar2 = (char *)0x5;
        __format = (char *)dcgettext(0,"<time data corrupt>",5);
      }
      else {
        pcVar2 = pcVar2 + 4;
        __format = "%.12s %.4s";
      }
      sprintf(local_a4,__format,pcVar2);
      FUN_00013330(local_6c,&local_af);
      local_a5 = 0;
      fprintf(param_1,"%s %ld/%ld %6llu %s ",local_ae,local_64,local_60,local_50,local_4c,local_a4);
    }
  }
  fputs((char *)*param_2,param_1);
  if (param_4 != 0) {
    if ((*(byte *)(param_2 + 0xb) & 1) == 0) {
      iVar1 = param_2[0xd];
      if (iVar1 == 0 && param_2[0xe] == 0) goto LAB_00012d50;
    }
    else {
      iVar1 = param_2[0xf];
      if (iVar1 == 0 && param_2[0x10] == 0) goto LAB_00012d50;
    }
    fprintf(param_1," 0x%lx",iVar1);
  }
LAB_00012d50:
  fputc(10,param_1);
  return;
}

