
int gen_tempname_len(char *tmpl,int suffixlen,int flags,int kind,size_t x_suffix_len)

{
  int iVar1;
  _func_int_char_ptr_void_ptr *tryfunc;
  int local_res8 [2];
  
  local_res8[0] = flags;
  if (kind == 1) {
    tryfunc = (_func_int_char_ptr_void_ptr *)(PTR_LAB_0004326c + 0x4e54);
  }
  else if (kind == 2) {
    tryfunc = (_func_int_char_ptr_void_ptr *)(PTR_LAB_0004326c + 0x4da0);
  }
  else {
    if (kind != 0) {
      iVar1 = (*(code *)PTR___assert_fail_00043428)
                        (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,
                         PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,
                         PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);
      return iVar1;
    }
    tryfunc = (_func_int_char_ptr_void_ptr *)(PTR_LAB_0004326c + 0x4e6c);
  }
  iVar1 = try_tempname_len(tmpl,suffixlen,local_res8,tryfunc,x_suffix_len);
  return iVar1;
}



void gen_tempname_len(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,
                     undefined4 param_5)

{
  undefined *puVar1;
  undefined4 local_res8 [2];
  
  local_res8[0] = param_3;
  if (param_4 == 1) {
    puVar1 = PTR_LAB_0004326c + 0x4e54;
  }
  else if (param_4 == 2) {
    puVar1 = PTR_LAB_0004326c + 0x4da0;
  }
  else {
    if (param_4 != 0) {
      (*(code *)PTR___assert_fail_00043428)
                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,
                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,
                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);
      return;
    }
    puVar1 = PTR_LAB_0004326c + 0x4e6c;
  }
  try_tempname_len(param_1,param_2,local_res8,puVar1,param_5);
  return;
}


