
int nodeReaderInit(NodeReader *p,char *aNode,int nNode)

{
  int iVar1;
  
  p->iOff = 0;
  *(undefined4 *)&p->field_0xc = 0;
  *(undefined4 *)&p->iChild = 0;
  *(undefined4 *)((int)&p->iChild + 4) = 0;
  (p->term).a = (char *)0x0;
  (p->term).n = 0;
  (p->term).nAlloc = 0;
  p->aDoclist = (char *)0x0;
  p->nDoclist = 0;
  *(undefined4 *)&p->field_0x2c = 0;
  p->aNode = aNode;
  p->nNode = nNode;
  if (*aNode == '\0') {
    p->iOff = 1;
    iVar1 = nodeReaderNext(p);
    return iVar1;
  }
  iVar1 = (*(code *)(PTR_LAB_00190b40 + 0x3ec8))(aNode + 1,&p->iChild);
  p->iOff = iVar1 + 1;
  iVar1 = nodeReaderNext(p);
  return iVar1;
}



void FUN_000794c0(undefined4 *param_1,char *param_2,undefined4 param_3)

{
  int iVar1;
  
  param_1[2] = 0;
  param_1[3] = 0;
  param_1[4] = 0;
  param_1[5] = 0;
  param_1[6] = 0;
  param_1[7] = 0;
  param_1[8] = 0;
  param_1[9] = 0;
  param_1[10] = 0;
  param_1[0xb] = 0;
  *param_1 = param_2;
  param_1[1] = param_3;
  if (*param_2 == '\0') {
    param_1[2] = 1;
    FUN_000791e0(param_1);
    return;
  }
  iVar1 = (*(code *)(PTR_LAB_00190b40 + 0x3ec8))(param_2 + 1,param_1 + 4);
  param_1[2] = iVar1 + 1;
  FUN_000791e0(param_1);
  return;
}


