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

void __regparm3 print_memory(NODE *m,NODE *func,Func_print print_func,FILE *fp)

{
  uint uVar1;
  char *pcVar2;
  size_t sVar3;
  int delim;
  
  switch(m->type) {
  default:
    (*print_func)(fp,"?");
    return;
  case Node_val:
    if (m == Nnull_string) {
      pcVar2 = "Nnull_string";
LAB_00042fe7:
      (*print_func)(fp,pcVar2);
    }
    else {
      uVar1 = m->flags;
      if ((uVar1 & 0x10) != 0) {
        pcVar2 = "%g";
        goto LAB_00042fe7;
      }
      if ((uVar1 & 2) == 0) {
        if ((uVar1 & 0x40000) == 0) {
          pcVar2 = "-?-";
          goto LAB_00042fe7;
        }
        (*print_func)(fp,"@");
        delim = 0x2f;
        sVar3 = (m->sub).val.slen;
        pcVar2 = (m->sub).val.sp;
      }
      else {
        delim = 0x22;
        sVar3 = (m->sub).val.slen;
        pcVar2 = (m->sub).val.sp;
      }
      pp_string_fp(print_func,fp,pcVar2,sVar3,delim,false);
    }
    pcVar2 = flags2str(m->flags);
    (*print_func)(fp," [%s]",pcVar2);
_L90:
    return;
  case Node_regex:
    sVar3 = (m->sub).val.slen;
    pp_string_fp(print_func,fp,*(char **)(sVar3 + 8),*(size_t *)(sVar3 + 0xc),0x2f,false);
    return;
  case Node_dynregex:
    goto _L90;
  case Node_var:
  case Node_var_array:
  case Node_var_new:
    pcVar2 = (m->sub).nodep.name;
    break;
  case Node_param_list:
    pcVar2 = (func->sub).nodep.l.lptr[*(int *)&m->sub].sub.nodep.name;
  }
  (*print_func)(fp,"%s",pcVar2);
  return;
}



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

void __regparm3 FUN_00042fa0(int *param_1,int *param_2,code *param_3,undefined4 param_4)