lui gp,0x2
addiu gp,gp,0x604c
addu gp,gp,t9
addiu sp,sp,-0x28
li v0,0x1
sw gp,0x18(sp)
sw ra,0x24(sp)
beq a3,v0,0x00025130
_sw a2,0x30(sp)
li v0,0x2
beq a3,v0,0x000250fc
_nop
beq a3,zero,0x00025124
_li a2,0x147
lw a3,-0x7fc8(gp)
lw a1,-0x7fc8(gp)
lw a0,-0x7fc8(gp)
lw t9,-0x7cc8(gp)
addiu a3,a3,0x2130
addiu a1,a1,0x20f0
jalr t9
_addiu a0,a0,0x2100
lw a3,-0x7e84(gp)
addiu a3,a3,0x4da0
lw v0,0x38(sp)
addiu a2,sp,0x30
lw t9,-0x7e78(gp)
bal 0x00024e94
_sw v0,0x10(sp)
lw ra,0x24(sp)
jr ra
_addiu sp,sp,0x28
lw a3,-0x7e84(gp)
b 0x00025104
_addiu a3,a3,0x4e6c
lw a3,-0x7e84(gp)
b 0x00025104
_addiu a3,a3,0x4e54
(translation_unit "void gen_tempname_len(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,\n                     undefined4 param_5)\n\n{\n  undefined *puVar1;\n  undefined4 local_res8 [2];\n  \n  local_res8[0] = param_3;\n  if (param_4 == 1) {\n    puVar1 = PTR_LAB_0004326c + 0x4e54;\n  }\n  else if (param_4 == 2) {\n    puVar1 = PTR_LAB_0004326c + 0x4da0;\n  }\n  else {\n    if (param_4 != 0) {\n      (*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return;\n    }\n    puVar1 = PTR_LAB_0004326c + 0x4e6c;\n  }\n  try_tempname_len(param_1,param_2,local_res8,puVar1,param_5);\n  return;\n}\n\n" (function_definition "void gen_tempname_len(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,\n                     undefined4 param_5)\n\n{\n  undefined *puVar1;\n  undefined4 local_res8 [2];\n  \n  local_res8[0] = param_3;\n  if (param_4 == 1) {\n    puVar1 = PTR_LAB_0004326c + 0x4e54;\n  }\n  else if (param_4 == 2) {\n    puVar1 = PTR_LAB_0004326c + 0x4da0;\n  }\n  else {\n    if (param_4 != 0) {\n      (*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return;\n    }\n    puVar1 = PTR_LAB_0004326c + 0x4e6c;\n  }\n  try_tempname_len(param_1,param_2,local_res8,puVar1,param_5);\n  return;\n}" primitive_type (function_declarator "gen_tempname_len(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,\n                     undefined4 param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,\n                     undefined4 param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 local_res8 [2];\n  \n  local_res8[0] = param_3;\n  if (param_4 == 1) {\n    puVar1 = PTR_LAB_0004326c + 0x4e54;\n  }\n  else if (param_4 == 2) {\n    puVar1 = PTR_LAB_0004326c + 0x4da0;\n  }\n  else {\n    if (param_4 != 0) {\n      (*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return;\n    }\n    puVar1 = PTR_LAB_0004326c + 0x4e6c;\n  }\n  try_tempname_len(param_1,param_2,local_res8,puVar1,param_5);\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 local_res8 [2];" type_identifier (array_declarator "local_res8 [2]" identifier [ number_literal ]) ;) (expression_statement "local_res8[0] = param_3;" (assignment_expression "local_res8[0] = param_3" (subscript_expression "local_res8[0]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (param_4 == 1) {\n    puVar1 = PTR_LAB_0004326c + 0x4e54;\n  }\n  else if (param_4 == 2) {\n    puVar1 = PTR_LAB_0004326c + 0x4da0;\n  }\n  else {\n    if (param_4 != 0) {\n      (*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return;\n    }\n    puVar1 = PTR_LAB_0004326c + 0x4e6c;\n  }" if (parenthesized_expression "(param_4 == 1)" ( (binary_expression "param_4 == 1" identifier == number_literal) )) (compound_statement "{\n    puVar1 = PTR_LAB_0004326c + 0x4e54;\n  }" { (expression_statement "puVar1 = PTR_LAB_0004326c + 0x4e54;" (assignment_expression "puVar1 = PTR_LAB_0004326c + 0x4e54" identifier = (binary_expression "PTR_LAB_0004326c + 0x4e54" identifier + number_literal)) ;) }) (else_clause "else if (param_4 == 2) {\n    puVar1 = PTR_LAB_0004326c + 0x4da0;\n  }\n  else {\n    if (param_4 != 0) {\n      (*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return;\n    }\n    puVar1 = PTR_LAB_0004326c + 0x4e6c;\n  }" else (if_statement "if (param_4 == 2) {\n    puVar1 = PTR_LAB_0004326c + 0x4da0;\n  }\n  else {\n    if (param_4 != 0) {\n      (*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return;\n    }\n    puVar1 = PTR_LAB_0004326c + 0x4e6c;\n  }" if (parenthesized_expression "(param_4 == 2)" ( (binary_expression "param_4 == 2" identifier == number_literal) )) (compound_statement "{\n    puVar1 = PTR_LAB_0004326c + 0x4da0;\n  }" { (expression_statement "puVar1 = PTR_LAB_0004326c + 0x4da0;" (assignment_expression "puVar1 = PTR_LAB_0004326c + 0x4da0" identifier = (binary_expression "PTR_LAB_0004326c + 0x4da0" identifier + number_literal)) ;) }) (else_clause "else {\n    if (param_4 != 0) {\n      (*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return;\n    }\n    puVar1 = PTR_LAB_0004326c + 0x4e6c;\n  }" else (compound_statement "{\n    if (param_4 != 0) {\n      (*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return;\n    }\n    puVar1 = PTR_LAB_0004326c + 0x4e6c;\n  }" { (if_statement "if (param_4 != 0) {\n      (*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return;\n    }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n      (*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return;\n    }" { (expression_statement "(*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);" (call_expression "(*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130)" (parenthesized_expression "(*(code *)PTR___assert_fail_00043428)" ( (pointer_expression "*(code *)PTR___assert_fail_00043428" * (cast_expression "(code *)PTR___assert_fail_00043428" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130)" ( (binary_expression "PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100" identifier + number_literal) , (binary_expression "PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "puVar1 = PTR_LAB_0004326c + 0x4e6c;" (assignment_expression "puVar1 = PTR_LAB_0004326c + 0x4e6c" identifier = (binary_expression "PTR_LAB_0004326c + 0x4e6c" identifier + number_literal)) ;) }))))) (expression_statement "try_tempname_len(param_1,param_2,local_res8,puVar1,param_5);" (call_expression "try_tempname_len(param_1,param_2,local_res8,puVar1,param_5)" identifier (argument_list "(param_1,param_2,local_res8,puVar1,param_5)" ( identifier , identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "int gen_tempname_len(char *tmpl,int suffixlen,int flags,int kind,size_t x_suffix_len)\n\n{\n  int iVar1;\n  _func_int_char_ptr_void_ptr *tryfunc;\n  int local_res8 [2];\n  \n  local_res8[0] = flags;\n  if (kind == 1) {\n    tryfunc = (_func_int_char_ptr_void_ptr *)(PTR_LAB_0004326c + 0x4e54);\n  }\n  else if (kind == 2) {\n    tryfunc = (_func_int_char_ptr_void_ptr *)(PTR_LAB_0004326c + 0x4da0);\n  }\n  else {\n    if (kind != 0) {\n      iVar1 = (*(code *)PTR___assert_fail_00043428)\n                        (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                         PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                         PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return iVar1;\n    }\n    tryfunc = (_func_int_char_ptr_void_ptr *)(PTR_LAB_0004326c + 0x4e6c);\n  }\n  iVar1 = try_tempname_len(tmpl,suffixlen,local_res8,tryfunc,x_suffix_len);\n  return iVar1;\n}\n\n" (function_definition "int gen_tempname_len(char *tmpl,int suffixlen,int flags,int kind,size_t x_suffix_len)\n\n{\n  int iVar1;\n  _func_int_char_ptr_void_ptr *tryfunc;\n  int local_res8 [2];\n  \n  local_res8[0] = flags;\n  if (kind == 1) {\n    tryfunc = (_func_int_char_ptr_void_ptr *)(PTR_LAB_0004326c + 0x4e54);\n  }\n  else if (kind == 2) {\n    tryfunc = (_func_int_char_ptr_void_ptr *)(PTR_LAB_0004326c + 0x4da0);\n  }\n  else {\n    if (kind != 0) {\n      iVar1 = (*(code *)PTR___assert_fail_00043428)\n                        (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                         PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                         PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return iVar1;\n    }\n    tryfunc = (_func_int_char_ptr_void_ptr *)(PTR_LAB_0004326c + 0x4e6c);\n  }\n  iVar1 = try_tempname_len(tmpl,suffixlen,local_res8,tryfunc,x_suffix_len);\n  return iVar1;\n}" primitive_type (function_declarator "gen_tempname_len(char *tmpl,int suffixlen,int flags,int kind,size_t x_suffix_len)" identifier (parameter_list "(char *tmpl,int suffixlen,int flags,int kind,size_t x_suffix_len)" ( (parameter_declaration "char *tmpl" primitive_type (pointer_declarator "*tmpl" * identifier)) , (parameter_declaration "int suffixlen" primitive_type identifier) , (parameter_declaration "int flags" primitive_type identifier) , (parameter_declaration "int kind" primitive_type identifier) , (parameter_declaration "size_t x_suffix_len" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  _func_int_char_ptr_void_ptr *tryfunc;\n  int local_res8 [2];\n  \n  local_res8[0] = flags;\n  if (kind == 1) {\n    tryfunc = (_func_int_char_ptr_void_ptr *)(PTR_LAB_0004326c + 0x4e54);\n  }\n  else if (kind == 2) {\n    tryfunc = (_func_int_char_ptr_void_ptr *)(PTR_LAB_0004326c + 0x4da0);\n  }\n  else {\n    if (kind != 0) {\n      iVar1 = (*(code *)PTR___assert_fail_00043428)\n                        (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                         PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                         PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return iVar1;\n    }\n    tryfunc = (_func_int_char_ptr_void_ptr *)(PTR_LAB_0004326c + 0x4e6c);\n  }\n  iVar1 = try_tempname_len(tmpl,suffixlen,local_res8,tryfunc,x_suffix_len);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "_func_int_char_ptr_void_ptr *tryfunc;" type_identifier (pointer_declarator "*tryfunc" * identifier) ;) (declaration "int local_res8 [2];" primitive_type (array_declarator "local_res8 [2]" identifier [ number_literal ]) ;) (expression_statement "local_res8[0] = flags;" (assignment_expression "local_res8[0] = flags" (subscript_expression "local_res8[0]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (kind == 1) {\n    tryfunc = (_func_int_char_ptr_void_ptr *)(PTR_LAB_0004326c + 0x4e54);\n  }\n  else if (kind == 2) {\n    tryfunc = (_func_int_char_ptr_void_ptr *)(PTR_LAB_0004326c + 0x4da0);\n  }\n  else {\n    if (kind != 0) {\n      iVar1 = (*(code *)PTR___assert_fail_00043428)\n                        (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                         PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                         PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return iVar1;\n    }\n    tryfunc = (_func_int_char_ptr_void_ptr *)(PTR_LAB_0004326c + 0x4e6c);\n  }" if (parenthesized_expression "(kind == 1)" ( (binary_expression "kind == 1" identifier == number_literal) )) (compound_statement "{\n    tryfunc = (_func_int_char_ptr_void_ptr *)(PTR_LAB_0004326c + 0x4e54);\n  }" { (expression_statement "tryfunc = (_func_int_char_ptr_void_ptr *)(PTR_LAB_0004326c + 0x4e54);" (assignment_expression "tryfunc = (_func_int_char_ptr_void_ptr *)(PTR_LAB_0004326c + 0x4e54)" identifier = (cast_expression "(_func_int_char_ptr_void_ptr *)(PTR_LAB_0004326c + 0x4e54)" ( (type_descriptor "_func_int_char_ptr_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0004326c + 0x4e54)" ( (binary_expression "PTR_LAB_0004326c + 0x4e54" identifier + number_literal) )))) ;) }) (else_clause "else if (kind == 2) {\n    tryfunc = (_func_int_char_ptr_void_ptr *)(PTR_LAB_0004326c + 0x4da0);\n  }\n  else {\n    if (kind != 0) {\n      iVar1 = (*(code *)PTR___assert_fail_00043428)\n                        (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                         PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                         PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return iVar1;\n    }\n    tryfunc = (_func_int_char_ptr_void_ptr *)(PTR_LAB_0004326c + 0x4e6c);\n  }" else (if_statement "if (kind == 2) {\n    tryfunc = (_func_int_char_ptr_void_ptr *)(PTR_LAB_0004326c + 0x4da0);\n  }\n  else {\n    if (kind != 0) {\n      iVar1 = (*(code *)PTR___assert_fail_00043428)\n                        (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                         PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                         PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return iVar1;\n    }\n    tryfunc = (_func_int_char_ptr_void_ptr *)(PTR_LAB_0004326c + 0x4e6c);\n  }" if (parenthesized_expression "(kind == 2)" ( (binary_expression "kind == 2" identifier == number_literal) )) (compound_statement "{\n    tryfunc = (_func_int_char_ptr_void_ptr *)(PTR_LAB_0004326c + 0x4da0);\n  }" { (expression_statement "tryfunc = (_func_int_char_ptr_void_ptr *)(PTR_LAB_0004326c + 0x4da0);" (assignment_expression "tryfunc = (_func_int_char_ptr_void_ptr *)(PTR_LAB_0004326c + 0x4da0)" identifier = (cast_expression "(_func_int_char_ptr_void_ptr *)(PTR_LAB_0004326c + 0x4da0)" ( (type_descriptor "_func_int_char_ptr_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0004326c + 0x4da0)" ( (binary_expression "PTR_LAB_0004326c + 0x4da0" identifier + number_literal) )))) ;) }) (else_clause "else {\n    if (kind != 0) {\n      iVar1 = (*(code *)PTR___assert_fail_00043428)\n                        (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                         PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                         PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return iVar1;\n    }\n    tryfunc = (_func_int_char_ptr_void_ptr *)(PTR_LAB_0004326c + 0x4e6c);\n  }" else (compound_statement "{\n    if (kind != 0) {\n      iVar1 = (*(code *)PTR___assert_fail_00043428)\n                        (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                         PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                         PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return iVar1;\n    }\n    tryfunc = (_func_int_char_ptr_void_ptr *)(PTR_LAB_0004326c + 0x4e6c);\n  }" { (if_statement "if (kind != 0) {\n      iVar1 = (*(code *)PTR___assert_fail_00043428)\n                        (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                         PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                         PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return iVar1;\n    }" if (parenthesized_expression "(kind != 0)" ( (binary_expression "kind != 0" identifier != number_literal) )) (compound_statement "{\n      iVar1 = (*(code *)PTR___assert_fail_00043428)\n                        (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                         PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                         PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return iVar1;\n    }" { (expression_statement "iVar1 = (*(code *)PTR___assert_fail_00043428)\n                        (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                         PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                         PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);" (assignment_expression "iVar1 = (*(code *)PTR___assert_fail_00043428)\n                        (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                         PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                         PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130)" identifier = (call_expression "(*(code *)PTR___assert_fail_00043428)\n                        (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                         PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                         PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130)" (parenthesized_expression "(*(code *)PTR___assert_fail_00043428)" ( (pointer_expression "*(code *)PTR___assert_fail_00043428" * (cast_expression "(code *)PTR___assert_fail_00043428" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                         PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                         PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130)" ( (binary_expression "PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100" identifier + number_literal) , (binary_expression "PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130" identifier + number_literal) )))) ;) (return_statement "return iVar1;" return identifier ;) })) (expression_statement "tryfunc = (_func_int_char_ptr_void_ptr *)(PTR_LAB_0004326c + 0x4e6c);" (assignment_expression "tryfunc = (_func_int_char_ptr_void_ptr *)(PTR_LAB_0004326c + 0x4e6c)" identifier = (cast_expression "(_func_int_char_ptr_void_ptr *)(PTR_LAB_0004326c + 0x4e6c)" ( (type_descriptor "_func_int_char_ptr_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0004326c + 0x4e6c)" ( (binary_expression "PTR_LAB_0004326c + 0x4e6c" identifier + number_literal) )))) ;) }))))) (expression_statement "iVar1 = try_tempname_len(tmpl,suffixlen,local_res8,tryfunc,x_suffix_len);" (assignment_expression "iVar1 = try_tempname_len(tmpl,suffixlen,local_res8,tryfunc,x_suffix_len)" identifier = (call_expression "try_tempname_len(tmpl,suffixlen,local_res8,tryfunc,x_suffix_len)" identifier (argument_list "(tmpl,suffixlen,local_res8,tryfunc,x_suffix_len)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "void gen_tempname_len(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,\n                     undefined4 param_5)\n\n{\n  undefined *puVar1;\n  undefined4 local_res8 [2];\n  \n  local_res8[0] = param_3;\n  if (param_4 == 1) {\n    puVar1 = PTR_LAB_0004326c + 0x4e54;\n  }\n  else if (param_4 == 2) {\n    puVar1 = PTR_LAB_0004326c + 0x4da0;\n  }\n  else {\n    if (param_4 != 0) {\n      (*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return;\n    }\n    puVar1 = PTR_LAB_0004326c + 0x4e6c;\n  }\n  try_tempname_len(param_1,param_2,local_res8,puVar1,param_5);\n  return;\n}\n\n" (function_definition "void gen_tempname_len(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,\n                     undefined4 param_5)\n\n{\n  undefined *puVar1;\n  undefined4 local_res8 [2];\n  \n  local_res8[0] = param_3;\n  if (param_4 == 1) {\n    puVar1 = PTR_LAB_0004326c + 0x4e54;\n  }\n  else if (param_4 == 2) {\n    puVar1 = PTR_LAB_0004326c + 0x4da0;\n  }\n  else {\n    if (param_4 != 0) {\n      (*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return;\n    }\n    puVar1 = PTR_LAB_0004326c + 0x4e6c;\n  }\n  try_tempname_len(param_1,param_2,local_res8,puVar1,param_5);\n  return;\n}" primitive_type (function_declarator "gen_tempname_len(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,\n                     undefined4 param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,\n                     undefined4 param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 local_res8 [2];\n  \n  local_res8[0] = param_3;\n  if (param_4 == 1) {\n    puVar1 = PTR_LAB_0004326c + 0x4e54;\n  }\n  else if (param_4 == 2) {\n    puVar1 = PTR_LAB_0004326c + 0x4da0;\n  }\n  else {\n    if (param_4 != 0) {\n      (*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return;\n    }\n    puVar1 = PTR_LAB_0004326c + 0x4e6c;\n  }\n  try_tempname_len(param_1,param_2,local_res8,puVar1,param_5);\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 local_res8 [2];" type_identifier (array_declarator "local_res8 [2]" identifier [ number_literal ]) ;) (expression_statement "local_res8[0] = param_3;" (assignment_expression "local_res8[0] = param_3" (subscript_expression "local_res8[0]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (param_4 == 1) {\n    puVar1 = PTR_LAB_0004326c + 0x4e54;\n  }\n  else if (param_4 == 2) {\n    puVar1 = PTR_LAB_0004326c + 0x4da0;\n  }\n  else {\n    if (param_4 != 0) {\n      (*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return;\n    }\n    puVar1 = PTR_LAB_0004326c + 0x4e6c;\n  }" if (parenthesized_expression "(param_4 == 1)" ( (binary_expression "param_4 == 1" identifier == number_literal) )) (compound_statement "{\n    puVar1 = PTR_LAB_0004326c + 0x4e54;\n  }" { (expression_statement "puVar1 = PTR_LAB_0004326c + 0x4e54;" (assignment_expression "puVar1 = PTR_LAB_0004326c + 0x4e54" identifier = (binary_expression "PTR_LAB_0004326c + 0x4e54" identifier + number_literal)) ;) }) (else_clause "else if (param_4 == 2) {\n    puVar1 = PTR_LAB_0004326c + 0x4da0;\n  }\n  else {\n    if (param_4 != 0) {\n      (*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return;\n    }\n    puVar1 = PTR_LAB_0004326c + 0x4e6c;\n  }" else (if_statement "if (param_4 == 2) {\n    puVar1 = PTR_LAB_0004326c + 0x4da0;\n  }\n  else {\n    if (param_4 != 0) {\n      (*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return;\n    }\n    puVar1 = PTR_LAB_0004326c + 0x4e6c;\n  }" if (parenthesized_expression "(param_4 == 2)" ( (binary_expression "param_4 == 2" identifier == number_literal) )) (compound_statement "{\n    puVar1 = PTR_LAB_0004326c + 0x4da0;\n  }" { (expression_statement "puVar1 = PTR_LAB_0004326c + 0x4da0;" (assignment_expression "puVar1 = PTR_LAB_0004326c + 0x4da0" identifier = (binary_expression "PTR_LAB_0004326c + 0x4da0" identifier + number_literal)) ;) }) (else_clause "else {\n    if (param_4 != 0) {\n      (*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return;\n    }\n    puVar1 = PTR_LAB_0004326c + 0x4e6c;\n  }" else (compound_statement "{\n    if (param_4 != 0) {\n      (*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return;\n    }\n    puVar1 = PTR_LAB_0004326c + 0x4e6c;\n  }" { (if_statement "if (param_4 != 0) {\n      (*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return;\n    }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n      (*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return;\n    }" { (expression_statement "(*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);" (call_expression "(*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130)" (parenthesized_expression "(*(code *)PTR___assert_fail_00043428)" ( (pointer_expression "*(code *)PTR___assert_fail_00043428" * (cast_expression "(code *)PTR___assert_fail_00043428" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130)" ( (binary_expression "PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100" identifier + number_literal) , (binary_expression "PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "puVar1 = PTR_LAB_0004326c + 0x4e6c;" (assignment_expression "puVar1 = PTR_LAB_0004326c + 0x4e6c" identifier = (binary_expression "PTR_LAB_0004326c + 0x4e6c" identifier + number_literal)) ;) }))))) (expression_statement "try_tempname_len(param_1,param_2,local_res8,puVar1,param_5);" (call_expression "try_tempname_len(param_1,param_2,local_res8,puVar1,param_5)" identifier (argument_list "(param_1,param_2,local_res8,puVar1,param_5)" ( identifier , identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))))) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void gen_tempname_len(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,\n                     undefined4 param_5)\n\n{\n  undefined *puVar1;\n  undefined4 local_res8 [2];\n  \n  local_res8[0] = param_3;\n  if (param_4 == 1) {\n    puVar1 = PTR_LAB_0004326c + 0x4e54;\n  }\n  else if (param_4 == 2) {\n    puVar1 = PTR_LAB_0004326c + 0x4da0;\n  }\n  else {\n    if (param_4 != 0) {\n      (*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return;\n    }\n    puVar1 = PTR_LAB_0004326c + 0x4e6c;\n  }\n  try_tempname_len(param_1,param_2,local_res8,puVar1,param_5);\n  return;\n}" (primitive_type "void") (function_declarator "gen_tempname_len(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,\n                     undefined4 param_5)" (identifier "gen_tempname_len") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,\n                     undefined4 param_5)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 local_res8 [2];\n  \n  local_res8[0] = param_3;\n  if (param_4 == 1) {\n    puVar1 = PTR_LAB_0004326c + 0x4e54;\n  }\n  else if (param_4 == 2) {\n    puVar1 = PTR_LAB_0004326c + 0x4da0;\n  }\n  else {\n    if (param_4 != 0) {\n      (*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return;\n    }\n    puVar1 = PTR_LAB_0004326c + 0x4e6c;\n  }\n  try_tempname_len(param_1,param_2,local_res8,puVar1,param_5);\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 local_res8 [2];" (type_identifier "undefined4") (array_declarator "local_res8 [2]" (identifier "local_res8") ([ "[") (number_literal "2") (] "]")) (; ";")) (expression_statement "local_res8[0] = param_3;" (assignment_expression "local_res8[0] = param_3" (subscript_expression "local_res8[0]" (identifier "local_res8") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "param_3")) (; ";")) (if_statement "if (param_4 == 1) {\n    puVar1 = PTR_LAB_0004326c + 0x4e54;\n  }\n  else if (param_4 == 2) {\n    puVar1 = PTR_LAB_0004326c + 0x4da0;\n  }\n  else {\n    if (param_4 != 0) {\n      (*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return;\n    }\n    puVar1 = PTR_LAB_0004326c + 0x4e6c;\n  }" (if "if") (parenthesized_expression "(param_4 == 1)" (( "(") (binary_expression "param_4 == 1" (identifier "param_4") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    puVar1 = PTR_LAB_0004326c + 0x4e54;\n  }" ({ "{") (expression_statement "puVar1 = PTR_LAB_0004326c + 0x4e54;" (assignment_expression "puVar1 = PTR_LAB_0004326c + 0x4e54" (identifier "puVar1") (= "=") (binary_expression "PTR_LAB_0004326c + 0x4e54" (identifier "PTR_LAB_0004326c") (+ "+") (number_literal "0x4e54"))) (; ";")) (} "}")) (else_clause "else if (param_4 == 2) {\n    puVar1 = PTR_LAB_0004326c + 0x4da0;\n  }\n  else {\n    if (param_4 != 0) {\n      (*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return;\n    }\n    puVar1 = PTR_LAB_0004326c + 0x4e6c;\n  }" (else "else") (if_statement "if (param_4 == 2) {\n    puVar1 = PTR_LAB_0004326c + 0x4da0;\n  }\n  else {\n    if (param_4 != 0) {\n      (*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return;\n    }\n    puVar1 = PTR_LAB_0004326c + 0x4e6c;\n  }" (if "if") (parenthesized_expression "(param_4 == 2)" (( "(") (binary_expression "param_4 == 2" (identifier "param_4") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n    puVar1 = PTR_LAB_0004326c + 0x4da0;\n  }" ({ "{") (expression_statement "puVar1 = PTR_LAB_0004326c + 0x4da0;" (assignment_expression "puVar1 = PTR_LAB_0004326c + 0x4da0" (identifier "puVar1") (= "=") (binary_expression "PTR_LAB_0004326c + 0x4da0" (identifier "PTR_LAB_0004326c") (+ "+") (number_literal "0x4da0"))) (; ";")) (} "}")) (else_clause "else {\n    if (param_4 != 0) {\n      (*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return;\n    }\n    puVar1 = PTR_LAB_0004326c + 0x4e6c;\n  }" (else "else") (compound_statement "{\n    if (param_4 != 0) {\n      (*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return;\n    }\n    puVar1 = PTR_LAB_0004326c + 0x4e6c;\n  }" ({ "{") (if_statement "if (param_4 != 0) {\n      (*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return;\n    }" (if "if") (parenthesized_expression "(param_4 != 0)" (( "(") (binary_expression "param_4 != 0" (identifier "param_4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      (*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);\n      return;\n    }" ({ "{") (expression_statement "(*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);" (call_expression "(*(code *)PTR___assert_fail_00043428)\n                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130)" (parenthesized_expression "(*(code *)PTR___assert_fail_00043428)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_00043428" (* "*") (cast_expression "(code *)PTR___assert_fail_00043428" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_00043428"))) () ")")) (argument_list "(PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,\n                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130)" (( "(") (binary_expression "PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100" (identifier "PTR_s_ore_than_one_of__i___f___n__only_00043128") (+ "+") (number_literal "0x2100")) (, ",") (binary_expression "PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0" (identifier "PTR_s_ore_than_one_of__i___f___n__only_00043128") (+ "+") (number_literal "0x20f0")) (, ",") (number_literal "0x147") (, ",") (binary_expression "PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130" (identifier "PTR_s_ore_than_one_of__i___f___n__only_00043128") (+ "+") (number_literal "0x2130")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "puVar1 = PTR_LAB_0004326c + 0x4e6c;" (assignment_expression "puVar1 = PTR_LAB_0004326c + 0x4e6c" (identifier "puVar1") (= "=") (binary_expression "PTR_LAB_0004326c + 0x4e6c" (identifier "PTR_LAB_0004326c") (+ "+") (number_literal "0x4e6c"))) (; ";")) (} "}")))))) (expression_statement "try_tempname_len(param_1,param_2,local_res8,puVar1,param_5);" (call_expression "try_tempname_len(param_1,param_2,local_res8,puVar1,param_5)" (identifier "try_tempname_len") (argument_list "(param_1,param_2,local_res8,puVar1,param_5)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "local_res8") (, ",") (identifier "puVar1") (, ",") (identifier "param_5") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

int function_1(char *tmpl,int suffixlen,int flags,int var_1,size_t x_suffix_len)

{
  int iVar1;
  type_1 *tryfunc;
  int local_res8 [2];
  
  local_res8[0] = flags;
  if (var_1 == 1) {
    tryfunc = (type_1 *)(var_2 + 0x4e54);
  }
  else if (var_1 == 2) {
    tryfunc = (type_1 *)(var_2 + 0x4da0);
  }
  else {
    if (var_1 != 0) {
      iVar1 = (*(type_2 *)PTR___assert_fail_00043428)
                        (var_3 + 0x2100,
                         var_3 + 0x20f0,0x147,
                         var_3 + 0x2130);
      return iVar1;
    }
    tryfunc = (type_1 *)(var_2 + 0x4e6c);
  }
  iVar1 = var_4(tmpl,suffixlen,local_res8,tryfunc,x_suffix_len);
  return iVar1;
}


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

void MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,
                     undefined4 param_5)

{
  undefined *puVar1;
  undefined4 local_res8 [2];
  
  local_res8[0] = param_3;
  if (param_4 == 1) {
    puVar1 = PTR_LAB_0004326c + 0x4e54;
  }
  else if (param_4 == 2) {
    puVar1 = PTR_LAB_0004326c + 0x4da0;
  }
  else {
    if (param_4 != 0) {
      (*(code *)PTR___assert_fail_00043428)
                (PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2100,
                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x20f0,0x147,
                 PTR_s_ore_than_one_of__i___f___n__only_00043128 + 0x2130);
      return;
    }
    puVar1 = PTR_LAB_0004326c + 0x4e6c;
  }
  try_tempname_len(param_1,param_2,local_res8,puVar1,param_5);
  return;
}

