
demangle_component * d_number_component(d_info *di)

{
  int iVar1;
  demangle_component *pdVar2;
  
  iVar1 = di->next_comp;
  if (iVar1 < di->num_comps) {
    pdVar2 = di->comps + iVar1;
    pdVar2->d_printing = 0;
    di->next_comp = iVar1 + 1;
    pdVar2->type = DEMANGLE_COMPONENT_NUMBER;
    iVar1 = d_number((d_info *)&di->n);
    (pdVar2->u).s_extended_operator.args = iVar1;
    return pdVar2;
  }
  return (demangle_component *)0x0;
}



undefined4 * FUN_0029fad4(int param_1)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 *puVar3;
  
  iVar1 = *(int *)(param_1 + 0x14);
  if (iVar1 < *(int *)(param_1 + 0x18)) {
    puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);
    puVar3[1] = 0;
    *(int *)(param_1 + 0x14) = iVar1 + 1;
    *puVar3 = 0x41;
    uVar2 = FUN_0029f9f4(param_1 + 0xc);
    puVar3[2] = uVar2;
    return puVar3;
  }
  return (undefined4 *)0x0;
}


lui gp,0x1a
addiu gp,gp,-0x5904
addu gp,gp,t9
lw v0,0x14(a0)
lw v1,0x18(a0)
slt v1,v0,v1
beq v1,zero,0x0029fb44
_or v1,a0,zero
lw t5,0x10(a0)
sll a0,v0,0x4
lw t9,-0x4588(gp)
addiu sp,sp,-0x20
addu t5,t5,a0
addiu v0,v0,0x1
sw gp,0x10(sp)
addiu a0,v1,0xc
sw ra,0x1c(sp)
addiu t9,t9,-0x60c
sw zero,0x4(t5)
sw v0,0x14(v1)
li v0,0x41
bal 0x0029f9f4
_sw v0,0x0(t5)
lw ra,0x1c(sp)
sw v0,0x8(t5)
or v0,t5,zero
jr ra
_addiu sp,sp,0x20
or t5,zero,zero
jr ra
_or v0,t5,zero
(translation_unit "undefined4 * FUN_0029fad4(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  \n  iVar1 = *(int *)(param_1 + 0x14);\n  if (iVar1 < *(int *)(param_1 + 0x18)) {\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);\n    puVar3[1] = 0;\n    *(int *)(param_1 + 0x14) = iVar1 + 1;\n    *puVar3 = 0x41;\n    uVar2 = FUN_0029f9f4(param_1 + 0xc);\n    puVar3[2] = uVar2;\n    return puVar3;\n  }\n  return (undefined4 *)0x0;\n}\n\n" (function_definition "undefined4 * FUN_0029fad4(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  \n  iVar1 = *(int *)(param_1 + 0x14);\n  if (iVar1 < *(int *)(param_1 + 0x18)) {\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);\n    puVar3[1] = 0;\n    *(int *)(param_1 + 0x14) = iVar1 + 1;\n    *puVar3 = 0x41;\n    uVar2 = FUN_0029f9f4(param_1 + 0xc);\n    puVar3[2] = uVar2;\n    return puVar3;\n  }\n  return (undefined4 *)0x0;\n}" type_identifier (pointer_declarator "* FUN_0029fad4(int param_1)" * (function_declarator "FUN_0029fad4(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  \n  iVar1 = *(int *)(param_1 + 0x14);\n  if (iVar1 < *(int *)(param_1 + 0x18)) {\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);\n    puVar3[1] = 0;\n    *(int *)(param_1 + 0x14) = iVar1 + 1;\n    *puVar3 = 0x41;\n    uVar2 = FUN_0029f9f4(param_1 + 0xc);\n    puVar3[2] = uVar2;\n    return puVar3;\n  }\n  return (undefined4 *)0x0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 < *(int *)(param_1 + 0x18)) {\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);\n    puVar3[1] = 0;\n    *(int *)(param_1 + 0x14) = iVar1 + 1;\n    *puVar3 = 0x41;\n    uVar2 = FUN_0029f9f4(param_1 + 0xc);\n    puVar3[2] = uVar2;\n    return puVar3;\n  }" if (parenthesized_expression "(iVar1 < *(int *)(param_1 + 0x18))" ( (binary_expression "iVar1 < *(int *)(param_1 + 0x18)" identifier < (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);\n    puVar3[1] = 0;\n    *(int *)(param_1 + 0x14) = iVar1 + 1;\n    *puVar3 = 0x41;\n    uVar2 = FUN_0029f9f4(param_1 + 0xc);\n    puVar3[2] = uVar2;\n    return puVar3;\n  }" { (expression_statement "puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);" (assignment_expression "puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10)" identifier = (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + iVar1 * 0x10)" ( (binary_expression "*(int *)(param_1 + 0x10) + iVar1 * 0x10" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + (binary_expression "iVar1 * 0x10" identifier * number_literal)) )))) ;) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(int *)(param_1 + 0x14) = iVar1 + 1;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar1 + 1" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "*puVar3 = 0x41;" (assignment_expression "*puVar3 = 0x41" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "uVar2 = FUN_0029f9f4(param_1 + 0xc);" (assignment_expression "uVar2 = FUN_0029f9f4(param_1 + 0xc)" identifier = (call_expression "FUN_0029f9f4(param_1 + 0xc)" identifier (argument_list "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ;) (expression_statement "puVar3[2] = uVar2;" (assignment_expression "puVar3[2] = uVar2" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return puVar3;" return identifier ;) })) (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "demangle_component * d_number_component(d_info *di)\n\n{\n  int iVar1;\n  demangle_component *pdVar2;\n  \n  iVar1 = di->next_comp;\n  if (iVar1 < di->num_comps) {\n    pdVar2 = di->comps + iVar1;\n    pdVar2->d_printing = 0;\n    di->next_comp = iVar1 + 1;\n    pdVar2->type = DEMANGLE_COMPONENT_NUMBER;\n    iVar1 = d_number((d_info *)&di->n);\n    (pdVar2->u).s_extended_operator.args = iVar1;\n    return pdVar2;\n  }\n  return (demangle_component *)0x0;\n}\n\n" (function_definition "demangle_component * d_number_component(d_info *di)\n\n{\n  int iVar1;\n  demangle_component *pdVar2;\n  \n  iVar1 = di->next_comp;\n  if (iVar1 < di->num_comps) {\n    pdVar2 = di->comps + iVar1;\n    pdVar2->d_printing = 0;\n    di->next_comp = iVar1 + 1;\n    pdVar2->type = DEMANGLE_COMPONENT_NUMBER;\n    iVar1 = d_number((d_info *)&di->n);\n    (pdVar2->u).s_extended_operator.args = iVar1;\n    return pdVar2;\n  }\n  return (demangle_component *)0x0;\n}" type_identifier (pointer_declarator "* d_number_component(d_info *di)" * (function_declarator "d_number_component(d_info *di)" identifier (parameter_list "(d_info *di)" ( (parameter_declaration "d_info *di" type_identifier (pointer_declarator "*di" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  demangle_component *pdVar2;\n  \n  iVar1 = di->next_comp;\n  if (iVar1 < di->num_comps) {\n    pdVar2 = di->comps + iVar1;\n    pdVar2->d_printing = 0;\n    di->next_comp = iVar1 + 1;\n    pdVar2->type = DEMANGLE_COMPONENT_NUMBER;\n    iVar1 = d_number((d_info *)&di->n);\n    (pdVar2->u).s_extended_operator.args = iVar1;\n    return pdVar2;\n  }\n  return (demangle_component *)0x0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "demangle_component *pdVar2;" type_identifier (pointer_declarator "*pdVar2" * identifier) ;) (expression_statement "iVar1 = di->next_comp;" (assignment_expression "iVar1 = di->next_comp" identifier = (field_expression "di->next_comp" identifier -> field_identifier)) ;) (if_statement "if (iVar1 < di->num_comps) {\n    pdVar2 = di->comps + iVar1;\n    pdVar2->d_printing = 0;\n    di->next_comp = iVar1 + 1;\n    pdVar2->type = DEMANGLE_COMPONENT_NUMBER;\n    iVar1 = d_number((d_info *)&di->n);\n    (pdVar2->u).s_extended_operator.args = iVar1;\n    return pdVar2;\n  }" if (parenthesized_expression "(iVar1 < di->num_comps)" ( (binary_expression "iVar1 < di->num_comps" identifier < (field_expression "di->num_comps" identifier -> field_identifier)) )) (compound_statement "{\n    pdVar2 = di->comps + iVar1;\n    pdVar2->d_printing = 0;\n    di->next_comp = iVar1 + 1;\n    pdVar2->type = DEMANGLE_COMPONENT_NUMBER;\n    iVar1 = d_number((d_info *)&di->n);\n    (pdVar2->u).s_extended_operator.args = iVar1;\n    return pdVar2;\n  }" { (expression_statement "pdVar2 = di->comps + iVar1;" (assignment_expression "pdVar2 = di->comps + iVar1" identifier = (binary_expression "di->comps + iVar1" (field_expression "di->comps" identifier -> field_identifier) + identifier)) ;) (expression_statement "pdVar2->d_printing = 0;" (assignment_expression "pdVar2->d_printing = 0" (field_expression "pdVar2->d_printing" identifier -> field_identifier) = number_literal) ;) (expression_statement "di->next_comp = iVar1 + 1;" (assignment_expression "di->next_comp = iVar1 + 1" (field_expression "di->next_comp" identifier -> field_identifier) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "pdVar2->type = DEMANGLE_COMPONENT_NUMBER;" (assignment_expression "pdVar2->type = DEMANGLE_COMPONENT_NUMBER" (field_expression "pdVar2->type" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar1 = d_number((d_info *)&di->n);" (assignment_expression "iVar1 = d_number((d_info *)&di->n)" identifier = (call_expression "d_number((d_info *)&di->n)" identifier (argument_list "((d_info *)&di->n)" ( (cast_expression "(d_info *)&di->n" ( (type_descriptor "d_info *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&di->n" & (field_expression "di->n" identifier -> field_identifier))) )))) ;) (expression_statement "(pdVar2->u).s_extended_operator.args = iVar1;" (assignment_expression "(pdVar2->u).s_extended_operator.args = iVar1" (field_expression "(pdVar2->u).s_extended_operator.args" (field_expression "(pdVar2->u).s_extended_operator" (parenthesized_expression "(pdVar2->u)" ( (field_expression "pdVar2->u" identifier -> field_identifier) )) . field_identifier) . field_identifier) = identifier) ;) (return_statement "return pdVar2;" return identifier ;) })) (return_statement "return (demangle_component *)0x0;" return (cast_expression "(demangle_component *)0x0" ( (type_descriptor "demangle_component *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "undefined4 * FUN_0029fad4(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  \n  iVar1 = *(int *)(param_1 + 0x14);\n  if (iVar1 < *(int *)(param_1 + 0x18)) {\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);\n    puVar3[1] = 0;\n    *(int *)(param_1 + 0x14) = iVar1 + 1;\n    *puVar3 = 0x41;\n    uVar2 = FUN_0029f9f4(param_1 + 0xc);\n    puVar3[2] = uVar2;\n    return puVar3;\n  }\n  return (undefined4 *)0x0;\n}\n\n" (function_definition "undefined4 * FUN_0029fad4(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  \n  iVar1 = *(int *)(param_1 + 0x14);\n  if (iVar1 < *(int *)(param_1 + 0x18)) {\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);\n    puVar3[1] = 0;\n    *(int *)(param_1 + 0x14) = iVar1 + 1;\n    *puVar3 = 0x41;\n    uVar2 = FUN_0029f9f4(param_1 + 0xc);\n    puVar3[2] = uVar2;\n    return puVar3;\n  }\n  return (undefined4 *)0x0;\n}" type_identifier (pointer_declarator "* FUN_0029fad4(int param_1)" * (function_declarator "FUN_0029fad4(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  \n  iVar1 = *(int *)(param_1 + 0x14);\n  if (iVar1 < *(int *)(param_1 + 0x18)) {\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);\n    puVar3[1] = 0;\n    *(int *)(param_1 + 0x14) = iVar1 + 1;\n    *puVar3 = 0x41;\n    uVar2 = FUN_0029f9f4(param_1 + 0xc);\n    puVar3[2] = uVar2;\n    return puVar3;\n  }\n  return (undefined4 *)0x0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 < *(int *)(param_1 + 0x18)) {\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);\n    puVar3[1] = 0;\n    *(int *)(param_1 + 0x14) = iVar1 + 1;\n    *puVar3 = 0x41;\n    uVar2 = FUN_0029f9f4(param_1 + 0xc);\n    puVar3[2] = uVar2;\n    return puVar3;\n  }" if (parenthesized_expression "(iVar1 < *(int *)(param_1 + 0x18))" ( (binary_expression "iVar1 < *(int *)(param_1 + 0x18)" identifier < (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);\n    puVar3[1] = 0;\n    *(int *)(param_1 + 0x14) = iVar1 + 1;\n    *puVar3 = 0x41;\n    uVar2 = FUN_0029f9f4(param_1 + 0xc);\n    puVar3[2] = uVar2;\n    return puVar3;\n  }" { (expression_statement "puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);" (assignment_expression "puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10)" identifier = (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + iVar1 * 0x10)" ( (binary_expression "*(int *)(param_1 + 0x10) + iVar1 * 0x10" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + (binary_expression "iVar1 * 0x10" identifier * number_literal)) )))) ;) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(int *)(param_1 + 0x14) = iVar1 + 1;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar1 + 1" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "*puVar3 = 0x41;" (assignment_expression "*puVar3 = 0x41" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "uVar2 = FUN_0029f9f4(param_1 + 0xc);" (assignment_expression "uVar2 = FUN_0029f9f4(param_1 + 0xc)" identifier = (call_expression "FUN_0029f9f4(param_1 + 0xc)" identifier (argument_list "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ;) (expression_statement "puVar3[2] = uVar2;" (assignment_expression "puVar3[2] = uVar2" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return puVar3;" return identifier ;) })) (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_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 *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return IDENT ;) })) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "undefined4 * FUN_0029fad4(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  \n  iVar1 = *(int *)(param_1 + 0x14);\n  if (iVar1 < *(int *)(param_1 + 0x18)) {\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);\n    puVar3[1] = 0;\n    *(int *)(param_1 + 0x14) = iVar1 + 1;\n    *puVar3 = 0x41;\n    uVar2 = FUN_0029f9f4(param_1 + 0xc);\n    puVar3[2] = uVar2;\n    return puVar3;\n  }\n  return (undefined4 *)0x0;\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_0029fad4(int param_1)" (* "*") (function_declarator "FUN_0029fad4(int param_1)" (identifier "FUN_0029fad4") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")")))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  \n  iVar1 = *(int *)(param_1 + 0x14);\n  if (iVar1 < *(int *)(param_1 + 0x18)) {\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);\n    puVar3[1] = 0;\n    *(int *)(param_1 + 0x14) = iVar1 + 1;\n    *puVar3 = 0x41;\n    uVar2 = FUN_0029f9f4(param_1 + 0xc);\n    puVar3[2] = uVar2;\n    return puVar3;\n  }\n  return (undefined4 *)0x0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x14)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (iVar1 < *(int *)(param_1 + 0x18)) {\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);\n    puVar3[1] = 0;\n    *(int *)(param_1 + 0x14) = iVar1 + 1;\n    *puVar3 = 0x41;\n    uVar2 = FUN_0029f9f4(param_1 + 0xc);\n    puVar3[2] = uVar2;\n    return puVar3;\n  }" (if "if") (parenthesized_expression "(iVar1 < *(int *)(param_1 + 0x18))" (( "(") (binary_expression "iVar1 < *(int *)(param_1 + 0x18)" (identifier "iVar1") (< "<") (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (compound_statement "{\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);\n    puVar3[1] = 0;\n    *(int *)(param_1 + 0x14) = iVar1 + 1;\n    *puVar3 = 0x41;\n    uVar2 = FUN_0029f9f4(param_1 + 0xc);\n    puVar3[2] = uVar2;\n    return puVar3;\n  }" ({ "{") (expression_statement "puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);" (assignment_expression "puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x10) + iVar1 * 0x10)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) + iVar1 * 0x10" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (binary_expression "iVar1 * 0x10" (identifier "iVar1") (* "*") (number_literal "0x10"))) () ")")))) (; ";")) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(int *)(param_1 + 0x14) = iVar1 + 1;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar1 + 1" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar3 = 0x41;" (assignment_expression "*puVar3 = 0x41" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0x41")) (; ";")) (expression_statement "uVar2 = FUN_0029f9f4(param_1 + 0xc);" (assignment_expression "uVar2 = FUN_0029f9f4(param_1 + 0xc)" (identifier "uVar2") (= "=") (call_expression "FUN_0029f9f4(param_1 + 0xc)" (identifier "FUN_0029f9f4") (argument_list "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (; ";")) (expression_statement "puVar3[2] = uVar2;" (assignment_expression "puVar3[2] = uVar2" (subscript_expression "puVar3[2]" (identifier "puVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (return_statement "return puVar3;" (return "return") (identifier "puVar3") (; ";")) (} "}"))) (return_statement "return (undefined4 *)0x0;" (return "return") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}")))

type_1 * function_1(type_2 *di)

{
  int var_1;
  type_1 *pdVar2;
  
  var_1 = di->next_comp;
  if (var_1 < di->num_comps) {
    pdVar2 = di->comps + var_1;
    pdVar2->d_printing = 0;
    di->next_comp = var_1 + 1;
    pdVar2->type = DEMANGLE_COMPONENT_NUMBER;
    var_1 = var_2((type_2 *)&di->n);
    (pdVar2->u).s_extended_operator.args = var_1;
    return pdVar2;
  }
  return (type_1 *)0x0;
}


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

undefined4 * MASKED(int param_1)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 *puVar3;
  
  iVar1 = *(int *)(param_1 + 0x14);
  if (iVar1 < *(int *)(param_1 + 0x18)) {
    puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);
    puVar3[1] = 0;
    *(int *)(param_1 + 0x14) = iVar1 + 1;
    *puVar3 = 0x41;
    uVar2 = FUN_0029f9f4(param_1 + 0xc);
    puVar3[2] = uVar2;
    return puVar3;
  }
  return (undefined4 *)0x0;
}