{
  uint uVar1;
  char *pcVar2;
  undefined4 uVar3;
  int iVar4;
  int iVar5;
  
  switch(param_1[10]) {
  default:
    (*param_3)(param_4,&DAT_000afbe5);
    return;
  case 1:
    if (param_1 == DAT_000e2a1c) {
      pcVar2 = "Nnull_string";
code_r0x00042fe7:
      (*param_3)(param_4,pcVar2);
    }
    else {
      uVar1 = param_1[0xb];
      if ((uVar1 & 0x10) != 0) {
        pcVar2 = "%g";
        goto code_r0x00042fe7;
      }
      if ((uVar1 & 2) == 0) {
        if ((uVar1 & 0x40000) == 0) {
          pcVar2 = "-?-";
          goto code_r0x00042fe7;
        }
        (*param_3)(param_4,&UNK_000a8080);
        uVar3 = 0x2f;
        iVar5 = param_1[3];
        iVar4 = param_1[2];
      }
      else {
        uVar3 = 0x22;
        iVar5 = param_1[3];
        iVar4 = param_1[2];
      }
      FUN_00078700(param_3,param_4,iVar4,iVar5,uVar3,0);
    }
    uVar3 = FUN_00051870(param_1[0xb]);
    (*param_3)(param_4,&UNK_000a8086,uVar3);
code_r0x00043020:
    return;
  case 2:
    FUN_00078700(param_3,param_4,*(undefined4 *)(param_1[3] + 8),*(undefined4 *)(param_1[3] + 0xc),
                 0x2f,0);
    return;
  case 3:
    goto code_r0x00043020;
  case 4:
  case 5:
  case 6:
    iVar5 = param_1[4];
    break;
  case 7:
    iVar5 = *(int *)(*param_1 * 0x30 + *param_2 + 0x10);
  }
  (*param_3)(param_4,&DAT_000a8701,iVar5);
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00016f80
ADD EBX,0x99d3c
SUB ESP,0x10
CMP dword ptr [EAX + 0x28],0x7
JA 0x00043090
MOV ESI,EAX
MOV EAX,dword ptr [EAX + 0x28]
MOV EDI,dword ptr [EBX + EAX*0x4 + 0xfffccbc4]
ADD EDI,EBX
JMP EDI
LEA EAX,[EBX + 0xfffd2f01]
SUB ESP,0x8
PUSH EAX
PUSH dword ptr [ESP + 0x2c]
CALL ECX
ADD ESP,0x10
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00042fa0(int *param_1,int *param_2,code *param_3,undefined4 param_4)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  \n  switch(param_1[10]) {\n  default:\n    (*param_3)(param_4,&DAT_000afbe5);\n    return;\n  case 1:\n    if (param_1 == DAT_000e2a1c) {\n      pcVar2 = "Nnull_string";\ncode_r0x00042fe7:\n      (*param_3)(param_4,pcVar2);\n    }\n    else {\n      uVar1 = param_1[0xb];\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto code_r0x00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }\n        (*param_3)(param_4,&UNK_000a8080);\n        uVar3 = 0x2f;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      else {\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      FUN_00078700(param_3,param_4,iVar4,iVar5,uVar3,0);\n    }\n    uVar3 = FUN_00051870(param_1[0xb]);\n    (*param_3)(param_4,&UNK_000a8086,uVar3);\ncode_r0x00043020:\n    return;\n  case 2:\n    FUN_00078700(param_3,param_4,*(undefined4 *)(param_1[3] + 8),*(undefined4 *)(param_1[3] + 0xc),\n                 0x2f,0);\n    return;\n  case 3:\n    goto code_r0x00043020;\n  case 4:\n  case 5:\n  case 6:\n    iVar5 = param_1[4];\n    break;\n  case 7:\n    iVar5 = *(int *)(*param_1 * 0x30 + *param_2 + 0x10);\n  }\n  (*param_3)(param_4,&DAT_000a8701,iVar5);\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00042fa0(int *param_1,int *param_2,code *param_3,undefined4 param_4)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  \n  switch(param_1[10]) {\n  default:\n    (*param_3)(param_4,&DAT_000afbe5);\n    return;\n  case 1:\n    if (param_1 == DAT_000e2a1c) {\n      pcVar2 = "Nnull_string";\ncode_r0x00042fe7:\n      (*param_3)(param_4,pcVar2);\n    }\n    else {\n      uVar1 = param_1[0xb];\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto code_r0x00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }\n        (*param_3)(param_4,&UNK_000a8080);\n        uVar3 = 0x2f;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      else {\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      FUN_00078700(param_3,param_4,iVar4,iVar5,uVar3,0);\n    }\n    uVar3 = FUN_00051870(param_1[0xb]);\n    (*param_3)(param_4,&UNK_000a8086,uVar3);\ncode_r0x00043020:\n    return;\n  case 2:\n    FUN_00078700(param_3,param_4,*(undefined4 *)(param_1[3] + 8),*(undefined4 *)(param_1[3] + 0xc),\n                 0x2f,0);\n    return;\n  case 3:\n    goto code_r0x00043020;\n  case 4:\n  case 5:\n  case 6:\n    iVar5 = param_1[4];\n    break;\n  case 7:\n    iVar5 = *(int *)(*param_1 * 0x30 + *param_2 + 0x10);\n  }\n  (*param_3)(param_4,&DAT_000a8701,iVar5);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00042fa0(int *param_1,int *param_2,code *param_3,undefined4 param_4)" identifier (parameter_list "(int *param_1,int *param_2,code *param_3,undefined4 param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "code *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  \n  switch(param_1[10]) {\n  default:\n    (*param_3)(param_4,&DAT_000afbe5);\n    return;\n  case 1:\n    if (param_1 == DAT_000e2a1c) {\n      pcVar2 = "Nnull_string";\ncode_r0x00042fe7:\n      (*param_3)(param_4,pcVar2);\n    }\n    else {\n      uVar1 = param_1[0xb];\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto code_r0x00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }\n        (*param_3)(param_4,&UNK_000a8080);\n        uVar3 = 0x2f;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      else {\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      FUN_00078700(param_3,param_4,iVar4,iVar5,uVar3,0);\n    }\n    uVar3 = FUN_00051870(param_1[0xb]);\n    (*param_3)(param_4,&UNK_000a8086,uVar3);\ncode_r0x00043020:\n    return;\n  case 2:\n    FUN_00078700(param_3,param_4,*(undefined4 *)(param_1[3] + 8),*(undefined4 *)(param_1[3] + 0xc),\n                 0x2f,0);\n    return;\n  case 3:\n    goto code_r0x00043020;\n  case 4:\n  case 5:\n  case 6:\n    iVar5 = param_1[4];\n    break;\n  case 7:\n    iVar5 = *(int *)(*param_1 * 0x30 + *param_2 + 0x10);\n  }\n  (*param_3)(param_4,&DAT_000a8701,iVar5);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (switch_statement "switch(param_1[10]) {\n  default:\n    (*param_3)(param_4,&DAT_000afbe5);\n    return;\n  case 1:\n    if (param_1 == DAT_000e2a1c) {\n      pcVar2 = "Nnull_string";\ncode_r0x00042fe7:\n      (*param_3)(param_4,pcVar2);\n    }\n    else {\n      uVar1 = param_1[0xb];\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto code_r0x00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }\n        (*param_3)(param_4,&UNK_000a8080);\n        uVar3 = 0x2f;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      else {\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      FUN_00078700(param_3,param_4,iVar4,iVar5,uVar3,0);\n    }\n    uVar3 = FUN_00051870(param_1[0xb]);\n    (*param_3)(param_4,&UNK_000a8086,uVar3);\ncode_r0x00043020:\n    return;\n  case 2:\n    FUN_00078700(param_3,param_4,*(undefined4 *)(param_1[3] + 8),*(undefined4 *)(param_1[3] + 0xc),\n                 0x2f,0);\n    return;\n  case 3:\n    goto code_r0x00043020;\n  case 4:\n  case 5:\n  case 6:\n    iVar5 = param_1[4];\n    break;\n  case 7:\n    iVar5 = *(int *)(*param_1 * 0x30 + *param_2 + 0x10);\n  }" switch (parenthesized_expression "(param_1[10])" ( (subscript_expression "param_1[10]" identifier [ number_literal ]) )) (compound_statement "{\n  default:\n    (*param_3)(param_4,&DAT_000afbe5);\n    return;\n  case 1:\n    if (param_1 == DAT_000e2a1c) {\n      pcVar2 = "Nnull_string";\ncode_r0x00042fe7:\n      (*param_3)(param_4,pcVar2);\n    }\n    else {\n      uVar1 = param_1[0xb];\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto code_r0x00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }\n        (*param_3)(param_4,&UNK_000a8080);\n        uVar3 = 0x2f;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      else {\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      FUN_00078700(param_3,param_4,iVar4,iVar5,uVar3,0);\n    }\n    uVar3 = FUN_00051870(param_1[0xb]);\n    (*param_3)(param_4,&UNK_000a8086,uVar3);\ncode_r0x00043020:\n    return;\n  case 2:\n    FUN_00078700(param_3,param_4,*(undefined4 *)(param_1[3] + 8),*(undefined4 *)(param_1[3] + 0xc),\n                 0x2f,0);\n    return;\n  case 3:\n    goto code_r0x00043020;\n  case 4:\n  case 5:\n  case 6:\n    iVar5 = param_1[4];\n    break;\n  case 7:\n    iVar5 = *(int *)(*param_1 * 0x30 + *param_2 + 0x10);\n  }" { (case_statement "default:\n    (*param_3)(param_4,&DAT_000afbe5);\n    return;" default : (expression_statement "(*param_3)(param_4,&DAT_000afbe5);" (call_expression "(*param_3)(param_4,&DAT_000afbe5)" (parenthesized_expression "(*param_3)" ( (pointer_expression "*param_3" * identifier) )) (argument_list "(param_4,&DAT_000afbe5)" ( identifier , (pointer_expression "&DAT_000afbe5" & identifier) ))) ;) (return_statement "return;" return ;)) (case_statement "case 1:\n    if (param_1 == DAT_000e2a1c) {\n      pcVar2 = "Nnull_string";\ncode_r0x00042fe7:\n      (*param_3)(param_4,pcVar2);\n    }\n    else {\n      uVar1 = param_1[0xb];\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto code_r0x00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }\n        (*param_3)(param_4,&UNK_000a8080);\n        uVar3 = 0x2f;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      else {\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      FUN_00078700(param_3,param_4,iVar4,iVar5,uVar3,0);\n    }\n    uVar3 = FUN_00051870(param_1[0xb]);\n    (*param_3)(param_4,&UNK_000a8086,uVar3);\ncode_r0x00043020:\n    return;" case number_literal : (if_statement "if (param_1 == DAT_000e2a1c) {\n      pcVar2 = "Nnull_string";\ncode_r0x00042fe7:\n      (*param_3)(param_4,pcVar2);\n    }\n    else {\n      uVar1 = param_1[0xb];\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto code_r0x00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }\n        (*param_3)(param_4,&UNK_000a8080);\n        uVar3 = 0x2f;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      else {\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      FUN_00078700(param_3,param_4,iVar4,iVar5,uVar3,0);\n    }" if (parenthesized_expression "(param_1 == DAT_000e2a1c)" ( (binary_expression "param_1 == DAT_000e2a1c" identifier == identifier) )) (compound_statement "{\n      pcVar2 = "Nnull_string";\ncode_r0x00042fe7:\n      (*param_3)(param_4,pcVar2);\n    }" { (expression_statement "pcVar2 = "Nnull_string";" (assignment_expression "pcVar2 = "Nnull_string"" identifier = (string_literal ""Nnull_string"" " string_content ")) ;) (labeled_statement "code_r0x00042fe7:\n      (*param_3)(param_4,pcVar2);" statement_identifier : (expression_statement "(*param_3)(param_4,pcVar2);" (call_expression "(*param_3)(param_4,pcVar2)" (parenthesized_expression "(*param_3)" ( (pointer_expression "*param_3" * identifier) )) (argument_list "(param_4,pcVar2)" ( identifier , identifier ))) ;)) }) (else_clause "else {\n      uVar1 = param_1[0xb];\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto code_r0x00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }\n        (*param_3)(param_4,&UNK_000a8080);\n        uVar3 = 0x2f;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      else {\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      FUN_00078700(param_3,param_4,iVar4,iVar5,uVar3,0);\n    }" else (compound_statement "{\n      uVar1 = param_1[0xb];\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto code_r0x00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }\n        (*param_3)(param_4,&UNK_000a8080);\n        uVar3 = 0x2f;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      else {\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      FUN_00078700(param_3,param_4,iVar4,iVar5,uVar3,0);\n    }" { (expression_statement "uVar1 = param_1[0xb];" (assignment_expression "uVar1 = param_1[0xb]" identifier = (subscript_expression "param_1[0xb]" identifier [ number_literal ])) ;) (if_statement "if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto code_r0x00042fe7;\n      }" if (parenthesized_expression "((uVar1 & 0x10) != 0)" ( (binary_expression "(uVar1 & 0x10) != 0" (parenthesized_expression "(uVar1 & 0x10)" ( (binary_expression "uVar1 & 0x10" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        pcVar2 = "%g";\n        goto code_r0x00042fe7;\n      }" { (expression_statement "pcVar2 = "%g";" (assignment_expression "pcVar2 = "%g"" identifier = (string_literal ""%g"" " string_content ")) ;) (goto_statement "goto code_r0x00042fe7;" goto statement_identifier ;) })) (if_statement "if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }\n        (*param_3)(param_4,&UNK_000a8080);\n        uVar3 = 0x2f;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      else {\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }" if (parenthesized_expression "((uVar1 & 2) == 0)" ( (binary_expression "(uVar1 & 2) == 0" (parenthesized_expression "(uVar1 & 2)" ( (binary_expression "uVar1 & 2" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }\n        (*param_3)(param_4,&UNK_000a8080);\n        uVar3 = 0x2f;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }" { (if_statement "if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }" if (parenthesized_expression "((uVar1 & 0x40000) == 0)" ( (binary_expression "(uVar1 & 0x40000) == 0" (parenthesized_expression "(uVar1 & 0x40000)" ( (binary_expression "uVar1 & 0x40000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }" { (expression_statement "pcVar2 = "-?-";" (assignment_expression "pcVar2 = "-?-"" identifier = (string_literal ""-?-"" " string_content ")) ;) (goto_statement "goto code_r0x00042fe7;" goto statement_identifier ;) })) (expression_statement "(*param_3)(param_4,&UNK_000a8080);" (call_expression "(*param_3)(param_4,&UNK_000a8080)" (parenthesized_expression "(*param_3)" ( (pointer_expression "*param_3" * identifier) )) (argument_list "(param_4,&UNK_000a8080)" ( identifier , (pointer_expression "&UNK_000a8080" & identifier) ))) ;) (expression_statement "uVar3 = 0x2f;" (assignment_expression "uVar3 = 0x2f" identifier = number_literal) ;) (expression_statement "iVar5 = param_1[3];" (assignment_expression "iVar5 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "iVar4 = param_1[2];" (assignment_expression "iVar4 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) }) (else_clause "else {\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }" else (compound_statement "{\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }" { (expression_statement "uVar3 = 0x22;" (assignment_expression "uVar3 = 0x22" identifier = number_literal) ;) (expression_statement "iVar5 = param_1[3];" (assignment_expression "iVar5 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "iVar4 = param_1[2];" (assignment_expression "iVar4 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) }))) (expression_statement "FUN_00078700(param_3,param_4,iVar4,iVar5,uVar3,0);" (call_expression "FUN_00078700(param_3,param_4,iVar4,iVar5,uVar3,0)" identifier (argument_list "(param_3,param_4,iVar4,iVar5,uVar3,0)" ( identifier , identifier , identifier , identifier , identifier , number_literal ))) ;) }))) (expression_statement "uVar3 = FUN_00051870(param_1[0xb]);" (assignment_expression "uVar3 = FUN_00051870(param_1[0xb])" identifier = (call_expression "FUN_00051870(param_1[0xb])" identifier (argument_list "(param_1[0xb])" ( (subscript_expression "param_1[0xb]" identifier [ number_literal ]) )))) ;) (expression_statement "(*param_3)(param_4,&UNK_000a8086,uVar3);" (call_expression "(*param_3)(param_4,&UNK_000a8086,uVar3)" (parenthesized_expression "(*param_3)" ( (pointer_expression "*param_3" * identifier) )) (argument_list "(param_4,&UNK_000a8086,uVar3)" ( identifier , (pointer_expression "&UNK_000a8086" & identifier) , identifier ))) ;) (labeled_statement "code_r0x00043020:\n    return;" statement_identifier : (return_statement "return;" return ;))) (case_statement "case 2:\n    FUN_00078700(param_3,param_4,*(undefined4 *)(param_1[3] + 8),*(undefined4 *)(param_1[3] + 0xc),\n                 0x2f,0);\n    return;" case number_literal : (expression_statement "FUN_00078700(param_3,param_4,*(undefined4 *)(param_1[3] + 8),*(undefined4 *)(param_1[3] + 0xc),\n                 0x2f,0);" (call_expression "FUN_00078700(param_3,param_4,*(undefined4 *)(param_1[3] + 8),*(undefined4 *)(param_1[3] + 0xc),\n                 0x2f,0)" identifier (argument_list "(param_3,param_4,*(undefined4 *)(param_1[3] + 8),*(undefined4 *)(param_1[3] + 0xc),\n                 0x2f,0)" ( identifier , identifier , (pointer_expression "*(undefined4 *)(param_1[3] + 8)" * (cast_expression "(undefined4 *)(param_1[3] + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[3] + 8)" ( (binary_expression "param_1[3] + 8" (subscript_expression "param_1[3]" identifier [ number_literal ]) + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1[3] + 0xc)" * (cast_expression "(undefined4 *)(param_1[3] + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[3] + 0xc)" ( (binary_expression "param_1[3] + 0xc" (subscript_expression "param_1[3]" identifier [ number_literal ]) + number_literal) )))) , number_literal , number_literal ))) ;) (return_statement "return;" return ;)) (case_statement "case 3:\n    goto code_r0x00043020;" case number_literal : (goto_statement "goto code_r0x00043020;" goto statement_identifier ;)) (case_statement "case 4:" case number_literal :) (case_statement "case 5:" case number_literal :) (case_statement "case 6:\n    iVar5 = param_1[4];\n    break;" case number_literal : (expression_statement "iVar5 = param_1[4];" (assignment_expression "iVar5 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (break_statement "break;" break ;)) (case_statement "case 7:\n    iVar5 = *(int *)(*param_1 * 0x30 + *param_2 + 0x10);" case number_literal : (expression_statement "iVar5 = *(int *)(*param_1 * 0x30 + *param_2 + 0x10);" (assignment_expression "iVar5 = *(int *)(*param_1 * 0x30 + *param_2 + 0x10)" identifier = (pointer_expression "*(int *)(*param_1 * 0x30 + *param_2 + 0x10)" * (cast_expression "(int *)(*param_1 * 0x30 + *param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 * 0x30 + *param_2 + 0x10)" ( (binary_expression "*param_1 * 0x30 + *param_2 + 0x10" (binary_expression "*param_1 * 0x30 + *param_2" (binary_expression "*param_1 * 0x30" (pointer_expression "*param_1" * identifier) * number_literal) + (pointer_expression "*param_2" * identifier)) + number_literal) ))))) ;)) })) (expression_statement "(*param_3)(param_4,&DAT_000a8701,iVar5);" (call_expression "(*param_3)(param_4,&DAT_000a8701,iVar5)" (parenthesized_expression "(*param_3)" ( (pointer_expression "*param_3" * identifier) )) (argument_list "(param_4,&DAT_000a8701,iVar5)" ( identifier , (pointer_expression "&DAT_000a8701" & identifier) , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 print_memory(NODE *m,NODE *func,Func_print print_func,FILE *fp)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  size_t sVar3;\n  int delim;\n  \n  switch(m->type) {\n  default:\n    (*print_func)(fp,"?");\n    return;\n  case Node_val:\n    if (m == Nnull_string) {\n      pcVar2 = "Nnull_string";\nLAB_00042fe7:\n      (*print_func)(fp,pcVar2);\n    }\n    else {\n      uVar1 = m->flags;\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto LAB_00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto LAB_00042fe7;\n        }\n        (*print_func)(fp,"@");\n        delim = 0x2f;\n        sVar3 = (m->sub).val.slen;\n        pcVar2 = (m->sub).val.sp;\n      }\n      else {\n        delim = 0x22;\n        sVar3 = (m->sub).val.slen;\n        pcVar2 = (m->sub).val.sp;\n      }\n      pp_string_fp(print_func,fp,pcVar2,sVar3,delim,false);\n    }\n    pcVar2 = flags2str(m->flags);\n    (*print_func)(fp," [%s]",pcVar2);\n_L90:\n    return;\n  case Node_regex:\n    sVar3 = (m->sub).val.slen;\n    pp_string_fp(print_func,fp,*(char **)(sVar3 + 8),*(size_t *)(sVar3 + 0xc),0x2f,false);\n    return;\n  case Node_dynregex:\n    goto _L90;\n  case Node_var:\n  case Node_var_array:\n  case Node_var_new:\n    pcVar2 = (m->sub).nodep.name;\n    break;\n  case Node_param_list:\n    pcVar2 = (func->sub).nodep.l.lptr[*(int *)&m->sub].sub.nodep.name;\n  }\n  (*print_func)(fp,"%s",pcVar2);\n  return;\n}\n\n" comment (function_definition "void __regparm3 print_memory(NODE *m,NODE *func,Func_print print_func,FILE *fp)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  size_t sVar3;\n  int delim;\n  \n  switch(m->type) {\n  default:\n    (*print_func)(fp,"?");\n    return;\n  case Node_val:\n    if (m == Nnull_string) {\n      pcVar2 = "Nnull_string";\nLAB_00042fe7:\n      (*print_func)(fp,pcVar2);\n    }\n    else {\n      uVar1 = m->flags;\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto LAB_00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto LAB_00042fe7;\n        }\n        (*print_func)(fp,"@");\n        delim = 0x2f;\n        sVar3 = (m->sub).val.slen;\n        pcVar2 = (m->sub).val.sp;\n      }\n      else {\n        delim = 0x22;\n        sVar3 = (m->sub).val.slen;\n        pcVar2 = (m->sub).val.sp;\n      }\n      pp_string_fp(print_func,fp,pcVar2,sVar3,delim,false);\n    }\n    pcVar2 = flags2str(m->flags);\n    (*print_func)(fp," [%s]",pcVar2);\n_L90:\n    return;\n  case Node_regex:\n    sVar3 = (m->sub).val.slen;\n    pp_string_fp(print_func,fp,*(char **)(sVar3 + 8),*(size_t *)(sVar3 + 0xc),0x2f,false);\n    return;\n  case Node_dynregex:\n    goto _L90;\n  case Node_var:\n  case Node_var_array:\n  case Node_var_new:\n    pcVar2 = (m->sub).nodep.name;\n    break;\n  case Node_param_list:\n    pcVar2 = (func->sub).nodep.l.lptr[*(int *)&m->sub].sub.nodep.name;\n  }\n  (*print_func)(fp,"%s",pcVar2);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "print_memory(NODE *m,NODE *func,Func_print print_func,FILE *fp)" identifier (parameter_list "(NODE *m,NODE *func,Func_print print_func,FILE *fp)" ( (parameter_declaration "NODE *m" type_identifier (pointer_declarator "*m" * identifier)) , (parameter_declaration "NODE *func" type_identifier (pointer_declarator "*func" * identifier)) , (parameter_declaration "Func_print print_func" type_identifier identifier) , (parameter_declaration "FILE *fp" type_identifier (pointer_declarator "*fp" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  char *pcVar2;\n  size_t sVar3;\n  int delim;\n  \n  switch(m->type) {\n  default:\n    (*print_func)(fp,"?");\n    return;\n  case Node_val:\n    if (m == Nnull_string) {\n      pcVar2 = "Nnull_string";\nLAB_00042fe7:\n      (*print_func)(fp,pcVar2);\n    }\n    else {\n      uVar1 = m->flags;\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto LAB_00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto LAB_00042fe7;\n        }\n        (*print_func)(fp,"@");\n        delim = 0x2f;\n        sVar3 = (m->sub).val.slen;\n        pcVar2 = (m->sub).val.sp;\n      }\n      else {\n        delim = 0x22;\n        sVar3 = (m->sub).val.slen;\n        pcVar2 = (m->sub).val.sp;\n      }\n      pp_string_fp(print_func,fp,pcVar2,sVar3,delim,false);\n    }\n    pcVar2 = flags2str(m->flags);\n    (*print_func)(fp," [%s]",pcVar2);\n_L90:\n    return;\n  case Node_regex:\n    sVar3 = (m->sub).val.slen;\n    pp_string_fp(print_func,fp,*(char **)(sVar3 + 8),*(size_t *)(sVar3 + 0xc),0x2f,false);\n    return;\n  case Node_dynregex:\n    goto _L90;\n  case Node_var:\n  case Node_var_array:\n  case Node_var_new:\n    pcVar2 = (m->sub).nodep.name;\n    break;\n  case Node_param_list:\n    pcVar2 = (func->sub).nodep.l.lptr[*(int *)&m->sub].sub.nodep.name;\n  }\n  (*print_func)(fp,"%s",pcVar2);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "int delim;" primitive_type identifier ;) (switch_statement "switch(m->type) {\n  default:\n    (*print_func)(fp,"?");\n    return;\n  case Node_val:\n    if (m == Nnull_string) {\n      pcVar2 = "Nnull_string";\nLAB_00042fe7:\n      (*print_func)(fp,pcVar2);\n    }\n    else {\n      uVar1 = m->flags;\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto LAB_00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto LAB_00042fe7;\n        }\n        (*print_func)(fp,"@");\n        delim = 0x2f;\n        sVar3 = (m->sub).val.slen;\n        pcVar2 = (m->sub).val.sp;\n      }\n      else {\n        delim = 0x22;\n        sVar3 = (m->sub).val.slen;\n        pcVar2 = (m->sub).val.sp;\n      }\n      pp_string_fp(print_func,fp,pcVar2,sVar3,delim,false);\n    }\n    pcVar2 = flags2str(m->flags);\n    (*print_func)(fp," [%s]",pcVar2);\n_L90:\n    return;\n  case Node_regex:\n    sVar3 = (m->sub).val.slen;\n    pp_string_fp(print_func,fp,*(char **)(sVar3 + 8),*(size_t *)(sVar3 + 0xc),0x2f,false);\n    return;\n  case Node_dynregex:\n    goto _L90;\n  case Node_var:\n  case Node_var_array:\n  case Node_var_new:\n    pcVar2 = (m->sub).nodep.name;\n    break;\n  case Node_param_list:\n    pcVar2 = (func->sub).nodep.l.lptr[*(int *)&m->sub].sub.nodep.name;\n  }" switch (parenthesized_expression "(m->type)" ( (field_expression "m->type" identifier -> field_identifier) )) (compound_statement "{\n  default:\n    (*print_func)(fp,"?");\n    return;\n  case Node_val:\n    if (m == Nnull_string) {\n      pcVar2 = "Nnull_string";\nLAB_00042fe7:\n      (*print_func)(fp,pcVar2);\n    }\n    else {\n      uVar1 = m->flags;\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto LAB_00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto LAB_00042fe7;\n        }\n        (*print_func)(fp,"@");\n        delim = 0x2f;\n        sVar3 = (m->sub).val.slen;\n        pcVar2 = (m->sub).val.sp;\n      }\n      else {\n        delim = 0x22;\n        sVar3 = (m->sub).val.slen;\n        pcVar2 = (m->sub).val.sp;\n      }\n      pp_string_fp(print_func,fp,pcVar2,sVar3,delim,false);\n    }\n    pcVar2 = flags2str(m->flags);\n    (*print_func)(fp," [%s]",pcVar2);\n_L90:\n    return;\n  case Node_regex:\n    sVar3 = (m->sub).val.slen;\n    pp_string_fp(print_func,fp,*(char **)(sVar3 + 8),*(size_t *)(sVar3 + 0xc),0x2f,false);\n    return;\n  case Node_dynregex:\n    goto _L90;\n  case Node_var:\n  case Node_var_array:\n  case Node_var_new:\n    pcVar2 = (m->sub).nodep.name;\n    break;\n  case Node_param_list:\n    pcVar2 = (func->sub).nodep.l.lptr[*(int *)&m->sub].sub.nodep.name;\n  }" { (case_statement "default:\n    (*print_func)(fp,"?");\n    return;" default : (expression_statement "(*print_func)(fp,"?");" (call_expression "(*print_func)(fp,"?")" (parenthesized_expression "(*print_func)" ( (pointer_expression "*print_func" * identifier) )) (argument_list "(fp,"?")" ( identifier , (string_literal ""?"" " string_content ") ))) ;) (return_statement "return;" return ;)) (case_statement "case Node_val:\n    if (m == Nnull_string) {\n      pcVar2 = "Nnull_string";\nLAB_00042fe7:\n      (*print_func)(fp,pcVar2);\n    }\n    else {\n      uVar1 = m->flags;\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto LAB_00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto LAB_00042fe7;\n        }\n        (*print_func)(fp,"@");\n        delim = 0x2f;\n        sVar3 = (m->sub).val.slen;\n        pcVar2 = (m->sub).val.sp;\n      }\n      else {\n        delim = 0x22;\n        sVar3 = (m->sub).val.slen;\n        pcVar2 = (m->sub).val.sp;\n      }\n      pp_string_fp(print_func,fp,pcVar2,sVar3,delim,false);\n    }\n    pcVar2 = flags2str(m->flags);\n    (*print_func)(fp," [%s]",pcVar2);\n_L90:\n    return;" case identifier : (if_statement "if (m == Nnull_string) {\n      pcVar2 = "Nnull_string";\nLAB_00042fe7:\n      (*print_func)(fp,pcVar2);\n    }\n    else {\n      uVar1 = m->flags;\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto LAB_00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto LAB_00042fe7;\n        }\n        (*print_func)(fp,"@");\n        delim = 0x2f;\n        sVar3 = (m->sub).val.slen;\n        pcVar2 = (m->sub).val.sp;\n      }\n      else {\n        delim = 0x22;\n        sVar3 = (m->sub).val.slen;\n        pcVar2 = (m->sub).val.sp;\n      }\n      pp_string_fp(print_func,fp,pcVar2,sVar3,delim,false);\n    }" if (parenthesized_expression "(m == Nnull_string)" ( (binary_expression "m == Nnull_string" identifier == identifier) )) (compound_statement "{\n      pcVar2 = "Nnull_string";\nLAB_00042fe7:\n      (*print_func)(fp,pcVar2);\n    }" { (expression_statement "pcVar2 = "Nnull_string";" (assignment_expression "pcVar2 = "Nnull_string"" identifier = (string_literal ""Nnull_string"" " string_content ")) ;) (labeled_statement "LAB_00042fe7:\n      (*print_func)(fp,pcVar2);" statement_identifier : (expression_statement "(*print_func)(fp,pcVar2);" (call_expression "(*print_func)(fp,pcVar2)" (parenthesized_expression "(*print_func)" ( (pointer_expression "*print_func" * identifier) )) (argument_list "(fp,pcVar2)" ( identifier , identifier ))) ;)) }) (else_clause "else {\n      uVar1 = m->flags;\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto LAB_00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto LAB_00042fe7;\n        }\n        (*print_func)(fp,"@");\n        delim = 0x2f;\n        sVar3 = (m->sub).val.slen;\n        pcVar2 = (m->sub).val.sp;\n      }\n      else {\n        delim = 0x22;\n        sVar3 = (m->sub).val.slen;\n        pcVar2 = (m->sub).val.sp;\n      }\n      pp_string_fp(print_func,fp,pcVar2,sVar3,delim,false);\n    }" else (compound_statement "{\n      uVar1 = m->flags;\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto LAB_00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto LAB_00042fe7;\n        }\n        (*print_func)(fp,"@");\n        delim = 0x2f;\n        sVar3 = (m->sub).val.slen;\n        pcVar2 = (m->sub).val.sp;\n      }\n      else {\n        delim = 0x22;\n        sVar3 = (m->sub).val.slen;\n        pcVar2 = (m->sub).val.sp;\n      }\n      pp_string_fp(print_func,fp,pcVar2,sVar3,delim,false);\n    }" { (expression_statement "uVar1 = m->flags;" (assignment_expression "uVar1 = m->flags" identifier = (field_expression "m->flags" identifier -> field_identifier)) ;) (if_statement "if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto LAB_00042fe7;\n      }" if (parenthesized_expression "((uVar1 & 0x10) != 0)" ( (binary_expression "(uVar1 & 0x10) != 0" (parenthesized_expression "(uVar1 & 0x10)" ( (binary_expression "uVar1 & 0x10" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        pcVar2 = "%g";\n        goto LAB_00042fe7;\n      }" { (expression_statement "pcVar2 = "%g";" (assignment_expression "pcVar2 = "%g"" identifier = (string_literal ""%g"" " string_content ")) ;) (goto_statement "goto LAB_00042fe7;" goto statement_identifier ;) })) (if_statement "if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto LAB_00042fe7;\n        }\n        (*print_func)(fp,"@");\n        delim = 0x2f;\n        sVar3 = (m->sub).val.slen;\n        pcVar2 = (m->sub).val.sp;\n      }\n      else {\n        delim = 0x22;\n        sVar3 = (m->sub).val.slen;\n        pcVar2 = (m->sub).val.sp;\n      }" if (parenthesized_expression "((uVar1 & 2) == 0)" ( (binary_expression "(uVar1 & 2) == 0" (parenthesized_expression "(uVar1 & 2)" ( (binary_expression "uVar1 & 2" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto LAB_00042fe7;\n        }\n        (*print_func)(fp,"@");\n        delim = 0x2f;\n        sVar3 = (m->sub).val.slen;\n        pcVar2 = (m->sub).val.sp;\n      }" { (if_statement "if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto LAB_00042fe7;\n        }" if (parenthesized_expression "((uVar1 & 0x40000) == 0)" ( (binary_expression "(uVar1 & 0x40000) == 0" (parenthesized_expression "(uVar1 & 0x40000)" ( (binary_expression "uVar1 & 0x40000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n          pcVar2 = "-?-";\n          goto LAB_00042fe7;\n        }" { (expression_statement "pcVar2 = "-?-";" (assignment_expression "pcVar2 = "-?-"" identifier = (string_literal ""-?-"" " string_content ")) ;) (goto_statement "goto LAB_00042fe7;" goto statement_identifier ;) })) (expression_statement "(*print_func)(fp,"@");" (call_expression "(*print_func)(fp,"@")" (parenthesized_expression "(*print_func)" ( (pointer_expression "*print_func" * identifier) )) (argument_list "(fp,"@")" ( identifier , (string_literal ""@"" " string_content ") ))) ;) (expression_statement "delim = 0x2f;" (assignment_expression "delim = 0x2f" identifier = number_literal) ;) (expression_statement "sVar3 = (m->sub).val.slen;" (assignment_expression "sVar3 = (m->sub).val.slen" identifier = (field_expression "(m->sub).val.slen" (field_expression "(m->sub).val" (parenthesized_expression "(m->sub)" ( (field_expression "m->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "pcVar2 = (m->sub).val.sp;" (assignment_expression "pcVar2 = (m->sub).val.sp" identifier = (field_expression "(m->sub).val.sp" (field_expression "(m->sub).val" (parenthesized_expression "(m->sub)" ( (field_expression "m->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) }) (else_clause "else {\n        delim = 0x22;\n        sVar3 = (m->sub).val.slen;\n        pcVar2 = (m->sub).val.sp;\n      }" else (compound_statement "{\n        delim = 0x22;\n        sVar3 = (m->sub).val.slen;\n        pcVar2 = (m->sub).val.sp;\n      }" { (expression_statement "delim = 0x22;" (assignment_expression "delim = 0x22" identifier = number_literal) ;) (expression_statement "sVar3 = (m->sub).val.slen;" (assignment_expression "sVar3 = (m->sub).val.slen" identifier = (field_expression "(m->sub).val.slen" (field_expression "(m->sub).val" (parenthesized_expression "(m->sub)" ( (field_expression "m->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "pcVar2 = (m->sub).val.sp;" (assignment_expression "pcVar2 = (m->sub).val.sp" identifier = (field_expression "(m->sub).val.sp" (field_expression "(m->sub).val" (parenthesized_expression "(m->sub)" ( (field_expression "m->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) }))) (expression_statement "pp_string_fp(print_func,fp,pcVar2,sVar3,delim,false);" (call_expression "pp_string_fp(print_func,fp,pcVar2,sVar3,delim,false)" identifier (argument_list "(print_func,fp,pcVar2,sVar3,delim,false)" ( identifier , identifier , identifier , identifier , identifier , false ))) ;) }))) (expression_statement "pcVar2 = flags2str(m->flags);" (assignment_expression "pcVar2 = flags2str(m->flags)" identifier = (call_expression "flags2str(m->flags)" identifier (argument_list "(m->flags)" ( (field_expression "m->flags" identifier -> field_identifier) )))) ;) (expression_statement "(*print_func)(fp," [%s]",pcVar2);" (call_expression "(*print_func)(fp," [%s]",pcVar2)" (parenthesized_expression "(*print_func)" ( (pointer_expression "*print_func" * identifier) )) (argument_list "(fp," [%s]",pcVar2)" ( identifier , (string_literal "" [%s]"" " string_content ") , identifier ))) ;) (labeled_statement "_L90:\n    return;" statement_identifier : (return_statement "return;" return ;))) (case_statement "case Node_regex:\n    sVar3 = (m->sub).val.slen;\n    pp_string_fp(print_func,fp,*(char **)(sVar3 + 8),*(size_t *)(sVar3 + 0xc),0x2f,false);\n    return;" case identifier : (expression_statement "sVar3 = (m->sub).val.slen;" (assignment_expression "sVar3 = (m->sub).val.slen" identifier = (field_expression "(m->sub).val.slen" (field_expression "(m->sub).val" (parenthesized_expression "(m->sub)" ( (field_expression "m->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "pp_string_fp(print_func,fp,*(char **)(sVar3 + 8),*(size_t *)(sVar3 + 0xc),0x2f,false);" (call_expression "pp_string_fp(print_func,fp,*(char **)(sVar3 + 8),*(size_t *)(sVar3 + 0xc),0x2f,false)" identifier (argument_list "(print_func,fp,*(char **)(sVar3 + 8),*(size_t *)(sVar3 + 0xc),0x2f,false)" ( identifier , identifier , (pointer_expression "*(char **)(sVar3 + 8)" * (cast_expression "(char **)(sVar3 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(sVar3 + 8)" ( (binary_expression "sVar3 + 8" identifier + number_literal) )))) , (pointer_expression "*(size_t *)(sVar3 + 0xc)" * (cast_expression "(size_t *)(sVar3 + 0xc)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(sVar3 + 0xc)" ( (binary_expression "sVar3 + 0xc" identifier + number_literal) )))) , number_literal , false ))) ;) (return_statement "return;" return ;)) (case_statement "case Node_dynregex:\n    goto _L90;" case identifier : (goto_statement "goto _L90;" goto statement_identifier ;)) (case_statement "case Node_var:" case identifier :) (case_statement "case Node_var_array:" case identifier :) (case_statement "case Node_var_new:\n    pcVar2 = (m->sub).nodep.name;\n    break;" case identifier : (expression_statement "pcVar2 = (m->sub).nodep.name;" (assignment_expression "pcVar2 = (m->sub).nodep.name" identifier = (field_expression "(m->sub).nodep.name" (field_expression "(m->sub).nodep" (parenthesized_expression "(m->sub)" ( (field_expression "m->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (break_statement "break;" break ;)) (case_statement "case Node_param_list:\n    pcVar2 = (func->sub).nodep.l.lptr[*(int *)&m->sub].sub.nodep.name;" case identifier : (expression_statement "pcVar2 = (func->sub).nodep.l.lptr[*(int *)&m->sub].sub.nodep.name;" (assignment_expression "pcVar2 = (func->sub).nodep.l.lptr[*(int *)&m->sub].sub.nodep.name" identifier = (field_expression "(func->sub).nodep.l.lptr[*(int *)&m->sub].sub.nodep.name" (field_expression "(func->sub).nodep.l.lptr[*(int *)&m->sub].sub.nodep" (field_expression "(func->sub).nodep.l.lptr[*(int *)&m->sub].sub" (subscript_expression "(func->sub).nodep.l.lptr[*(int *)&m->sub]" (field_expression "(func->sub).nodep.l.lptr" (field_expression "(func->sub).nodep.l" (field_expression "(func->sub).nodep" (parenthesized_expression "(func->sub)" ( (field_expression "func->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) [ (pointer_expression "*(int *)&m->sub" * (cast_expression "(int *)&m->sub" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&m->sub" & (field_expression "m->sub" identifier -> field_identifier)))) ]) . field_identifier) . field_identifier) . field_identifier)) ;)) })) (expression_statement "(*print_func)(fp,"%s",pcVar2);" (call_expression "(*print_func)(fp,"%s",pcVar2)" (parenthesized_expression "(*print_func)" ( (pointer_expression "*print_func" * identifier) )) (argument_list "(fp,"%s",pcVar2)" ( identifier , (string_literal ""%s"" " string_content ") , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00042fa0(int *param_1,int *param_2,code *param_3,undefined4 param_4)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  \n  switch(param_1[10]) {\n  default:\n    (*param_3)(param_4,&DAT_000afbe5);\n    return;\n  case 1:\n    if (param_1 == DAT_000e2a1c) {\n      pcVar2 = "Nnull_string";\ncode_r0x00042fe7:\n      (*param_3)(param_4,pcVar2);\n    }\n    else {\n      uVar1 = param_1[0xb];\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto code_r0x00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }\n        (*param_3)(param_4,&UNK_000a8080);\n        uVar3 = 0x2f;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      else {\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      FUN_00078700(param_3,param_4,iVar4,iVar5,uVar3,0);\n    }\n    uVar3 = FUN_00051870(param_1[0xb]);\n    (*param_3)(param_4,&UNK_000a8086,uVar3);\ncode_r0x00043020:\n    return;\n  case 2:\n    FUN_00078700(param_3,param_4,*(undefined4 *)(param_1[3] + 8),*(undefined4 *)(param_1[3] + 0xc),\n                 0x2f,0);\n    return;\n  case 3:\n    goto code_r0x00043020;\n  case 4:\n  case 5:\n  case 6:\n    iVar5 = param_1[4];\n    break;\n  case 7:\n    iVar5 = *(int *)(*param_1 * 0x30 + *param_2 + 0x10);\n  }\n  (*param_3)(param_4,&DAT_000a8701,iVar5);\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00042fa0(int *param_1,int *param_2,code *param_3,undefined4 param_4)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  \n  switch(param_1[10]) {\n  default:\n    (*param_3)(param_4,&DAT_000afbe5);\n    return;\n  case 1:\n    if (param_1 == DAT_000e2a1c) {\n      pcVar2 = "Nnull_string";\ncode_r0x00042fe7:\n      (*param_3)(param_4,pcVar2);\n    }\n    else {\n      uVar1 = param_1[0xb];\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto code_r0x00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }\n        (*param_3)(param_4,&UNK_000a8080);\n        uVar3 = 0x2f;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      else {\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      FUN_00078700(param_3,param_4,iVar4,iVar5,uVar3,0);\n    }\n    uVar3 = FUN_00051870(param_1[0xb]);\n    (*param_3)(param_4,&UNK_000a8086,uVar3);\ncode_r0x00043020:\n    return;\n  case 2:\n    FUN_00078700(param_3,param_4,*(undefined4 *)(param_1[3] + 8),*(undefined4 *)(param_1[3] + 0xc),\n                 0x2f,0);\n    return;\n  case 3:\n    goto code_r0x00043020;\n  case 4:\n  case 5:\n  case 6:\n    iVar5 = param_1[4];\n    break;\n  case 7:\n    iVar5 = *(int *)(*param_1 * 0x30 + *param_2 + 0x10);\n  }\n  (*param_3)(param_4,&DAT_000a8701,iVar5);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00042fa0(int *param_1,int *param_2,code *param_3,undefined4 param_4)" identifier (parameter_list "(int *param_1,int *param_2,code *param_3,undefined4 param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "code *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  \n  switch(param_1[10]) {\n  default:\n    (*param_3)(param_4,&DAT_000afbe5);\n    return;\n  case 1:\n    if (param_1 == DAT_000e2a1c) {\n      pcVar2 = "Nnull_string";\ncode_r0x00042fe7:\n      (*param_3)(param_4,pcVar2);\n    }\n    else {\n      uVar1 = param_1[0xb];\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto code_r0x00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }\n        (*param_3)(param_4,&UNK_000a8080);\n        uVar3 = 0x2f;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      else {\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      FUN_00078700(param_3,param_4,iVar4,iVar5,uVar3,0);\n    }\n    uVar3 = FUN_00051870(param_1[0xb]);\n    (*param_3)(param_4,&UNK_000a8086,uVar3);\ncode_r0x00043020:\n    return;\n  case 2:\n    FUN_00078700(param_3,param_4,*(undefined4 *)(param_1[3] + 8),*(undefined4 *)(param_1[3] + 0xc),\n                 0x2f,0);\n    return;\n  case 3:\n    goto code_r0x00043020;\n  case 4:\n  case 5:\n  case 6:\n    iVar5 = param_1[4];\n    break;\n  case 7:\n    iVar5 = *(int *)(*param_1 * 0x30 + *param_2 + 0x10);\n  }\n  (*param_3)(param_4,&DAT_000a8701,iVar5);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (switch_statement "switch(param_1[10]) {\n  default:\n    (*param_3)(param_4,&DAT_000afbe5);\n    return;\n  case 1:\n    if (param_1 == DAT_000e2a1c) {\n      pcVar2 = "Nnull_string";\ncode_r0x00042fe7:\n      (*param_3)(param_4,pcVar2);\n    }\n    else {\n      uVar1 = param_1[0xb];\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto code_r0x00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }\n        (*param_3)(param_4,&UNK_000a8080);\n        uVar3 = 0x2f;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      else {\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      FUN_00078700(param_3,param_4,iVar4,iVar5,uVar3,0);\n    }\n    uVar3 = FUN_00051870(param_1[0xb]);\n    (*param_3)(param_4,&UNK_000a8086,uVar3);\ncode_r0x00043020:\n    return;\n  case 2:\n    FUN_00078700(param_3,param_4,*(undefined4 *)(param_1[3] + 8),*(undefined4 *)(param_1[3] + 0xc),\n                 0x2f,0);\n    return;\n  case 3:\n    goto code_r0x00043020;\n  case 4:\n  case 5:\n  case 6:\n    iVar5 = param_1[4];\n    break;\n  case 7:\n    iVar5 = *(int *)(*param_1 * 0x30 + *param_2 + 0x10);\n  }" switch (parenthesized_expression "(param_1[10])" ( (subscript_expression "param_1[10]" identifier [ number_literal ]) )) (compound_statement "{\n  default:\n    (*param_3)(param_4,&DAT_000afbe5);\n    return;\n  case 1:\n    if (param_1 == DAT_000e2a1c) {\n      pcVar2 = "Nnull_string";\ncode_r0x00042fe7:\n      (*param_3)(param_4,pcVar2);\n    }\n    else {\n      uVar1 = param_1[0xb];\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto code_r0x00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }\n        (*param_3)(param_4,&UNK_000a8080);\n        uVar3 = 0x2f;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      else {\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      FUN_00078700(param_3,param_4,iVar4,iVar5,uVar3,0);\n    }\n    uVar3 = FUN_00051870(param_1[0xb]);\n    (*param_3)(param_4,&UNK_000a8086,uVar3);\ncode_r0x00043020:\n    return;\n  case 2:\n    FUN_00078700(param_3,param_4,*(undefined4 *)(param_1[3] + 8),*(undefined4 *)(param_1[3] + 0xc),\n                 0x2f,0);\n    return;\n  case 3:\n    goto code_r0x00043020;\n  case 4:\n  case 5:\n  case 6:\n    iVar5 = param_1[4];\n    break;\n  case 7:\n    iVar5 = *(int *)(*param_1 * 0x30 + *param_2 + 0x10);\n  }" { (case_statement "default:\n    (*param_3)(param_4,&DAT_000afbe5);\n    return;" default : (expression_statement "(*param_3)(param_4,&DAT_000afbe5);" (call_expression "(*param_3)(param_4,&DAT_000afbe5)" (parenthesized_expression "(*param_3)" ( (pointer_expression "*param_3" * identifier) )) (argument_list "(param_4,&DAT_000afbe5)" ( identifier , (pointer_expression "&DAT_000afbe5" & identifier) ))) ;) (return_statement "return;" return ;)) (case_statement "case 1:\n    if (param_1 == DAT_000e2a1c) {\n      pcVar2 = "Nnull_string";\ncode_r0x00042fe7:\n      (*param_3)(param_4,pcVar2);\n    }\n    else {\n      uVar1 = param_1[0xb];\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto code_r0x00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }\n        (*param_3)(param_4,&UNK_000a8080);\n        uVar3 = 0x2f;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      else {\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      FUN_00078700(param_3,param_4,iVar4,iVar5,uVar3,0);\n    }\n    uVar3 = FUN_00051870(param_1[0xb]);\n    (*param_3)(param_4,&UNK_000a8086,uVar3);\ncode_r0x00043020:\n    return;" case number_literal : (if_statement "if (param_1 == DAT_000e2a1c) {\n      pcVar2 = "Nnull_string";\ncode_r0x00042fe7:\n      (*param_3)(param_4,pcVar2);\n    }\n    else {\n      uVar1 = param_1[0xb];\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto code_r0x00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }\n        (*param_3)(param_4,&UNK_000a8080);\n        uVar3 = 0x2f;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      else {\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      FUN_00078700(param_3,param_4,iVar4,iVar5,uVar3,0);\n    }" if (parenthesized_expression "(param_1 == DAT_000e2a1c)" ( (binary_expression "param_1 == DAT_000e2a1c" identifier == identifier) )) (compound_statement "{\n      pcVar2 = "Nnull_string";\ncode_r0x00042fe7:\n      (*param_3)(param_4,pcVar2);\n    }" { (expression_statement "pcVar2 = "Nnull_string";" (assignment_expression "pcVar2 = "Nnull_string"" identifier = (string_literal ""Nnull_string"" " string_content ")) ;) (labeled_statement "code_r0x00042fe7:\n      (*param_3)(param_4,pcVar2);" statement_identifier : (expression_statement "(*param_3)(param_4,pcVar2);" (call_expression "(*param_3)(param_4,pcVar2)" (parenthesized_expression "(*param_3)" ( (pointer_expression "*param_3" * identifier) )) (argument_list "(param_4,pcVar2)" ( identifier , identifier ))) ;)) }) (else_clause "else {\n      uVar1 = param_1[0xb];\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto code_r0x00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }\n        (*param_3)(param_4,&UNK_000a8080);\n        uVar3 = 0x2f;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      else {\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      FUN_00078700(param_3,param_4,iVar4,iVar5,uVar3,0);\n    }" else (compound_statement "{\n      uVar1 = param_1[0xb];\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto code_r0x00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }\n        (*param_3)(param_4,&UNK_000a8080);\n        uVar3 = 0x2f;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      else {\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      FUN_00078700(param_3,param_4,iVar4,iVar5,uVar3,0);\n    }" { (expression_statement "uVar1 = param_1[0xb];" (assignment_expression "uVar1 = param_1[0xb]" identifier = (subscript_expression "param_1[0xb]" identifier [ number_literal ])) ;) (if_statement "if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto code_r0x00042fe7;\n      }" if (parenthesized_expression "((uVar1 & 0x10) != 0)" ( (binary_expression "(uVar1 & 0x10) != 0" (parenthesized_expression "(uVar1 & 0x10)" ( (binary_expression "uVar1 & 0x10" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        pcVar2 = "%g";\n        goto code_r0x00042fe7;\n      }" { (expression_statement "pcVar2 = "%g";" (assignment_expression "pcVar2 = "%g"" identifier = (string_literal ""%g"" " string_content ")) ;) (goto_statement "goto code_r0x00042fe7;" goto statement_identifier ;) })) (if_statement "if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }\n        (*param_3)(param_4,&UNK_000a8080);\n        uVar3 = 0x2f;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      else {\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }" if (parenthesized_expression "((uVar1 & 2) == 0)" ( (binary_expression "(uVar1 & 2) == 0" (parenthesized_expression "(uVar1 & 2)" ( (binary_expression "uVar1 & 2" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }\n        (*param_3)(param_4,&UNK_000a8080);\n        uVar3 = 0x2f;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }" { (if_statement "if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }" if (parenthesized_expression "((uVar1 & 0x40000) == 0)" ( (binary_expression "(uVar1 & 0x40000) == 0" (parenthesized_expression "(uVar1 & 0x40000)" ( (binary_expression "uVar1 & 0x40000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }" { (expression_statement "pcVar2 = "-?-";" (assignment_expression "pcVar2 = "-?-"" identifier = (string_literal ""-?-"" " string_content ")) ;) (goto_statement "goto code_r0x00042fe7;" goto statement_identifier ;) })) (expression_statement "(*param_3)(param_4,&UNK_000a8080);" (call_expression "(*param_3)(param_4,&UNK_000a8080)" (parenthesized_expression "(*param_3)" ( (pointer_expression "*param_3" * identifier) )) (argument_list "(param_4,&UNK_000a8080)" ( identifier , (pointer_expression "&UNK_000a8080" & identifier) ))) ;) (expression_statement "uVar3 = 0x2f;" (assignment_expression "uVar3 = 0x2f" identifier = number_literal) ;) (expression_statement "iVar5 = param_1[3];" (assignment_expression "iVar5 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "iVar4 = param_1[2];" (assignment_expression "iVar4 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) }) (else_clause "else {\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }" else (compound_statement "{\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }" { (expression_statement "uVar3 = 0x22;" (assignment_expression "uVar3 = 0x22" identifier = number_literal) ;) (expression_statement "iVar5 = param_1[3];" (assignment_expression "iVar5 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "iVar4 = param_1[2];" (assignment_expression "iVar4 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) }))) (expression_statement "FUN_00078700(param_3,param_4,iVar4,iVar5,uVar3,0);" (call_expression "FUN_00078700(param_3,param_4,iVar4,iVar5,uVar3,0)" identifier (argument_list "(param_3,param_4,iVar4,iVar5,uVar3,0)" ( identifier , identifier , identifier , identifier , identifier , number_literal ))) ;) }))) (expression_statement "uVar3 = FUN_00051870(param_1[0xb]);" (assignment_expression "uVar3 = FUN_00051870(param_1[0xb])" identifier = (call_expression "FUN_00051870(param_1[0xb])" identifier (argument_list "(param_1[0xb])" ( (subscript_expression "param_1[0xb]" identifier [ number_literal ]) )))) ;) (expression_statement "(*param_3)(param_4,&UNK_000a8086,uVar3);" (call_expression "(*param_3)(param_4,&UNK_000a8086,uVar3)" (parenthesized_expression "(*param_3)" ( (pointer_expression "*param_3" * identifier) )) (argument_list "(param_4,&UNK_000a8086,uVar3)" ( identifier , (pointer_expression "&UNK_000a8086" & identifier) , identifier ))) ;) (labeled_statement "code_r0x00043020:\n    return;" statement_identifier : (return_statement "return;" return ;))) (case_statement "case 2:\n    FUN_00078700(param_3,param_4,*(undefined4 *)(param_1[3] + 8),*(undefined4 *)(param_1[3] + 0xc),\n                 0x2f,0);\n    return;" case number_literal : (expression_statement "FUN_00078700(param_3,param_4,*(undefined4 *)(param_1[3] + 8),*(undefined4 *)(param_1[3] + 0xc),\n                 0x2f,0);" (call_expression "FUN_00078700(param_3,param_4,*(undefined4 *)(param_1[3] + 8),*(undefined4 *)(param_1[3] + 0xc),\n                 0x2f,0)" identifier (argument_list "(param_3,param_4,*(undefined4 *)(param_1[3] + 8),*(undefined4 *)(param_1[3] + 0xc),\n                 0x2f,0)" ( identifier , identifier , (pointer_expression "*(undefined4 *)(param_1[3] + 8)" * (cast_expression "(undefined4 *)(param_1[3] + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[3] + 8)" ( (binary_expression "param_1[3] + 8" (subscript_expression "param_1[3]" identifier [ number_literal ]) + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1[3] + 0xc)" * (cast_expression "(undefined4 *)(param_1[3] + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[3] + 0xc)" ( (binary_expression "param_1[3] + 0xc" (subscript_expression "param_1[3]" identifier [ number_literal ]) + number_literal) )))) , number_literal , number_literal ))) ;) (return_statement "return;" return ;)) (case_statement "case 3:\n    goto code_r0x00043020;" case number_literal : (goto_statement "goto code_r0x00043020;" goto statement_identifier ;)) (case_statement "case 4:" case number_literal :) (case_statement "case 5:" case number_literal :) (case_statement "case 6:\n    iVar5 = param_1[4];\n    break;" case number_literal : (expression_statement "iVar5 = param_1[4];" (assignment_expression "iVar5 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (break_statement "break;" break ;)) (case_statement "case 7:\n    iVar5 = *(int *)(*param_1 * 0x30 + *param_2 + 0x10);" case number_literal : (expression_statement "iVar5 = *(int *)(*param_1 * 0x30 + *param_2 + 0x10);" (assignment_expression "iVar5 = *(int *)(*param_1 * 0x30 + *param_2 + 0x10)" identifier = (pointer_expression "*(int *)(*param_1 * 0x30 + *param_2 + 0x10)" * (cast_expression "(int *)(*param_1 * 0x30 + *param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 * 0x30 + *param_2 + 0x10)" ( (binary_expression "*param_1 * 0x30 + *param_2 + 0x10" (binary_expression "*param_1 * 0x30 + *param_2" (binary_expression "*param_1 * 0x30" (pointer_expression "*param_1" * identifier) * number_literal) + (pointer_expression "*param_2" * identifier)) + number_literal) ))))) ;)) })) (expression_statement "(*param_3)(param_4,&DAT_000a8701,iVar5);" (call_expression "(*param_3)(param_4,&DAT_000a8701,iVar5)" (parenthesized_expression "(*param_3)" ( (pointer_expression "*param_3" * identifier) )) (argument_list "(param_4,&DAT_000a8701,iVar5)" ( identifier , (pointer_expression "&DAT_000a8701" & identifier) , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (switch_statement switch (parenthesized_expression ( (subscript_expression IDENT [ LIT ]) )) (compound_statement { (case_statement default : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , (pointer_expression & IDENT) ))) ;) (return_statement return ;)) (case_statement case LIT : (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT ))) ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , LIT ))) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , (pointer_expression & IDENT) , IDENT ))) ;) (labeled_statement statement_identifier : (return_statement return ;))) (case_statement case LIT : (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) , LIT , LIT ))) ;) (return_statement return ;)) (case_statement case LIT : (goto_statement goto statement_identifier ;)) (case_statement case LIT :) (case_statement case LIT :) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (binary_expression (pointer_expression * IDENT) * LIT) + (pointer_expression * IDENT)) + LIT) ))))) ;)) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , (pointer_expression & IDENT) , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00042fa0(int *param_1,int *param_2,code *param_3,undefined4 param_4)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  \n  switch(param_1[10]) {\n  default:\n    (*param_3)(param_4,&DAT_000afbe5);\n    return;\n  case 1:\n    if (param_1 == DAT_000e2a1c) {\n      pcVar2 = "Nnull_string";\ncode_r0x00042fe7:\n      (*param_3)(param_4,pcVar2);\n    }\n    else {\n      uVar1 = param_1[0xb];\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto code_r0x00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }\n        (*param_3)(param_4,&UNK_000a8080);\n        uVar3 = 0x2f;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      else {\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      FUN_00078700(param_3,param_4,iVar4,iVar5,uVar3,0);\n    }\n    uVar3 = FUN_00051870(param_1[0xb]);\n    (*param_3)(param_4,&UNK_000a8086,uVar3);\ncode_r0x00043020:\n    return;\n  case 2:\n    FUN_00078700(param_3,param_4,*(undefined4 *)(param_1[3] + 8),*(undefined4 *)(param_1[3] + 0xc),\n                 0x2f,0);\n    return;\n  case 3:\n    goto code_r0x00043020;\n  case 4:\n  case 5:\n  case 6:\n    iVar5 = param_1[4];\n    break;\n  case 7:\n    iVar5 = *(int *)(*param_1 * 0x30 + *param_2 + 0x10);\n  }\n  (*param_3)(param_4,&DAT_000a8701,iVar5);\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00042fa0(int *param_1,int *param_2,code *param_3,undefined4 param_4)" (identifier "FUN_00042fa0") (parameter_list "(int *param_1,int *param_2,code *param_3,undefined4 param_4)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "code *param_3" (type_identifier "code") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  uint uVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  \n  switch(param_1[10]) {\n  default:\n    (*param_3)(param_4,&DAT_000afbe5);\n    return;\n  case 1:\n    if (param_1 == DAT_000e2a1c) {\n      pcVar2 = "Nnull_string";\ncode_r0x00042fe7:\n      (*param_3)(param_4,pcVar2);\n    }\n    else {\n      uVar1 = param_1[0xb];\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto code_r0x00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }\n        (*param_3)(param_4,&UNK_000a8080);\n        uVar3 = 0x2f;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      else {\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      FUN_00078700(param_3,param_4,iVar4,iVar5,uVar3,0);\n    }\n    uVar3 = FUN_00051870(param_1[0xb]);\n    (*param_3)(param_4,&UNK_000a8086,uVar3);\ncode_r0x00043020:\n    return;\n  case 2:\n    FUN_00078700(param_3,param_4,*(undefined4 *)(param_1[3] + 8),*(undefined4 *)(param_1[3] + 0xc),\n                 0x2f,0);\n    return;\n  case 3:\n    goto code_r0x00043020;\n  case 4:\n  case 5:\n  case 6:\n    iVar5 = param_1[4];\n    break;\n  case 7:\n    iVar5 = *(int *)(*param_1 * 0x30 + *param_2 + 0x10);\n  }\n  (*param_3)(param_4,&DAT_000a8701,iVar5);\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (switch_statement "switch(param_1[10]) {\n  default:\n    (*param_3)(param_4,&DAT_000afbe5);\n    return;\n  case 1:\n    if (param_1 == DAT_000e2a1c) {\n      pcVar2 = "Nnull_string";\ncode_r0x00042fe7:\n      (*param_3)(param_4,pcVar2);\n    }\n    else {\n      uVar1 = param_1[0xb];\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto code_r0x00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }\n        (*param_3)(param_4,&UNK_000a8080);\n        uVar3 = 0x2f;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      else {\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      FUN_00078700(param_3,param_4,iVar4,iVar5,uVar3,0);\n    }\n    uVar3 = FUN_00051870(param_1[0xb]);\n    (*param_3)(param_4,&UNK_000a8086,uVar3);\ncode_r0x00043020:\n    return;\n  case 2:\n    FUN_00078700(param_3,param_4,*(undefined4 *)(param_1[3] + 8),*(undefined4 *)(param_1[3] + 0xc),\n                 0x2f,0);\n    return;\n  case 3:\n    goto code_r0x00043020;\n  case 4:\n  case 5:\n  case 6:\n    iVar5 = param_1[4];\n    break;\n  case 7:\n    iVar5 = *(int *)(*param_1 * 0x30 + *param_2 + 0x10);\n  }" (switch "switch") (parenthesized_expression "(param_1[10])" (( "(") (subscript_expression "param_1[10]" (identifier "param_1") ([ "[") (number_literal "10") (] "]")) () ")")) (compound_statement "{\n  default:\n    (*param_3)(param_4,&DAT_000afbe5);\n    return;\n  case 1:\n    if (param_1 == DAT_000e2a1c) {\n      pcVar2 = "Nnull_string";\ncode_r0x00042fe7:\n      (*param_3)(param_4,pcVar2);\n    }\n    else {\n      uVar1 = param_1[0xb];\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto code_r0x00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }\n        (*param_3)(param_4,&UNK_000a8080);\n        uVar3 = 0x2f;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      else {\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      FUN_00078700(param_3,param_4,iVar4,iVar5,uVar3,0);\n    }\n    uVar3 = FUN_00051870(param_1[0xb]);\n    (*param_3)(param_4,&UNK_000a8086,uVar3);\ncode_r0x00043020:\n    return;\n  case 2:\n    FUN_00078700(param_3,param_4,*(undefined4 *)(param_1[3] + 8),*(undefined4 *)(param_1[3] + 0xc),\n                 0x2f,0);\n    return;\n  case 3:\n    goto code_r0x00043020;\n  case 4:\n  case 5:\n  case 6:\n    iVar5 = param_1[4];\n    break;\n  case 7:\n    iVar5 = *(int *)(*param_1 * 0x30 + *param_2 + 0x10);\n  }" ({ "{") (case_statement "default:\n    (*param_3)(param_4,&DAT_000afbe5);\n    return;" (default "default") (: ":") (expression_statement "(*param_3)(param_4,&DAT_000afbe5);" (call_expression "(*param_3)(param_4,&DAT_000afbe5)" (parenthesized_expression "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")")) (argument_list "(param_4,&DAT_000afbe5)" (( "(") (identifier "param_4") (, ",") (pointer_expression "&DAT_000afbe5" (& "&") (identifier "DAT_000afbe5")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";"))) (case_statement "case 1:\n    if (param_1 == DAT_000e2a1c) {\n      pcVar2 = "Nnull_string";\ncode_r0x00042fe7:\n      (*param_3)(param_4,pcVar2);\n    }\n    else {\n      uVar1 = param_1[0xb];\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto code_r0x00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }\n        (*param_3)(param_4,&UNK_000a8080);\n        uVar3 = 0x2f;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      else {\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      FUN_00078700(param_3,param_4,iVar4,iVar5,uVar3,0);\n    }\n    uVar3 = FUN_00051870(param_1[0xb]);\n    (*param_3)(param_4,&UNK_000a8086,uVar3);\ncode_r0x00043020:\n    return;" (case "case") (number_literal "1") (: ":") (if_statement "if (param_1 == DAT_000e2a1c) {\n      pcVar2 = "Nnull_string";\ncode_r0x00042fe7:\n      (*param_3)(param_4,pcVar2);\n    }\n    else {\n      uVar1 = param_1[0xb];\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto code_r0x00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }\n        (*param_3)(param_4,&UNK_000a8080);\n        uVar3 = 0x2f;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      else {\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      FUN_00078700(param_3,param_4,iVar4,iVar5,uVar3,0);\n    }" (if "if") (parenthesized_expression "(param_1 == DAT_000e2a1c)" (( "(") (binary_expression "param_1 == DAT_000e2a1c" (identifier "param_1") (== "==") (identifier "DAT_000e2a1c")) () ")")) (compound_statement "{\n      pcVar2 = "Nnull_string";\ncode_r0x00042fe7:\n      (*param_3)(param_4,pcVar2);\n    }" ({ "{") (expression_statement "pcVar2 = "Nnull_string";" (assignment_expression "pcVar2 = "Nnull_string"" (identifier "pcVar2") (= "=") (string_literal ""Nnull_string"" (" """) (string_content "Nnull_string") (" """))) (; ";")) (labeled_statement "code_r0x00042fe7:\n      (*param_3)(param_4,pcVar2);" (statement_identifier "code_r0x00042fe7") (: ":") (expression_statement "(*param_3)(param_4,pcVar2);" (call_expression "(*param_3)(param_4,pcVar2)" (parenthesized_expression "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")")) (argument_list "(param_4,pcVar2)" (( "(") (identifier "param_4") (, ",") (identifier "pcVar2") () ")"))) (; ";"))) (} "}")) (else_clause "else {\n      uVar1 = param_1[0xb];\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto code_r0x00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }\n        (*param_3)(param_4,&UNK_000a8080);\n        uVar3 = 0x2f;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      else {\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      FUN_00078700(param_3,param_4,iVar4,iVar5,uVar3,0);\n    }" (else "else") (compound_statement "{\n      uVar1 = param_1[0xb];\n      if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto code_r0x00042fe7;\n      }\n      if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }\n        (*param_3)(param_4,&UNK_000a8080);\n        uVar3 = 0x2f;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      else {\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      FUN_00078700(param_3,param_4,iVar4,iVar5,uVar3,0);\n    }" ({ "{") (expression_statement "uVar1 = param_1[0xb];" (assignment_expression "uVar1 = param_1[0xb]" (identifier "uVar1") (= "=") (subscript_expression "param_1[0xb]" (identifier "param_1") ([ "[") (number_literal "0xb") (] "]"))) (; ";")) (if_statement "if ((uVar1 & 0x10) != 0) {\n        pcVar2 = "%g";\n        goto code_r0x00042fe7;\n      }" (if "if") (parenthesized_expression "((uVar1 & 0x10) != 0)" (( "(") (binary_expression "(uVar1 & 0x10) != 0" (parenthesized_expression "(uVar1 & 0x10)" (( "(") (binary_expression "uVar1 & 0x10" (identifier "uVar1") (& "&") (number_literal "0x10")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        pcVar2 = "%g";\n        goto code_r0x00042fe7;\n      }" ({ "{") (expression_statement "pcVar2 = "%g";" (assignment_expression "pcVar2 = "%g"" (identifier "pcVar2") (= "=") (string_literal ""%g"" (" """) (string_content "%g") (" """))) (; ";")) (goto_statement "goto code_r0x00042fe7;" (goto "goto") (statement_identifier "code_r0x00042fe7") (; ";")) (} "}"))) (if_statement "if ((uVar1 & 2) == 0) {\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }\n        (*param_3)(param_4,&UNK_000a8080);\n        uVar3 = 0x2f;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }\n      else {\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }" (if "if") (parenthesized_expression "((uVar1 & 2) == 0)" (( "(") (binary_expression "(uVar1 & 2) == 0" (parenthesized_expression "(uVar1 & 2)" (( "(") (binary_expression "uVar1 & 2" (identifier "uVar1") (& "&") (number_literal "2")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }\n        (*param_3)(param_4,&UNK_000a8080);\n        uVar3 = 0x2f;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }" ({ "{") (if_statement "if ((uVar1 & 0x40000) == 0) {\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }" (if "if") (parenthesized_expression "((uVar1 & 0x40000) == 0)" (( "(") (binary_expression "(uVar1 & 0x40000) == 0" (parenthesized_expression "(uVar1 & 0x40000)" (( "(") (binary_expression "uVar1 & 0x40000" (identifier "uVar1") (& "&") (number_literal "0x40000")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          pcVar2 = "-?-";\n          goto code_r0x00042fe7;\n        }" ({ "{") (expression_statement "pcVar2 = "-?-";" (assignment_expression "pcVar2 = "-?-"" (identifier "pcVar2") (= "=") (string_literal ""-?-"" (" """) (string_content "-?-") (" """))) (; ";")) (goto_statement "goto code_r0x00042fe7;" (goto "goto") (statement_identifier "code_r0x00042fe7") (; ";")) (} "}"))) (expression_statement "(*param_3)(param_4,&UNK_000a8080);" (call_expression "(*param_3)(param_4,&UNK_000a8080)" (parenthesized_expression "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")")) (argument_list "(param_4,&UNK_000a8080)" (( "(") (identifier "param_4") (, ",") (pointer_expression "&UNK_000a8080" (& "&") (identifier "UNK_000a8080")) () ")"))) (; ";")) (expression_statement "uVar3 = 0x2f;" (assignment_expression "uVar3 = 0x2f" (identifier "uVar3") (= "=") (number_literal "0x2f")) (; ";")) (expression_statement "iVar5 = param_1[3];" (assignment_expression "iVar5 = param_1[3]" (identifier "iVar5") (= "=") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "iVar4 = param_1[2];" (assignment_expression "iVar4 = param_1[2]" (identifier "iVar4") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }" (else "else") (compound_statement "{\n        uVar3 = 0x22;\n        iVar5 = param_1[3];\n        iVar4 = param_1[2];\n      }" ({ "{") (expression_statement "uVar3 = 0x22;" (assignment_expression "uVar3 = 0x22" (identifier "uVar3") (= "=") (number_literal "0x22")) (; ";")) (expression_statement "iVar5 = param_1[3];" (assignment_expression "iVar5 = param_1[3]" (identifier "iVar5") (= "=") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "iVar4 = param_1[2];" (assignment_expression "iVar4 = param_1[2]" (identifier "iVar4") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (} "}")))) (expression_statement "FUN_00078700(param_3,param_4,iVar4,iVar5,uVar3,0);" (call_expression "FUN_00078700(param_3,param_4,iVar4,iVar5,uVar3,0)" (identifier "FUN_00078700") (argument_list "(param_3,param_4,iVar4,iVar5,uVar3,0)" (( "(") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "iVar4") (, ",") (identifier "iVar5") (, ",") (identifier "uVar3") (, ",") (number_literal "0") () ")"))) (; ";")) (} "}")))) (expression_statement "uVar3 = FUN_00051870(param_1[0xb]);" (assignment_expression "uVar3 = FUN_00051870(param_1[0xb])" (identifier "uVar3") (= "=") (call_expression "FUN_00051870(param_1[0xb])" (identifier "FUN_00051870") (argument_list "(param_1[0xb])" (( "(") (subscript_expression "param_1[0xb]" (identifier "param_1") ([ "[") (number_literal "0xb") (] "]")) () ")")))) (; ";")) (expression_statement "(*param_3)(param_4,&UNK_000a8086,uVar3);" (call_expression "(*param_3)(param_4,&UNK_000a8086,uVar3)" (parenthesized_expression "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")")) (argument_list "(param_4,&UNK_000a8086,uVar3)" (( "(") (identifier "param_4") (, ",") (pointer_expression "&UNK_000a8086" (& "&") (identifier "UNK_000a8086")) (, ",") (identifier "uVar3") () ")"))) (; ";")) (labeled_statement "code_r0x00043020:\n    return;" (statement_identifier "code_r0x00043020") (: ":") (return_statement "return;" (return "return") (; ";")))) (case_statement "case 2:\n    FUN_00078700(param_3,param_4,*(undefined4 *)(param_1[3] + 8),*(undefined4 *)(param_1[3] + 0xc),\n                 0x2f,0);\n    return;" (case "case") (number_literal "2") (: ":") (expression_statement "FUN_00078700(param_3,param_4,*(undefined4 *)(param_1[3] + 8),*(undefined4 *)(param_1[3] + 0xc),\n                 0x2f,0);" (call_expression "FUN_00078700(param_3,param_4,*(undefined4 *)(param_1[3] + 8),*(undefined4 *)(param_1[3] + 0xc),\n                 0x2f,0)" (identifier "FUN_00078700") (argument_list "(param_3,param_4,*(undefined4 *)(param_1[3] + 8),*(undefined4 *)(param_1[3] + 0xc),\n                 0x2f,0)" (( "(") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (pointer_expression "*(undefined4 *)(param_1[3] + 8)" (* "*") (cast_expression "(undefined4 *)(param_1[3] + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[3] + 8)" (( "(") (binary_expression "param_1[3] + 8" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (+ "+") (number_literal "8")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1[3] + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1[3] + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[3] + 0xc)" (( "(") (binary_expression "param_1[3] + 0xc" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (+ "+") (number_literal "0xc")) () ")")))) (, ",") (number_literal "0x2f") (, ",") (number_literal "0") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";"))) (case_statement "case 3:\n    goto code_r0x00043020;" (case "case") (number_literal "3") (: ":") (goto_statement "goto code_r0x00043020;" (goto "goto") (statement_identifier "code_r0x00043020") (; ";"))) (case_statement "case 4:" (case "case") (number_literal "4") (: ":")) (case_statement "case 5:" (case "case") (number_literal "5") (: ":")) (case_statement "case 6:\n    iVar5 = param_1[4];\n    break;" (case "case") (number_literal "6") (: ":") (expression_statement "iVar5 = param_1[4];" (assignment_expression "iVar5 = param_1[4]" (identifier "iVar5") (= "=") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 7:\n    iVar5 = *(int *)(*param_1 * 0x30 + *param_2 + 0x10);" (case "case") (number_literal "7") (: ":") (expression_statement "iVar5 = *(int *)(*param_1 * 0x30 + *param_2 + 0x10);" (assignment_expression "iVar5 = *(int *)(*param_1 * 0x30 + *param_2 + 0x10)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(*param_1 * 0x30 + *param_2 + 0x10)" (* "*") (cast_expression "(int *)(*param_1 * 0x30 + *param_2 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 * 0x30 + *param_2 + 0x10)" (( "(") (binary_expression "*param_1 * 0x30 + *param_2 + 0x10" (binary_expression "*param_1 * 0x30 + *param_2" (binary_expression "*param_1 * 0x30" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (* "*") (number_literal "0x30")) (+ "+") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (+ "+") (number_literal "0x10")) () ")"))))) (; ";"))) (} "}"))) (expression_statement "(*param_3)(param_4,&DAT_000a8701,iVar5);" (call_expression "(*param_3)(param_4,&DAT_000a8701,iVar5)" (parenthesized_expression "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")")) (argument_list "(param_4,&DAT_000a8701,iVar5)" (( "(") (identifier "param_4") (, ",") (pointer_expression "&DAT_000a8701" (& "&") (identifier "DAT_000a8701")) (, ",") (identifier "iVar5") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 *var_1,type_1 *func,type_2 print_func,type_3 *fp)

{
  type_4 var_3;
  char *pcVar2;
  size_t var_6;
  int delim;
  
  switch(var_1->type) {
  default:
    (*print_func)(fp,"?");
    return;
  case Node_val:
    if (var_1 == var_2) {
      pcVar2 = "Nnull_string";
LAB_00042fe7:
      (*print_func)(fp,pcVar2);
    }
    else {
      var_3 = var_1->flags;
      if ((var_3 & 0x10) != 0) {
        pcVar2 = "%g";
        goto LAB_00042fe7;
      }
      if ((var_3 & 2) == 0) {
        if ((var_3 & 0x40000) == 0) {
          pcVar2 = "-?-";
          goto LAB_00042fe7;
        }
        (*print_func)(fp,"@");
        delim = 0x2f;
        var_6 = (var_1->sub).val.slen;
        pcVar2 = (var_1->sub).val.sp;
      }
      else {
        delim = 0x22;
        var_6 = (var_1->sub).val.slen;
        pcVar2 = (var_1->sub).val.sp;
      }
      var_4(print_func,fp,pcVar2,var_6,delim,false);
    }
    pcVar2 = var_5(var_1->flags);
    (*print_func)(fp," [%s]",pcVar2);
_L90:
    return;
  case Node_regex:
    var_6 = (var_1->sub).val.slen;
    var_4(print_func,fp,*(char **)(var_6 + 8),*(size_t *)(var_6 + 0xc),0x2f,false);
    return;
  case Node_dynregex:
    goto _L90;
  case Node_var:
  case Node_var_array:
  case Node_var_new:
    pcVar2 = (var_1->sub).nodep.name;
    break;
  case Node_param_list:
    pcVar2 = (func->sub).nodep.l.lptr[*(int *)&var_1->sub].sub.nodep.name;
  }
  (*print_func)(fp,"%s",pcVar2);
  return;
}


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

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

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

{
  uint uVar1;
  char *pcVar2;
  undefined4 uVar3;
  int iVar4;
  int iVar5;
  
  switch(param_1[10]) {
  default:
    (*param_3)(param_4,&DAT_000afbe5);
    return;
  case 1:
    if (param_1 == DAT_000e2a1c) {
      pcVar2 = "Nnull_string";
code_r0x00042fe7:
      (*param_3)(param_4,pcVar2);
    }
    else {
      uVar1 = param_1[0xb];
      if ((uVar1 & 0x10) != 0) {
        pcVar2 = "%g";
        goto code_r0x00042fe7;
      }
      if ((uVar1 & 2) == 0) {
        if ((uVar1 & 0x40000) == 0) {
          pcVar2 = "-?-";
          goto code_r0x00042fe7;
        }
        (*param_3)(param_4,&UNK_000a8080);
        uVar3 = 0x2f;
        iVar5 = param_1[3];
        iVar4 = param_1[2];
      }
      else {
        uVar3 = 0x22;
        iVar5 = param_1[3];
        iVar4 = param_1[2];
      }
      FUN_00078700(param_3,param_4,iVar4,iVar5,uVar3,0);
    }
    uVar3 = FUN_00051870(param_1[0xb]);
    (*param_3)(param_4,&UNK_000a8086,uVar3);
code_r0x00043020:
    return;
  case 2:
    FUN_00078700(param_3,param_4,*(undefined4 *)(param_1[3] + 8),*(undefined4 *)(param_1[3] + 0xc),
                 0x2f,0);
    return;
  case 3:
    goto code_r0x00043020;
  case 4:
  case 5:
  case 6:
    iVar5 = param_1[4];
    break;
  case 7:
    iVar5 = *(int *)(*param_1 * 0x30 + *param_2 + 0x10);
  }
  (*param_3)(param_4,&DAT_000a8701,iVar5);
  return;
}

