
/* WARNING: Unknown calling convention */

void fts3HashInsertElement(Fts3Hash *pH,_fts3ht *pEntry,Fts3HashElem *pNew)

{
  Fts3HashElem *pFVar1;
  Fts3HashElem *pFVar2;
  
  pFVar1 = pEntry->chain;
  if (pFVar1 == (Fts3HashElem *)0x0) {
    pFVar1 = pH->first;
    pNew->next = pFVar1;
    if (pFVar1 != (Fts3HashElem *)0x0) {
      pFVar1->prev = pNew;
    }
    pNew->prev = (Fts3HashElem *)0x0;
    pH->first = pNew;
  }
  else {
    pNew->next = pFVar1;
    pFVar2 = pFVar1->prev;
    pNew->prev = pFVar2;
    if (pFVar2 == (Fts3HashElem *)0x0) {
      pH->first = pNew;
    }
    else {
      pFVar2->next = pNew;
    }
    pFVar1->prev = pNew;
  }
  pEntry->count = pEntry->count + 1;
  pEntry->chain = pNew;
  return;
}



void FUN_0004ecc0(int param_1,int *param_2,int *param_3)

{
  int iVar1;
  undefined4 *puVar2;
  
  iVar1 = param_2[1];
  if (iVar1 == 0) {
    iVar1 = *(int *)(param_1 + 8);
    *param_3 = iVar1;
    if (iVar1 != 0) {
      *(int **)(iVar1 + 4) = param_3;
    }
    param_3[1] = 0;
    *(int **)(param_1 + 8) = param_3;
  }
  else {
    *param_3 = iVar1;
    puVar2 = *(undefined4 **)(iVar1 + 4);
    param_3[1] = (int)puVar2;
    if (puVar2 == (undefined4 *)0x0) {
      *(int **)(param_1 + 8) = param_3;
    }
    else {
      *puVar2 = param_3;
    }
    *(int **)(iVar1 + 4) = param_3;
  }
  *param_2 = *param_2 + 1;
  param_2[1] = (int)param_3;
  return;
}