lui gp,0x12
addiu gp,gp,-0xba0
addu gp,gp,t9
addiu sp,sp,-0x20
sw gp,0x10(sp)
sw ra,0x1c(sp)
sw zero,0x8(a0)
sw zero,0xc(a0)
sw zero,0x10(a0)
sw zero,0x14(a0)
sw zero,0x18(a0)
sw zero,0x1c(a0)
sw zero,0x20(a0)
sw zero,0x24(a0)
sw zero,0x28(a0)
sw zero,0x2c(a0)
sw a1,0x0(a0)
sw a2,0x4(a0)
lb v0,0x0(a1)
bne v0,zero,0x00079534
_or t6,a0,zero
li v0,0x1
lw t9,-0x7d60(gp)
sw v0,0x8(a0)
or a0,t6,zero
lw ra,0x1c(sp)
addiu t9,t9,-0x6e20
b 0x000791e0
_addiu sp,sp,0x20
lw t9,-0x7de0(gp)
or a0,a1,zero
addiu a0,a0,0x1
addiu t9,t9,0x3ec8
jalr t9
_addiu a1,t6,0x10
lw gp,0x10(sp)
addiu v0,v0,0x1
or a0,t6,zero
sw v0,0x8(t6)
lw ra,0x1c(sp)
lw t9,-0x7d60(gp)
addiu t9,t9,-0x6e20
b 0x000791e0
_addiu sp,sp,0x20
(translation_unit "void FUN_000794c0(undefined4 *param_1,char *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  param_1[2] = 0;\n  param_1[3] = 0;\n  param_1[4] = 0;\n  param_1[5] = 0;\n  param_1[6] = 0;\n  param_1[7] = 0;\n  param_1[8] = 0;\n  param_1[9] = 0;\n  param_1[10] = 0;\n  param_1[0xb] = 0;\n  *param_1 = param_2;\n  param_1[1] = param_3;\n  if (*param_2 == '\0') {\n    param_1[2] = 1;\n    FUN_000791e0(param_1);\n    return;\n  }\n  iVar1 = (*(code *)(PTR_LAB_00190b40 + 0x3ec8))(param_2 + 1,param_1 + 4);\n  param_1[2] = iVar1 + 1;\n  FUN_000791e0(param_1);\n  return;\n}\n\n" (function_definition "void FUN_000794c0(undefined4 *param_1,char *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  param_1[2] = 0;\n  param_1[3] = 0;\n  param_1[4] = 0;\n  param_1[5] = 0;\n  param_1[6] = 0;\n  param_1[7] = 0;\n  param_1[8] = 0;\n  param_1[9] = 0;\n  param_1[10] = 0;\n  param_1[0xb] = 0;\n  *param_1 = param_2;\n  param_1[1] = param_3;\n  if (*param_2 == '\0') {\n    param_1[2] = 1;\n    FUN_000791e0(param_1);\n    return;\n  }\n  iVar1 = (*(code *)(PTR_LAB_00190b40 + 0x3ec8))(param_2 + 1,param_1 + 4);\n  param_1[2] = iVar1 + 1;\n  FUN_000791e0(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_000794c0(undefined4 *param_1,char *param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 *param_1,char *param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  param_1[2] = 0;\n  param_1[3] = 0;\n  param_1[4] = 0;\n  param_1[5] = 0;\n  param_1[6] = 0;\n  param_1[7] = 0;\n  param_1[8] = 0;\n  param_1[9] = 0;\n  param_1[10] = 0;\n  param_1[0xb] = 0;\n  *param_1 = param_2;\n  param_1[1] = param_3;\n  if (*param_2 == '\0') {\n    param_1[2] = 1;\n    FUN_000791e0(param_1);\n    return;\n  }\n  iVar1 = (*(code *)(PTR_LAB_00190b40 + 0x3ec8))(param_2 + 1,param_1 + 4);\n  param_1[2] = iVar1 + 1;\n  FUN_000791e0(param_1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[6] = 0;" (assignment_expression "param_1[6] = 0" (subscript_expression "param_1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[7] = 0;" (assignment_expression "param_1[7] = 0" (subscript_expression "param_1[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[8] = 0;" (assignment_expression "param_1[8] = 0" (subscript_expression "param_1[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[9] = 0;" (assignment_expression "param_1[9] = 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[10] = 0;" (assignment_expression "param_1[10] = 0" (subscript_expression "param_1[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0xb] = 0;" (assignment_expression "param_1[0xb] = 0" (subscript_expression "param_1[0xb]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = param_2;" (assignment_expression "*param_1 = param_2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = param_3;" (assignment_expression "param_1[1] = param_3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (*param_2 == '\0') {\n    param_1[2] = 1;\n    FUN_000791e0(param_1);\n    return;\n  }" if (parenthesized_expression "(*param_2 == '\0')" ( (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    param_1[2] = 1;\n    FUN_000791e0(param_1);\n    return;\n  }" { (expression_statement "param_1[2] = 1;" (assignment_expression "param_1[2] = 1" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_000791e0(param_1);" (call_expression "FUN_000791e0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = (*(code *)(PTR_LAB_00190b40 + 0x3ec8))(param_2 + 1,param_1 + 4);" (assignment_expression "iVar1 = (*(code *)(PTR_LAB_00190b40 + 0x3ec8))(param_2 + 1,param_1 + 4)" identifier = (call_expression "(*(code *)(PTR_LAB_00190b40 + 0x3ec8))(param_2 + 1,param_1 + 4)" (parenthesized_expression "(*(code *)(PTR_LAB_00190b40 + 0x3ec8))" ( (pointer_expression "*(code *)(PTR_LAB_00190b40 + 0x3ec8)" * (cast_expression "(code *)(PTR_LAB_00190b40 + 0x3ec8)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190b40 + 0x3ec8)" ( (binary_expression "PTR_LAB_00190b40 + 0x3ec8" identifier + number_literal) )))) )) (argument_list "(param_2 + 1,param_1 + 4)" ( (binary_expression "param_2 + 1" identifier + number_literal) , (binary_expression "param_1 + 4" identifier + number_literal) )))) ;) (expression_statement "param_1[2] = iVar1 + 1;" (assignment_expression "param_1[2] = iVar1 + 1" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "FUN_000791e0(param_1);" (call_expression "FUN_000791e0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "int nodeReaderInit(NodeReader *p,char *aNode,int nNode)\n\n{\n  int iVar1;\n  \n  p->iOff = 0;\n  *(undefined4 *)&p->field_0xc = 0;\n  *(undefined4 *)&p->iChild = 0;\n  *(undefined4 *)((int)&p->iChild + 4) = 0;\n  (p->term).a = (char *)0x0;\n  (p->term).n = 0;\n  (p->term).nAlloc = 0;\n  p->aDoclist = (char *)0x0;\n  p->nDoclist = 0;\n  *(undefined4 *)&p->field_0x2c = 0;\n  p->aNode = aNode;\n  p->nNode = nNode;\n  if (*aNode == '\0') {\n    p->iOff = 1;\n    iVar1 = nodeReaderNext(p);\n    return iVar1;\n  }\n  iVar1 = (*(code *)(PTR_LAB_00190b40 + 0x3ec8))(aNode + 1,&p->iChild);\n  p->iOff = iVar1 + 1;\n  iVar1 = nodeReaderNext(p);\n  return iVar1;\n}\n\n" (function_definition "int nodeReaderInit(NodeReader *p,char *aNode,int nNode)\n\n{\n  int iVar1;\n  \n  p->iOff = 0;\n  *(undefined4 *)&p->field_0xc = 0;\n  *(undefined4 *)&p->iChild = 0;\n  *(undefined4 *)((int)&p->iChild + 4) = 0;\n  (p->term).a = (char *)0x0;\n  (p->term).n = 0;\n  (p->term).nAlloc = 0;\n  p->aDoclist = (char *)0x0;\n  p->nDoclist = 0;\n  *(undefined4 *)&p->field_0x2c = 0;\n  p->aNode = aNode;\n  p->nNode = nNode;\n  if (*aNode == '\0') {\n    p->iOff = 1;\n    iVar1 = nodeReaderNext(p);\n    return iVar1;\n  }\n  iVar1 = (*(code *)(PTR_LAB_00190b40 + 0x3ec8))(aNode + 1,&p->iChild);\n  p->iOff = iVar1 + 1;\n  iVar1 = nodeReaderNext(p);\n  return iVar1;\n}" primitive_type (function_declarator "nodeReaderInit(NodeReader *p,char *aNode,int nNode)" identifier (parameter_list "(NodeReader *p,char *aNode,int nNode)" ( (parameter_declaration "NodeReader *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "char *aNode" primitive_type (pointer_declarator "*aNode" * identifier)) , (parameter_declaration "int nNode" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  p->iOff = 0;\n  *(undefined4 *)&p->field_0xc = 0;\n  *(undefined4 *)&p->iChild = 0;\n  *(undefined4 *)((int)&p->iChild + 4) = 0;\n  (p->term).a = (char *)0x0;\n  (p->term).n = 0;\n  (p->term).nAlloc = 0;\n  p->aDoclist = (char *)0x0;\n  p->nDoclist = 0;\n  *(undefined4 *)&p->field_0x2c = 0;\n  p->aNode = aNode;\n  p->nNode = nNode;\n  if (*aNode == '\0') {\n    p->iOff = 1;\n    iVar1 = nodeReaderNext(p);\n    return iVar1;\n  }\n  iVar1 = (*(code *)(PTR_LAB_00190b40 + 0x3ec8))(aNode + 1,&p->iChild);\n  p->iOff = iVar1 + 1;\n  iVar1 = nodeReaderNext(p);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "p->iOff = 0;" (assignment_expression "p->iOff = 0" (field_expression "p->iOff" identifier -> field_identifier) = number_literal) ;) (expression_statement "*(undefined4 *)&p->field_0xc = 0;" (assignment_expression "*(undefined4 *)&p->field_0xc = 0" (pointer_expression "*(undefined4 *)&p->field_0xc" * (cast_expression "(undefined4 *)&p->field_0xc" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&p->field_0xc" & (field_expression "p->field_0xc" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "*(undefined4 *)&p->iChild = 0;" (assignment_expression "*(undefined4 *)&p->iChild = 0" (pointer_expression "*(undefined4 *)&p->iChild" * (cast_expression "(undefined4 *)&p->iChild" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&p->iChild" & (field_expression "p->iChild" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)&p->iChild + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&p->iChild + 4) = 0" (pointer_expression "*(undefined4 *)((int)&p->iChild + 4)" * (cast_expression "(undefined4 *)((int)&p->iChild + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&p->iChild + 4)" ( (binary_expression "(int)&p->iChild + 4" (cast_expression "(int)&p->iChild" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&p->iChild" & (field_expression "p->iChild" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "(p->term).a = (char *)0x0;" (assignment_expression "(p->term).a = (char *)0x0" (field_expression "(p->term).a" (parenthesized_expression "(p->term)" ( (field_expression "p->term" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(p->term).n = 0;" (assignment_expression "(p->term).n = 0" (field_expression "(p->term).n" (parenthesized_expression "(p->term)" ( (field_expression "p->term" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "(p->term).nAlloc = 0;" (assignment_expression "(p->term).nAlloc = 0" (field_expression "(p->term).nAlloc" (parenthesized_expression "(p->term)" ( (field_expression "p->term" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "p->aDoclist = (char *)0x0;" (assignment_expression "p->aDoclist = (char *)0x0" (field_expression "p->aDoclist" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "p->nDoclist = 0;" (assignment_expression "p->nDoclist = 0" (field_expression "p->nDoclist" identifier -> field_identifier) = number_literal) ;) (expression_statement "*(undefined4 *)&p->field_0x2c = 0;" (assignment_expression "*(undefined4 *)&p->field_0x2c = 0" (pointer_expression "*(undefined4 *)&p->field_0x2c" * (cast_expression "(undefined4 *)&p->field_0x2c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&p->field_0x2c" & (field_expression "p->field_0x2c" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "p->aNode = aNode;" (assignment_expression "p->aNode = aNode" (field_expression "p->aNode" identifier -> field_identifier) = identifier) ;) (expression_statement "p->nNode = nNode;" (assignment_expression "p->nNode = nNode" (field_expression "p->nNode" identifier -> field_identifier) = identifier) ;) (if_statement "if (*aNode == '\0') {\n    p->iOff = 1;\n    iVar1 = nodeReaderNext(p);\n    return iVar1;\n  }" if (parenthesized_expression "(*aNode == '\0')" ( (binary_expression "*aNode == '\0'" (pointer_expression "*aNode" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    p->iOff = 1;\n    iVar1 = nodeReaderNext(p);\n    return iVar1;\n  }" { (expression_statement "p->iOff = 1;" (assignment_expression "p->iOff = 1" (field_expression "p->iOff" identifier -> field_identifier) = number_literal) ;) (expression_statement "iVar1 = nodeReaderNext(p);" (assignment_expression "iVar1 = nodeReaderNext(p)" identifier = (call_expression "nodeReaderNext(p)" identifier (argument_list "(p)" ( identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar1 = (*(code *)(PTR_LAB_00190b40 + 0x3ec8))(aNode + 1,&p->iChild);" (assignment_expression "iVar1 = (*(code *)(PTR_LAB_00190b40 + 0x3ec8))(aNode + 1,&p->iChild)" identifier = (call_expression "(*(code *)(PTR_LAB_00190b40 + 0x3ec8))(aNode + 1,&p->iChild)" (parenthesized_expression "(*(code *)(PTR_LAB_00190b40 + 0x3ec8))" ( (pointer_expression "*(code *)(PTR_LAB_00190b40 + 0x3ec8)" * (cast_expression "(code *)(PTR_LAB_00190b40 + 0x3ec8)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190b40 + 0x3ec8)" ( (binary_expression "PTR_LAB_00190b40 + 0x3ec8" identifier + number_literal) )))) )) (argument_list "(aNode + 1,&p->iChild)" ( (binary_expression "aNode + 1" identifier + number_literal) , (pointer_expression "&p->iChild" & (field_expression "p->iChild" identifier -> field_identifier)) )))) ;) (expression_statement "p->iOff = iVar1 + 1;" (assignment_expression "p->iOff = iVar1 + 1" (field_expression "p->iOff" identifier -> field_identifier) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = nodeReaderNext(p);" (assignment_expression "iVar1 = nodeReaderNext(p)" identifier = (call_expression "nodeReaderNext(p)" identifier (argument_list "(p)" ( identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "void FUN_000794c0(undefined4 *param_1,char *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  param_1[2] = 0;\n  param_1[3] = 0;\n  param_1[4] = 0;\n  param_1[5] = 0;\n  param_1[6] = 0;\n  param_1[7] = 0;\n  param_1[8] = 0;\n  param_1[9] = 0;\n  param_1[10] = 0;\n  param_1[0xb] = 0;\n  *param_1 = param_2;\n  param_1[1] = param_3;\n  if (*param_2 == '\0') {\n    param_1[2] = 1;\n    FUN_000791e0(param_1);\n    return;\n  }\n  iVar1 = (*(code *)(PTR_LAB_00190b40 + 0x3ec8))(param_2 + 1,param_1 + 4);\n  param_1[2] = iVar1 + 1;\n  FUN_000791e0(param_1);\n  return;\n}\n\n" (function_definition "void FUN_000794c0(undefined4 *param_1,char *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  param_1[2] = 0;\n  param_1[3] = 0;\n  param_1[4] = 0;\n  param_1[5] = 0;\n  param_1[6] = 0;\n  param_1[7] = 0;\n  param_1[8] = 0;\n  param_1[9] = 0;\n  param_1[10] = 0;\n  param_1[0xb] = 0;\n  *param_1 = param_2;\n  param_1[1] = param_3;\n  if (*param_2 == '\0') {\n    param_1[2] = 1;\n    FUN_000791e0(param_1);\n    return;\n  }\n  iVar1 = (*(code *)(PTR_LAB_00190b40 + 0x3ec8))(param_2 + 1,param_1 + 4);\n  param_1[2] = iVar1 + 1;\n  FUN_000791e0(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_000794c0(undefined4 *param_1,char *param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 *param_1,char *param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  param_1[2] = 0;\n  param_1[3] = 0;\n  param_1[4] = 0;\n  param_1[5] = 0;\n  param_1[6] = 0;\n  param_1[7] = 0;\n  param_1[8] = 0;\n  param_1[9] = 0;\n  param_1[10] = 0;\n  param_1[0xb] = 0;\n  *param_1 = param_2;\n  param_1[1] = param_3;\n  if (*param_2 == '\0') {\n    param_1[2] = 1;\n    FUN_000791e0(param_1);\n    return;\n  }\n  iVar1 = (*(code *)(PTR_LAB_00190b40 + 0x3ec8))(param_2 + 1,param_1 + 4);\n  param_1[2] = iVar1 + 1;\n  FUN_000791e0(param_1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[6] = 0;" (assignment_expression "param_1[6] = 0" (subscript_expression "param_1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[7] = 0;" (assignment_expression "param_1[7] = 0" (subscript_expression "param_1[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[8] = 0;" (assignment_expression "param_1[8] = 0" (subscript_expression "param_1[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[9] = 0;" (assignment_expression "param_1[9] = 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[10] = 0;" (assignment_expression "param_1[10] = 0" (subscript_expression "param_1[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0xb] = 0;" (assignment_expression "param_1[0xb] = 0" (subscript_expression "param_1[0xb]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = param_2;" (assignment_expression "*param_1 = param_2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = param_3;" (assignment_expression "param_1[1] = param_3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (*param_2 == '\0') {\n    param_1[2] = 1;\n    FUN_000791e0(param_1);\n    return;\n  }" if (parenthesized_expression "(*param_2 == '\0')" ( (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    param_1[2] = 1;\n    FUN_000791e0(param_1);\n    return;\n  }" { (expression_statement "param_1[2] = 1;" (assignment_expression "param_1[2] = 1" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_000791e0(param_1);" (call_expression "FUN_000791e0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = (*(code *)(PTR_LAB_00190b40 + 0x3ec8))(param_2 + 1,param_1 + 4);" (assignment_expression "iVar1 = (*(code *)(PTR_LAB_00190b40 + 0x3ec8))(param_2 + 1,param_1 + 4)" identifier = (call_expression "(*(code *)(PTR_LAB_00190b40 + 0x3ec8))(param_2 + 1,param_1 + 4)" (parenthesized_expression "(*(code *)(PTR_LAB_00190b40 + 0x3ec8))" ( (pointer_expression "*(code *)(PTR_LAB_00190b40 + 0x3ec8)" * (cast_expression "(code *)(PTR_LAB_00190b40 + 0x3ec8)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190b40 + 0x3ec8)" ( (binary_expression "PTR_LAB_00190b40 + 0x3ec8" identifier + number_literal) )))) )) (argument_list "(param_2 + 1,param_1 + 4)" ( (binary_expression "param_2 + 1" identifier + number_literal) , (binary_expression "param_1 + 4" identifier + number_literal) )))) ;) (expression_statement "param_1[2] = iVar1 + 1;" (assignment_expression "param_1[2] = iVar1 + 1" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "FUN_000791e0(param_1);" (call_expression "FUN_000791e0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_000794c0(undefined4 *param_1,char *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  param_1[2] = 0;\n  param_1[3] = 0;\n  param_1[4] = 0;\n  param_1[5] = 0;\n  param_1[6] = 0;\n  param_1[7] = 0;\n  param_1[8] = 0;\n  param_1[9] = 0;\n  param_1[10] = 0;\n  param_1[0xb] = 0;\n  *param_1 = param_2;\n  param_1[1] = param_3;\n  if (*param_2 == '\0') {\n    param_1[2] = 1;\n    FUN_000791e0(param_1);\n    return;\n  }\n  iVar1 = (*(code *)(PTR_LAB_00190b40 + 0x3ec8))(param_2 + 1,param_1 + 4);\n  param_1[2] = iVar1 + 1;\n  FUN_000791e0(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000794c0(undefined4 *param_1,char *param_2,undefined4 param_3)" (identifier "FUN_000794c0") (parameter_list "(undefined4 *param_1,char *param_2,undefined4 param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  param_1[2] = 0;\n  param_1[3] = 0;\n  param_1[4] = 0;\n  param_1[5] = 0;\n  param_1[6] = 0;\n  param_1[7] = 0;\n  param_1[8] = 0;\n  param_1[9] = 0;\n  param_1[10] = 0;\n  param_1[0xb] = 0;\n  *param_1 = param_2;\n  param_1[1] = param_3;\n  if (*param_2 == '\0') {\n    param_1[2] = 1;\n    FUN_000791e0(param_1);\n    return;\n  }\n  iVar1 = (*(code *)(PTR_LAB_00190b40 + 0x3ec8))(param_2 + 1,param_1 + 4);\n  param_1[2] = iVar1 + 1;\n  FUN_000791e0(param_1);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[6] = 0;" (assignment_expression "param_1[6] = 0" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[7] = 0;" (assignment_expression "param_1[7] = 0" (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[8] = 0;" (assignment_expression "param_1[8] = 0" (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[9] = 0;" (assignment_expression "param_1[9] = 0" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[10] = 0;" (assignment_expression "param_1[10] = 0" (subscript_expression "param_1[10]" (identifier "param_1") ([ "[") (number_literal "10") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0xb] = 0;" (assignment_expression "param_1[0xb] = 0" (subscript_expression "param_1[0xb]" (identifier "param_1") ([ "[") (number_literal "0xb") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_1 = param_2;" (assignment_expression "*param_1 = param_2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "param_1[1] = param_3;" (assignment_expression "param_1[1] = param_3" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_3")) (; ";")) (if_statement "if (*param_2 == '\0') {\n    param_1[2] = 1;\n    FUN_000791e0(param_1);\n    return;\n  }" (if "if") (parenthesized_expression "(*param_2 == '\0')" (( "(") (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    param_1[2] = 1;\n    FUN_000791e0(param_1);\n    return;\n  }" ({ "{") (expression_statement "param_1[2] = 1;" (assignment_expression "param_1[2] = 1" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "FUN_000791e0(param_1);" (call_expression "FUN_000791e0(param_1)" (identifier "FUN_000791e0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar1 = (*(code *)(PTR_LAB_00190b40 + 0x3ec8))(param_2 + 1,param_1 + 4);" (assignment_expression "iVar1 = (*(code *)(PTR_LAB_00190b40 + 0x3ec8))(param_2 + 1,param_1 + 4)" (identifier "iVar1") (= "=") (call_expression "(*(code *)(PTR_LAB_00190b40 + 0x3ec8))(param_2 + 1,param_1 + 4)" (parenthesized_expression "(*(code *)(PTR_LAB_00190b40 + 0x3ec8))" (( "(") (pointer_expression "*(code *)(PTR_LAB_00190b40 + 0x3ec8)" (* "*") (cast_expression "(code *)(PTR_LAB_00190b40 + 0x3ec8)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_00190b40 + 0x3ec8)" (( "(") (binary_expression "PTR_LAB_00190b40 + 0x3ec8" (identifier "PTR_LAB_00190b40") (+ "+") (number_literal "0x3ec8")) () ")")))) () ")")) (argument_list "(param_2 + 1,param_1 + 4)" (( "(") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1")) (, ",") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (; ";")) (expression_statement "param_1[2] = iVar1 + 1;" (assignment_expression "param_1[2] = iVar1 + 1" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FUN_000791e0(param_1);" (call_expression "FUN_000791e0(param_1)" (identifier "FUN_000791e0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

int function_1(type_1 *p,char *var_3,int nNode)

{
  int var_4;
  
  p->iOff = 0;
  *(type_2 *)&p->field_0xc = 0;
  *(type_2 *)&p->iChild = 0;
  *(type_2 *)((int)&p->iChild + 4) = 0;
  (p->term).a = (char *)0x0;
  (p->term).n = 0;
  (p->term).nAlloc = 0;
  p->aDoclist = (char *)0x0;
  p->nDoclist = 0;
  *(type_2 *)&p->field_0x2c = 0;
  p->var_3 = var_3;
  p->nNode = nNode;
  if (*var_3 == '\0') {
    p->iOff = 1;
    var_4 = var_1(p);
    return var_4;
  }
  var_4 = (*(type_3 *)(var_2 + 0x3ec8))(var_3 + 1,&p->iChild);
  p->iOff = var_4 + 1;
  var_4 = var_1(p);
  return var_4;
}


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

void MASKED(undefined4 *param_1,char *param_2,undefined4 param_3)

{
  int iVar1;
  
  param_1[2] = 0;
  param_1[3] = 0;
  param_1[4] = 0;
  param_1[5] = 0;
  param_1[6] = 0;
  param_1[7] = 0;
  param_1[8] = 0;
  param_1[9] = 0;
  param_1[10] = 0;
  param_1[0xb] = 0;
  *param_1 = param_2;
  param_1[1] = param_3;
  if (*param_2 == '\0') {
    param_1[2] = 1;
    FUN_000791e0(param_1);
    return;
  }
  iVar1 = (*(code *)(PTR_LAB_00190b40 + 0x3ec8))(param_2 + 1,param_1 + 4);
  param_1[2] = iVar1 + 1;
  FUN_000791e0(param_1);
  return;
}

