
void __regparm3 treefails(tree *tree,trie *fail,trie *recourse,_Bool reverse)

{
  tree **pptVar1;
  uchar *puVar2;
  trie *ptVar3;
  trie *ptVar4;
  tree *ptVar5;
  
  if (tree == (tree *)0x0) {
    return;
  }
  treefails(tree->llink,fail,recourse,reverse);
  treefails(tree->rlink,fail,recourse,reverse);
  if (fail != (trie *)0x0) {
    do {
      ptVar5 = fail->links;
      if (ptVar5 != (tree *)0x0) {
        do {
          puVar2 = &ptVar5->label;
          if (*puVar2 == tree->label) {
            ptVar3 = tree->trie;
            ptVar4 = ptVar5->trie;
            ptVar3->fail = ptVar4;
            if (reverse) {
              return;
            }
            if (ptVar4->accepting == 0) {
              return;
            }
            if (ptVar3->accepting != 0) {
              return;
            }
            ptVar3->accepting = 0xffffffff;
            return;
          }
          pptVar1 = &ptVar5->rlink;
          ptVar5 = ptVar5->llink;
          if (*puVar2 <= tree->label) {
            ptVar5 = *pptVar1;
          }
        } while (ptVar5 != (tree *)0x0);
      }
      fail = fail->fail;
    } while (fail != (trie *)0x0);
  }
  tree->trie->fail = recourse;
  return;
}



void __regparm3 FUN_00019330(int param_1,int param_2,undefined4 param_3,char param_4)