lw v0,0x4(a1)
beq v0,zero,0x0004ed00
_nop
sw v0,0x0(a2)
lw v1,0x4(v0)
beq v1,zero,0x0004ecf8
_sw v1,0x4(a2)
sw a2,0x0(v1)
sw a2,0x4(v0)
lw v0,0x0(a1)
addiu v0,v0,0x1
sw v0,0x0(a1)
jr ra
_sw a2,0x4(a1)
b 0x0004ece0
_sw a2,0x8(a0)
lw v0,0x8(a0)
beq v0,zero,0x0004ed10
_sw v0,0x0(a2)
sw a2,0x4(v0)
sw zero,0x4(a2)
b 0x0004ece4
_sw a2,0x8(a0)
(translation_unit "void FUN_0004ecc0(int param_1,int *param_2,int *param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  iVar1 = param_2[1];\n  if (iVar1 == 0) {\n    iVar1 = *(int *)(param_1 + 8);\n    *param_3 = iVar1;\n    if (iVar1 != 0) {\n      *(int **)(iVar1 + 4) = param_3;\n    }\n    param_3[1] = 0;\n    *(int **)(param_1 + 8) = param_3;\n  }\n  else {\n    *param_3 = iVar1;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    param_3[1] = (int)puVar2;\n    if (puVar2 == (undefined4 *)0x0) {\n      *(int **)(param_1 + 8) = param_3;\n    }\n    else {\n      *puVar2 = param_3;\n    }\n    *(int **)(iVar1 + 4) = param_3;\n  }\n  *param_2 = *param_2 + 1;\n  param_2[1] = (int)param_3;\n  return;\n}\n\n" (function_definition "void FUN_0004ecc0(int param_1,int *param_2,int *param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  iVar1 = param_2[1];\n  if (iVar1 == 0) {\n    iVar1 = *(int *)(param_1 + 8);\n    *param_3 = iVar1;\n    if (iVar1 != 0) {\n      *(int **)(iVar1 + 4) = param_3;\n    }\n    param_3[1] = 0;\n    *(int **)(param_1 + 8) = param_3;\n  }\n  else {\n    *param_3 = iVar1;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    param_3[1] = (int)puVar2;\n    if (puVar2 == (undefined4 *)0x0) {\n      *(int **)(param_1 + 8) = param_3;\n    }\n    else {\n      *puVar2 = param_3;\n    }\n    *(int **)(iVar1 + 4) = param_3;\n  }\n  *param_2 = *param_2 + 1;\n  param_2[1] = (int)param_3;\n  return;\n}" primitive_type (function_declarator "FUN_0004ecc0(int param_1,int *param_2,int *param_3)" identifier (parameter_list "(int param_1,int *param_2,int *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  iVar1 = param_2[1];\n  if (iVar1 == 0) {\n    iVar1 = *(int *)(param_1 + 8);\n    *param_3 = iVar1;\n    if (iVar1 != 0) {\n      *(int **)(iVar1 + 4) = param_3;\n    }\n    param_3[1] = 0;\n    *(int **)(param_1 + 8) = param_3;\n  }\n  else {\n    *param_3 = iVar1;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    param_3[1] = (int)puVar2;\n    if (puVar2 == (undefined4 *)0x0) {\n      *(int **)(param_1 + 8) = param_3;\n    }\n    else {\n      *puVar2 = param_3;\n    }\n    *(int **)(iVar1 + 4) = param_3;\n  }\n  *param_2 = *param_2 + 1;\n  param_2[1] = (int)param_3;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "iVar1 = param_2[1];" (assignment_expression "iVar1 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = *(int *)(param_1 + 8);\n    *param_3 = iVar1;\n    if (iVar1 != 0) {\n      *(int **)(iVar1 + 4) = param_3;\n    }\n    param_3[1] = 0;\n    *(int **)(param_1 + 8) = param_3;\n  }\n  else {\n    *param_3 = iVar1;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    param_3[1] = (int)puVar2;\n    if (puVar2 == (undefined4 *)0x0) {\n      *(int **)(param_1 + 8) = param_3;\n    }\n    else {\n      *puVar2 = param_3;\n    }\n    *(int **)(iVar1 + 4) = param_3;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 8);\n    *param_3 = iVar1;\n    if (iVar1 != 0) {\n      *(int **)(iVar1 + 4) = param_3;\n    }\n    param_3[1] = 0;\n    *(int **)(param_1 + 8) = param_3;\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 8);" (assignment_expression "iVar1 = *(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 "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "*param_3 = iVar1;" (assignment_expression "*param_3 = iVar1" (pointer_expression "*param_3" * identifier) = identifier) ;) (if_statement "if (iVar1 != 0) {\n      *(int **)(iVar1 + 4) = param_3;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      *(int **)(iVar1 + 4) = param_3;\n    }" { (expression_statement "*(int **)(iVar1 + 4) = param_3;" (assignment_expression "*(int **)(iVar1 + 4) = param_3" (pointer_expression "*(int **)(iVar1 + 4)" * (cast_expression "(int **)(iVar1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(int **)(param_1 + 8) = param_3;" (assignment_expression "*(int **)(param_1 + 8) = param_3" (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) )))) = identifier) ;) }) (else_clause "else {\n    *param_3 = iVar1;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    param_3[1] = (int)puVar2;\n    if (puVar2 == (undefined4 *)0x0) {\n      *(int **)(param_1 + 8) = param_3;\n    }\n    else {\n      *puVar2 = param_3;\n    }\n    *(int **)(iVar1 + 4) = param_3;\n  }" else (compound_statement "{\n    *param_3 = iVar1;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    param_3[1] = (int)puVar2;\n    if (puVar2 == (undefined4 *)0x0) {\n      *(int **)(param_1 + 8) = param_3;\n    }\n    else {\n      *puVar2 = param_3;\n    }\n    *(int **)(iVar1 + 4) = param_3;\n  }" { (expression_statement "*param_3 = iVar1;" (assignment_expression "*param_3 = iVar1" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "puVar2 = *(undefined4 **)(iVar1 + 4);" (assignment_expression "puVar2 = *(undefined4 **)(iVar1 + 4)" identifier = (pointer_expression "*(undefined4 **)(iVar1 + 4)" * (cast_expression "(undefined4 **)(iVar1 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))))) ;) (expression_statement "param_3[1] = (int)puVar2;" (assignment_expression "param_3[1] = (int)puVar2" (subscript_expression "param_3[1]" identifier [ number_literal ]) = (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n      *(int **)(param_1 + 8) = param_3;\n    }\n    else {\n      *puVar2 = param_3;\n    }" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *(int **)(param_1 + 8) = param_3;\n    }" { (expression_statement "*(int **)(param_1 + 8) = param_3;" (assignment_expression "*(int **)(param_1 + 8) = param_3" (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) )))) = identifier) ;) }) (else_clause "else {\n      *puVar2 = param_3;\n    }" else (compound_statement "{\n      *puVar2 = param_3;\n    }" { (expression_statement "*puVar2 = param_3;" (assignment_expression "*puVar2 = param_3" (pointer_expression "*puVar2" * identifier) = identifier) ;) }))) (expression_statement "*(int **)(iVar1 + 4) = param_3;" (assignment_expression "*(int **)(iVar1 + 4) = param_3" (pointer_expression "*(int **)(iVar1 + 4)" * (cast_expression "(int **)(iVar1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "*param_2 = *param_2 + 1;" (assignment_expression "*param_2 = *param_2 + 1" (pointer_expression "*param_2" * identifier) = (binary_expression "*param_2 + 1" (pointer_expression "*param_2" * identifier) + number_literal)) ;) (expression_statement "param_2[1] = (int)param_3;" (assignment_expression "param_2[1] = (int)param_3" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nvoid fts3HashInsertElement(Fts3Hash *pH,_fts3ht *pEntry,Fts3HashElem *pNew)\n\n{\n  Fts3HashElem *pFVar1;\n  Fts3HashElem *pFVar2;\n  \n  pFVar1 = pEntry->chain;\n  if (pFVar1 == (Fts3HashElem *)0x0) {\n    pFVar1 = pH->first;\n    pNew->next = pFVar1;\n    if (pFVar1 != (Fts3HashElem *)0x0) {\n      pFVar1->prev = pNew;\n    }\n    pNew->prev = (Fts3HashElem *)0x0;\n    pH->first = pNew;\n  }\n  else {\n    pNew->next = pFVar1;\n    pFVar2 = pFVar1->prev;\n    pNew->prev = pFVar2;\n    if (pFVar2 == (Fts3HashElem *)0x0) {\n      pH->first = pNew;\n    }\n    else {\n      pFVar2->next = pNew;\n    }\n    pFVar1->prev = pNew;\n  }\n  pEntry->count = pEntry->count + 1;\n  pEntry->chain = pNew;\n  return;\n}\n\n" comment (function_definition "void fts3HashInsertElement(Fts3Hash *pH,_fts3ht *pEntry,Fts3HashElem *pNew)\n\n{\n  Fts3HashElem *pFVar1;\n  Fts3HashElem *pFVar2;\n  \n  pFVar1 = pEntry->chain;\n  if (pFVar1 == (Fts3HashElem *)0x0) {\n    pFVar1 = pH->first;\n    pNew->next = pFVar1;\n    if (pFVar1 != (Fts3HashElem *)0x0) {\n      pFVar1->prev = pNew;\n    }\n    pNew->prev = (Fts3HashElem *)0x0;\n    pH->first = pNew;\n  }\n  else {\n    pNew->next = pFVar1;\n    pFVar2 = pFVar1->prev;\n    pNew->prev = pFVar2;\n    if (pFVar2 == (Fts3HashElem *)0x0) {\n      pH->first = pNew;\n    }\n    else {\n      pFVar2->next = pNew;\n    }\n    pFVar1->prev = pNew;\n  }\n  pEntry->count = pEntry->count + 1;\n  pEntry->chain = pNew;\n  return;\n}" primitive_type (function_declarator "fts3HashInsertElement(Fts3Hash *pH,_fts3ht *pEntry,Fts3HashElem *pNew)" identifier (parameter_list "(Fts3Hash *pH,_fts3ht *pEntry,Fts3HashElem *pNew)" ( (parameter_declaration "Fts3Hash *pH" type_identifier (pointer_declarator "*pH" * identifier)) , (parameter_declaration "_fts3ht *pEntry" type_identifier (pointer_declarator "*pEntry" * identifier)) , (parameter_declaration "Fts3HashElem *pNew" type_identifier (pointer_declarator "*pNew" * identifier)) ))) (compound_statement "{\n  Fts3HashElem *pFVar1;\n  Fts3HashElem *pFVar2;\n  \n  pFVar1 = pEntry->chain;\n  if (pFVar1 == (Fts3HashElem *)0x0) {\n    pFVar1 = pH->first;\n    pNew->next = pFVar1;\n    if (pFVar1 != (Fts3HashElem *)0x0) {\n      pFVar1->prev = pNew;\n    }\n    pNew->prev = (Fts3HashElem *)0x0;\n    pH->first = pNew;\n  }\n  else {\n    pNew->next = pFVar1;\n    pFVar2 = pFVar1->prev;\n    pNew->prev = pFVar2;\n    if (pFVar2 == (Fts3HashElem *)0x0) {\n      pH->first = pNew;\n    }\n    else {\n      pFVar2->next = pNew;\n    }\n    pFVar1->prev = pNew;\n  }\n  pEntry->count = pEntry->count + 1;\n  pEntry->chain = pNew;\n  return;\n}" { (declaration "Fts3HashElem *pFVar1;" type_identifier (pointer_declarator "*pFVar1" * identifier) ;) (declaration "Fts3HashElem *pFVar2;" type_identifier (pointer_declarator "*pFVar2" * identifier) ;) (expression_statement "pFVar1 = pEntry->chain;" (assignment_expression "pFVar1 = pEntry->chain" identifier = (field_expression "pEntry->chain" identifier -> field_identifier)) ;) (if_statement "if (pFVar1 == (Fts3HashElem *)0x0) {\n    pFVar1 = pH->first;\n    pNew->next = pFVar1;\n    if (pFVar1 != (Fts3HashElem *)0x0) {\n      pFVar1->prev = pNew;\n    }\n    pNew->prev = (Fts3HashElem *)0x0;\n    pH->first = pNew;\n  }\n  else {\n    pNew->next = pFVar1;\n    pFVar2 = pFVar1->prev;\n    pNew->prev = pFVar2;\n    if (pFVar2 == (Fts3HashElem *)0x0) {\n      pH->first = pNew;\n    }\n    else {\n      pFVar2->next = pNew;\n    }\n    pFVar1->prev = pNew;\n  }" if (parenthesized_expression "(pFVar1 == (Fts3HashElem *)0x0)" ( (binary_expression "pFVar1 == (Fts3HashElem *)0x0" identifier == (cast_expression "(Fts3HashElem *)0x0" ( (type_descriptor "Fts3HashElem *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pFVar1 = pH->first;\n    pNew->next = pFVar1;\n    if (pFVar1 != (Fts3HashElem *)0x0) {\n      pFVar1->prev = pNew;\n    }\n    pNew->prev = (Fts3HashElem *)0x0;\n    pH->first = pNew;\n  }" { (expression_statement "pFVar1 = pH->first;" (assignment_expression "pFVar1 = pH->first" identifier = (field_expression "pH->first" identifier -> field_identifier)) ;) (expression_statement "pNew->next = pFVar1;" (assignment_expression "pNew->next = pFVar1" (field_expression "pNew->next" identifier -> field_identifier) = identifier) ;) (if_statement "if (pFVar1 != (Fts3HashElem *)0x0) {\n      pFVar1->prev = pNew;\n    }" if (parenthesized_expression "(pFVar1 != (Fts3HashElem *)0x0)" ( (binary_expression "pFVar1 != (Fts3HashElem *)0x0" identifier != (cast_expression "(Fts3HashElem *)0x0" ( (type_descriptor "Fts3HashElem *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pFVar1->prev = pNew;\n    }" { (expression_statement "pFVar1->prev = pNew;" (assignment_expression "pFVar1->prev = pNew" (field_expression "pFVar1->prev" identifier -> field_identifier) = identifier) ;) })) (expression_statement "pNew->prev = (Fts3HashElem *)0x0;" (assignment_expression "pNew->prev = (Fts3HashElem *)0x0" (field_expression "pNew->prev" identifier -> field_identifier) = (cast_expression "(Fts3HashElem *)0x0" ( (type_descriptor "Fts3HashElem *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pH->first = pNew;" (assignment_expression "pH->first = pNew" (field_expression "pH->first" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n    pNew->next = pFVar1;\n    pFVar2 = pFVar1->prev;\n    pNew->prev = pFVar2;\n    if (pFVar2 == (Fts3HashElem *)0x0) {\n      pH->first = pNew;\n    }\n    else {\n      pFVar2->next = pNew;\n    }\n    pFVar1->prev = pNew;\n  }" else (compound_statement "{\n    pNew->next = pFVar1;\n    pFVar2 = pFVar1->prev;\n    pNew->prev = pFVar2;\n    if (pFVar2 == (Fts3HashElem *)0x0) {\n      pH->first = pNew;\n    }\n    else {\n      pFVar2->next = pNew;\n    }\n    pFVar1->prev = pNew;\n  }" { (expression_statement "pNew->next = pFVar1;" (assignment_expression "pNew->next = pFVar1" (field_expression "pNew->next" identifier -> field_identifier) = identifier) ;) (expression_statement "pFVar2 = pFVar1->prev;" (assignment_expression "pFVar2 = pFVar1->prev" identifier = (field_expression "pFVar1->prev" identifier -> field_identifier)) ;) (expression_statement "pNew->prev = pFVar2;" (assignment_expression "pNew->prev = pFVar2" (field_expression "pNew->prev" identifier -> field_identifier) = identifier) ;) (if_statement "if (pFVar2 == (Fts3HashElem *)0x0) {\n      pH->first = pNew;\n    }\n    else {\n      pFVar2->next = pNew;\n    }" if (parenthesized_expression "(pFVar2 == (Fts3HashElem *)0x0)" ( (binary_expression "pFVar2 == (Fts3HashElem *)0x0" identifier == (cast_expression "(Fts3HashElem *)0x0" ( (type_descriptor "Fts3HashElem *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pH->first = pNew;\n    }" { (expression_statement "pH->first = pNew;" (assignment_expression "pH->first = pNew" (field_expression "pH->first" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n      pFVar2->next = pNew;\n    }" else (compound_statement "{\n      pFVar2->next = pNew;\n    }" { (expression_statement "pFVar2->next = pNew;" (assignment_expression "pFVar2->next = pNew" (field_expression "pFVar2->next" identifier -> field_identifier) = identifier) ;) }))) (expression_statement "pFVar1->prev = pNew;" (assignment_expression "pFVar1->prev = pNew" (field_expression "pFVar1->prev" identifier -> field_identifier) = identifier) ;) }))) (expression_statement "pEntry->count = pEntry->count + 1;" (assignment_expression "pEntry->count = pEntry->count + 1" (field_expression "pEntry->count" identifier -> field_identifier) = (binary_expression "pEntry->count + 1" (field_expression "pEntry->count" identifier -> field_identifier) + number_literal)) ;) (expression_statement "pEntry->chain = pNew;" (assignment_expression "pEntry->chain = pNew" (field_expression "pEntry->chain" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0004ecc0(int param_1,int *param_2,int *param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  iVar1 = param_2[1];\n  if (iVar1 == 0) {\n    iVar1 = *(int *)(param_1 + 8);\n    *param_3 = iVar1;\n    if (iVar1 != 0) {\n      *(int **)(iVar1 + 4) = param_3;\n    }\n    param_3[1] = 0;\n    *(int **)(param_1 + 8) = param_3;\n  }\n  else {\n    *param_3 = iVar1;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    param_3[1] = (int)puVar2;\n    if (puVar2 == (undefined4 *)0x0) {\n      *(int **)(param_1 + 8) = param_3;\n    }\n    else {\n      *puVar2 = param_3;\n    }\n    *(int **)(iVar1 + 4) = param_3;\n  }\n  *param_2 = *param_2 + 1;\n  param_2[1] = (int)param_3;\n  return;\n}\n\n" (function_definition "void FUN_0004ecc0(int param_1,int *param_2,int *param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  iVar1 = param_2[1];\n  if (iVar1 == 0) {\n    iVar1 = *(int *)(param_1 + 8);\n    *param_3 = iVar1;\n    if (iVar1 != 0) {\n      *(int **)(iVar1 + 4) = param_3;\n    }\n    param_3[1] = 0;\n    *(int **)(param_1 + 8) = param_3;\n  }\n  else {\n    *param_3 = iVar1;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    param_3[1] = (int)puVar2;\n    if (puVar2 == (undefined4 *)0x0) {\n      *(int **)(param_1 + 8) = param_3;\n    }\n    else {\n      *puVar2 = param_3;\n    }\n    *(int **)(iVar1 + 4) = param_3;\n  }\n  *param_2 = *param_2 + 1;\n  param_2[1] = (int)param_3;\n  return;\n}" primitive_type (function_declarator "FUN_0004ecc0(int param_1,int *param_2,int *param_3)" identifier (parameter_list "(int param_1,int *param_2,int *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  iVar1 = param_2[1];\n  if (iVar1 == 0) {\n    iVar1 = *(int *)(param_1 + 8);\n    *param_3 = iVar1;\n    if (iVar1 != 0) {\n      *(int **)(iVar1 + 4) = param_3;\n    }\n    param_3[1] = 0;\n    *(int **)(param_1 + 8) = param_3;\n  }\n  else {\n    *param_3 = iVar1;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    param_3[1] = (int)puVar2;\n    if (puVar2 == (undefined4 *)0x0) {\n      *(int **)(param_1 + 8) = param_3;\n    }\n    else {\n      *puVar2 = param_3;\n    }\n    *(int **)(iVar1 + 4) = param_3;\n  }\n  *param_2 = *param_2 + 1;\n  param_2[1] = (int)param_3;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "iVar1 = param_2[1];" (assignment_expression "iVar1 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = *(int *)(param_1 + 8);\n    *param_3 = iVar1;\n    if (iVar1 != 0) {\n      *(int **)(iVar1 + 4) = param_3;\n    }\n    param_3[1] = 0;\n    *(int **)(param_1 + 8) = param_3;\n  }\n  else {\n    *param_3 = iVar1;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    param_3[1] = (int)puVar2;\n    if (puVar2 == (undefined4 *)0x0) {\n      *(int **)(param_1 + 8) = param_3;\n    }\n    else {\n      *puVar2 = param_3;\n    }\n    *(int **)(iVar1 + 4) = param_3;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 8);\n    *param_3 = iVar1;\n    if (iVar1 != 0) {\n      *(int **)(iVar1 + 4) = param_3;\n    }\n    param_3[1] = 0;\n    *(int **)(param_1 + 8) = param_3;\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 8);" (assignment_expression "iVar1 = *(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 "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "*param_3 = iVar1;" (assignment_expression "*param_3 = iVar1" (pointer_expression "*param_3" * identifier) = identifier) ;) (if_statement "if (iVar1 != 0) {\n      *(int **)(iVar1 + 4) = param_3;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      *(int **)(iVar1 + 4) = param_3;\n    }" { (expression_statement "*(int **)(iVar1 + 4) = param_3;" (assignment_expression "*(int **)(iVar1 + 4) = param_3" (pointer_expression "*(int **)(iVar1 + 4)" * (cast_expression "(int **)(iVar1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(int **)(param_1 + 8) = param_3;" (assignment_expression "*(int **)(param_1 + 8) = param_3" (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) )))) = identifier) ;) }) (else_clause "else {\n    *param_3 = iVar1;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    param_3[1] = (int)puVar2;\n    if (puVar2 == (undefined4 *)0x0) {\n      *(int **)(param_1 + 8) = param_3;\n    }\n    else {\n      *puVar2 = param_3;\n    }\n    *(int **)(iVar1 + 4) = param_3;\n  }" else (compound_statement "{\n    *param_3 = iVar1;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    param_3[1] = (int)puVar2;\n    if (puVar2 == (undefined4 *)0x0) {\n      *(int **)(param_1 + 8) = param_3;\n    }\n    else {\n      *puVar2 = param_3;\n    }\n    *(int **)(iVar1 + 4) = param_3;\n  }" { (expression_statement "*param_3 = iVar1;" (assignment_expression "*param_3 = iVar1" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "puVar2 = *(undefined4 **)(iVar1 + 4);" (assignment_expression "puVar2 = *(undefined4 **)(iVar1 + 4)" identifier = (pointer_expression "*(undefined4 **)(iVar1 + 4)" * (cast_expression "(undefined4 **)(iVar1 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))))) ;) (expression_statement "param_3[1] = (int)puVar2;" (assignment_expression "param_3[1] = (int)puVar2" (subscript_expression "param_3[1]" identifier [ number_literal ]) = (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n      *(int **)(param_1 + 8) = param_3;\n    }\n    else {\n      *puVar2 = param_3;\n    }" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *(int **)(param_1 + 8) = param_3;\n    }" { (expression_statement "*(int **)(param_1 + 8) = param_3;" (assignment_expression "*(int **)(param_1 + 8) = param_3" (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) )))) = identifier) ;) }) (else_clause "else {\n      *puVar2 = param_3;\n    }" else (compound_statement "{\n      *puVar2 = param_3;\n    }" { (expression_statement "*puVar2 = param_3;" (assignment_expression "*puVar2 = param_3" (pointer_expression "*puVar2" * identifier) = identifier) ;) }))) (expression_statement "*(int **)(iVar1 + 4) = param_3;" (assignment_expression "*(int **)(iVar1 + 4) = param_3" (pointer_expression "*(int **)(iVar1 + 4)" * (cast_expression "(int **)(iVar1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "*param_2 = *param_2 + 1;" (assignment_expression "*param_2 = *param_2 + 1" (pointer_expression "*param_2" * identifier) = (binary_expression "*param_2 + 1" (pointer_expression "*param_2" * identifier) + number_literal)) ;) (expression_statement "param_2[1] = (int)param_3;" (assignment_expression "param_2[1] = (int)param_3" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (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 (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (return_statement return ;) })))
(function_definition "void FUN_0004ecc0(int param_1,int *param_2,int *param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  iVar1 = param_2[1];\n  if (iVar1 == 0) {\n    iVar1 = *(int *)(param_1 + 8);\n    *param_3 = iVar1;\n    if (iVar1 != 0) {\n      *(int **)(iVar1 + 4) = param_3;\n    }\n    param_3[1] = 0;\n    *(int **)(param_1 + 8) = param_3;\n  }\n  else {\n    *param_3 = iVar1;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    param_3[1] = (int)puVar2;\n    if (puVar2 == (undefined4 *)0x0) {\n      *(int **)(param_1 + 8) = param_3;\n    }\n    else {\n      *puVar2 = param_3;\n    }\n    *(int **)(iVar1 + 4) = param_3;\n  }\n  *param_2 = *param_2 + 1;\n  param_2[1] = (int)param_3;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0004ecc0(int param_1,int *param_2,int *param_3)" (identifier "FUN_0004ecc0") (parameter_list "(int param_1,int *param_2,int *param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  iVar1 = param_2[1];\n  if (iVar1 == 0) {\n    iVar1 = *(int *)(param_1 + 8);\n    *param_3 = iVar1;\n    if (iVar1 != 0) {\n      *(int **)(iVar1 + 4) = param_3;\n    }\n    param_3[1] = 0;\n    *(int **)(param_1 + 8) = param_3;\n  }\n  else {\n    *param_3 = iVar1;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    param_3[1] = (int)puVar2;\n    if (puVar2 == (undefined4 *)0x0) {\n      *(int **)(param_1 + 8) = param_3;\n    }\n    else {\n      *puVar2 = param_3;\n    }\n    *(int **)(iVar1 + 4) = param_3;\n  }\n  *param_2 = *param_2 + 1;\n  param_2[1] = (int)param_3;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (expression_statement "iVar1 = param_2[1];" (assignment_expression "iVar1 = param_2[1]" (identifier "iVar1") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (iVar1 == 0) {\n    iVar1 = *(int *)(param_1 + 8);\n    *param_3 = iVar1;\n    if (iVar1 != 0) {\n      *(int **)(iVar1 + 4) = param_3;\n    }\n    param_3[1] = 0;\n    *(int **)(param_1 + 8) = param_3;\n  }\n  else {\n    *param_3 = iVar1;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    param_3[1] = (int)puVar2;\n    if (puVar2 == (undefined4 *)0x0) {\n      *(int **)(param_1 + 8) = param_3;\n    }\n    else {\n      *puVar2 = param_3;\n    }\n    *(int **)(iVar1 + 4) = param_3;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 8);\n    *param_3 = iVar1;\n    if (iVar1 != 0) {\n      *(int **)(iVar1 + 4) = param_3;\n    }\n    param_3[1] = 0;\n    *(int **)(param_1 + 8) = param_3;\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(param_1 + 8);" (assignment_expression "iVar1 = *(int *)(param_1 + 8)" (identifier "iVar1") (= "=") (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")) () ")"))))) (; ";")) (expression_statement "*param_3 = iVar1;" (assignment_expression "*param_3 = iVar1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (iVar1 != 0) {\n      *(int **)(iVar1 + 4) = param_3;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *(int **)(iVar1 + 4) = param_3;\n    }" ({ "{") (expression_statement "*(int **)(iVar1 + 4) = param_3;" (assignment_expression "*(int **)(iVar1 + 4) = param_3" (pointer_expression "*(int **)(iVar1 + 4)" (* "*") (cast_expression "(int **)(iVar1 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (} "}"))) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(int **)(param_1 + 8) = param_3;" (assignment_expression "*(int **)(param_1 + 8) = param_3" (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")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (} "}")) (else_clause "else {\n    *param_3 = iVar1;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    param_3[1] = (int)puVar2;\n    if (puVar2 == (undefined4 *)0x0) {\n      *(int **)(param_1 + 8) = param_3;\n    }\n    else {\n      *puVar2 = param_3;\n    }\n    *(int **)(iVar1 + 4) = param_3;\n  }" (else "else") (compound_statement "{\n    *param_3 = iVar1;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    param_3[1] = (int)puVar2;\n    if (puVar2 == (undefined4 *)0x0) {\n      *(int **)(param_1 + 8) = param_3;\n    }\n    else {\n      *puVar2 = param_3;\n    }\n    *(int **)(iVar1 + 4) = param_3;\n  }" ({ "{") (expression_statement "*param_3 = iVar1;" (assignment_expression "*param_3 = iVar1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "puVar2 = *(undefined4 **)(iVar1 + 4);" (assignment_expression "puVar2 = *(undefined4 **)(iVar1 + 4)" (identifier "puVar2") (= "=") (pointer_expression "*(undefined4 **)(iVar1 + 4)" (* "*") (cast_expression "(undefined4 **)(iVar1 + 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "param_3[1] = (int)puVar2;" (assignment_expression "param_3[1] = (int)puVar2" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2"))) (; ";")) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n      *(int **)(param_1 + 8) = param_3;\n    }\n    else {\n      *puVar2 = param_3;\n    }" (if "if") (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar2 == (undefined4 *)0x0" (identifier "puVar2") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      *(int **)(param_1 + 8) = param_3;\n    }" ({ "{") (expression_statement "*(int **)(param_1 + 8) = param_3;" (assignment_expression "*(int **)(param_1 + 8) = param_3" (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")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (} "}")) (else_clause "else {\n      *puVar2 = param_3;\n    }" (else "else") (compound_statement "{\n      *puVar2 = param_3;\n    }" ({ "{") (expression_statement "*puVar2 = param_3;" (assignment_expression "*puVar2 = param_3" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "param_3")) (; ";")) (} "}")))) (expression_statement "*(int **)(iVar1 + 4) = param_3;" (assignment_expression "*(int **)(iVar1 + 4) = param_3" (pointer_expression "*(int **)(iVar1 + 4)" (* "*") (cast_expression "(int **)(iVar1 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (} "}")))) (expression_statement "*param_2 = *param_2 + 1;" (assignment_expression "*param_2 = *param_2 + 1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "*param_2 + 1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "param_2[1] = (int)param_3;" (assignment_expression "param_2[1] = (int)param_3" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

void function_1(type_1 *pH,type_2 *pEntry,type_3 *pNew)

{
  type_3 *var_1;
  type_3 *var_2;
  
  var_1 = pEntry->chain;
  if (var_1 == (type_3 *)0x0) {
    var_1 = pH->first;
    pNew->next = var_1;
    if (var_1 != (type_3 *)0x0) {
      var_1->prev = pNew;
    }
    pNew->prev = (type_3 *)0x0;
    pH->first = pNew;
  }
  else {
    pNew->next = var_1;
    var_2 = var_1->prev;
    pNew->prev = var_2;
    if (var_2 == (type_3 *)0x0) {
      pH->first = pNew;
    }
    else {
      var_2->next = pNew;
    }
    var_1->prev = pNew;
  }
  pEntry->count = pEntry->count + 1;
  pEntry->chain = pNew;
  return;
}


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

void MASKED(int param_1,int *param_2,int *param_3)

{
  int iVar1;
  undefined4 *puVar2;
  
  iVar1 = param_2[1];
  if (iVar1 == 0) {
    iVar1 = *(int *)(param_1 + 8);
    *param_3 = iVar1;
    if (iVar1 != 0) {
      *(int **)(iVar1 + 4) = param_3;
    }
    param_3[1] = 0;
    *(int **)(param_1 + 8) = param_3;
  }
  else {
    *param_3 = iVar1;
    puVar2 = *(undefined4 **)(iVar1 + 4);
    param_3[1] = (int)puVar2;
    if (puVar2 == (undefined4 *)0x0) {
      *(int **)(param_1 + 8) = param_3;
    }
    else {
      *puVar2 = param_3;
    }
    *(int **)(iVar1 + 4) = param_3;
  }
  *param_2 = *param_2 + 1;
  param_2[1] = (int)param_3;
  return;
}

