
char * prchar(LWCHAR c)

{
  undefined *puVar1;
  uint uVar2;
  
  puVar1 = PTR_CHAR_ARRAY_0004ebf8;
  uVar2 = c & 0xff;
  if (((c & 0x80) == 0) || (*(int *)PTR_utf_mode_0004ede8 == 0)) {
    if ((PTR_CHAR_ARRAY_0004ebf8[uVar2 - 0x594] & 2) == 0) {
      (*(code *)PTR___snprintf_chk_0004f3a8)
                (PTR_CHAR_ARRAY_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2);
      return puVar1 + -0x5bc;
    }
    if (uVar2 == 0x1b) goto LAB_00019ae0;
    if (((c & 0x80) == 0) && ((PTR_CHAR_ARRAY_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0)) {
      (*(code *)PTR___snprintf_chk_0004f3a8)
                (PTR_CHAR_ARRAY_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40
                );
      return puVar1 + -0x5bc;
    }
  }
  else if (uVar2 == 0x1b) {
LAB_00019ae0:
    *(undefined4 *)(PTR_CHAR_ARRAY_0004ebf8 + -0x5bc) = 0x45534300;
    return puVar1 + -0x5bc;
  }
  (*(code *)PTR___snprintf_chk_0004f3a8)
            (PTR_CHAR_ARRAY_0004ebf8 + -0x5bc,0x20,1,0x20,
             *(undefined4 *)(PTR_CHAR_ARRAY_0004ebf8 + -0x598),uVar2);
  return puVar1 + -0x5bc;
}



undefined * prchar(uint param_1)

{
  undefined *puVar1;
  uint uVar2;
  
  puVar1 = PTR_DAT_0004ebf8;
  uVar2 = param_1 & 0xff;
  if (((param_1 & 0x80) == 0) || (*(int *)PTR_utf_mode_0004ede8 == 0)) {
    if ((PTR_DAT_0004ebf8[uVar2 - 0x594] & 2) == 0) {
      (*(code *)PTR___snprintf_chk_0004f3a8)
                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2);
      return puVar1 + -0x5bc;
    }
    if (uVar2 == 0x1b) goto LAB_00019ae0;
    if (((param_1 & 0x80) == 0) && ((PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0)) {
      (*(code *)PTR___snprintf_chk_0004f3a8)
                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40);
      return puVar1 + -0x5bc;
    }
  }
  else if (uVar2 == 0x1b) {
LAB_00019ae0:
    *(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc) = 0x45534300;
    return puVar1 + -0x5bc;
  }
  (*(code *)PTR___snprintf_chk_0004f3a8)
            (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,*(undefined4 *)(PTR_DAT_0004ebf8 + -0x598),uVar2)
  ;
  return puVar1 + -0x5bc;
}