{
  undefined4 *puVar1;
  byte *pbVar2;
  int *piVar3;
  int *piVar4;
  undefined4 *puVar5;
  
  if (param_1 == 0) {
    return;
  }
  FUN_00019330(param_4);
  FUN_00019330(param_4);
  if (param_2 != 0) {
    do {
      puVar5 = *(undefined4 **)(param_2 + 4);
      if (puVar5 != (undefined4 *)0x0) {
        do {
          pbVar2 = (byte *)(puVar5 + 3);
          if (*pbVar2 == *(byte *)(param_1 + 0xc)) {
            piVar3 = *(int **)(param_1 + 8);
            piVar4 = (int *)puVar5[2];
            piVar3[4] = (int)piVar4;
            if (param_4 != '\0') {
              return;
            }
            if (*piVar4 == 0) {
              return;
            }
            if (*piVar3 != 0) {
              return;
            }
            *piVar3 = -1;
            return;
          }
          puVar1 = puVar5 + 1;
          puVar5 = (undefined4 *)*puVar5;
          if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {
            puVar5 = (undefined4 *)*puVar1;
          }
        } while (puVar5 != (undefined4 *)0x0);
      }
      param_2 = *(int *)(param_2 + 0x10);
    } while (param_2 != 0);
  }
  *(undefined4 *)(*(int *)(param_1 + 8) + 0x10) = param_3;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
SUB ESP,0x1c
MOV EAX,dword ptr [ESP + 0x30]
MOV dword ptr [ESP + 0xc],EAX
TEST ESI,ESI
JZ 0x000193b8
SUB ESP,0xc
MOVZX EDI,AL
MOV EAX,dword ptr [ESI]
MOV EBX,EDX
PUSH EDI
MOV EBP,ECX
CALL 0x00019330
MOV EAX,dword ptr [ESI + 0x4]
MOV ECX,EBP
MOV EDX,EBX
MOV dword ptr [ESP],EDI
CALL 0x00019330
ADD ESP,0x10
TEST EBX,EBX
JZ 0x000193c7
LEA ESI,[ESI]
MOV EAX,dword ptr [EBX + 0x4]
TEST EAX,EAX
JZ 0x000193c0
MOVZX ECX,byte ptr [ESI + 0xc]
JMP 0x0001938e
MOV EDI,dword ptr [EAX]
CMP CL,DL
CMOVNC EDI,dword ptr [EAX + 0x4]
MOV EAX,EDI
TEST EDI,EDI
JZ 0x000193c0
MOVZX EDX,byte ptr [EAX + 0xc]
CMP DL,CL
JNZ 0x00019380
MOV EDX,dword ptr [ESI + 0x8]
MOV EAX,dword ptr [EAX + 0x8]
CMP byte ptr [ESP + 0xc],0x0
MOV dword ptr [EDX + 0x10],EAX
JNZ 0x000193b8
MOV ECX,dword ptr [EAX]
TEST ECX,ECX
JZ 0x000193b8
MOV EAX,dword ptr [EDX]
TEST EAX,EAX
JNZ 0x000193b8
MOV dword ptr [EDX],0xffffffff
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EBX,dword ptr [EBX + 0x10]
TEST EBX,EBX
JNZ 0x00019370
MOV EAX,dword ptr [ESI + 0x8]
MOV dword ptr [EAX + 0x10],EBP
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "void __regparm3 FUN_00019330(int param_1,int param_2,undefined4 param_3,char param_4)\n\n{\n  undefined4 *puVar1;\n  byte *pbVar2;\n  int *piVar3;\n  int *piVar4;\n  undefined4 *puVar5;\n  \n  if (param_1 == 0) {\n    return;\n  }\n  FUN_00019330(param_4);\n  FUN_00019330(param_4);\n  if (param_2 != 0) {\n    do {\n      puVar5 = *(undefined4 **)(param_2 + 4);\n      if (puVar5 != (undefined4 *)0x0) {\n        do {\n          pbVar2 = (byte *)(puVar5 + 3);\n          if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }\n          puVar1 = puVar5 + 1;\n          puVar5 = (undefined4 *)*puVar5;\n          if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }\n        } while (puVar5 != (undefined4 *)0x0);\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    } while (param_2 != 0);\n  }\n  *(undefined4 *)(*(int *)(param_1 + 8) + 0x10) = param_3;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00019330(int param_1,int param_2,undefined4 param_3,char param_4)\n\n{\n  undefined4 *puVar1;\n  byte *pbVar2;\n  int *piVar3;\n  int *piVar4;\n  undefined4 *puVar5;\n  \n  if (param_1 == 0) {\n    return;\n  }\n  FUN_00019330(param_4);\n  FUN_00019330(param_4);\n  if (param_2 != 0) {\n    do {\n      puVar5 = *(undefined4 **)(param_2 + 4);\n      if (puVar5 != (undefined4 *)0x0) {\n        do {\n          pbVar2 = (byte *)(puVar5 + 3);\n          if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }\n          puVar1 = puVar5 + 1;\n          puVar5 = (undefined4 *)*puVar5;\n          if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }\n        } while (puVar5 != (undefined4 *)0x0);\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    } while (param_2 != 0);\n  }\n  *(undefined4 *)(*(int *)(param_1 + 8) + 0x10) = param_3;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00019330(int param_1,int param_2,undefined4 param_3,char param_4)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3,char param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "char param_4" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  byte *pbVar2;\n  int *piVar3;\n  int *piVar4;\n  undefined4 *puVar5;\n  \n  if (param_1 == 0) {\n    return;\n  }\n  FUN_00019330(param_4);\n  FUN_00019330(param_4);\n  if (param_2 != 0) {\n    do {\n      puVar5 = *(undefined4 **)(param_2 + 4);\n      if (puVar5 != (undefined4 *)0x0) {\n        do {\n          pbVar2 = (byte *)(puVar5 + 3);\n          if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }\n          puVar1 = puVar5 + 1;\n          puVar5 = (undefined4 *)*puVar5;\n          if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }\n        } while (puVar5 != (undefined4 *)0x0);\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    } while (param_2 != 0);\n  }\n  *(undefined4 *)(*(int *)(param_1 + 8) + 0x10) = param_3;\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (if_statement "if (param_1 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00019330(param_4);" (call_expression "FUN_00019330(param_4)" identifier (argument_list "(param_4)" ( identifier ))) ;) (expression_statement "FUN_00019330(param_4);" (call_expression "FUN_00019330(param_4)" identifier (argument_list "(param_4)" ( identifier ))) ;) (if_statement "if (param_2 != 0) {\n    do {\n      puVar5 = *(undefined4 **)(param_2 + 4);\n      if (puVar5 != (undefined4 *)0x0) {\n        do {\n          pbVar2 = (byte *)(puVar5 + 3);\n          if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }\n          puVar1 = puVar5 + 1;\n          puVar5 = (undefined4 *)*puVar5;\n          if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }\n        } while (puVar5 != (undefined4 *)0x0);\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    } while (param_2 != 0);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      puVar5 = *(undefined4 **)(param_2 + 4);\n      if (puVar5 != (undefined4 *)0x0) {\n        do {\n          pbVar2 = (byte *)(puVar5 + 3);\n          if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }\n          puVar1 = puVar5 + 1;\n          puVar5 = (undefined4 *)*puVar5;\n          if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }\n        } while (puVar5 != (undefined4 *)0x0);\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    } while (param_2 != 0);\n  }" { (do_statement "do {\n      puVar5 = *(undefined4 **)(param_2 + 4);\n      if (puVar5 != (undefined4 *)0x0) {\n        do {\n          pbVar2 = (byte *)(puVar5 + 3);\n          if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }\n          puVar1 = puVar5 + 1;\n          puVar5 = (undefined4 *)*puVar5;\n          if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }\n        } while (puVar5 != (undefined4 *)0x0);\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    } while (param_2 != 0);" do (compound_statement "{\n      puVar5 = *(undefined4 **)(param_2 + 4);\n      if (puVar5 != (undefined4 *)0x0) {\n        do {\n          pbVar2 = (byte *)(puVar5 + 3);\n          if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }\n          puVar1 = puVar5 + 1;\n          puVar5 = (undefined4 *)*puVar5;\n          if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }\n        } while (puVar5 != (undefined4 *)0x0);\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    }" { (expression_statement "puVar5 = *(undefined4 **)(param_2 + 4);" (assignment_expression "puVar5 = *(undefined4 **)(param_2 + 4)" identifier = (pointer_expression "*(undefined4 **)(param_2 + 4)" * (cast_expression "(undefined4 **)(param_2 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (if_statement "if (puVar5 != (undefined4 *)0x0) {\n        do {\n          pbVar2 = (byte *)(puVar5 + 3);\n          if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }\n          puVar1 = puVar5 + 1;\n          puVar5 = (undefined4 *)*puVar5;\n          if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }\n        } while (puVar5 != (undefined4 *)0x0);\n      }" if (parenthesized_expression "(puVar5 != (undefined4 *)0x0)" ( (binary_expression "puVar5 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        do {\n          pbVar2 = (byte *)(puVar5 + 3);\n          if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }\n          puVar1 = puVar5 + 1;\n          puVar5 = (undefined4 *)*puVar5;\n          if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }\n        } while (puVar5 != (undefined4 *)0x0);\n      }" { (do_statement "do {\n          pbVar2 = (byte *)(puVar5 + 3);\n          if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }\n          puVar1 = puVar5 + 1;\n          puVar5 = (undefined4 *)*puVar5;\n          if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }\n        } while (puVar5 != (undefined4 *)0x0);" do (compound_statement "{\n          pbVar2 = (byte *)(puVar5 + 3);\n          if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }\n          puVar1 = puVar5 + 1;\n          puVar5 = (undefined4 *)*puVar5;\n          if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }\n        }" { (expression_statement "pbVar2 = (byte *)(puVar5 + 3);" (assignment_expression "pbVar2 = (byte *)(puVar5 + 3)" identifier = (cast_expression "(byte *)(puVar5 + 3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 3)" ( (binary_expression "puVar5 + 3" identifier + number_literal) )))) ;) (if_statement "if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }" if (parenthesized_expression "(*pbVar2 == *(byte *)(param_1 + 0xc))" ( (binary_expression "*pbVar2 == *(byte *)(param_1 + 0xc)" (pointer_expression "*pbVar2" * identifier) == (pointer_expression "*(byte *)(param_1 + 0xc)" * (cast_expression "(byte *)(param_1 + 0xc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) )) (compound_statement "{\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }" { (expression_statement "piVar3 = *(int **)(param_1 + 8);" (assignment_expression "piVar3 = *(int **)(param_1 + 8)" identifier = (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "piVar4 = (int *)puVar5[2];" (assignment_expression "piVar4 = (int *)puVar5[2]" identifier = (cast_expression "(int *)puVar5[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar5[2]" identifier [ number_literal ]))) ;) (expression_statement "piVar3[4] = (int)piVar4;" (assignment_expression "piVar3[4] = (int)piVar4" (subscript_expression "piVar3[4]" identifier [ number_literal ]) = (cast_expression "(int)piVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (param_4 != '\0') {\n              return;\n            }" if (parenthesized_expression "(param_4 != '\0')" ( (binary_expression "param_4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n              return;\n            }" { (return_statement "return;" return ;) })) (if_statement "if (*piVar4 == 0) {\n              return;\n            }" if (parenthesized_expression "(*piVar4 == 0)" ( (binary_expression "*piVar4 == 0" (pointer_expression "*piVar4" * identifier) == number_literal) )) (compound_statement "{\n              return;\n            }" { (return_statement "return;" return ;) })) (if_statement "if (*piVar3 != 0) {\n              return;\n            }" if (parenthesized_expression "(*piVar3 != 0)" ( (binary_expression "*piVar3 != 0" (pointer_expression "*piVar3" * identifier) != number_literal) )) (compound_statement "{\n              return;\n            }" { (return_statement "return;" return ;) })) (expression_statement "*piVar3 = -1;" (assignment_expression "*piVar3 = -1" (pointer_expression "*piVar3" * identifier) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "puVar1 = puVar5 + 1;" (assignment_expression "puVar1 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "puVar5 = (undefined4 *)*puVar5;" (assignment_expression "puVar5 = (undefined4 *)*puVar5" identifier = (cast_expression "(undefined4 *)*puVar5" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) ;) (if_statement "if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }" if (parenthesized_expression "(*pbVar2 <= *(byte *)(param_1 + 0xc))" ( (binary_expression "*pbVar2 <= *(byte *)(param_1 + 0xc)" (pointer_expression "*pbVar2" * identifier) <= (pointer_expression "*(byte *)(param_1 + 0xc)" * (cast_expression "(byte *)(param_1 + 0xc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) )) (compound_statement "{\n            puVar5 = (undefined4 *)*puVar1;\n          }" { (expression_statement "puVar5 = (undefined4 *)*puVar1;" (assignment_expression "puVar5 = (undefined4 *)*puVar1" identifier = (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) })) }) while (parenthesized_expression "(puVar5 != (undefined4 *)0x0)" ( (binary_expression "puVar5 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "param_2 = *(int *)(param_2 + 0x10);" (assignment_expression "param_2 = *(int *)(param_2 + 0x10)" identifier = (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) ;) })) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 8) + 0x10) = param_3;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 8) + 0x10) = param_3" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 8) + 0x10)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 8) + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 8) + 0x10)" ( (binary_expression "*(int *)(param_1 + 8) + 0x10" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 treefails(tree *tree,trie *fail,trie *recourse,_Bool reverse)\n\n{\n  tree **pptVar1;\n  uchar *puVar2;\n  trie *ptVar3;\n  trie *ptVar4;\n  tree *ptVar5;\n  \n  if (tree == (tree *)0x0) {\n    return;\n  }\n  treefails(tree->llink,fail,recourse,reverse);\n  treefails(tree->rlink,fail,recourse,reverse);\n  if (fail != (trie *)0x0) {\n    do {\n      ptVar5 = fail->links;\n      if (ptVar5 != (tree *)0x0) {\n        do {\n          puVar2 = &ptVar5->label;\n          if (*puVar2 == tree->label) {\n            ptVar3 = tree->trie;\n            ptVar4 = ptVar5->trie;\n            ptVar3->fail = ptVar4;\n            if (reverse) {\n              return;\n            }\n            if (ptVar4->accepting == 0) {\n              return;\n            }\n            if (ptVar3->accepting != 0) {\n              return;\n            }\n            ptVar3->accepting = 0xffffffff;\n            return;\n          }\n          pptVar1 = &ptVar5->rlink;\n          ptVar5 = ptVar5->llink;\n          if (*puVar2 <= tree->label) {\n            ptVar5 = *pptVar1;\n          }\n        } while (ptVar5 != (tree *)0x0);\n      }\n      fail = fail->fail;\n    } while (fail != (trie *)0x0);\n  }\n  tree->trie->fail = recourse;\n  return;\n}\n\n" (function_definition "void __regparm3 treefails(tree *tree,trie *fail,trie *recourse,_Bool reverse)\n\n{\n  tree **pptVar1;\n  uchar *puVar2;\n  trie *ptVar3;\n  trie *ptVar4;\n  tree *ptVar5;\n  \n  if (tree == (tree *)0x0) {\n    return;\n  }\n  treefails(tree->llink,fail,recourse,reverse);\n  treefails(tree->rlink,fail,recourse,reverse);\n  if (fail != (trie *)0x0) {\n    do {\n      ptVar5 = fail->links;\n      if (ptVar5 != (tree *)0x0) {\n        do {\n          puVar2 = &ptVar5->label;\n          if (*puVar2 == tree->label) {\n            ptVar3 = tree->trie;\n            ptVar4 = ptVar5->trie;\n            ptVar3->fail = ptVar4;\n            if (reverse) {\n              return;\n            }\n            if (ptVar4->accepting == 0) {\n              return;\n            }\n            if (ptVar3->accepting != 0) {\n              return;\n            }\n            ptVar3->accepting = 0xffffffff;\n            return;\n          }\n          pptVar1 = &ptVar5->rlink;\n          ptVar5 = ptVar5->llink;\n          if (*puVar2 <= tree->label) {\n            ptVar5 = *pptVar1;\n          }\n        } while (ptVar5 != (tree *)0x0);\n      }\n      fail = fail->fail;\n    } while (fail != (trie *)0x0);\n  }\n  tree->trie->fail = recourse;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "treefails(tree *tree,trie *fail,trie *recourse,_Bool reverse)" identifier (parameter_list "(tree *tree,trie *fail,trie *recourse,_Bool reverse)" ( (parameter_declaration "tree *tree" type_identifier (pointer_declarator "*tree" * identifier)) , (parameter_declaration "trie *fail" type_identifier (pointer_declarator "*fail" * identifier)) , (parameter_declaration "trie *recourse" type_identifier (pointer_declarator "*recourse" * identifier)) , (parameter_declaration "_Bool reverse" type_identifier identifier) ))) (compound_statement "{\n  tree **pptVar1;\n  uchar *puVar2;\n  trie *ptVar3;\n  trie *ptVar4;\n  tree *ptVar5;\n  \n  if (tree == (tree *)0x0) {\n    return;\n  }\n  treefails(tree->llink,fail,recourse,reverse);\n  treefails(tree->rlink,fail,recourse,reverse);\n  if (fail != (trie *)0x0) {\n    do {\n      ptVar5 = fail->links;\n      if (ptVar5 != (tree *)0x0) {\n        do {\n          puVar2 = &ptVar5->label;\n          if (*puVar2 == tree->label) {\n            ptVar3 = tree->trie;\n            ptVar4 = ptVar5->trie;\n            ptVar3->fail = ptVar4;\n            if (reverse) {\n              return;\n            }\n            if (ptVar4->accepting == 0) {\n              return;\n            }\n            if (ptVar3->accepting != 0) {\n              return;\n            }\n            ptVar3->accepting = 0xffffffff;\n            return;\n          }\n          pptVar1 = &ptVar5->rlink;\n          ptVar5 = ptVar5->llink;\n          if (*puVar2 <= tree->label) {\n            ptVar5 = *pptVar1;\n          }\n        } while (ptVar5 != (tree *)0x0);\n      }\n      fail = fail->fail;\n    } while (fail != (trie *)0x0);\n  }\n  tree->trie->fail = recourse;\n  return;\n}" { (declaration "tree **pptVar1;" type_identifier (pointer_declarator "**pptVar1" * (pointer_declarator "*pptVar1" * identifier)) ;) (declaration "uchar *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "trie *ptVar3;" type_identifier (pointer_declarator "*ptVar3" * identifier) ;) (declaration "trie *ptVar4;" type_identifier (pointer_declarator "*ptVar4" * identifier) ;) (declaration "tree *ptVar5;" type_identifier (pointer_declarator "*ptVar5" * identifier) ;) (if_statement "if (tree == (tree *)0x0) {\n    return;\n  }" if (parenthesized_expression "(tree == (tree *)0x0)" ( (binary_expression "tree == (tree *)0x0" identifier == (cast_expression "(tree *)0x0" ( (type_descriptor "tree *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "treefails(tree->llink,fail,recourse,reverse);" (call_expression "treefails(tree->llink,fail,recourse,reverse)" identifier (argument_list "(tree->llink,fail,recourse,reverse)" ( (field_expression "tree->llink" identifier -> field_identifier) , identifier , identifier , identifier ))) ;) (expression_statement "treefails(tree->rlink,fail,recourse,reverse);" (call_expression "treefails(tree->rlink,fail,recourse,reverse)" identifier (argument_list "(tree->rlink,fail,recourse,reverse)" ( (field_expression "tree->rlink" identifier -> field_identifier) , identifier , identifier , identifier ))) ;) (if_statement "if (fail != (trie *)0x0) {\n    do {\n      ptVar5 = fail->links;\n      if (ptVar5 != (tree *)0x0) {\n        do {\n          puVar2 = &ptVar5->label;\n          if (*puVar2 == tree->label) {\n            ptVar3 = tree->trie;\n            ptVar4 = ptVar5->trie;\n            ptVar3->fail = ptVar4;\n            if (reverse) {\n              return;\n            }\n            if (ptVar4->accepting == 0) {\n              return;\n            }\n            if (ptVar3->accepting != 0) {\n              return;\n            }\n            ptVar3->accepting = 0xffffffff;\n            return;\n          }\n          pptVar1 = &ptVar5->rlink;\n          ptVar5 = ptVar5->llink;\n          if (*puVar2 <= tree->label) {\n            ptVar5 = *pptVar1;\n          }\n        } while (ptVar5 != (tree *)0x0);\n      }\n      fail = fail->fail;\n    } while (fail != (trie *)0x0);\n  }" if (parenthesized_expression "(fail != (trie *)0x0)" ( (binary_expression "fail != (trie *)0x0" identifier != (cast_expression "(trie *)0x0" ( (type_descriptor "trie *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      ptVar5 = fail->links;\n      if (ptVar5 != (tree *)0x0) {\n        do {\n          puVar2 = &ptVar5->label;\n          if (*puVar2 == tree->label) {\n            ptVar3 = tree->trie;\n            ptVar4 = ptVar5->trie;\n            ptVar3->fail = ptVar4;\n            if (reverse) {\n              return;\n            }\n            if (ptVar4->accepting == 0) {\n              return;\n            }\n            if (ptVar3->accepting != 0) {\n              return;\n            }\n            ptVar3->accepting = 0xffffffff;\n            return;\n          }\n          pptVar1 = &ptVar5->rlink;\n          ptVar5 = ptVar5->llink;\n          if (*puVar2 <= tree->label) {\n            ptVar5 = *pptVar1;\n          }\n        } while (ptVar5 != (tree *)0x0);\n      }\n      fail = fail->fail;\n    } while (fail != (trie *)0x0);\n  }" { (do_statement "do {\n      ptVar5 = fail->links;\n      if (ptVar5 != (tree *)0x0) {\n        do {\n          puVar2 = &ptVar5->label;\n          if (*puVar2 == tree->label) {\n            ptVar3 = tree->trie;\n            ptVar4 = ptVar5->trie;\n            ptVar3->fail = ptVar4;\n            if (reverse) {\n              return;\n            }\n            if (ptVar4->accepting == 0) {\n              return;\n            }\n            if (ptVar3->accepting != 0) {\n              return;\n            }\n            ptVar3->accepting = 0xffffffff;\n            return;\n          }\n          pptVar1 = &ptVar5->rlink;\n          ptVar5 = ptVar5->llink;\n          if (*puVar2 <= tree->label) {\n            ptVar5 = *pptVar1;\n          }\n        } while (ptVar5 != (tree *)0x0);\n      }\n      fail = fail->fail;\n    } while (fail != (trie *)0x0);" do (compound_statement "{\n      ptVar5 = fail->links;\n      if (ptVar5 != (tree *)0x0) {\n        do {\n          puVar2 = &ptVar5->label;\n          if (*puVar2 == tree->label) {\n            ptVar3 = tree->trie;\n            ptVar4 = ptVar5->trie;\n            ptVar3->fail = ptVar4;\n            if (reverse) {\n              return;\n            }\n            if (ptVar4->accepting == 0) {\n              return;\n            }\n            if (ptVar3->accepting != 0) {\n              return;\n            }\n            ptVar3->accepting = 0xffffffff;\n            return;\n          }\n          pptVar1 = &ptVar5->rlink;\n          ptVar5 = ptVar5->llink;\n          if (*puVar2 <= tree->label) {\n            ptVar5 = *pptVar1;\n          }\n        } while (ptVar5 != (tree *)0x0);\n      }\n      fail = fail->fail;\n    }" { (expression_statement "ptVar5 = fail->links;" (assignment_expression "ptVar5 = fail->links" identifier = (field_expression "fail->links" identifier -> field_identifier)) ;) (if_statement "if (ptVar5 != (tree *)0x0) {\n        do {\n          puVar2 = &ptVar5->label;\n          if (*puVar2 == tree->label) {\n            ptVar3 = tree->trie;\n            ptVar4 = ptVar5->trie;\n            ptVar3->fail = ptVar4;\n            if (reverse) {\n              return;\n            }\n            if (ptVar4->accepting == 0) {\n              return;\n            }\n            if (ptVar3->accepting != 0) {\n              return;\n            }\n            ptVar3->accepting = 0xffffffff;\n            return;\n          }\n          pptVar1 = &ptVar5->rlink;\n          ptVar5 = ptVar5->llink;\n          if (*puVar2 <= tree->label) {\n            ptVar5 = *pptVar1;\n          }\n        } while (ptVar5 != (tree *)0x0);\n      }" if (parenthesized_expression "(ptVar5 != (tree *)0x0)" ( (binary_expression "ptVar5 != (tree *)0x0" identifier != (cast_expression "(tree *)0x0" ( (type_descriptor "tree *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        do {\n          puVar2 = &ptVar5->label;\n          if (*puVar2 == tree->label) {\n            ptVar3 = tree->trie;\n            ptVar4 = ptVar5->trie;\n            ptVar3->fail = ptVar4;\n            if (reverse) {\n              return;\n            }\n            if (ptVar4->accepting == 0) {\n              return;\n            }\n            if (ptVar3->accepting != 0) {\n              return;\n            }\n            ptVar3->accepting = 0xffffffff;\n            return;\n          }\n          pptVar1 = &ptVar5->rlink;\n          ptVar5 = ptVar5->llink;\n          if (*puVar2 <= tree->label) {\n            ptVar5 = *pptVar1;\n          }\n        } while (ptVar5 != (tree *)0x0);\n      }" { (do_statement "do {\n          puVar2 = &ptVar5->label;\n          if (*puVar2 == tree->label) {\n            ptVar3 = tree->trie;\n            ptVar4 = ptVar5->trie;\n            ptVar3->fail = ptVar4;\n            if (reverse) {\n              return;\n            }\n            if (ptVar4->accepting == 0) {\n              return;\n            }\n            if (ptVar3->accepting != 0) {\n              return;\n            }\n            ptVar3->accepting = 0xffffffff;\n            return;\n          }\n          pptVar1 = &ptVar5->rlink;\n          ptVar5 = ptVar5->llink;\n          if (*puVar2 <= tree->label) {\n            ptVar5 = *pptVar1;\n          }\n        } while (ptVar5 != (tree *)0x0);" do (compound_statement "{\n          puVar2 = &ptVar5->label;\n          if (*puVar2 == tree->label) {\n            ptVar3 = tree->trie;\n            ptVar4 = ptVar5->trie;\n            ptVar3->fail = ptVar4;\n            if (reverse) {\n              return;\n            }\n            if (ptVar4->accepting == 0) {\n              return;\n            }\n            if (ptVar3->accepting != 0) {\n              return;\n            }\n            ptVar3->accepting = 0xffffffff;\n            return;\n          }\n          pptVar1 = &ptVar5->rlink;\n          ptVar5 = ptVar5->llink;\n          if (*puVar2 <= tree->label) {\n            ptVar5 = *pptVar1;\n          }\n        }" { (expression_statement "puVar2 = &ptVar5->label;" (assignment_expression "puVar2 = &ptVar5->label" identifier = (pointer_expression "&ptVar5->label" & (field_expression "ptVar5->label" identifier -> field_identifier))) ;) (if_statement "if (*puVar2 == tree->label) {\n            ptVar3 = tree->trie;\n            ptVar4 = ptVar5->trie;\n            ptVar3->fail = ptVar4;\n            if (reverse) {\n              return;\n            }\n            if (ptVar4->accepting == 0) {\n              return;\n            }\n            if (ptVar3->accepting != 0) {\n              return;\n            }\n            ptVar3->accepting = 0xffffffff;\n            return;\n          }" if (parenthesized_expression "(*puVar2 == tree->label)" ( (binary_expression "*puVar2 == tree->label" (pointer_expression "*puVar2" * identifier) == (field_expression "tree->label" identifier -> field_identifier)) )) (compound_statement "{\n            ptVar3 = tree->trie;\n            ptVar4 = ptVar5->trie;\n            ptVar3->fail = ptVar4;\n            if (reverse) {\n              return;\n            }\n            if (ptVar4->accepting == 0) {\n              return;\n            }\n            if (ptVar3->accepting != 0) {\n              return;\n            }\n            ptVar3->accepting = 0xffffffff;\n            return;\n          }" { (expression_statement "ptVar3 = tree->trie;" (assignment_expression "ptVar3 = tree->trie" identifier = (field_expression "tree->trie" identifier -> field_identifier)) ;) (expression_statement "ptVar4 = ptVar5->trie;" (assignment_expression "ptVar4 = ptVar5->trie" identifier = (field_expression "ptVar5->trie" identifier -> field_identifier)) ;) (expression_statement "ptVar3->fail = ptVar4;" (assignment_expression "ptVar3->fail = ptVar4" (field_expression "ptVar3->fail" identifier -> field_identifier) = identifier) ;) (if_statement "if (reverse) {\n              return;\n            }" if (parenthesized_expression "(reverse)" ( identifier )) (compound_statement "{\n              return;\n            }" { (return_statement "return;" return ;) })) (if_statement "if (ptVar4->accepting == 0) {\n              return;\n            }" if (parenthesized_expression "(ptVar4->accepting == 0)" ( (binary_expression "ptVar4->accepting == 0" (field_expression "ptVar4->accepting" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n              return;\n            }" { (return_statement "return;" return ;) })) (if_statement "if (ptVar3->accepting != 0) {\n              return;\n            }" if (parenthesized_expression "(ptVar3->accepting != 0)" ( (binary_expression "ptVar3->accepting != 0" (field_expression "ptVar3->accepting" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n              return;\n            }" { (return_statement "return;" return ;) })) (expression_statement "ptVar3->accepting = 0xffffffff;" (assignment_expression "ptVar3->accepting = 0xffffffff" (field_expression "ptVar3->accepting" identifier -> field_identifier) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "pptVar1 = &ptVar5->rlink;" (assignment_expression "pptVar1 = &ptVar5->rlink" identifier = (pointer_expression "&ptVar5->rlink" & (field_expression "ptVar5->rlink" identifier -> field_identifier))) ;) (expression_statement "ptVar5 = ptVar5->llink;" (assignment_expression "ptVar5 = ptVar5->llink" identifier = (field_expression "ptVar5->llink" identifier -> field_identifier)) ;) (if_statement "if (*puVar2 <= tree->label) {\n            ptVar5 = *pptVar1;\n          }" if (parenthesized_expression "(*puVar2 <= tree->label)" ( (binary_expression "*puVar2 <= tree->label" (pointer_expression "*puVar2" * identifier) <= (field_expression "tree->label" identifier -> field_identifier)) )) (compound_statement "{\n            ptVar5 = *pptVar1;\n          }" { (expression_statement "ptVar5 = *pptVar1;" (assignment_expression "ptVar5 = *pptVar1" identifier = (pointer_expression "*pptVar1" * identifier)) ;) })) }) while (parenthesized_expression "(ptVar5 != (tree *)0x0)" ( (binary_expression "ptVar5 != (tree *)0x0" identifier != (cast_expression "(tree *)0x0" ( (type_descriptor "tree *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "fail = fail->fail;" (assignment_expression "fail = fail->fail" identifier = (field_expression "fail->fail" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(fail != (trie *)0x0)" ( (binary_expression "fail != (trie *)0x0" identifier != (cast_expression "(trie *)0x0" ( (type_descriptor "trie *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "tree->trie->fail = recourse;" (assignment_expression "tree->trie->fail = recourse" (field_expression "tree->trie->fail" (field_expression "tree->trie" identifier -> field_identifier) -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00019330(int param_1,int param_2,undefined4 param_3,char param_4)\n\n{\n  undefined4 *puVar1;\n  byte *pbVar2;\n  int *piVar3;\n  int *piVar4;\n  undefined4 *puVar5;\n  \n  if (param_1 == 0) {\n    return;\n  }\n  FUN_00019330(param_4);\n  FUN_00019330(param_4);\n  if (param_2 != 0) {\n    do {\n      puVar5 = *(undefined4 **)(param_2 + 4);\n      if (puVar5 != (undefined4 *)0x0) {\n        do {\n          pbVar2 = (byte *)(puVar5 + 3);\n          if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }\n          puVar1 = puVar5 + 1;\n          puVar5 = (undefined4 *)*puVar5;\n          if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }\n        } while (puVar5 != (undefined4 *)0x0);\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    } while (param_2 != 0);\n  }\n  *(undefined4 *)(*(int *)(param_1 + 8) + 0x10) = param_3;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00019330(int param_1,int param_2,undefined4 param_3,char param_4)\n\n{\n  undefined4 *puVar1;\n  byte *pbVar2;\n  int *piVar3;\n  int *piVar4;\n  undefined4 *puVar5;\n  \n  if (param_1 == 0) {\n    return;\n  }\n  FUN_00019330(param_4);\n  FUN_00019330(param_4);\n  if (param_2 != 0) {\n    do {\n      puVar5 = *(undefined4 **)(param_2 + 4);\n      if (puVar5 != (undefined4 *)0x0) {\n        do {\n          pbVar2 = (byte *)(puVar5 + 3);\n          if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }\n          puVar1 = puVar5 + 1;\n          puVar5 = (undefined4 *)*puVar5;\n          if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }\n        } while (puVar5 != (undefined4 *)0x0);\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    } while (param_2 != 0);\n  }\n  *(undefined4 *)(*(int *)(param_1 + 8) + 0x10) = param_3;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00019330(int param_1,int param_2,undefined4 param_3,char param_4)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3,char param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "char param_4" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  byte *pbVar2;\n  int *piVar3;\n  int *piVar4;\n  undefined4 *puVar5;\n  \n  if (param_1 == 0) {\n    return;\n  }\n  FUN_00019330(param_4);\n  FUN_00019330(param_4);\n  if (param_2 != 0) {\n    do {\n      puVar5 = *(undefined4 **)(param_2 + 4);\n      if (puVar5 != (undefined4 *)0x0) {\n        do {\n          pbVar2 = (byte *)(puVar5 + 3);\n          if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }\n          puVar1 = puVar5 + 1;\n          puVar5 = (undefined4 *)*puVar5;\n          if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }\n        } while (puVar5 != (undefined4 *)0x0);\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    } while (param_2 != 0);\n  }\n  *(undefined4 *)(*(int *)(param_1 + 8) + 0x10) = param_3;\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (if_statement "if (param_1 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00019330(param_4);" (call_expression "FUN_00019330(param_4)" identifier (argument_list "(param_4)" ( identifier ))) ;) (expression_statement "FUN_00019330(param_4);" (call_expression "FUN_00019330(param_4)" identifier (argument_list "(param_4)" ( identifier ))) ;) (if_statement "if (param_2 != 0) {\n    do {\n      puVar5 = *(undefined4 **)(param_2 + 4);\n      if (puVar5 != (undefined4 *)0x0) {\n        do {\n          pbVar2 = (byte *)(puVar5 + 3);\n          if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }\n          puVar1 = puVar5 + 1;\n          puVar5 = (undefined4 *)*puVar5;\n          if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }\n        } while (puVar5 != (undefined4 *)0x0);\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    } while (param_2 != 0);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      puVar5 = *(undefined4 **)(param_2 + 4);\n      if (puVar5 != (undefined4 *)0x0) {\n        do {\n          pbVar2 = (byte *)(puVar5 + 3);\n          if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }\n          puVar1 = puVar5 + 1;\n          puVar5 = (undefined4 *)*puVar5;\n          if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }\n        } while (puVar5 != (undefined4 *)0x0);\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    } while (param_2 != 0);\n  }" { (do_statement "do {\n      puVar5 = *(undefined4 **)(param_2 + 4);\n      if (puVar5 != (undefined4 *)0x0) {\n        do {\n          pbVar2 = (byte *)(puVar5 + 3);\n          if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }\n          puVar1 = puVar5 + 1;\n          puVar5 = (undefined4 *)*puVar5;\n          if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }\n        } while (puVar5 != (undefined4 *)0x0);\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    } while (param_2 != 0);" do (compound_statement "{\n      puVar5 = *(undefined4 **)(param_2 + 4);\n      if (puVar5 != (undefined4 *)0x0) {\n        do {\n          pbVar2 = (byte *)(puVar5 + 3);\n          if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }\n          puVar1 = puVar5 + 1;\n          puVar5 = (undefined4 *)*puVar5;\n          if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }\n        } while (puVar5 != (undefined4 *)0x0);\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    }" { (expression_statement "puVar5 = *(undefined4 **)(param_2 + 4);" (assignment_expression "puVar5 = *(undefined4 **)(param_2 + 4)" identifier = (pointer_expression "*(undefined4 **)(param_2 + 4)" * (cast_expression "(undefined4 **)(param_2 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (if_statement "if (puVar5 != (undefined4 *)0x0) {\n        do {\n          pbVar2 = (byte *)(puVar5 + 3);\n          if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }\n          puVar1 = puVar5 + 1;\n          puVar5 = (undefined4 *)*puVar5;\n          if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }\n        } while (puVar5 != (undefined4 *)0x0);\n      }" if (parenthesized_expression "(puVar5 != (undefined4 *)0x0)" ( (binary_expression "puVar5 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        do {\n          pbVar2 = (byte *)(puVar5 + 3);\n          if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }\n          puVar1 = puVar5 + 1;\n          puVar5 = (undefined4 *)*puVar5;\n          if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }\n        } while (puVar5 != (undefined4 *)0x0);\n      }" { (do_statement "do {\n          pbVar2 = (byte *)(puVar5 + 3);\n          if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }\n          puVar1 = puVar5 + 1;\n          puVar5 = (undefined4 *)*puVar5;\n          if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }\n        } while (puVar5 != (undefined4 *)0x0);" do (compound_statement "{\n          pbVar2 = (byte *)(puVar5 + 3);\n          if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }\n          puVar1 = puVar5 + 1;\n          puVar5 = (undefined4 *)*puVar5;\n          if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }\n        }" { (expression_statement "pbVar2 = (byte *)(puVar5 + 3);" (assignment_expression "pbVar2 = (byte *)(puVar5 + 3)" identifier = (cast_expression "(byte *)(puVar5 + 3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 3)" ( (binary_expression "puVar5 + 3" identifier + number_literal) )))) ;) (if_statement "if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }" if (parenthesized_expression "(*pbVar2 == *(byte *)(param_1 + 0xc))" ( (binary_expression "*pbVar2 == *(byte *)(param_1 + 0xc)" (pointer_expression "*pbVar2" * identifier) == (pointer_expression "*(byte *)(param_1 + 0xc)" * (cast_expression "(byte *)(param_1 + 0xc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) )) (compound_statement "{\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }" { (expression_statement "piVar3 = *(int **)(param_1 + 8);" (assignment_expression "piVar3 = *(int **)(param_1 + 8)" identifier = (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "piVar4 = (int *)puVar5[2];" (assignment_expression "piVar4 = (int *)puVar5[2]" identifier = (cast_expression "(int *)puVar5[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar5[2]" identifier [ number_literal ]))) ;) (expression_statement "piVar3[4] = (int)piVar4;" (assignment_expression "piVar3[4] = (int)piVar4" (subscript_expression "piVar3[4]" identifier [ number_literal ]) = (cast_expression "(int)piVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (param_4 != '\0') {\n              return;\n            }" if (parenthesized_expression "(param_4 != '\0')" ( (binary_expression "param_4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n              return;\n            }" { (return_statement "return;" return ;) })) (if_statement "if (*piVar4 == 0) {\n              return;\n            }" if (parenthesized_expression "(*piVar4 == 0)" ( (binary_expression "*piVar4 == 0" (pointer_expression "*piVar4" * identifier) == number_literal) )) (compound_statement "{\n              return;\n            }" { (return_statement "return;" return ;) })) (if_statement "if (*piVar3 != 0) {\n              return;\n            }" if (parenthesized_expression "(*piVar3 != 0)" ( (binary_expression "*piVar3 != 0" (pointer_expression "*piVar3" * identifier) != number_literal) )) (compound_statement "{\n              return;\n            }" { (return_statement "return;" return ;) })) (expression_statement "*piVar3 = -1;" (assignment_expression "*piVar3 = -1" (pointer_expression "*piVar3" * identifier) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "puVar1 = puVar5 + 1;" (assignment_expression "puVar1 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "puVar5 = (undefined4 *)*puVar5;" (assignment_expression "puVar5 = (undefined4 *)*puVar5" identifier = (cast_expression "(undefined4 *)*puVar5" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) ;) (if_statement "if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }" if (parenthesized_expression "(*pbVar2 <= *(byte *)(param_1 + 0xc))" ( (binary_expression "*pbVar2 <= *(byte *)(param_1 + 0xc)" (pointer_expression "*pbVar2" * identifier) <= (pointer_expression "*(byte *)(param_1 + 0xc)" * (cast_expression "(byte *)(param_1 + 0xc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) )) (compound_statement "{\n            puVar5 = (undefined4 *)*puVar1;\n          }" { (expression_statement "puVar5 = (undefined4 *)*puVar1;" (assignment_expression "puVar5 = (undefined4 *)*puVar1" identifier = (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) })) }) while (parenthesized_expression "(puVar5 != (undefined4 *)0x0)" ( (binary_expression "puVar5 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "param_2 = *(int *)(param_2 + 0x10);" (assignment_expression "param_2 = *(int *)(param_2 + 0x10)" identifier = (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) ;) })) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 8) + 0x10) = param_3;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 8) + 0x10) = param_3" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 8) + 0x10)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 8) + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 8) + 0x10)" ( (binary_expression "*(int *)(param_1 + 8) + 0x10" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) })) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) = IDENT) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00019330(int param_1,int param_2,undefined4 param_3,char param_4)\n\n{\n  undefined4 *puVar1;\n  byte *pbVar2;\n  int *piVar3;\n  int *piVar4;\n  undefined4 *puVar5;\n  \n  if (param_1 == 0) {\n    return;\n  }\n  FUN_00019330(param_4);\n  FUN_00019330(param_4);\n  if (param_2 != 0) {\n    do {\n      puVar5 = *(undefined4 **)(param_2 + 4);\n      if (puVar5 != (undefined4 *)0x0) {\n        do {\n          pbVar2 = (byte *)(puVar5 + 3);\n          if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }\n          puVar1 = puVar5 + 1;\n          puVar5 = (undefined4 *)*puVar5;\n          if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }\n        } while (puVar5 != (undefined4 *)0x0);\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    } while (param_2 != 0);\n  }\n  *(undefined4 *)(*(int *)(param_1 + 8) + 0x10) = param_3;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00019330(int param_1,int param_2,undefined4 param_3,char param_4)" (identifier "FUN_00019330") (parameter_list "(int param_1,int param_2,undefined4 param_3,char param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "char param_4" (primitive_type "char") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  byte *pbVar2;\n  int *piVar3;\n  int *piVar4;\n  undefined4 *puVar5;\n  \n  if (param_1 == 0) {\n    return;\n  }\n  FUN_00019330(param_4);\n  FUN_00019330(param_4);\n  if (param_2 != 0) {\n    do {\n      puVar5 = *(undefined4 **)(param_2 + 4);\n      if (puVar5 != (undefined4 *)0x0) {\n        do {\n          pbVar2 = (byte *)(puVar5 + 3);\n          if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }\n          puVar1 = puVar5 + 1;\n          puVar5 = (undefined4 *)*puVar5;\n          if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }\n        } while (puVar5 != (undefined4 *)0x0);\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    } while (param_2 != 0);\n  }\n  *(undefined4 *)(*(int *)(param_1 + 8) + 0x10) = param_3;\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (if_statement "if (param_1 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00019330(param_4);" (call_expression "FUN_00019330(param_4)" (identifier "FUN_00019330") (argument_list "(param_4)" (( "(") (identifier "param_4") () ")"))) (; ";")) (expression_statement "FUN_00019330(param_4);" (call_expression "FUN_00019330(param_4)" (identifier "FUN_00019330") (argument_list "(param_4)" (( "(") (identifier "param_4") () ")"))) (; ";")) (if_statement "if (param_2 != 0) {\n    do {\n      puVar5 = *(undefined4 **)(param_2 + 4);\n      if (puVar5 != (undefined4 *)0x0) {\n        do {\n          pbVar2 = (byte *)(puVar5 + 3);\n          if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }\n          puVar1 = puVar5 + 1;\n          puVar5 = (undefined4 *)*puVar5;\n          if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }\n        } while (puVar5 != (undefined4 *)0x0);\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    } while (param_2 != 0);\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    do {\n      puVar5 = *(undefined4 **)(param_2 + 4);\n      if (puVar5 != (undefined4 *)0x0) {\n        do {\n          pbVar2 = (byte *)(puVar5 + 3);\n          if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }\n          puVar1 = puVar5 + 1;\n          puVar5 = (undefined4 *)*puVar5;\n          if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }\n        } while (puVar5 != (undefined4 *)0x0);\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    } while (param_2 != 0);\n  }" ({ "{") (do_statement "do {\n      puVar5 = *(undefined4 **)(param_2 + 4);\n      if (puVar5 != (undefined4 *)0x0) {\n        do {\n          pbVar2 = (byte *)(puVar5 + 3);\n          if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }\n          puVar1 = puVar5 + 1;\n          puVar5 = (undefined4 *)*puVar5;\n          if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }\n        } while (puVar5 != (undefined4 *)0x0);\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    } while (param_2 != 0);" (do "do") (compound_statement "{\n      puVar5 = *(undefined4 **)(param_2 + 4);\n      if (puVar5 != (undefined4 *)0x0) {\n        do {\n          pbVar2 = (byte *)(puVar5 + 3);\n          if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }\n          puVar1 = puVar5 + 1;\n          puVar5 = (undefined4 *)*puVar5;\n          if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }\n        } while (puVar5 != (undefined4 *)0x0);\n      }\n      param_2 = *(int *)(param_2 + 0x10);\n    }" ({ "{") (expression_statement "puVar5 = *(undefined4 **)(param_2 + 4);" (assignment_expression "puVar5 = *(undefined4 **)(param_2 + 4)" (identifier "puVar5") (= "=") (pointer_expression "*(undefined4 **)(param_2 + 4)" (* "*") (cast_expression "(undefined4 **)(param_2 + 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (puVar5 != (undefined4 *)0x0) {\n        do {\n          pbVar2 = (byte *)(puVar5 + 3);\n          if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }\n          puVar1 = puVar5 + 1;\n          puVar5 = (undefined4 *)*puVar5;\n          if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }\n        } while (puVar5 != (undefined4 *)0x0);\n      }" (if "if") (parenthesized_expression "(puVar5 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar5 != (undefined4 *)0x0" (identifier "puVar5") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        do {\n          pbVar2 = (byte *)(puVar5 + 3);\n          if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }\n          puVar1 = puVar5 + 1;\n          puVar5 = (undefined4 *)*puVar5;\n          if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }\n        } while (puVar5 != (undefined4 *)0x0);\n      }" ({ "{") (do_statement "do {\n          pbVar2 = (byte *)(puVar5 + 3);\n          if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }\n          puVar1 = puVar5 + 1;\n          puVar5 = (undefined4 *)*puVar5;\n          if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }\n        } while (puVar5 != (undefined4 *)0x0);" (do "do") (compound_statement "{\n          pbVar2 = (byte *)(puVar5 + 3);\n          if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }\n          puVar1 = puVar5 + 1;\n          puVar5 = (undefined4 *)*puVar5;\n          if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }\n        }" ({ "{") (expression_statement "pbVar2 = (byte *)(puVar5 + 3);" (assignment_expression "pbVar2 = (byte *)(puVar5 + 3)" (identifier "pbVar2") (= "=") (cast_expression "(byte *)(puVar5 + 3)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + 3)" (( "(") (binary_expression "puVar5 + 3" (identifier "puVar5") (+ "+") (number_literal "3")) () ")")))) (; ";")) (if_statement "if (*pbVar2 == *(byte *)(param_1 + 0xc)) {\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }" (if "if") (parenthesized_expression "(*pbVar2 == *(byte *)(param_1 + 0xc))" (( "(") (binary_expression "*pbVar2 == *(byte *)(param_1 + 0xc)" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (== "==") (pointer_expression "*(byte *)(param_1 + 0xc)" (* "*") (cast_expression "(byte *)(param_1 + 0xc)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) () ")")) (compound_statement "{\n            piVar3 = *(int **)(param_1 + 8);\n            piVar4 = (int *)puVar5[2];\n            piVar3[4] = (int)piVar4;\n            if (param_4 != '\0') {\n              return;\n            }\n            if (*piVar4 == 0) {\n              return;\n            }\n            if (*piVar3 != 0) {\n              return;\n            }\n            *piVar3 = -1;\n            return;\n          }" ({ "{") (expression_statement "piVar3 = *(int **)(param_1 + 8);" (assignment_expression "piVar3 = *(int **)(param_1 + 8)" (identifier "piVar3") (= "=") (pointer_expression "*(int **)(param_1 + 8)" (* "*") (cast_expression "(int **)(param_1 + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "piVar4 = (int *)puVar5[2];" (assignment_expression "piVar4 = (int *)puVar5[2]" (identifier "piVar4") (= "=") (cast_expression "(int *)puVar5[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar5[2]" (identifier "puVar5") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "piVar3[4] = (int)piVar4;" (assignment_expression "piVar3[4] = (int)piVar4" (subscript_expression "piVar3[4]" (identifier "piVar3") ([ "[") (number_literal "4") (] "]")) (= "=") (cast_expression "(int)piVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar4"))) (; ";")) (if_statement "if (param_4 != '\0') {\n              return;\n            }" (if "if") (parenthesized_expression "(param_4 != '\0')" (( "(") (binary_expression "param_4 != '\0'" (identifier "param_4") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n              return;\n            }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (*piVar4 == 0) {\n              return;\n            }" (if "if") (parenthesized_expression "(*piVar4 == 0)" (( "(") (binary_expression "*piVar4 == 0" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              return;\n            }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (*piVar3 != 0) {\n              return;\n            }" (if "if") (parenthesized_expression "(*piVar3 != 0)" (( "(") (binary_expression "*piVar3 != 0" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n              return;\n            }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*piVar3 = -1;" (assignment_expression "*piVar3 = -1" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (number_literal "-1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "puVar1 = puVar5 + 1;" (assignment_expression "puVar1 = puVar5 + 1" (identifier "puVar1") (= "=") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar5 = (undefined4 *)*puVar5;" (assignment_expression "puVar5 = (undefined4 *)*puVar5" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)*puVar5" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar5" (* "*") (identifier "puVar5")))) (; ";")) (if_statement "if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {\n            puVar5 = (undefined4 *)*puVar1;\n          }" (if "if") (parenthesized_expression "(*pbVar2 <= *(byte *)(param_1 + 0xc))" (( "(") (binary_expression "*pbVar2 <= *(byte *)(param_1 + 0xc)" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (<= "<=") (pointer_expression "*(byte *)(param_1 + 0xc)" (* "*") (cast_expression "(byte *)(param_1 + 0xc)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) () ")")) (compound_statement "{\n            puVar5 = (undefined4 *)*puVar1;\n          }" ({ "{") (expression_statement "puVar5 = (undefined4 *)*puVar1;" (assignment_expression "puVar5 = (undefined4 *)*puVar1" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)*puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(puVar5 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar5 != (undefined4 *)0x0" (identifier "puVar5") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (} "}"))) (expression_statement "param_2 = *(int *)(param_2 + 0x10);" (assignment_expression "param_2 = *(int *)(param_2 + 0x10)" (identifier "param_2") (= "=") (pointer_expression "*(int *)(param_2 + 0x10)" (* "*") (cast_expression "(int *)(param_2 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 8) + 0x10) = param_3;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 8) + 0x10) = param_3" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 8) + 0x10)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + 8) + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 8) + 0x10)" (( "(") (binary_expression "*(int *)(param_1 + 8) + 0x10" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void __regparm3 function_1(type_1 *type_1,type_2 *var_1,type_2 *recourse,type_3 reverse)

{
  type_1 **pptVar1;
  type_4 *puVar2;
  type_2 *ptVar3;
  type_2 *ptVar4;
  type_1 *var_2;
  
  if (type_1 == (type_1 *)0x0) {
    return;
  }
  function_1(type_1->llink,var_1,recourse,reverse);
  function_1(type_1->rlink,var_1,recourse,reverse);
  if (var_1 != (type_2 *)0x0) {
    do {
      var_2 = var_1->links;
      if (var_2 != (type_1 *)0x0) {
        do {
          puVar2 = &var_2->label;
          if (*puVar2 == type_1->label) {
            ptVar3 = type_1->type_2;
            ptVar4 = var_2->type_2;
            ptVar3->var_1 = ptVar4;
            if (reverse) {
              return;
            }
            if (ptVar4->accepting == 0) {
              return;
            }
            if (ptVar3->accepting != 0) {
              return;
            }
            ptVar3->accepting = 0xffffffff;
            return;
          }
          pptVar1 = &var_2->rlink;
          var_2 = var_2->llink;
          if (*puVar2 <= type_1->label) {
            var_2 = *pptVar1;
          }
        } while (var_2 != (type_1 *)0x0);
      }
      var_1 = var_1->var_1;
    } while (var_1 != (type_2 *)0x0);
  }
  type_1->type_2->var_1 = recourse;
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) 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: (identifier) right: (number_literal)))))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) right: (identifier))) (return_statement))))

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

{
  undefined4 *puVar1;
  byte *pbVar2;
  int *piVar3;
  int *piVar4;
  undefined4 *puVar5;
  
  if (param_1 == 0) {
    return;
  }
  MASKED(param_4);
  MASKED(param_4);
  if (param_2 != 0) {
    do {
      puVar5 = *(undefined4 **)(param_2 + 4);
      if (puVar5 != (undefined4 *)0x0) {
        do {
          pbVar2 = (byte *)(puVar5 + 3);
          if (*pbVar2 == *(byte *)(param_1 + 0xc)) {
            piVar3 = *(int **)(param_1 + 8);
            piVar4 = (int *)puVar5[2];
            piVar3[4] = (int)piVar4;
            if (param_4 != '\0') {
              return;
            }
            if (*piVar4 == 0) {
              return;
            }
            if (*piVar3 != 0) {
              return;
            }
            *piVar3 = -1;
            return;
          }
          puVar1 = puVar5 + 1;
          puVar5 = (undefined4 *)*puVar5;
          if (*pbVar2 <= *(byte *)(param_1 + 0xc)) {
            puVar5 = (undefined4 *)*puVar1;
          }
        } while (puVar5 != (undefined4 *)0x0);
      }
      param_2 = *(int *)(param_2 + 0x10);
    } while (param_2 != 0);
  }
  *(undefined4 *)(*(int *)(param_1 + 8) + 0x10) = param_3;
  return;
}

