
undefined4 d_bare_function_type(int param_1,int param_2)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  
  if (**(char **)(param_1 + 0xc) == 'J') {
    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;
  }
  else if (param_2 == 0) {
    iVar1 = 0;
    iVar2 = d_parmlist(param_1);
    goto joined_r0x00362d90;
  }
  iVar1 = d_type(param_1);
  if (iVar1 == 0) {
    return 0;
  }
  iVar2 = d_parmlist(param_1);
joined_r0x00362d90:
  if (iVar2 == 0) {
    return 0;
  }
  uVar3 = d_make_comp(param_1,0x29,iVar1,iVar2);
  return uVar3;
}



undefined4 FUN_00362ce0(int param_1,int param_2)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  
  if (**(char **)(param_1 + 0xc) == 'J') {
    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;
  }
  else if (param_2 == 0) {
    iVar1 = 0;
    iVar2 = FUN_00362810(param_1);
    goto joined_r0x00362d90;
  }
  iVar1 = FUN_00361930(param_1);
  if (iVar1 == 0) {
    return 0;
  }
  iVar2 = FUN_00362810(param_1);
joined_r0x00362d90:
  if (iVar2 == 0) {
    return 0;
  }
  uVar3 = FUN_0035f290(param_1,0x29,iVar1,iVar2);
  return uVar3;
}


