
demangle_component * d_number_component(d_info *di)

{
  demangle_component *pdVar1;
  int iVar2;
  
  iVar2 = di->next_comp;
  if (iVar2 < di->num_comps) {
    pdVar1 = di->comps + iVar2;
    pdVar1->d_printing = 0;
    di->next_comp = iVar2 + 1;
    pdVar1->type = DEMANGLE_COMPONENT_NUMBER;
    iVar2 = d_number((d_info *)&di->n);
    *(long *)&pdVar1->u = (long)iVar2;
    return pdVar1;
  }
  return (demangle_component *)0x0;
}



undefined4 * FUN_002c9490(long param_1)

{
  undefined4 *puVar1;
  int iVar2;
  
  iVar2 = *(int *)(param_1 + 0x28);
  if (iVar2 < *(int *)(param_1 + 0x2c)) {
    puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);
    puVar1[1] = 0;
    *(int *)(param_1 + 0x28) = iVar2 + 1;
    *puVar1 = 0x41;
    iVar2 = FUN_002c93e0();
    *(long *)(puVar1 + 2) = (long)iVar2;
    return puVar1;
  }
  return (undefined4 *)0x0;
}


PUSH RBX
MOV EAX,dword ptr [RDI + 0x28]
CMP EAX,dword ptr [RDI + 0x2c]
JGE 0x002c94d0
MOVSXD RDX,EAX
ADD EAX,0x1
ADD RDI,0x18
LEA RCX,[RDX + RDX*0x2]
MOV RDX,qword ptr [RDI + 0x8]
LEA RBX,[RDX + RCX*0x8]
MOV dword ptr [RBX + 0x4],0x0
MOV dword ptr [RDI + 0x10],EAX
MOV dword ptr [RBX],0x41
CALL 0x002c93e0
CDQE
MOV qword ptr [RBX + 0x8],RAX
MOV RAX,RBX
POP RBX
RET
XOR EBX,EBX
MOV RAX,RBX
POP RBX
RET
(translation_unit "undefined4 * FUN_002c9490(long param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x28);\n  if (iVar2 < *(int *)(param_1 + 0x2c)) {\n    puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);\n    puVar1[1] = 0;\n    *(int *)(param_1 + 0x28) = iVar2 + 1;\n    *puVar1 = 0x41;\n    iVar2 = FUN_002c93e0();\n    *(long *)(puVar1 + 2) = (long)iVar2;\n    return puVar1;\n  }\n  return (undefined4 *)0x0;\n}\n\n" (function_definition "undefined4 * FUN_002c9490(long param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x28);\n  if (iVar2 < *(int *)(param_1 + 0x2c)) {\n    puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);\n    puVar1[1] = 0;\n    *(int *)(param_1 + 0x28) = iVar2 + 1;\n    *puVar1 = 0x41;\n    iVar2 = FUN_002c93e0();\n    *(long *)(puVar1 + 2) = (long)iVar2;\n    return puVar1;\n  }\n  return (undefined4 *)0x0;\n}" type_identifier (pointer_declarator "* FUN_002c9490(long param_1)" * (function_declarator "FUN_002c9490(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) )))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x28);\n  if (iVar2 < *(int *)(param_1 + 0x2c)) {\n    puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);\n    puVar1[1] = 0;\n    *(int *)(param_1 + 0x28) = iVar2 + 1;\n    *puVar1 = 0x41;\n    iVar2 = FUN_002c93e0();\n    *(long *)(puVar1 + 2) = (long)iVar2;\n    return puVar1;\n  }\n  return (undefined4 *)0x0;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x28);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x28)" identifier = (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 < *(int *)(param_1 + 0x2c)) {\n    puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);\n    puVar1[1] = 0;\n    *(int *)(param_1 + 0x28) = iVar2 + 1;\n    *puVar1 = 0x41;\n    iVar2 = FUN_002c93e0();\n    *(long *)(puVar1 + 2) = (long)iVar2;\n    return puVar1;\n  }" if (parenthesized_expression "(iVar2 < *(int *)(param_1 + 0x2c))" ( (binary_expression "iVar2 < *(int *)(param_1 + 0x2c)" identifier < (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) ))))) )) (compound_statement "{\n    puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);\n    puVar1[1] = 0;\n    *(int *)(param_1 + 0x28) = iVar2 + 1;\n    *puVar1 = 0x41;\n    iVar2 = FUN_002c93e0();\n    *(long *)(puVar1 + 2) = (long)iVar2;\n    return puVar1;\n  }" { (expression_statement "puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);" (assignment_expression "puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18)" identifier = (cast_expression "(undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18)" ( (binary_expression "*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18" (pointer_expression "*(long *)(param_1 + 0x20)" * (cast_expression "(long *)(param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) + (binary_expression "(long)iVar2 * 0x18" (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) )))) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(int *)(param_1 + 0x28) = iVar2 + 1;" (assignment_expression "*(int *)(param_1 + 0x28) = iVar2 + 1" (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "*puVar1 = 0x41;" (assignment_expression "*puVar1 = 0x41" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "iVar2 = FUN_002c93e0();" (assignment_expression "iVar2 = FUN_002c93e0()" identifier = (call_expression "FUN_002c93e0()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(long *)(puVar1 + 2) = (long)iVar2;" (assignment_expression "*(long *)(puVar1 + 2) = (long)iVar2" (pointer_expression "*(long *)(puVar1 + 2)" * (cast_expression "(long *)(puVar1 + 2)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 2)" ( (binary_expression "puVar1 + 2" identifier + number_literal) )))) = (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (return_statement "return puVar1;" 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  demangle_component *pdVar1;\n  int iVar2;\n  \n  iVar2 = di->next_comp;\n  if (iVar2 < di->num_comps) {\n    pdVar1 = di->comps + iVar2;\n    pdVar1->d_printing = 0;\n    di->next_comp = iVar2 + 1;\n    pdVar1->type = DEMANGLE_COMPONENT_NUMBER;\n    iVar2 = d_number((d_info *)&di->n);\n    *(long *)&pdVar1->u = (long)iVar2;\n    return pdVar1;\n  }\n  return (demangle_component *)0x0;\n}\n\n" (function_definition "demangle_component * d_number_component(d_info *di)\n\n{\n  demangle_component *pdVar1;\n  int iVar2;\n  \n  iVar2 = di->next_comp;\n  if (iVar2 < di->num_comps) {\n    pdVar1 = di->comps + iVar2;\n    pdVar1->d_printing = 0;\n    di->next_comp = iVar2 + 1;\n    pdVar1->type = DEMANGLE_COMPONENT_NUMBER;\n    iVar2 = d_number((d_info *)&di->n);\n    *(long *)&pdVar1->u = (long)iVar2;\n    return pdVar1;\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  demangle_component *pdVar1;\n  int iVar2;\n  \n  iVar2 = di->next_comp;\n  if (iVar2 < di->num_comps) {\n    pdVar1 = di->comps + iVar2;\n    pdVar1->d_printing = 0;\n    di->next_comp = iVar2 + 1;\n    pdVar1->type = DEMANGLE_COMPONENT_NUMBER;\n    iVar2 = d_number((d_info *)&di->n);\n    *(long *)&pdVar1->u = (long)iVar2;\n    return pdVar1;\n  }\n  return (demangle_component *)0x0;\n}" { (declaration "demangle_component *pdVar1;" type_identifier (pointer_declarator "*pdVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = di->next_comp;" (assignment_expression "iVar2 = di->next_comp" identifier = (field_expression "di->next_comp" identifier -> field_identifier)) ;) (if_statement "if (iVar2 < di->num_comps) {\n    pdVar1 = di->comps + iVar2;\n    pdVar1->d_printing = 0;\n    di->next_comp = iVar2 + 1;\n    pdVar1->type = DEMANGLE_COMPONENT_NUMBER;\n    iVar2 = d_number((d_info *)&di->n);\n    *(long *)&pdVar1->u = (long)iVar2;\n    return pdVar1;\n  }" if (parenthesized_expression "(iVar2 < di->num_comps)" ( (binary_expression "iVar2 < di->num_comps" identifier < (field_expression "di->num_comps" identifier -> field_identifier)) )) (compound_statement "{\n    pdVar1 = di->comps + iVar2;\n    pdVar1->d_printing = 0;\n    di->next_comp = iVar2 + 1;\n    pdVar1->type = DEMANGLE_COMPONENT_NUMBER;\n    iVar2 = d_number((d_info *)&di->n);\n    *(long *)&pdVar1->u = (long)iVar2;\n    return pdVar1;\n  }" { (expression_statement "pdVar1 = di->comps + iVar2;" (assignment_expression "pdVar1 = di->comps + iVar2" identifier = (binary_expression "di->comps + iVar2" (field_expression "di->comps" identifier -> field_identifier) + identifier)) ;) (expression_statement "pdVar1->d_printing = 0;" (assignment_expression "pdVar1->d_printing = 0" (field_expression "pdVar1->d_printing" identifier -> field_identifier) = number_literal) ;) (expression_statement "di->next_comp = iVar2 + 1;" (assignment_expression "di->next_comp = iVar2 + 1" (field_expression "di->next_comp" identifier -> field_identifier) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "pdVar1->type = DEMANGLE_COMPONENT_NUMBER;" (assignment_expression "pdVar1->type = DEMANGLE_COMPONENT_NUMBER" (field_expression "pdVar1->type" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar2 = d_number((d_info *)&di->n);" (assignment_expression "iVar2 = 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 "*(long *)&pdVar1->u = (long)iVar2;" (assignment_expression "*(long *)&pdVar1->u = (long)iVar2" (pointer_expression "*(long *)&pdVar1->u" * (cast_expression "(long *)&pdVar1->u" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pdVar1->u" & (field_expression "pdVar1->u" identifier -> field_identifier)))) = (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (return_statement "return pdVar1;" 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_002c9490(long param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x28);\n  if (iVar2 < *(int *)(param_1 + 0x2c)) {\n    puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);\n    puVar1[1] = 0;\n    *(int *)(param_1 + 0x28) = iVar2 + 1;\n    *puVar1 = 0x41;\n    iVar2 = FUN_002c93e0();\n    *(long *)(puVar1 + 2) = (long)iVar2;\n    return puVar1;\n  }\n  return (undefined4 *)0x0;\n}\n\n" (function_definition "undefined4 * FUN_002c9490(long param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x28);\n  if (iVar2 < *(int *)(param_1 + 0x2c)) {\n    puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);\n    puVar1[1] = 0;\n    *(int *)(param_1 + 0x28) = iVar2 + 1;\n    *puVar1 = 0x41;\n    iVar2 = FUN_002c93e0();\n    *(long *)(puVar1 + 2) = (long)iVar2;\n    return puVar1;\n  }\n  return (undefined4 *)0x0;\n}" type_identifier (pointer_declarator "* FUN_002c9490(long param_1)" * (function_declarator "FUN_002c9490(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) )))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x28);\n  if (iVar2 < *(int *)(param_1 + 0x2c)) {\n    puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);\n    puVar1[1] = 0;\n    *(int *)(param_1 + 0x28) = iVar2 + 1;\n    *puVar1 = 0x41;\n    iVar2 = FUN_002c93e0();\n    *(long *)(puVar1 + 2) = (long)iVar2;\n    return puVar1;\n  }\n  return (undefined4 *)0x0;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x28);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x28)" identifier = (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 < *(int *)(param_1 + 0x2c)) {\n    puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);\n    puVar1[1] = 0;\n    *(int *)(param_1 + 0x28) = iVar2 + 1;\n    *puVar1 = 0x41;\n    iVar2 = FUN_002c93e0();\n    *(long *)(puVar1 + 2) = (long)iVar2;\n    return puVar1;\n  }" if (parenthesized_expression "(iVar2 < *(int *)(param_1 + 0x2c))" ( (binary_expression "iVar2 < *(int *)(param_1 + 0x2c)" identifier < (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) ))))) )) (compound_statement "{\n    puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);\n    puVar1[1] = 0;\n    *(int *)(param_1 + 0x28) = iVar2 + 1;\n    *puVar1 = 0x41;\n    iVar2 = FUN_002c93e0();\n    *(long *)(puVar1 + 2) = (long)iVar2;\n    return puVar1;\n  }" { (expression_statement "puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);" (assignment_expression "puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18)" identifier = (cast_expression "(undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18)" ( (binary_expression "*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18" (pointer_expression "*(long *)(param_1 + 0x20)" * (cast_expression "(long *)(param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) + (binary_expression "(long)iVar2 * 0x18" (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) )))) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(int *)(param_1 + 0x28) = iVar2 + 1;" (assignment_expression "*(int *)(param_1 + 0x28) = iVar2 + 1" (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "*puVar1 = 0x41;" (assignment_expression "*puVar1 = 0x41" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "iVar2 = FUN_002c93e0();" (assignment_expression "iVar2 = FUN_002c93e0()" identifier = (call_expression "FUN_002c93e0()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(long *)(puVar1 + 2) = (long)iVar2;" (assignment_expression "*(long *)(puVar1 + 2) = (long)iVar2" (pointer_expression "*(long *)(puVar1 + 2)" * (cast_expression "(long *)(puVar1 + 2)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 2)" ( (binary_expression "puVar1 + 2" identifier + number_literal) )))) = (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (return_statement "return puVar1;" 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 (sized_type_specifier long) IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE 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 (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) 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 ( )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ;) (return_statement return IDENT ;) })) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "undefined4 * FUN_002c9490(long param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x28);\n  if (iVar2 < *(int *)(param_1 + 0x2c)) {\n    puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);\n    puVar1[1] = 0;\n    *(int *)(param_1 + 0x28) = iVar2 + 1;\n    *puVar1 = 0x41;\n    iVar2 = FUN_002c93e0();\n    *(long *)(puVar1 + 2) = (long)iVar2;\n    return puVar1;\n  }\n  return (undefined4 *)0x0;\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_002c9490(long param_1)" (* "*") (function_declarator "FUN_002c9490(long param_1)" (identifier "FUN_002c9490") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")")))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x28);\n  if (iVar2 < *(int *)(param_1 + 0x2c)) {\n    puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);\n    puVar1[1] = 0;\n    *(int *)(param_1 + 0x28) = iVar2 + 1;\n    *puVar1 = 0x41;\n    iVar2 = FUN_002c93e0();\n    *(long *)(puVar1 + 2) = (long)iVar2;\n    return puVar1;\n  }\n  return (undefined4 *)0x0;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x28);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x28)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x28)" (* "*") (cast_expression "(int *)(param_1 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (if_statement "if (iVar2 < *(int *)(param_1 + 0x2c)) {\n    puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);\n    puVar1[1] = 0;\n    *(int *)(param_1 + 0x28) = iVar2 + 1;\n    *puVar1 = 0x41;\n    iVar2 = FUN_002c93e0();\n    *(long *)(puVar1 + 2) = (long)iVar2;\n    return puVar1;\n  }" (if "if") (parenthesized_expression "(iVar2 < *(int *)(param_1 + 0x2c))" (( "(") (binary_expression "iVar2 < *(int *)(param_1 + 0x2c)" (identifier "iVar2") (< "<") (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")"))))) () ")")) (compound_statement "{\n    puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);\n    puVar1[1] = 0;\n    *(int *)(param_1 + 0x28) = iVar2 + 1;\n    *puVar1 = 0x41;\n    iVar2 = FUN_002c93e0();\n    *(long *)(puVar1 + 2) = (long)iVar2;\n    return puVar1;\n  }" ({ "{") (expression_statement "puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);" (assignment_expression "puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18)" (( "(") (binary_expression "*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18" (pointer_expression "*(long *)(param_1 + 0x20)" (* "*") (cast_expression "(long *)(param_1 + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (+ "+") (binary_expression "(long)iVar2 * 0x18" (cast_expression "(long)iVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar2")) (* "*") (number_literal "0x18"))) () ")")))) (; ";")) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(int *)(param_1 + 0x28) = iVar2 + 1;" (assignment_expression "*(int *)(param_1 + 0x28) = iVar2 + 1" (pointer_expression "*(int *)(param_1 + 0x28)" (* "*") (cast_expression "(int *)(param_1 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar1 = 0x41;" (assignment_expression "*puVar1 = 0x41" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0x41")) (; ";")) (expression_statement "iVar2 = FUN_002c93e0();" (assignment_expression "iVar2 = FUN_002c93e0()" (identifier "iVar2") (= "=") (call_expression "FUN_002c93e0()" (identifier "FUN_002c93e0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(long *)(puVar1 + 2) = (long)iVar2;" (assignment_expression "*(long *)(puVar1 + 2) = (long)iVar2" (pointer_expression "*(long *)(puVar1 + 2)" (* "*") (cast_expression "(long *)(puVar1 + 2)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 2)" (( "(") (binary_expression "puVar1 + 2" (identifier "puVar1") (+ "+") (number_literal "2")) () ")")))) (= "=") (cast_expression "(long)iVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar2"))) (; ";")) (return_statement "return puVar1;" (return "return") (identifier "puVar1") (; ";")) (} "}"))) (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)

{
  type_1 *pdVar1;
  int var_1;
  
  var_1 = di->next_comp;
  if (var_1 < di->num_comps) {
    pdVar1 = di->comps + var_1;
    pdVar1->d_printing = 0;
    di->next_comp = var_1 + 1;
    pdVar1->type = DEMANGLE_COMPONENT_NUMBER;
    var_1 = var_2((type_2 *)&di->n);
    *(long *)&pdVar1->u = (long)var_1;
    return pdVar1;
  }
  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: (sized_type_specifier) declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) 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: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (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)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)))) (return_statement (identifier)))) (return_statement (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))))

undefined4 * MASKED(long param_1)

{
  undefined4 *puVar1;
  int iVar2;
  
  iVar2 = *(int *)(param_1 + 0x28);
  if (iVar2 < *(int *)(param_1 + 0x2c)) {
    puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);
    puVar1[1] = 0;
    *(int *)(param_1 + 0x28) = iVar2 + 1;
    *puVar1 = 0x41;
    iVar2 = FUN_002c93e0();
    *(long *)(puVar1 + 2) = (long)iVar2;
    return puVar1;
  }
  return (undefined4 *)0x0;
}