lui gp,0x4
addiu gp,gp,-0x2e50
addu gp,gp,t9
addiu sp,sp,-0x28
andi a1,a0,0x80
andi a0,a0,0xff
sw gp,0x18(sp)
sw ra,0x24(sp)
beq a1,zero,0x00019a58
_sw s0,0x20(sp)
lw v0,-0x7de8(gp)
lw v0,0x0(v0)
bne v0,zero,0x00019ad8
_li v0,0x1b
lw v0,-0x7fd8(gp)
addiu v0,v0,-0x594
addu v1,a0,v0
lbu v1,0x0(v1)
andi v1,v1,0x2
beq v1,zero,0x00019b04
_li v1,0x1b
beq a0,v1,0x00019ae0
_nop
bne a1,zero,0x00019a98
_xori v1,a0,0x40
addu v0,v1,v0
lbu v0,0x0(v0)
andi v0,v0,0x2
beq v0,zero,0x00019b44
_lw v0,-0x7fc8(gp)
lw v0,-0x7fd8(gp)
li a3,0x20
lw s0,-0x7fd8(gp)
li a2,0x1
lw t9,-0x7828(gp)
li a1,0x20
sw a0,0x14(sp)
lw v0,-0x598(v0)
addiu a0,s0,-0x5bc
jalr t9
_sw v0,0x10(sp)
addiu v0,s0,-0x5bc
lw ra,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x28
bne a0,v0,0x00019a9c
_lw v0,-0x7fd8(gp)
lw s0,-0x7fd8(gp)
lui v0,0x4553
lw ra,0x24(sp)
addiu v0,v0,0x4300
sw v0,-0x5bc(s0)
addiu v0,s0,-0x5bc
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x28
lw v0,-0x7fc8(gp)
li a3,0x20
lw s0,-0x7fd8(gp)
li a2,0x1
lw t9,-0x7828(gp)
li a1,0x20
addiu v0,v0,0x7cf4
sw a0,0x14(sp)
addiu a0,s0,-0x5bc
jalr t9
_sw v0,0x10(sp)
addiu v0,s0,-0x5bc
lw ra,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x28
li a3,0x20
lw s0,-0x7fd8(gp)
li a2,0x1
lw t9,-0x7828(gp)
li a1,0x20
addiu v0,v0,0x6cc8
sw v1,0x14(sp)
addiu a0,s0,-0x5bc
jalr t9
_sw v0,0x10(sp)
addiu v0,s0,-0x5bc
lw ra,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "undefined * prchar(uint param_1)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  \n  puVar1 = PTR_DAT_0004ebf8;\n  uVar2 = param_1 & 0xff;\n  if (((param_1 & 0x80) == 0) || (*(int *)PTR_utf_mode_0004ede8 == 0)) {\n    if ((PTR_DAT_0004ebf8[uVar2 - 0x594] & 2) == 0) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2);\n      return puVar1 + -0x5bc;\n    }\n    if (uVar2 == 0x1b) goto LAB_00019ae0;\n    if (((param_1 & 0x80) == 0) && ((PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0)) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40);\n      return puVar1 + -0x5bc;\n    }\n  }\n  else if (uVar2 == 0x1b) {\nLAB_00019ae0:\n    *(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc) = 0x45534300;\n    return puVar1 + -0x5bc;\n  }\n  (*(code *)PTR___snprintf_chk_0004f3a8)\n            (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,*(undefined4 *)(PTR_DAT_0004ebf8 + -0x598),uVar2)\n  ;\n  return puVar1 + -0x5bc;\n}\n\n" (function_definition "undefined * prchar(uint param_1)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  \n  puVar1 = PTR_DAT_0004ebf8;\n  uVar2 = param_1 & 0xff;\n  if (((param_1 & 0x80) == 0) || (*(int *)PTR_utf_mode_0004ede8 == 0)) {\n    if ((PTR_DAT_0004ebf8[uVar2 - 0x594] & 2) == 0) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2);\n      return puVar1 + -0x5bc;\n    }\n    if (uVar2 == 0x1b) goto LAB_00019ae0;\n    if (((param_1 & 0x80) == 0) && ((PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0)) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40);\n      return puVar1 + -0x5bc;\n    }\n  }\n  else if (uVar2 == 0x1b) {\nLAB_00019ae0:\n    *(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc) = 0x45534300;\n    return puVar1 + -0x5bc;\n  }\n  (*(code *)PTR___snprintf_chk_0004f3a8)\n            (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,*(undefined4 *)(PTR_DAT_0004ebf8 + -0x598),uVar2)\n  ;\n  return puVar1 + -0x5bc;\n}" type_identifier (pointer_declarator "* prchar(uint param_1)" * (function_declarator "prchar(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  uint uVar2;\n  \n  puVar1 = PTR_DAT_0004ebf8;\n  uVar2 = param_1 & 0xff;\n  if (((param_1 & 0x80) == 0) || (*(int *)PTR_utf_mode_0004ede8 == 0)) {\n    if ((PTR_DAT_0004ebf8[uVar2 - 0x594] & 2) == 0) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2);\n      return puVar1 + -0x5bc;\n    }\n    if (uVar2 == 0x1b) goto LAB_00019ae0;\n    if (((param_1 & 0x80) == 0) && ((PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0)) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40);\n      return puVar1 + -0x5bc;\n    }\n  }\n  else if (uVar2 == 0x1b) {\nLAB_00019ae0:\n    *(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc) = 0x45534300;\n    return puVar1 + -0x5bc;\n  }\n  (*(code *)PTR___snprintf_chk_0004f3a8)\n            (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,*(undefined4 *)(PTR_DAT_0004ebf8 + -0x598),uVar2)\n  ;\n  return puVar1 + -0x5bc;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_DAT_0004ebf8;" (assignment_expression "puVar1 = PTR_DAT_0004ebf8" identifier = identifier) ;) (expression_statement "uVar2 = param_1 & 0xff;" (assignment_expression "uVar2 = param_1 & 0xff" identifier = (binary_expression "param_1 & 0xff" identifier & number_literal)) ;) (if_statement "if (((param_1 & 0x80) == 0) || (*(int *)PTR_utf_mode_0004ede8 == 0)) {\n    if ((PTR_DAT_0004ebf8[uVar2 - 0x594] & 2) == 0) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2);\n      return puVar1 + -0x5bc;\n    }\n    if (uVar2 == 0x1b) goto LAB_00019ae0;\n    if (((param_1 & 0x80) == 0) && ((PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0)) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40);\n      return puVar1 + -0x5bc;\n    }\n  }\n  else if (uVar2 == 0x1b) {\nLAB_00019ae0:\n    *(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc) = 0x45534300;\n    return puVar1 + -0x5bc;\n  }" if (parenthesized_expression "(((param_1 & 0x80) == 0) || (*(int *)PTR_utf_mode_0004ede8 == 0))" ( (binary_expression "((param_1 & 0x80) == 0) || (*(int *)PTR_utf_mode_0004ede8 == 0)" (parenthesized_expression "((param_1 & 0x80) == 0)" ( (binary_expression "(param_1 & 0x80) == 0" (parenthesized_expression "(param_1 & 0x80)" ( (binary_expression "param_1 & 0x80" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "(*(int *)PTR_utf_mode_0004ede8 == 0)" ( (binary_expression "*(int *)PTR_utf_mode_0004ede8 == 0" (pointer_expression "*(int *)PTR_utf_mode_0004ede8" * (cast_expression "(int *)PTR_utf_mode_0004ede8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) ))) )) (compound_statement "{\n    if ((PTR_DAT_0004ebf8[uVar2 - 0x594] & 2) == 0) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2);\n      return puVar1 + -0x5bc;\n    }\n    if (uVar2 == 0x1b) goto LAB_00019ae0;\n    if (((param_1 & 0x80) == 0) && ((PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0)) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40);\n      return puVar1 + -0x5bc;\n    }\n  }" { (if_statement "if ((PTR_DAT_0004ebf8[uVar2 - 0x594] & 2) == 0) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2);\n      return puVar1 + -0x5bc;\n    }" if (parenthesized_expression "((PTR_DAT_0004ebf8[uVar2 - 0x594] & 2) == 0)" ( (binary_expression "(PTR_DAT_0004ebf8[uVar2 - 0x594] & 2) == 0" (parenthesized_expression "(PTR_DAT_0004ebf8[uVar2 - 0x594] & 2)" ( (binary_expression "PTR_DAT_0004ebf8[uVar2 - 0x594] & 2" (subscript_expression "PTR_DAT_0004ebf8[uVar2 - 0x594]" identifier [ (binary_expression "uVar2 - 0x594" identifier - number_literal) ]) & number_literal) )) == number_literal) )) (compound_statement "{\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2);\n      return puVar1 + -0x5bc;\n    }" { (expression_statement "(*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2);" (call_expression "(*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2)" (parenthesized_expression "(*(code *)PTR___snprintf_chk_0004f3a8)" ( (pointer_expression "*(code *)PTR___snprintf_chk_0004f3a8" * (cast_expression "(code *)PTR___snprintf_chk_0004f3a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2)" ( (binary_expression "PTR_DAT_0004ebf8 + -0x5bc" identifier + number_literal) , number_literal , number_literal , number_literal , (binary_expression "PTR_LAB_0004ec08 + 0x7cf4" identifier + number_literal) , identifier ))) ;) (return_statement "return puVar1 + -0x5bc;" return (binary_expression "puVar1 + -0x5bc" identifier + number_literal) ;) })) (if_statement "if (uVar2 == 0x1b) goto LAB_00019ae0;" if (parenthesized_expression "(uVar2 == 0x1b)" ( (binary_expression "uVar2 == 0x1b" identifier == number_literal) )) (goto_statement "goto LAB_00019ae0;" goto statement_identifier ;)) (if_statement "if (((param_1 & 0x80) == 0) && ((PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0)) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40);\n      return puVar1 + -0x5bc;\n    }" if (parenthesized_expression "(((param_1 & 0x80) == 0) && ((PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0))" ( (binary_expression "((param_1 & 0x80) == 0) && ((PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0)" (parenthesized_expression "((param_1 & 0x80) == 0)" ( (binary_expression "(param_1 & 0x80) == 0" (parenthesized_expression "(param_1 & 0x80)" ( (binary_expression "param_1 & 0x80" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "((PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0)" ( (binary_expression "(PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0" (parenthesized_expression "(PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2)" ( (binary_expression "PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2" (subscript_expression "PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594]" identifier [ (binary_expression "(uVar2 ^ 0x40) - 0x594" (parenthesized_expression "(uVar2 ^ 0x40)" ( (binary_expression "uVar2 ^ 0x40" identifier ^ number_literal) )) - number_literal) ]) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40);\n      return puVar1 + -0x5bc;\n    }" { (expression_statement "(*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40);" (call_expression "(*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40)" (parenthesized_expression "(*(code *)PTR___snprintf_chk_0004f3a8)" ( (pointer_expression "*(code *)PTR___snprintf_chk_0004f3a8" * (cast_expression "(code *)PTR___snprintf_chk_0004f3a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40)" ( (binary_expression "PTR_DAT_0004ebf8 + -0x5bc" identifier + number_literal) , number_literal , number_literal , number_literal , (binary_expression "PTR_LAB_0004ec08 + 0x6cc8" identifier + number_literal) , (binary_expression "uVar2 ^ 0x40" identifier ^ number_literal) ))) ;) (return_statement "return puVar1 + -0x5bc;" return (binary_expression "puVar1 + -0x5bc" identifier + number_literal) ;) })) }) (else_clause "else if (uVar2 == 0x1b) {\nLAB_00019ae0:\n    *(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc) = 0x45534300;\n    return puVar1 + -0x5bc;\n  }" else (if_statement "if (uVar2 == 0x1b) {\nLAB_00019ae0:\n    *(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc) = 0x45534300;\n    return puVar1 + -0x5bc;\n  }" if (parenthesized_expression "(uVar2 == 0x1b)" ( (binary_expression "uVar2 == 0x1b" identifier == number_literal) )) (compound_statement "{\nLAB_00019ae0:\n    *(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc) = 0x45534300;\n    return puVar1 + -0x5bc;\n  }" { (labeled_statement "LAB_00019ae0:\n    *(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc) = 0x45534300;" statement_identifier : (expression_statement "*(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc) = 0x45534300;" (assignment_expression "*(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc) = 0x45534300" (pointer_expression "*(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc)" * (cast_expression "(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0004ebf8 + -0x5bc)" ( (binary_expression "PTR_DAT_0004ebf8 + -0x5bc" identifier + number_literal) )))) = number_literal) ;)) (return_statement "return puVar1 + -0x5bc;" return (binary_expression "puVar1 + -0x5bc" identifier + number_literal) ;) })))) (expression_statement "(*(code *)PTR___snprintf_chk_0004f3a8)\n            (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,*(undefined4 *)(PTR_DAT_0004ebf8 + -0x598),uVar2)\n  ;" (call_expression "(*(code *)PTR___snprintf_chk_0004f3a8)\n            (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,*(undefined4 *)(PTR_DAT_0004ebf8 + -0x598),uVar2)" (parenthesized_expression "(*(code *)PTR___snprintf_chk_0004f3a8)" ( (pointer_expression "*(code *)PTR___snprintf_chk_0004f3a8" * (cast_expression "(code *)PTR___snprintf_chk_0004f3a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,*(undefined4 *)(PTR_DAT_0004ebf8 + -0x598),uVar2)" ( (binary_expression "PTR_DAT_0004ebf8 + -0x5bc" identifier + number_literal) , number_literal , number_literal , number_literal , (pointer_expression "*(undefined4 *)(PTR_DAT_0004ebf8 + -0x598)" * (cast_expression "(undefined4 *)(PTR_DAT_0004ebf8 + -0x598)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0004ebf8 + -0x598)" ( (binary_expression "PTR_DAT_0004ebf8 + -0x598" identifier + number_literal) )))) , identifier ))) ;) (return_statement "return puVar1 + -0x5bc;" return (binary_expression "puVar1 + -0x5bc" identifier + number_literal) ;) })))
(translation_unit "char * prchar(LWCHAR c)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  \n  puVar1 = PTR_CHAR_ARRAY_0004ebf8;\n  uVar2 = c & 0xff;\n  if (((c & 0x80) == 0) || (*(int *)PTR_utf_mode_0004ede8 == 0)) {\n    if ((PTR_CHAR_ARRAY_0004ebf8[uVar2 - 0x594] & 2) == 0) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_CHAR_ARRAY_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2);\n      return puVar1 + -0x5bc;\n    }\n    if (uVar2 == 0x1b) goto LAB_00019ae0;\n    if (((c & 0x80) == 0) && ((PTR_CHAR_ARRAY_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0)) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_CHAR_ARRAY_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40\n                );\n      return puVar1 + -0x5bc;\n    }\n  }\n  else if (uVar2 == 0x1b) {\nLAB_00019ae0:\n    *(undefined4 *)(PTR_CHAR_ARRAY_0004ebf8 + -0x5bc) = 0x45534300;\n    return puVar1 + -0x5bc;\n  }\n  (*(code *)PTR___snprintf_chk_0004f3a8)\n            (PTR_CHAR_ARRAY_0004ebf8 + -0x5bc,0x20,1,0x20,\n             *(undefined4 *)(PTR_CHAR_ARRAY_0004ebf8 + -0x598),uVar2);\n  return puVar1 + -0x5bc;\n}\n\n" (function_definition "char * prchar(LWCHAR c)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  \n  puVar1 = PTR_CHAR_ARRAY_0004ebf8;\n  uVar2 = c & 0xff;\n  if (((c & 0x80) == 0) || (*(int *)PTR_utf_mode_0004ede8 == 0)) {\n    if ((PTR_CHAR_ARRAY_0004ebf8[uVar2 - 0x594] & 2) == 0) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_CHAR_ARRAY_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2);\n      return puVar1 + -0x5bc;\n    }\n    if (uVar2 == 0x1b) goto LAB_00019ae0;\n    if (((c & 0x80) == 0) && ((PTR_CHAR_ARRAY_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0)) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_CHAR_ARRAY_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40\n                );\n      return puVar1 + -0x5bc;\n    }\n  }\n  else if (uVar2 == 0x1b) {\nLAB_00019ae0:\n    *(undefined4 *)(PTR_CHAR_ARRAY_0004ebf8 + -0x5bc) = 0x45534300;\n    return puVar1 + -0x5bc;\n  }\n  (*(code *)PTR___snprintf_chk_0004f3a8)\n            (PTR_CHAR_ARRAY_0004ebf8 + -0x5bc,0x20,1,0x20,\n             *(undefined4 *)(PTR_CHAR_ARRAY_0004ebf8 + -0x598),uVar2);\n  return puVar1 + -0x5bc;\n}" primitive_type (pointer_declarator "* prchar(LWCHAR c)" * (function_declarator "prchar(LWCHAR c)" identifier (parameter_list "(LWCHAR c)" ( (parameter_declaration "LWCHAR c" type_identifier identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  uint uVar2;\n  \n  puVar1 = PTR_CHAR_ARRAY_0004ebf8;\n  uVar2 = c & 0xff;\n  if (((c & 0x80) == 0) || (*(int *)PTR_utf_mode_0004ede8 == 0)) {\n    if ((PTR_CHAR_ARRAY_0004ebf8[uVar2 - 0x594] & 2) == 0) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_CHAR_ARRAY_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2);\n      return puVar1 + -0x5bc;\n    }\n    if (uVar2 == 0x1b) goto LAB_00019ae0;\n    if (((c & 0x80) == 0) && ((PTR_CHAR_ARRAY_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0)) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_CHAR_ARRAY_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40\n                );\n      return puVar1 + -0x5bc;\n    }\n  }\n  else if (uVar2 == 0x1b) {\nLAB_00019ae0:\n    *(undefined4 *)(PTR_CHAR_ARRAY_0004ebf8 + -0x5bc) = 0x45534300;\n    return puVar1 + -0x5bc;\n  }\n  (*(code *)PTR___snprintf_chk_0004f3a8)\n            (PTR_CHAR_ARRAY_0004ebf8 + -0x5bc,0x20,1,0x20,\n             *(undefined4 *)(PTR_CHAR_ARRAY_0004ebf8 + -0x598),uVar2);\n  return puVar1 + -0x5bc;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_CHAR_ARRAY_0004ebf8;" (assignment_expression "puVar1 = PTR_CHAR_ARRAY_0004ebf8" identifier = identifier) ;) (expression_statement "uVar2 = c & 0xff;" (assignment_expression "uVar2 = c & 0xff" identifier = (binary_expression "c & 0xff" identifier & number_literal)) ;) (if_statement "if (((c & 0x80) == 0) || (*(int *)PTR_utf_mode_0004ede8 == 0)) {\n    if ((PTR_CHAR_ARRAY_0004ebf8[uVar2 - 0x594] & 2) == 0) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_CHAR_ARRAY_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2);\n      return puVar1 + -0x5bc;\n    }\n    if (uVar2 == 0x1b) goto LAB_00019ae0;\n    if (((c & 0x80) == 0) && ((PTR_CHAR_ARRAY_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0)) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_CHAR_ARRAY_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40\n                );\n      return puVar1 + -0x5bc;\n    }\n  }\n  else if (uVar2 == 0x1b) {\nLAB_00019ae0:\n    *(undefined4 *)(PTR_CHAR_ARRAY_0004ebf8 + -0x5bc) = 0x45534300;\n    return puVar1 + -0x5bc;\n  }" if (parenthesized_expression "(((c & 0x80) == 0) || (*(int *)PTR_utf_mode_0004ede8 == 0))" ( (binary_expression "((c & 0x80) == 0) || (*(int *)PTR_utf_mode_0004ede8 == 0)" (parenthesized_expression "((c & 0x80) == 0)" ( (binary_expression "(c & 0x80) == 0" (parenthesized_expression "(c & 0x80)" ( (binary_expression "c & 0x80" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "(*(int *)PTR_utf_mode_0004ede8 == 0)" ( (binary_expression "*(int *)PTR_utf_mode_0004ede8 == 0" (pointer_expression "*(int *)PTR_utf_mode_0004ede8" * (cast_expression "(int *)PTR_utf_mode_0004ede8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) ))) )) (compound_statement "{\n    if ((PTR_CHAR_ARRAY_0004ebf8[uVar2 - 0x594] & 2) == 0) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_CHAR_ARRAY_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2);\n      return puVar1 + -0x5bc;\n    }\n    if (uVar2 == 0x1b) goto LAB_00019ae0;\n    if (((c & 0x80) == 0) && ((PTR_CHAR_ARRAY_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0)) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_CHAR_ARRAY_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40\n                );\n      return puVar1 + -0x5bc;\n    }\n  }" { (if_statement "if ((PTR_CHAR_ARRAY_0004ebf8[uVar2 - 0x594] & 2) == 0) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_CHAR_ARRAY_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2);\n      return puVar1 + -0x5bc;\n    }" if (parenthesized_expression "((PTR_CHAR_ARRAY_0004ebf8[uVar2 - 0x594] & 2) == 0)" ( (binary_expression "(PTR_CHAR_ARRAY_0004ebf8[uVar2 - 0x594] & 2) == 0" (parenthesized_expression "(PTR_CHAR_ARRAY_0004ebf8[uVar2 - 0x594] & 2)" ( (binary_expression "PTR_CHAR_ARRAY_0004ebf8[uVar2 - 0x594] & 2" (subscript_expression "PTR_CHAR_ARRAY_0004ebf8[uVar2 - 0x594]" identifier [ (binary_expression "uVar2 - 0x594" identifier - number_literal) ]) & number_literal) )) == number_literal) )) (compound_statement "{\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_CHAR_ARRAY_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2);\n      return puVar1 + -0x5bc;\n    }" { (expression_statement "(*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_CHAR_ARRAY_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2);" (call_expression "(*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_CHAR_ARRAY_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2)" (parenthesized_expression "(*(code *)PTR___snprintf_chk_0004f3a8)" ( (pointer_expression "*(code *)PTR___snprintf_chk_0004f3a8" * (cast_expression "(code *)PTR___snprintf_chk_0004f3a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_CHAR_ARRAY_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2)" ( (binary_expression "PTR_CHAR_ARRAY_0004ebf8 + -0x5bc" identifier + number_literal) , number_literal , number_literal , number_literal , (binary_expression "PTR_LAB_0004ec08 + 0x7cf4" identifier + number_literal) , identifier ))) ;) (return_statement "return puVar1 + -0x5bc;" return (binary_expression "puVar1 + -0x5bc" identifier + number_literal) ;) })) (if_statement "if (uVar2 == 0x1b) goto LAB_00019ae0;" if (parenthesized_expression "(uVar2 == 0x1b)" ( (binary_expression "uVar2 == 0x1b" identifier == number_literal) )) (goto_statement "goto LAB_00019ae0;" goto statement_identifier ;)) (if_statement "if (((c & 0x80) == 0) && ((PTR_CHAR_ARRAY_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0)) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_CHAR_ARRAY_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40\n                );\n      return puVar1 + -0x5bc;\n    }" if (parenthesized_expression "(((c & 0x80) == 0) && ((PTR_CHAR_ARRAY_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0))" ( (binary_expression "((c & 0x80) == 0) && ((PTR_CHAR_ARRAY_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0)" (parenthesized_expression "((c & 0x80) == 0)" ( (binary_expression "(c & 0x80) == 0" (parenthesized_expression "(c & 0x80)" ( (binary_expression "c & 0x80" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "((PTR_CHAR_ARRAY_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0)" ( (binary_expression "(PTR_CHAR_ARRAY_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0" (parenthesized_expression "(PTR_CHAR_ARRAY_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2)" ( (binary_expression "PTR_CHAR_ARRAY_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2" (subscript_expression "PTR_CHAR_ARRAY_0004ebf8[(uVar2 ^ 0x40) - 0x594]" identifier [ (binary_expression "(uVar2 ^ 0x40) - 0x594" (parenthesized_expression "(uVar2 ^ 0x40)" ( (binary_expression "uVar2 ^ 0x40" identifier ^ number_literal) )) - number_literal) ]) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_CHAR_ARRAY_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40\n                );\n      return puVar1 + -0x5bc;\n    }" { (expression_statement "(*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_CHAR_ARRAY_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40\n                );" (call_expression "(*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_CHAR_ARRAY_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40\n                )" (parenthesized_expression "(*(code *)PTR___snprintf_chk_0004f3a8)" ( (pointer_expression "*(code *)PTR___snprintf_chk_0004f3a8" * (cast_expression "(code *)PTR___snprintf_chk_0004f3a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_CHAR_ARRAY_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40\n                )" ( (binary_expression "PTR_CHAR_ARRAY_0004ebf8 + -0x5bc" identifier + number_literal) , number_literal , number_literal , number_literal , (binary_expression "PTR_LAB_0004ec08 + 0x6cc8" identifier + number_literal) , (binary_expression "uVar2 ^ 0x40" identifier ^ number_literal) ))) ;) (return_statement "return puVar1 + -0x5bc;" return (binary_expression "puVar1 + -0x5bc" identifier + number_literal) ;) })) }) (else_clause "else if (uVar2 == 0x1b) {\nLAB_00019ae0:\n    *(undefined4 *)(PTR_CHAR_ARRAY_0004ebf8 + -0x5bc) = 0x45534300;\n    return puVar1 + -0x5bc;\n  }" else (if_statement "if (uVar2 == 0x1b) {\nLAB_00019ae0:\n    *(undefined4 *)(PTR_CHAR_ARRAY_0004ebf8 + -0x5bc) = 0x45534300;\n    return puVar1 + -0x5bc;\n  }" if (parenthesized_expression "(uVar2 == 0x1b)" ( (binary_expression "uVar2 == 0x1b" identifier == number_literal) )) (compound_statement "{\nLAB_00019ae0:\n    *(undefined4 *)(PTR_CHAR_ARRAY_0004ebf8 + -0x5bc) = 0x45534300;\n    return puVar1 + -0x5bc;\n  }" { (labeled_statement "LAB_00019ae0:\n    *(undefined4 *)(PTR_CHAR_ARRAY_0004ebf8 + -0x5bc) = 0x45534300;" statement_identifier : (expression_statement "*(undefined4 *)(PTR_CHAR_ARRAY_0004ebf8 + -0x5bc) = 0x45534300;" (assignment_expression "*(undefined4 *)(PTR_CHAR_ARRAY_0004ebf8 + -0x5bc) = 0x45534300" (pointer_expression "*(undefined4 *)(PTR_CHAR_ARRAY_0004ebf8 + -0x5bc)" * (cast_expression "(undefined4 *)(PTR_CHAR_ARRAY_0004ebf8 + -0x5bc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_CHAR_ARRAY_0004ebf8 + -0x5bc)" ( (binary_expression "PTR_CHAR_ARRAY_0004ebf8 + -0x5bc" identifier + number_literal) )))) = number_literal) ;)) (return_statement "return puVar1 + -0x5bc;" return (binary_expression "puVar1 + -0x5bc" identifier + number_literal) ;) })))) (expression_statement "(*(code *)PTR___snprintf_chk_0004f3a8)\n            (PTR_CHAR_ARRAY_0004ebf8 + -0x5bc,0x20,1,0x20,\n             *(undefined4 *)(PTR_CHAR_ARRAY_0004ebf8 + -0x598),uVar2);" (call_expression "(*(code *)PTR___snprintf_chk_0004f3a8)\n            (PTR_CHAR_ARRAY_0004ebf8 + -0x5bc,0x20,1,0x20,\n             *(undefined4 *)(PTR_CHAR_ARRAY_0004ebf8 + -0x598),uVar2)" (parenthesized_expression "(*(code *)PTR___snprintf_chk_0004f3a8)" ( (pointer_expression "*(code *)PTR___snprintf_chk_0004f3a8" * (cast_expression "(code *)PTR___snprintf_chk_0004f3a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_CHAR_ARRAY_0004ebf8 + -0x5bc,0x20,1,0x20,\n             *(undefined4 *)(PTR_CHAR_ARRAY_0004ebf8 + -0x598),uVar2)" ( (binary_expression "PTR_CHAR_ARRAY_0004ebf8 + -0x5bc" identifier + number_literal) , number_literal , number_literal , number_literal , (pointer_expression "*(undefined4 *)(PTR_CHAR_ARRAY_0004ebf8 + -0x598)" * (cast_expression "(undefined4 *)(PTR_CHAR_ARRAY_0004ebf8 + -0x598)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_CHAR_ARRAY_0004ebf8 + -0x598)" ( (binary_expression "PTR_CHAR_ARRAY_0004ebf8 + -0x598" identifier + number_literal) )))) , identifier ))) ;) (return_statement "return puVar1 + -0x5bc;" return (binary_expression "puVar1 + -0x5bc" identifier + number_literal) ;) })))
(translation_unit "undefined * prchar(uint param_1)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  \n  puVar1 = PTR_DAT_0004ebf8;\n  uVar2 = param_1 & 0xff;\n  if (((param_1 & 0x80) == 0) || (*(int *)PTR_utf_mode_0004ede8 == 0)) {\n    if ((PTR_DAT_0004ebf8[uVar2 - 0x594] & 2) == 0) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2);\n      return puVar1 + -0x5bc;\n    }\n    if (uVar2 == 0x1b) goto LAB_00019ae0;\n    if (((param_1 & 0x80) == 0) && ((PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0)) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40);\n      return puVar1 + -0x5bc;\n    }\n  }\n  else if (uVar2 == 0x1b) {\nLAB_00019ae0:\n    *(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc) = 0x45534300;\n    return puVar1 + -0x5bc;\n  }\n  (*(code *)PTR___snprintf_chk_0004f3a8)\n            (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,*(undefined4 *)(PTR_DAT_0004ebf8 + -0x598),uVar2)\n  ;\n  return puVar1 + -0x5bc;\n}\n\n" (function_definition "undefined * prchar(uint param_1)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  \n  puVar1 = PTR_DAT_0004ebf8;\n  uVar2 = param_1 & 0xff;\n  if (((param_1 & 0x80) == 0) || (*(int *)PTR_utf_mode_0004ede8 == 0)) {\n    if ((PTR_DAT_0004ebf8[uVar2 - 0x594] & 2) == 0) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2);\n      return puVar1 + -0x5bc;\n    }\n    if (uVar2 == 0x1b) goto LAB_00019ae0;\n    if (((param_1 & 0x80) == 0) && ((PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0)) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40);\n      return puVar1 + -0x5bc;\n    }\n  }\n  else if (uVar2 == 0x1b) {\nLAB_00019ae0:\n    *(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc) = 0x45534300;\n    return puVar1 + -0x5bc;\n  }\n  (*(code *)PTR___snprintf_chk_0004f3a8)\n            (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,*(undefined4 *)(PTR_DAT_0004ebf8 + -0x598),uVar2)\n  ;\n  return puVar1 + -0x5bc;\n}" type_identifier (pointer_declarator "* prchar(uint param_1)" * (function_declarator "prchar(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  uint uVar2;\n  \n  puVar1 = PTR_DAT_0004ebf8;\n  uVar2 = param_1 & 0xff;\n  if (((param_1 & 0x80) == 0) || (*(int *)PTR_utf_mode_0004ede8 == 0)) {\n    if ((PTR_DAT_0004ebf8[uVar2 - 0x594] & 2) == 0) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2);\n      return puVar1 + -0x5bc;\n    }\n    if (uVar2 == 0x1b) goto LAB_00019ae0;\n    if (((param_1 & 0x80) == 0) && ((PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0)) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40);\n      return puVar1 + -0x5bc;\n    }\n  }\n  else if (uVar2 == 0x1b) {\nLAB_00019ae0:\n    *(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc) = 0x45534300;\n    return puVar1 + -0x5bc;\n  }\n  (*(code *)PTR___snprintf_chk_0004f3a8)\n            (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,*(undefined4 *)(PTR_DAT_0004ebf8 + -0x598),uVar2)\n  ;\n  return puVar1 + -0x5bc;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_DAT_0004ebf8;" (assignment_expression "puVar1 = PTR_DAT_0004ebf8" identifier = identifier) ;) (expression_statement "uVar2 = param_1 & 0xff;" (assignment_expression "uVar2 = param_1 & 0xff" identifier = (binary_expression "param_1 & 0xff" identifier & number_literal)) ;) (if_statement "if (((param_1 & 0x80) == 0) || (*(int *)PTR_utf_mode_0004ede8 == 0)) {\n    if ((PTR_DAT_0004ebf8[uVar2 - 0x594] & 2) == 0) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2);\n      return puVar1 + -0x5bc;\n    }\n    if (uVar2 == 0x1b) goto LAB_00019ae0;\n    if (((param_1 & 0x80) == 0) && ((PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0)) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40);\n      return puVar1 + -0x5bc;\n    }\n  }\n  else if (uVar2 == 0x1b) {\nLAB_00019ae0:\n    *(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc) = 0x45534300;\n    return puVar1 + -0x5bc;\n  }" if (parenthesized_expression "(((param_1 & 0x80) == 0) || (*(int *)PTR_utf_mode_0004ede8 == 0))" ( (binary_expression "((param_1 & 0x80) == 0) || (*(int *)PTR_utf_mode_0004ede8 == 0)" (parenthesized_expression "((param_1 & 0x80) == 0)" ( (binary_expression "(param_1 & 0x80) == 0" (parenthesized_expression "(param_1 & 0x80)" ( (binary_expression "param_1 & 0x80" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "(*(int *)PTR_utf_mode_0004ede8 == 0)" ( (binary_expression "*(int *)PTR_utf_mode_0004ede8 == 0" (pointer_expression "*(int *)PTR_utf_mode_0004ede8" * (cast_expression "(int *)PTR_utf_mode_0004ede8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) ))) )) (compound_statement "{\n    if ((PTR_DAT_0004ebf8[uVar2 - 0x594] & 2) == 0) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2);\n      return puVar1 + -0x5bc;\n    }\n    if (uVar2 == 0x1b) goto LAB_00019ae0;\n    if (((param_1 & 0x80) == 0) && ((PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0)) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40);\n      return puVar1 + -0x5bc;\n    }\n  }" { (if_statement "if ((PTR_DAT_0004ebf8[uVar2 - 0x594] & 2) == 0) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2);\n      return puVar1 + -0x5bc;\n    }" if (parenthesized_expression "((PTR_DAT_0004ebf8[uVar2 - 0x594] & 2) == 0)" ( (binary_expression "(PTR_DAT_0004ebf8[uVar2 - 0x594] & 2) == 0" (parenthesized_expression "(PTR_DAT_0004ebf8[uVar2 - 0x594] & 2)" ( (binary_expression "PTR_DAT_0004ebf8[uVar2 - 0x594] & 2" (subscript_expression "PTR_DAT_0004ebf8[uVar2 - 0x594]" identifier [ (binary_expression "uVar2 - 0x594" identifier - number_literal) ]) & number_literal) )) == number_literal) )) (compound_statement "{\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2);\n      return puVar1 + -0x5bc;\n    }" { (expression_statement "(*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2);" (call_expression "(*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2)" (parenthesized_expression "(*(code *)PTR___snprintf_chk_0004f3a8)" ( (pointer_expression "*(code *)PTR___snprintf_chk_0004f3a8" * (cast_expression "(code *)PTR___snprintf_chk_0004f3a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2)" ( (binary_expression "PTR_DAT_0004ebf8 + -0x5bc" identifier + number_literal) , number_literal , number_literal , number_literal , (binary_expression "PTR_LAB_0004ec08 + 0x7cf4" identifier + number_literal) , identifier ))) ;) (return_statement "return puVar1 + -0x5bc;" return (binary_expression "puVar1 + -0x5bc" identifier + number_literal) ;) })) (if_statement "if (uVar2 == 0x1b) goto LAB_00019ae0;" if (parenthesized_expression "(uVar2 == 0x1b)" ( (binary_expression "uVar2 == 0x1b" identifier == number_literal) )) (goto_statement "goto LAB_00019ae0;" goto statement_identifier ;)) (if_statement "if (((param_1 & 0x80) == 0) && ((PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0)) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40);\n      return puVar1 + -0x5bc;\n    }" if (parenthesized_expression "(((param_1 & 0x80) == 0) && ((PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0))" ( (binary_expression "((param_1 & 0x80) == 0) && ((PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0)" (parenthesized_expression "((param_1 & 0x80) == 0)" ( (binary_expression "(param_1 & 0x80) == 0" (parenthesized_expression "(param_1 & 0x80)" ( (binary_expression "param_1 & 0x80" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "((PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0)" ( (binary_expression "(PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0" (parenthesized_expression "(PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2)" ( (binary_expression "PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2" (subscript_expression "PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594]" identifier [ (binary_expression "(uVar2 ^ 0x40) - 0x594" (parenthesized_expression "(uVar2 ^ 0x40)" ( (binary_expression "uVar2 ^ 0x40" identifier ^ number_literal) )) - number_literal) ]) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40);\n      return puVar1 + -0x5bc;\n    }" { (expression_statement "(*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40);" (call_expression "(*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40)" (parenthesized_expression "(*(code *)PTR___snprintf_chk_0004f3a8)" ( (pointer_expression "*(code *)PTR___snprintf_chk_0004f3a8" * (cast_expression "(code *)PTR___snprintf_chk_0004f3a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40)" ( (binary_expression "PTR_DAT_0004ebf8 + -0x5bc" identifier + number_literal) , number_literal , number_literal , number_literal , (binary_expression "PTR_LAB_0004ec08 + 0x6cc8" identifier + number_literal) , (binary_expression "uVar2 ^ 0x40" identifier ^ number_literal) ))) ;) (return_statement "return puVar1 + -0x5bc;" return (binary_expression "puVar1 + -0x5bc" identifier + number_literal) ;) })) }) (else_clause "else if (uVar2 == 0x1b) {\nLAB_00019ae0:\n    *(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc) = 0x45534300;\n    return puVar1 + -0x5bc;\n  }" else (if_statement "if (uVar2 == 0x1b) {\nLAB_00019ae0:\n    *(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc) = 0x45534300;\n    return puVar1 + -0x5bc;\n  }" if (parenthesized_expression "(uVar2 == 0x1b)" ( (binary_expression "uVar2 == 0x1b" identifier == number_literal) )) (compound_statement "{\nLAB_00019ae0:\n    *(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc) = 0x45534300;\n    return puVar1 + -0x5bc;\n  }" { (labeled_statement "LAB_00019ae0:\n    *(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc) = 0x45534300;" statement_identifier : (expression_statement "*(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc) = 0x45534300;" (assignment_expression "*(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc) = 0x45534300" (pointer_expression "*(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc)" * (cast_expression "(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0004ebf8 + -0x5bc)" ( (binary_expression "PTR_DAT_0004ebf8 + -0x5bc" identifier + number_literal) )))) = number_literal) ;)) (return_statement "return puVar1 + -0x5bc;" return (binary_expression "puVar1 + -0x5bc" identifier + number_literal) ;) })))) (expression_statement "(*(code *)PTR___snprintf_chk_0004f3a8)\n            (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,*(undefined4 *)(PTR_DAT_0004ebf8 + -0x598),uVar2)\n  ;" (call_expression "(*(code *)PTR___snprintf_chk_0004f3a8)\n            (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,*(undefined4 *)(PTR_DAT_0004ebf8 + -0x598),uVar2)" (parenthesized_expression "(*(code *)PTR___snprintf_chk_0004f3a8)" ( (pointer_expression "*(code *)PTR___snprintf_chk_0004f3a8" * (cast_expression "(code *)PTR___snprintf_chk_0004f3a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,*(undefined4 *)(PTR_DAT_0004ebf8 + -0x598),uVar2)" ( (binary_expression "PTR_DAT_0004ebf8 + -0x5bc" identifier + number_literal) , number_literal , number_literal , number_literal , (pointer_expression "*(undefined4 *)(PTR_DAT_0004ebf8 + -0x598)" * (cast_expression "(undefined4 *)(PTR_DAT_0004ebf8 + -0x598)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0004ebf8 + -0x598)" ( (binary_expression "PTR_DAT_0004ebf8 + -0x598" identifier + number_literal) )))) , identifier ))) ;) (return_statement "return puVar1 + -0x5bc;" return (binary_expression "puVar1 + -0x5bc" identifier + number_literal) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) == LIT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression IDENT - LIT) ]) & LIT) )) == 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) , LIT , LIT , LIT , (binary_expression IDENT + LIT) , IDENT ))) ;) (return_statement return (binary_expression IDENT + LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression (parenthesized_expression ( (binary_expression IDENT ^ LIT) )) - LIT) ]) & LIT) )) == 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) , LIT , LIT , LIT , (binary_expression IDENT + LIT) , (binary_expression IDENT ^ LIT) ))) ;) (return_statement return (binary_expression IDENT + LIT) ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;)) (return_statement return (binary_expression IDENT + LIT) ;) })))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , LIT , LIT , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) (return_statement return (binary_expression IDENT + LIT) ;) })))
(function_definition "undefined * prchar(uint param_1)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  \n  puVar1 = PTR_DAT_0004ebf8;\n  uVar2 = param_1 & 0xff;\n  if (((param_1 & 0x80) == 0) || (*(int *)PTR_utf_mode_0004ede8 == 0)) {\n    if ((PTR_DAT_0004ebf8[uVar2 - 0x594] & 2) == 0) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2);\n      return puVar1 + -0x5bc;\n    }\n    if (uVar2 == 0x1b) goto LAB_00019ae0;\n    if (((param_1 & 0x80) == 0) && ((PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0)) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40);\n      return puVar1 + -0x5bc;\n    }\n  }\n  else if (uVar2 == 0x1b) {\nLAB_00019ae0:\n    *(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc) = 0x45534300;\n    return puVar1 + -0x5bc;\n  }\n  (*(code *)PTR___snprintf_chk_0004f3a8)\n            (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,*(undefined4 *)(PTR_DAT_0004ebf8 + -0x598),uVar2)\n  ;\n  return puVar1 + -0x5bc;\n}" (type_identifier "undefined") (pointer_declarator "* prchar(uint param_1)" (* "*") (function_declarator "prchar(uint param_1)" (identifier "prchar") (parameter_list "(uint param_1)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) () ")")))) (compound_statement "{\n  undefined *puVar1;\n  uint uVar2;\n  \n  puVar1 = PTR_DAT_0004ebf8;\n  uVar2 = param_1 & 0xff;\n  if (((param_1 & 0x80) == 0) || (*(int *)PTR_utf_mode_0004ede8 == 0)) {\n    if ((PTR_DAT_0004ebf8[uVar2 - 0x594] & 2) == 0) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2);\n      return puVar1 + -0x5bc;\n    }\n    if (uVar2 == 0x1b) goto LAB_00019ae0;\n    if (((param_1 & 0x80) == 0) && ((PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0)) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40);\n      return puVar1 + -0x5bc;\n    }\n  }\n  else if (uVar2 == 0x1b) {\nLAB_00019ae0:\n    *(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc) = 0x45534300;\n    return puVar1 + -0x5bc;\n  }\n  (*(code *)PTR___snprintf_chk_0004f3a8)\n            (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,*(undefined4 *)(PTR_DAT_0004ebf8 + -0x598),uVar2)\n  ;\n  return puVar1 + -0x5bc;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (expression_statement "puVar1 = PTR_DAT_0004ebf8;" (assignment_expression "puVar1 = PTR_DAT_0004ebf8" (identifier "puVar1") (= "=") (identifier "PTR_DAT_0004ebf8")) (; ";")) (expression_statement "uVar2 = param_1 & 0xff;" (assignment_expression "uVar2 = param_1 & 0xff" (identifier "uVar2") (= "=") (binary_expression "param_1 & 0xff" (identifier "param_1") (& "&") (number_literal "0xff"))) (; ";")) (if_statement "if (((param_1 & 0x80) == 0) || (*(int *)PTR_utf_mode_0004ede8 == 0)) {\n    if ((PTR_DAT_0004ebf8[uVar2 - 0x594] & 2) == 0) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2);\n      return puVar1 + -0x5bc;\n    }\n    if (uVar2 == 0x1b) goto LAB_00019ae0;\n    if (((param_1 & 0x80) == 0) && ((PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0)) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40);\n      return puVar1 + -0x5bc;\n    }\n  }\n  else if (uVar2 == 0x1b) {\nLAB_00019ae0:\n    *(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc) = 0x45534300;\n    return puVar1 + -0x5bc;\n  }" (if "if") (parenthesized_expression "(((param_1 & 0x80) == 0) || (*(int *)PTR_utf_mode_0004ede8 == 0))" (( "(") (binary_expression "((param_1 & 0x80) == 0) || (*(int *)PTR_utf_mode_0004ede8 == 0)" (parenthesized_expression "((param_1 & 0x80) == 0)" (( "(") (binary_expression "(param_1 & 0x80) == 0" (parenthesized_expression "(param_1 & 0x80)" (( "(") (binary_expression "param_1 & 0x80" (identifier "param_1") (& "&") (number_literal "0x80")) () ")")) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(int *)PTR_utf_mode_0004ede8 == 0)" (( "(") (binary_expression "*(int *)PTR_utf_mode_0004ede8 == 0" (pointer_expression "*(int *)PTR_utf_mode_0004ede8" (* "*") (cast_expression "(int *)PTR_utf_mode_0004ede8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_utf_mode_0004ede8"))) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    if ((PTR_DAT_0004ebf8[uVar2 - 0x594] & 2) == 0) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2);\n      return puVar1 + -0x5bc;\n    }\n    if (uVar2 == 0x1b) goto LAB_00019ae0;\n    if (((param_1 & 0x80) == 0) && ((PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0)) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40);\n      return puVar1 + -0x5bc;\n    }\n  }" ({ "{") (if_statement "if ((PTR_DAT_0004ebf8[uVar2 - 0x594] & 2) == 0) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2);\n      return puVar1 + -0x5bc;\n    }" (if "if") (parenthesized_expression "((PTR_DAT_0004ebf8[uVar2 - 0x594] & 2) == 0)" (( "(") (binary_expression "(PTR_DAT_0004ebf8[uVar2 - 0x594] & 2) == 0" (parenthesized_expression "(PTR_DAT_0004ebf8[uVar2 - 0x594] & 2)" (( "(") (binary_expression "PTR_DAT_0004ebf8[uVar2 - 0x594] & 2" (subscript_expression "PTR_DAT_0004ebf8[uVar2 - 0x594]" (identifier "PTR_DAT_0004ebf8") ([ "[") (binary_expression "uVar2 - 0x594" (identifier "uVar2") (- "-") (number_literal "0x594")) (] "]")) (& "&") (number_literal "2")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2);\n      return puVar1 + -0x5bc;\n    }" ({ "{") (expression_statement "(*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2);" (call_expression "(*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2)" (parenthesized_expression "(*(code *)PTR___snprintf_chk_0004f3a8)" (( "(") (pointer_expression "*(code *)PTR___snprintf_chk_0004f3a8" (* "*") (cast_expression "(code *)PTR___snprintf_chk_0004f3a8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___snprintf_chk_0004f3a8"))) () ")")) (argument_list "(PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2)" (( "(") (binary_expression "PTR_DAT_0004ebf8 + -0x5bc" (identifier "PTR_DAT_0004ebf8") (+ "+") (number_literal "-0x5bc")) (, ",") (number_literal "0x20") (, ",") (number_literal "1") (, ",") (number_literal "0x20") (, ",") (binary_expression "PTR_LAB_0004ec08 + 0x7cf4" (identifier "PTR_LAB_0004ec08") (+ "+") (number_literal "0x7cf4")) (, ",") (identifier "uVar2") () ")"))) (; ";")) (return_statement "return puVar1 + -0x5bc;" (return "return") (binary_expression "puVar1 + -0x5bc" (identifier "puVar1") (+ "+") (number_literal "-0x5bc")) (; ";")) (} "}"))) (if_statement "if (uVar2 == 0x1b) goto LAB_00019ae0;" (if "if") (parenthesized_expression "(uVar2 == 0x1b)" (( "(") (binary_expression "uVar2 == 0x1b" (identifier "uVar2") (== "==") (number_literal "0x1b")) () ")")) (goto_statement "goto LAB_00019ae0;" (goto "goto") (statement_identifier "LAB_00019ae0") (; ";"))) (if_statement "if (((param_1 & 0x80) == 0) && ((PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0)) {\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40);\n      return puVar1 + -0x5bc;\n    }" (if "if") (parenthesized_expression "(((param_1 & 0x80) == 0) && ((PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0))" (( "(") (binary_expression "((param_1 & 0x80) == 0) && ((PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0)" (parenthesized_expression "((param_1 & 0x80) == 0)" (( "(") (binary_expression "(param_1 & 0x80) == 0" (parenthesized_expression "(param_1 & 0x80)" (( "(") (binary_expression "param_1 & 0x80" (identifier "param_1") (& "&") (number_literal "0x80")) () ")")) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0)" (( "(") (binary_expression "(PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0" (parenthesized_expression "(PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2)" (( "(") (binary_expression "PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2" (subscript_expression "PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594]" (identifier "PTR_DAT_0004ebf8") ([ "[") (binary_expression "(uVar2 ^ 0x40) - 0x594" (parenthesized_expression "(uVar2 ^ 0x40)" (( "(") (binary_expression "uVar2 ^ 0x40" (identifier "uVar2") (^ "^") (number_literal "0x40")) () ")")) (- "-") (number_literal "0x594")) (] "]")) (& "&") (number_literal "2")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      (*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40);\n      return puVar1 + -0x5bc;\n    }" ({ "{") (expression_statement "(*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40);" (call_expression "(*(code *)PTR___snprintf_chk_0004f3a8)\n                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40)" (parenthesized_expression "(*(code *)PTR___snprintf_chk_0004f3a8)" (( "(") (pointer_expression "*(code *)PTR___snprintf_chk_0004f3a8" (* "*") (cast_expression "(code *)PTR___snprintf_chk_0004f3a8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___snprintf_chk_0004f3a8"))) () ")")) (argument_list "(PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40)" (( "(") (binary_expression "PTR_DAT_0004ebf8 + -0x5bc" (identifier "PTR_DAT_0004ebf8") (+ "+") (number_literal "-0x5bc")) (, ",") (number_literal "0x20") (, ",") (number_literal "1") (, ",") (number_literal "0x20") (, ",") (binary_expression "PTR_LAB_0004ec08 + 0x6cc8" (identifier "PTR_LAB_0004ec08") (+ "+") (number_literal "0x6cc8")) (, ",") (binary_expression "uVar2 ^ 0x40" (identifier "uVar2") (^ "^") (number_literal "0x40")) () ")"))) (; ";")) (return_statement "return puVar1 + -0x5bc;" (return "return") (binary_expression "puVar1 + -0x5bc" (identifier "puVar1") (+ "+") (number_literal "-0x5bc")) (; ";")) (} "}"))) (} "}")) (else_clause "else if (uVar2 == 0x1b) {\nLAB_00019ae0:\n    *(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc) = 0x45534300;\n    return puVar1 + -0x5bc;\n  }" (else "else") (if_statement "if (uVar2 == 0x1b) {\nLAB_00019ae0:\n    *(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc) = 0x45534300;\n    return puVar1 + -0x5bc;\n  }" (if "if") (parenthesized_expression "(uVar2 == 0x1b)" (( "(") (binary_expression "uVar2 == 0x1b" (identifier "uVar2") (== "==") (number_literal "0x1b")) () ")")) (compound_statement "{\nLAB_00019ae0:\n    *(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc) = 0x45534300;\n    return puVar1 + -0x5bc;\n  }" ({ "{") (labeled_statement "LAB_00019ae0:\n    *(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc) = 0x45534300;" (statement_identifier "LAB_00019ae0") (: ":") (expression_statement "*(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc) = 0x45534300;" (assignment_expression "*(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc) = 0x45534300" (pointer_expression "*(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0004ebf8 + -0x5bc)" (( "(") (binary_expression "PTR_DAT_0004ebf8 + -0x5bc" (identifier "PTR_DAT_0004ebf8") (+ "+") (number_literal "-0x5bc")) () ")")))) (= "=") (number_literal "0x45534300")) (; ";"))) (return_statement "return puVar1 + -0x5bc;" (return "return") (binary_expression "puVar1 + -0x5bc" (identifier "puVar1") (+ "+") (number_literal "-0x5bc")) (; ";")) (} "}"))))) (expression_statement "(*(code *)PTR___snprintf_chk_0004f3a8)\n            (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,*(undefined4 *)(PTR_DAT_0004ebf8 + -0x598),uVar2)\n  ;" (call_expression "(*(code *)PTR___snprintf_chk_0004f3a8)\n            (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,*(undefined4 *)(PTR_DAT_0004ebf8 + -0x598),uVar2)" (parenthesized_expression "(*(code *)PTR___snprintf_chk_0004f3a8)" (( "(") (pointer_expression "*(code *)PTR___snprintf_chk_0004f3a8" (* "*") (cast_expression "(code *)PTR___snprintf_chk_0004f3a8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___snprintf_chk_0004f3a8"))) () ")")) (argument_list "(PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,*(undefined4 *)(PTR_DAT_0004ebf8 + -0x598),uVar2)" (( "(") (binary_expression "PTR_DAT_0004ebf8 + -0x5bc" (identifier "PTR_DAT_0004ebf8") (+ "+") (number_literal "-0x5bc")) (, ",") (number_literal "0x20") (, ",") (number_literal "1") (, ",") (number_literal "0x20") (, ",") (pointer_expression "*(undefined4 *)(PTR_DAT_0004ebf8 + -0x598)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_0004ebf8 + -0x598)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0004ebf8 + -0x598)" (( "(") (binary_expression "PTR_DAT_0004ebf8 + -0x598" (identifier "PTR_DAT_0004ebf8") (+ "+") (number_literal "-0x598")) () ")")))) (, ",") (identifier "uVar2") () ")"))) (; ";")) (return_statement "return puVar1 + -0x5bc;" (return "return") (binary_expression "puVar1 + -0x5bc" (identifier "puVar1") (+ "+") (number_literal "-0x5bc")) (; ";")) (} "}")))

char * function_1(type_1 var_1)

{
  type_2 *var_5;
  type_3 var_2;
  
  var_5 = var_3;
  var_2 = var_1 & 0xff;
  if (((var_1 & 0x80) == 0) || (*(int *)PTR_utf_mode_0004ede8 == 0)) {
    if ((var_3[var_2 - 0x594] & 2) == 0) {
      (*(type_4 *)PTR___snprintf_chk_0004f3a8)
                (var_3 + -0x5bc,0x20,1,0x20,var_4 + 0x7cf4,var_2);
      return var_5 + -0x5bc;
    }
    if (var_2 == 0x1b) goto LAB_00019ae0;
    if (((var_1 & 0x80) == 0) && ((var_3[(var_2 ^ 0x40) - 0x594] & 2) == 0)) {
      (*(type_4 *)PTR___snprintf_chk_0004f3a8)
                (var_3 + -0x5bc,0x20,1,0x20,var_4 + 0x6cc8,var_2 ^ 0x40
                );
      return var_5 + -0x5bc;
    }
  }
  else if (var_2 == 0x1b) {
LAB_00019ae0:
    *(type_5 *)(var_3 + -0x5bc) = 0x45534300;
    return var_5 + -0x5bc;
  }
  (*(type_4 *)PTR___snprintf_chk_0004f3a8)
            (var_3 + -0x5bc,0x20,1,0x20,
             *(type_5 *)(var_3 + -0x598),var_2);
  return var_5 + -0x5bc;
}


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

undefined * MASKED(uint param_1)

{
  undefined *puVar1;
  uint uVar2;
  
  puVar1 = PTR_DAT_0004ebf8;
  uVar2 = param_1 & 0xff;
  if (((param_1 & 0x80) == 0) || (*(int *)PTR_utf_mode_0004ede8 == 0)) {
    if ((PTR_DAT_0004ebf8[uVar2 - 0x594] & 2) == 0) {
      (*(code *)PTR___snprintf_chk_0004f3a8)
                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x7cf4,uVar2);
      return puVar1 + -0x5bc;
    }
    if (uVar2 == 0x1b) goto LAB_00019ae0;
    if (((param_1 & 0x80) == 0) && ((PTR_DAT_0004ebf8[(uVar2 ^ 0x40) - 0x594] & 2) == 0)) {
      (*(code *)PTR___snprintf_chk_0004f3a8)
                (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,PTR_LAB_0004ec08 + 0x6cc8,uVar2 ^ 0x40);
      return puVar1 + -0x5bc;
    }
  }
  else if (uVar2 == 0x1b) {
LAB_00019ae0:
    *(undefined4 *)(PTR_DAT_0004ebf8 + -0x5bc) = 0x45534300;
    return puVar1 + -0x5bc;
  }
  (*(code *)PTR___snprintf_chk_0004f3a8)
            (PTR_DAT_0004ebf8 + -0x5bc,0x20,1,0x20,*(undefined4 *)(PTR_DAT_0004ebf8 + -0x598),uVar2)
  ;
  return puVar1 + -0x5bc;
}