lui gp,0xd
addiu gp,gp,0x74f0
addu gp,gp,t9
addiu sp,sp,-0x28
lw v0,0xc(a0)
li v1,0x4a
sw s0,0x1c(sp)
or s0,a0,zero
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s1,0x20(sp)
lb a0,0x0(v0)
beq a0,v1,0x00362db0
_addiu v0,v0,0x1
beq a1,zero,0x00362d80
_lw t9,-0x3d1c(gp)
lw t9,-0x3d1c(gp)
addiu t9,t9,0x1930
bal 0x00361930
_or a0,s0,zero
lw gp,0x10(sp)
beq v0,zero,0x00362d98
_or s1,v0,zero
lw t9,-0x3d1c(gp)
addiu t9,t9,0x2810
bal 0x00362810
_or a0,s0,zero
beq v0,zero,0x00362d98
_lw gp,0x10(sp)
lw t9,-0x3d1c(gp)
or a2,s1,zero
lw ra,0x24(sp)
or a0,s0,zero
lw s1,0x20(sp)
li a1,0x29
lw s0,0x1c(sp)
addiu t9,t9,-0xd70
addiu sp,sp,0x28
b 0x0035f290
_or a3,v0,zero
or a0,s0,zero
addiu t9,t9,0x2810
bal 0x00362810
_or s1,zero,zero
bne v0,zero,0x00362d54
_lw gp,0x10(sp)
lw ra,0x24(sp)
or v0,zero,zero
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
b 0x00362d20
_sw v0,0xc(s0)
(translation_unit "undefined4 FUN_00362ce0(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (**(char **)(param_1 + 0xc) == 'J') {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n  }\n  else if (param_2 == 0) {\n    iVar1 = 0;\n    iVar2 = FUN_00362810(param_1);\n    goto joined_r0x00362d90;\n  }\n  iVar1 = FUN_00361930(param_1);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  iVar2 = FUN_00362810(param_1);\njoined_r0x00362d90:\n  if (iVar2 == 0) {\n    return 0;\n  }\n  uVar3 = FUN_0035f290(param_1,0x29,iVar1,iVar2);\n  return uVar3;\n}\n\n" (function_definition "undefined4 FUN_00362ce0(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (**(char **)(param_1 + 0xc) == 'J') {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n  }\n  else if (param_2 == 0) {\n    iVar1 = 0;\n    iVar2 = FUN_00362810(param_1);\n    goto joined_r0x00362d90;\n  }\n  iVar1 = FUN_00361930(param_1);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  iVar2 = FUN_00362810(param_1);\njoined_r0x00362d90:\n  if (iVar2 == 0) {\n    return 0;\n  }\n  uVar3 = FUN_0035f290(param_1,0x29,iVar1,iVar2);\n  return uVar3;\n}" type_identifier (function_declarator "FUN_00362ce0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (**(char **)(param_1 + 0xc) == 'J') {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n  }\n  else if (param_2 == 0) {\n    iVar1 = 0;\n    iVar2 = FUN_00362810(param_1);\n    goto joined_r0x00362d90;\n  }\n  iVar1 = FUN_00361930(param_1);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  iVar2 = FUN_00362810(param_1);\njoined_r0x00362d90:\n  if (iVar2 == 0) {\n    return 0;\n  }\n  uVar3 = FUN_0035f290(param_1,0x29,iVar1,iVar2);\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (if_statement "if (**(char **)(param_1 + 0xc) == 'J') {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n  }\n  else if (param_2 == 0) {\n    iVar1 = 0;\n    iVar2 = FUN_00362810(param_1);\n    goto joined_r0x00362d90;\n  }" if (parenthesized_expression "(**(char **)(param_1 + 0xc) == 'J')" ( (binary_expression "**(char **)(param_1 + 0xc) == 'J'" (pointer_expression "**(char **)(param_1 + 0xc)" * (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) == (char_literal "'J'" ' character ')) )) (compound_statement "{\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n  }" { (expression_statement "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;" (assignment_expression "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1" (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (binary_expression "*(char **)(param_1 + 0xc) + 1" (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else if (param_2 == 0) {\n    iVar1 = 0;\n    iVar2 = FUN_00362810(param_1);\n    goto joined_r0x00362d90;\n  }" else (if_statement "if (param_2 == 0) {\n    iVar1 = 0;\n    iVar2 = FUN_00362810(param_1);\n    goto joined_r0x00362d90;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = 0;\n    iVar2 = FUN_00362810(param_1);\n    goto joined_r0x00362d90;\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = FUN_00362810(param_1);" (assignment_expression "iVar2 = FUN_00362810(param_1)" identifier = (call_expression "FUN_00362810(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (goto_statement "goto joined_r0x00362d90;" goto statement_identifier ;) })))) (expression_statement "iVar1 = FUN_00361930(param_1);" (assignment_expression "iVar1 = FUN_00361930(param_1)" identifier = (call_expression "FUN_00361930(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = FUN_00362810(param_1);" (assignment_expression "iVar2 = FUN_00362810(param_1)" identifier = (call_expression "FUN_00362810(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (labeled_statement "joined_r0x00362d90:\n  if (iVar2 == 0) {\n    return 0;\n  }" statement_identifier : (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) }))) (expression_statement "uVar3 = FUN_0035f290(param_1,0x29,iVar1,iVar2);" (assignment_expression "uVar3 = FUN_0035f290(param_1,0x29,iVar1,iVar2)" identifier = (call_expression "FUN_0035f290(param_1,0x29,iVar1,iVar2)" identifier (argument_list "(param_1,0x29,iVar1,iVar2)" ( identifier , number_literal , identifier , identifier )))) ;) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "undefined4 d_bare_function_type(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (**(char **)(param_1 + 0xc) == 'J') {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n  }\n  else if (param_2 == 0) {\n    iVar1 = 0;\n    iVar2 = d_parmlist(param_1);\n    goto joined_r0x00362d90;\n  }\n  iVar1 = d_type(param_1);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  iVar2 = d_parmlist(param_1);\njoined_r0x00362d90:\n  if (iVar2 == 0) {\n    return 0;\n  }\n  uVar3 = d_make_comp(param_1,0x29,iVar1,iVar2);\n  return uVar3;\n}\n\n" (function_definition "undefined4 d_bare_function_type(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (**(char **)(param_1 + 0xc) == 'J') {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n  }\n  else if (param_2 == 0) {\n    iVar1 = 0;\n    iVar2 = d_parmlist(param_1);\n    goto joined_r0x00362d90;\n  }\n  iVar1 = d_type(param_1);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  iVar2 = d_parmlist(param_1);\njoined_r0x00362d90:\n  if (iVar2 == 0) {\n    return 0;\n  }\n  uVar3 = d_make_comp(param_1,0x29,iVar1,iVar2);\n  return uVar3;\n}" type_identifier (function_declarator "d_bare_function_type(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (**(char **)(param_1 + 0xc) == 'J') {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n  }\n  else if (param_2 == 0) {\n    iVar1 = 0;\n    iVar2 = d_parmlist(param_1);\n    goto joined_r0x00362d90;\n  }\n  iVar1 = d_type(param_1);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  iVar2 = d_parmlist(param_1);\njoined_r0x00362d90:\n  if (iVar2 == 0) {\n    return 0;\n  }\n  uVar3 = d_make_comp(param_1,0x29,iVar1,iVar2);\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (if_statement "if (**(char **)(param_1 + 0xc) == 'J') {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n  }\n  else if (param_2 == 0) {\n    iVar1 = 0;\n    iVar2 = d_parmlist(param_1);\n    goto joined_r0x00362d90;\n  }" if (parenthesized_expression "(**(char **)(param_1 + 0xc) == 'J')" ( (binary_expression "**(char **)(param_1 + 0xc) == 'J'" (pointer_expression "**(char **)(param_1 + 0xc)" * (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) == (char_literal "'J'" ' character ')) )) (compound_statement "{\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n  }" { (expression_statement "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;" (assignment_expression "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1" (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (binary_expression "*(char **)(param_1 + 0xc) + 1" (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else if (param_2 == 0) {\n    iVar1 = 0;\n    iVar2 = d_parmlist(param_1);\n    goto joined_r0x00362d90;\n  }" else (if_statement "if (param_2 == 0) {\n    iVar1 = 0;\n    iVar2 = d_parmlist(param_1);\n    goto joined_r0x00362d90;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = 0;\n    iVar2 = d_parmlist(param_1);\n    goto joined_r0x00362d90;\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = d_parmlist(param_1);" (assignment_expression "iVar2 = d_parmlist(param_1)" identifier = (call_expression "d_parmlist(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (goto_statement "goto joined_r0x00362d90;" goto statement_identifier ;) })))) (expression_statement "iVar1 = d_type(param_1);" (assignment_expression "iVar1 = d_type(param_1)" identifier = (call_expression "d_type(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = d_parmlist(param_1);" (assignment_expression "iVar2 = d_parmlist(param_1)" identifier = (call_expression "d_parmlist(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (labeled_statement "joined_r0x00362d90:\n  if (iVar2 == 0) {\n    return 0;\n  }" statement_identifier : (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) }))) (expression_statement "uVar3 = d_make_comp(param_1,0x29,iVar1,iVar2);" (assignment_expression "uVar3 = d_make_comp(param_1,0x29,iVar1,iVar2)" identifier = (call_expression "d_make_comp(param_1,0x29,iVar1,iVar2)" identifier (argument_list "(param_1,0x29,iVar1,iVar2)" ( identifier , number_literal , identifier , identifier )))) ;) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "undefined4 FUN_00362ce0(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (**(char **)(param_1 + 0xc) == 'J') {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n  }\n  else if (param_2 == 0) {\n    iVar1 = 0;\n    iVar2 = FUN_00362810(param_1);\n    goto joined_r0x00362d90;\n  }\n  iVar1 = FUN_00361930(param_1);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  iVar2 = FUN_00362810(param_1);\njoined_r0x00362d90:\n  if (iVar2 == 0) {\n    return 0;\n  }\n  uVar3 = FUN_0035f290(param_1,0x29,iVar1,iVar2);\n  return uVar3;\n}\n\n" (function_definition "undefined4 FUN_00362ce0(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (**(char **)(param_1 + 0xc) == 'J') {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n  }\n  else if (param_2 == 0) {\n    iVar1 = 0;\n    iVar2 = FUN_00362810(param_1);\n    goto joined_r0x00362d90;\n  }\n  iVar1 = FUN_00361930(param_1);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  iVar2 = FUN_00362810(param_1);\njoined_r0x00362d90:\n  if (iVar2 == 0) {\n    return 0;\n  }\n  uVar3 = FUN_0035f290(param_1,0x29,iVar1,iVar2);\n  return uVar3;\n}" type_identifier (function_declarator "FUN_00362ce0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (**(char **)(param_1 + 0xc) == 'J') {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n  }\n  else if (param_2 == 0) {\n    iVar1 = 0;\n    iVar2 = FUN_00362810(param_1);\n    goto joined_r0x00362d90;\n  }\n  iVar1 = FUN_00361930(param_1);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  iVar2 = FUN_00362810(param_1);\njoined_r0x00362d90:\n  if (iVar2 == 0) {\n    return 0;\n  }\n  uVar3 = FUN_0035f290(param_1,0x29,iVar1,iVar2);\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (if_statement "if (**(char **)(param_1 + 0xc) == 'J') {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n  }\n  else if (param_2 == 0) {\n    iVar1 = 0;\n    iVar2 = FUN_00362810(param_1);\n    goto joined_r0x00362d90;\n  }" if (parenthesized_expression "(**(char **)(param_1 + 0xc) == 'J')" ( (binary_expression "**(char **)(param_1 + 0xc) == 'J'" (pointer_expression "**(char **)(param_1 + 0xc)" * (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) == (char_literal "'J'" ' character ')) )) (compound_statement "{\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n  }" { (expression_statement "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;" (assignment_expression "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1" (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (binary_expression "*(char **)(param_1 + 0xc) + 1" (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else if (param_2 == 0) {\n    iVar1 = 0;\n    iVar2 = FUN_00362810(param_1);\n    goto joined_r0x00362d90;\n  }" else (if_statement "if (param_2 == 0) {\n    iVar1 = 0;\n    iVar2 = FUN_00362810(param_1);\n    goto joined_r0x00362d90;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = 0;\n    iVar2 = FUN_00362810(param_1);\n    goto joined_r0x00362d90;\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = FUN_00362810(param_1);" (assignment_expression "iVar2 = FUN_00362810(param_1)" identifier = (call_expression "FUN_00362810(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (goto_statement "goto joined_r0x00362d90;" goto statement_identifier ;) })))) (expression_statement "iVar1 = FUN_00361930(param_1);" (assignment_expression "iVar1 = FUN_00361930(param_1)" identifier = (call_expression "FUN_00361930(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = FUN_00362810(param_1);" (assignment_expression "iVar2 = FUN_00362810(param_1)" identifier = (call_expression "FUN_00362810(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (labeled_statement "joined_r0x00362d90:\n  if (iVar2 == 0) {\n    return 0;\n  }" statement_identifier : (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) }))) (expression_statement "uVar3 = FUN_0035f290(param_1,0x29,iVar1,iVar2);" (assignment_expression "uVar3 = FUN_0035f290(param_1,0x29,iVar1,iVar2)" identifier = (call_expression "FUN_0035f290(param_1,0x29,iVar1,iVar2)" identifier (argument_list "(param_1,0x29,iVar1,iVar2)" ( identifier , number_literal , identifier , identifier )))) ;) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) == (char_literal ' character ')) )) (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) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (goto_statement goto statement_identifier ;) })))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , IDENT )))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_00362ce0(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (**(char **)(param_1 + 0xc) == 'J') {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n  }\n  else if (param_2 == 0) {\n    iVar1 = 0;\n    iVar2 = FUN_00362810(param_1);\n    goto joined_r0x00362d90;\n  }\n  iVar1 = FUN_00361930(param_1);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  iVar2 = FUN_00362810(param_1);\njoined_r0x00362d90:\n  if (iVar2 == 0) {\n    return 0;\n  }\n  uVar3 = FUN_0035f290(param_1,0x29,iVar1,iVar2);\n  return uVar3;\n}" (type_identifier "undefined4") (function_declarator "FUN_00362ce0(int param_1,int param_2)" (identifier "FUN_00362ce0") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (**(char **)(param_1 + 0xc) == 'J') {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n  }\n  else if (param_2 == 0) {\n    iVar1 = 0;\n    iVar2 = FUN_00362810(param_1);\n    goto joined_r0x00362d90;\n  }\n  iVar1 = FUN_00361930(param_1);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  iVar2 = FUN_00362810(param_1);\njoined_r0x00362d90:\n  if (iVar2 == 0) {\n    return 0;\n  }\n  uVar3 = FUN_0035f290(param_1,0x29,iVar1,iVar2);\n  return uVar3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (if_statement "if (**(char **)(param_1 + 0xc) == 'J') {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n  }\n  else if (param_2 == 0) {\n    iVar1 = 0;\n    iVar2 = FUN_00362810(param_1);\n    goto joined_r0x00362d90;\n  }" (if "if") (parenthesized_expression "(**(char **)(param_1 + 0xc) == 'J')" (( "(") (binary_expression "**(char **)(param_1 + 0xc) == 'J'" (pointer_expression "**(char **)(param_1 + 0xc)" (* "*") (pointer_expression "*(char **)(param_1 + 0xc)" (* "*") (cast_expression "(char **)(param_1 + 0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (== "==") (char_literal "'J'" (' "'") (character "J") (' "'"))) () ")")) (compound_statement "{\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n  }" ({ "{") (expression_statement "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;" (assignment_expression "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1" (pointer_expression "*(char **)(param_1 + 0xc)" (* "*") (cast_expression "(char **)(param_1 + 0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (binary_expression "*(char **)(param_1 + 0xc) + 1" (pointer_expression "*(char **)(param_1 + 0xc)" (* "*") (cast_expression "(char **)(param_1 + 0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else if (param_2 == 0) {\n    iVar1 = 0;\n    iVar2 = FUN_00362810(param_1);\n    goto joined_r0x00362d90;\n  }" (else "else") (if_statement "if (param_2 == 0) {\n    iVar1 = 0;\n    iVar2 = FUN_00362810(param_1);\n    goto joined_r0x00362d90;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = 0;\n    iVar2 = FUN_00362810(param_1);\n    goto joined_r0x00362d90;\n  }" ({ "{") (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = FUN_00362810(param_1);" (assignment_expression "iVar2 = FUN_00362810(param_1)" (identifier "iVar2") (= "=") (call_expression "FUN_00362810(param_1)" (identifier "FUN_00362810") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (goto_statement "goto joined_r0x00362d90;" (goto "goto") (statement_identifier "joined_r0x00362d90") (; ";")) (} "}"))))) (expression_statement "iVar1 = FUN_00361930(param_1);" (assignment_expression "iVar1 = FUN_00361930(param_1)" (identifier "iVar1") (= "=") (call_expression "FUN_00361930(param_1)" (identifier "FUN_00361930") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_00362810(param_1);" (assignment_expression "iVar2 = FUN_00362810(param_1)" (identifier "iVar2") (= "=") (call_expression "FUN_00362810(param_1)" (identifier "FUN_00362810") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (labeled_statement "joined_r0x00362d90:\n  if (iVar2 == 0) {\n    return 0;\n  }" (statement_identifier "joined_r0x00362d90") (: ":") (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))) (expression_statement "uVar3 = FUN_0035f290(param_1,0x29,iVar1,iVar2);" (assignment_expression "uVar3 = FUN_0035f290(param_1,0x29,iVar1,iVar2)" (identifier "uVar3") (= "=") (call_expression "FUN_0035f290(param_1,0x29,iVar1,iVar2)" (identifier "FUN_0035f290") (argument_list "(param_1,0x29,iVar1,iVar2)" (( "(") (identifier "param_1") (, ",") (number_literal "0x29") (, ",") (identifier "iVar1") (, ",") (identifier "iVar2") () ")")))) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (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: (char_literal (character)))) 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: (binary_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: (number_literal))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (goto_statement label: (statement_identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier) (identifier))))) (return_statement (identifier)))))

undefined4 MASKED(int param_1,int param_2)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  
  if (**(char **)(param_1 + 0xc) == 'J') {
    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;
  }
  else if (param_2 == 0) {
    iVar1 = 0;
    iVar2 = FUN_00362810(param_1);
    goto joined_r0x00362d90;
  }
  iVar1 = FUN_00361930(param_1);
  if (iVar1 == 0) {
    return 0;
  }
  iVar2 = FUN_00362810(param_1);
joined_r0x00362d90:
  if (iVar2 == 0) {
    return 0;
  }
  uVar3 = FUN_0035f290(param_1,0x29,iVar1,iVar2);
  return uVar3;
}

