
/* WARNING: Unknown calling convention */

void get_pos(void *ifile,scrpos *scrpos)

{
  *(undefined4 *)&scrpos->pos = *(undefined4 *)((int)ifile + 0x1c);
  *(undefined4 *)((int)&scrpos->pos + 4) = *(undefined4 *)((int)ifile + 0x20);
  scrpos->ln = *(int *)((int)ifile + 0x24);
  return;
}



void FUN_0001f0a0(int param_1,undefined4 *param_2)

{
  *param_2 = *(undefined4 *)(param_1 + 0x1c);
  param_2[1] = *(undefined4 *)(param_1 + 0x20);
  param_2[2] = *(undefined4 *)(param_1 + 0x24);
  return;
}


MOV EDX,dword ptr [ESP + 0x4]
MOV EAX,dword ptr [ESP + 0x8]
MOV ECX,dword ptr [EDX + 0x1c]
MOV dword ptr [EAX],ECX
MOV ECX,dword ptr [EDX + 0x20]
MOV dword ptr [EAX + 0x4],ECX
MOV EDX,dword ptr [EDX + 0x24]
MOV dword ptr [EAX + 0x8],EDX
RET
(translation_unit "void FUN_0001f0a0(int param_1,undefined4 *param_2)\n\n{\n  *param_2 = *(undefined4 *)(param_1 + 0x1c);\n  param_2[1] = *(undefined4 *)(param_1 + 0x20);\n  param_2[2] = *(undefined4 *)(param_1 + 0x24);\n  return;\n}\n\n" (function_definition "void FUN_0001f0a0(int param_1,undefined4 *param_2)\n\n{\n  *param_2 = *(undefined4 *)(param_1 + 0x1c);\n  param_2[1] = *(undefined4 *)(param_1 + 0x20);\n  param_2[2] = *(undefined4 *)(param_1 + 0x24);\n  return;\n}" primitive_type (function_declarator "FUN_0001f0a0(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  *param_2 = *(undefined4 *)(param_1 + 0x1c);\n  param_2[1] = *(undefined4 *)(param_1 + 0x20);\n  param_2[2] = *(undefined4 *)(param_1 + 0x24);\n  return;\n}" { (expression_statement "*param_2 = *(undefined4 *)(param_1 + 0x1c);" (assignment_expression "*param_2 = *(undefined4 *)(param_1 + 0x1c)" (pointer_expression "*param_2" * identifier) = (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "param_2[1] = *(undefined4 *)(param_1 + 0x20);" (assignment_expression "param_2[1] = *(undefined4 *)(param_1 + 0x20)" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)(param_1 + 0x20)" * (cast_expression "(undefined4 *)(param_1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "param_2[2] = *(undefined4 *)(param_1 + 0x24);" (assignment_expression "param_2[2] = *(undefined4 *)(param_1 + 0x24)" (subscript_expression "param_2[2]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)(param_1 + 0x24)" * (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nvoid get_pos(void *ifile,scrpos *scrpos)\n\n{\n  *(undefined4 *)&scrpos->pos = *(undefined4 *)((int)ifile + 0x1c);\n  *(undefined4 *)((int)&scrpos->pos + 4) = *(undefined4 *)((int)ifile + 0x20);\n  scrpos->ln = *(int *)((int)ifile + 0x24);\n  return;\n}\n\n" comment (function_definition "void get_pos(void *ifile,scrpos *scrpos)\n\n{\n  *(undefined4 *)&scrpos->pos = *(undefined4 *)((int)ifile + 0x1c);\n  *(undefined4 *)((int)&scrpos->pos + 4) = *(undefined4 *)((int)ifile + 0x20);\n  scrpos->ln = *(int *)((int)ifile + 0x24);\n  return;\n}" primitive_type (function_declarator "get_pos(void *ifile,scrpos *scrpos)" identifier (parameter_list "(void *ifile,scrpos *scrpos)" ( (parameter_declaration "void *ifile" primitive_type (pointer_declarator "*ifile" * identifier)) , (parameter_declaration "scrpos *scrpos" type_identifier (pointer_declarator "*scrpos" * identifier)) ))) (compound_statement "{\n  *(undefined4 *)&scrpos->pos = *(undefined4 *)((int)ifile + 0x1c);\n  *(undefined4 *)((int)&scrpos->pos + 4) = *(undefined4 *)((int)ifile + 0x20);\n  scrpos->ln = *(int *)((int)ifile + 0x24);\n  return;\n}" { (expression_statement "*(undefined4 *)&scrpos->pos = *(undefined4 *)((int)ifile + 0x1c);" (assignment_expression "*(undefined4 *)&scrpos->pos = *(undefined4 *)((int)ifile + 0x1c)" (pointer_expression "*(undefined4 *)&scrpos->pos" * (cast_expression "(undefined4 *)&scrpos->pos" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&scrpos->pos" & (field_expression "scrpos->pos" identifier -> field_identifier)))) = (pointer_expression "*(undefined4 *)((int)ifile + 0x1c)" * (cast_expression "(undefined4 *)((int)ifile + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ifile + 0x1c)" ( (binary_expression "(int)ifile + 0x1c" (cast_expression "(int)ifile" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "*(undefined4 *)((int)&scrpos->pos + 4) = *(undefined4 *)((int)ifile + 0x20);" (assignment_expression "*(undefined4 *)((int)&scrpos->pos + 4) = *(undefined4 *)((int)ifile + 0x20)" (pointer_expression "*(undefined4 *)((int)&scrpos->pos + 4)" * (cast_expression "(undefined4 *)((int)&scrpos->pos + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&scrpos->pos + 4)" ( (binary_expression "(int)&scrpos->pos + 4" (cast_expression "(int)&scrpos->pos" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&scrpos->pos" & (field_expression "scrpos->pos" identifier -> field_identifier))) + number_literal) )))) = (pointer_expression "*(undefined4 *)((int)ifile + 0x20)" * (cast_expression "(undefined4 *)((int)ifile + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ifile + 0x20)" ( (binary_expression "(int)ifile + 0x20" (cast_expression "(int)ifile" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "scrpos->ln = *(int *)((int)ifile + 0x24);" (assignment_expression "scrpos->ln = *(int *)((int)ifile + 0x24)" (field_expression "scrpos->ln" identifier -> field_identifier) = (pointer_expression "*(int *)((int)ifile + 0x24)" * (cast_expression "(int *)((int)ifile + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ifile + 0x24)" ( (binary_expression "(int)ifile + 0x24" (cast_expression "(int)ifile" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0001f0a0(int param_1,undefined4 *param_2)\n\n{\n  *param_2 = *(undefined4 *)(param_1 + 0x1c);\n  param_2[1] = *(undefined4 *)(param_1 + 0x20);\n  param_2[2] = *(undefined4 *)(param_1 + 0x24);\n  return;\n}\n\n" (function_definition "void FUN_0001f0a0(int param_1,undefined4 *param_2)\n\n{\n  *param_2 = *(undefined4 *)(param_1 + 0x1c);\n  param_2[1] = *(undefined4 *)(param_1 + 0x20);\n  param_2[2] = *(undefined4 *)(param_1 + 0x24);\n  return;\n}" primitive_type (function_declarator "FUN_0001f0a0(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  *param_2 = *(undefined4 *)(param_1 + 0x1c);\n  param_2[1] = *(undefined4 *)(param_1 + 0x20);\n  param_2[2] = *(undefined4 *)(param_1 + 0x24);\n  return;\n}" { (expression_statement "*param_2 = *(undefined4 *)(param_1 + 0x1c);" (assignment_expression "*param_2 = *(undefined4 *)(param_1 + 0x1c)" (pointer_expression "*param_2" * identifier) = (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "param_2[1] = *(undefined4 *)(param_1 + 0x20);" (assignment_expression "param_2[1] = *(undefined4 *)(param_1 + 0x20)" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)(param_1 + 0x20)" * (cast_expression "(undefined4 *)(param_1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "param_2[2] = *(undefined4 *)(param_1 + 0x24);" (assignment_expression "param_2[2] = *(undefined4 *)(param_1 + 0x24)" (subscript_expression "param_2[2]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)(param_1 + 0x24)" * (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (return_statement return ;) })))
(function_definition "void FUN_0001f0a0(int param_1,undefined4 *param_2)\n\n{\n  *param_2 = *(undefined4 *)(param_1 + 0x1c);\n  param_2[1] = *(undefined4 *)(param_1 + 0x20);\n  param_2[2] = *(undefined4 *)(param_1 + 0x24);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001f0a0(int param_1,undefined4 *param_2)" (identifier "FUN_0001f0a0") (parameter_list "(int param_1,undefined4 *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  *param_2 = *(undefined4 *)(param_1 + 0x1c);\n  param_2[1] = *(undefined4 *)(param_1 + 0x20);\n  param_2[2] = *(undefined4 *)(param_1 + 0x24);\n  return;\n}" ({ "{") (expression_statement "*param_2 = *(undefined4 *)(param_1 + 0x1c);" (assignment_expression "*param_2 = *(undefined4 *)(param_1 + 0x1c)" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "param_2[1] = *(undefined4 *)(param_1 + 0x20);" (assignment_expression "param_2[1] = *(undefined4 *)(param_1 + 0x20)" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x20)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (expression_statement "param_2[2] = *(undefined4 *)(param_1 + 0x24);" (assignment_expression "param_2[2] = *(undefined4 *)(param_1 + 0x24)" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x24)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

void function_1(void *ifile,type_1 *type_1)

{
  *(type_2 *)&type_1->pos = *(type_2 *)((int)ifile + 0x1c);
  *(type_2 *)((int)&type_1->pos + 4) = *(type_2 *)((int)ifile + 0x20);
  type_1->ln = *(int *)((int)ifile + 0x24);
  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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (return_statement))))

void MASKED(int param_1,undefined4 *param_2)

{
  *param_2 = *(undefined4 *)(param_1 + 0x1c);
  param_2[1] = *(undefined4 *)(param_1 + 0x20);
  param_2[2] = *(undefined4 *)(param_1 + 0x24);
  return;
}

