
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void log_option(Telnet telnet,char *sender,int cmd,int option)

{
  char *pcVar1;
  undefined *puVar2;
  
  if (cmd == 0xfb) {
    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fdc;
  }
  else if (cmd == 0xfc) {
    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fd4;
  }
  else if (cmd == 0xfd) {
    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fe4;
  }
  else if (cmd == 0xfe) {
    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fcc;
  }
  else {
    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fe8;
  }
  pcVar1 = telopt(option);
  pcVar1 = (char *)(*(code *)PTR_dupprintf_000b82dc)
                             (PTR_PC2_1357_27__000b8348 + 0x2ff0,sender,puVar2,pcVar1);
  logevent(telnet->frontend,pcVar1);
  (*(code *)PTR_safefree_000b82e8)(pcVar1);
  return;
}



void FUN_0007d5d0(int param_1,undefined4 param_2,int param_3,undefined4 param_4)

{
  undefined4 uVar1;
  undefined *puVar2;
  
  if (param_3 == 0xfb) {
    puVar2 = PTR_DAT_000b8348 + 0x2fdc;
  }
  else if (param_3 == 0xfc) {
    puVar2 = PTR_DAT_000b8348 + 0x2fd4;
  }
  else if (param_3 == 0xfd) {
    puVar2 = PTR_DAT_000b8348 + 0x2fe4;
  }
  else if (param_3 == 0xfe) {
    puVar2 = PTR_DAT_000b8348 + 0x2fcc;
  }
  else {
    puVar2 = PTR_DAT_000b8348 + 0x2fe8;
  }
  uVar1 = FUN_0007d040(param_4);
  uVar1 = (*(code *)PTR_dupprintf_000b82dc)(PTR_DAT_000b8348 + 0x2ff0,param_2,puVar2,uVar1);
  logevent(*(undefined4 *)(param_1 + 0xc),uVar1);
  (*(code *)PTR_safefree_000b82e8)(uVar1);
  return;
}


lui gp,0x4
addiu gp,gp,0x2cc0
addu gp,gp,t9
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
or s1,a0,zero
or s2,a1,zero
li v0,0xfb
beq a2,v0,0x0007d630
_or a0,a3,zero
li v0,0xfc
beq a2,v0,0x0007d6b8
_li v0,0xfd
beq a2,v0,0x0007d6c4
_li v0,0xfe
beq a2,v0,0x0007d6d0
_nop
lw s0,-0x7f48(gp)
b 0x0007d638
_addiu s0,s0,0x2fe8
lw s0,-0x7f48(gp)
addiu s0,s0,0x2fdc
lw t9,-0x7910(gp)
addiu t9,t9,-0x2fc0
bal 0x0007d040
_nop
lw gp,0x10(sp)
or a3,v0,zero
or a2,s0,zero
or a1,s2,zero
lw a0,-0x7f48(gp)
addiu a0,a0,0x2ff0
lw t9,-0x7fb4(gp)
jalr t9
_nop
lw gp,0x10(sp)
or s0,v0,zero
or a1,v0,zero
lw a0,0xc(s1)
lw t9,-0x7fac(gp)
bal 0x00082a7c
_nop
lw gp,0x10(sp)
or a0,s0,zero
lw t9,-0x7fa8(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
lw s0,-0x7f48(gp)
b 0x0007d638
_addiu s0,s0,0x2fd4
lw s0,-0x7f48(gp)
b 0x0007d638
_addiu s0,s0,0x2fe4
lw s0,-0x7f48(gp)
b 0x0007d638
_addiu s0,s0,0x2fcc
(translation_unit "void FUN_0007d5d0(int param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  undefined *puVar2;\n  \n  if (param_3 == 0xfb) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fdc;\n  }\n  else if (param_3 == 0xfc) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fd4;\n  }\n  else if (param_3 == 0xfd) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe4;\n  }\n  else if (param_3 == 0xfe) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }\n  uVar1 = FUN_0007d040(param_4);\n  uVar1 = (*(code *)PTR_dupprintf_000b82dc)(PTR_DAT_000b8348 + 0x2ff0,param_2,puVar2,uVar1);\n  logevent(*(undefined4 *)(param_1 + 0xc),uVar1);\n  (*(code *)PTR_safefree_000b82e8)(uVar1);\n  return;\n}\n\n" (function_definition "void FUN_0007d5d0(int param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  undefined *puVar2;\n  \n  if (param_3 == 0xfb) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fdc;\n  }\n  else if (param_3 == 0xfc) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fd4;\n  }\n  else if (param_3 == 0xfd) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe4;\n  }\n  else if (param_3 == 0xfe) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }\n  uVar1 = FUN_0007d040(param_4);\n  uVar1 = (*(code *)PTR_dupprintf_000b82dc)(PTR_DAT_000b8348 + 0x2ff0,param_2,puVar2,uVar1);\n  logevent(*(undefined4 *)(param_1 + 0xc),uVar1);\n  (*(code *)PTR_safefree_000b82e8)(uVar1);\n  return;\n}" primitive_type (function_declarator "FUN_0007d5d0(int param_1,undefined4 param_2,int param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined *puVar2;\n  \n  if (param_3 == 0xfb) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fdc;\n  }\n  else if (param_3 == 0xfc) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fd4;\n  }\n  else if (param_3 == 0xfd) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe4;\n  }\n  else if (param_3 == 0xfe) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }\n  uVar1 = FUN_0007d040(param_4);\n  uVar1 = (*(code *)PTR_dupprintf_000b82dc)(PTR_DAT_000b8348 + 0x2ff0,param_2,puVar2,uVar1);\n  logevent(*(undefined4 *)(param_1 + 0xc),uVar1);\n  (*(code *)PTR_safefree_000b82e8)(uVar1);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (param_3 == 0xfb) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fdc;\n  }\n  else if (param_3 == 0xfc) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fd4;\n  }\n  else if (param_3 == 0xfd) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe4;\n  }\n  else if (param_3 == 0xfe) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }" if (parenthesized_expression "(param_3 == 0xfb)" ( (binary_expression "param_3 == 0xfb" identifier == number_literal) )) (compound_statement "{\n    puVar2 = PTR_DAT_000b8348 + 0x2fdc;\n  }" { (expression_statement "puVar2 = PTR_DAT_000b8348 + 0x2fdc;" (assignment_expression "puVar2 = PTR_DAT_000b8348 + 0x2fdc" identifier = (binary_expression "PTR_DAT_000b8348 + 0x2fdc" identifier + number_literal)) ;) }) (else_clause "else if (param_3 == 0xfc) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fd4;\n  }\n  else if (param_3 == 0xfd) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe4;\n  }\n  else if (param_3 == 0xfe) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }" else (if_statement "if (param_3 == 0xfc) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fd4;\n  }\n  else if (param_3 == 0xfd) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe4;\n  }\n  else if (param_3 == 0xfe) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }" if (parenthesized_expression "(param_3 == 0xfc)" ( (binary_expression "param_3 == 0xfc" identifier == number_literal) )) (compound_statement "{\n    puVar2 = PTR_DAT_000b8348 + 0x2fd4;\n  }" { (expression_statement "puVar2 = PTR_DAT_000b8348 + 0x2fd4;" (assignment_expression "puVar2 = PTR_DAT_000b8348 + 0x2fd4" identifier = (binary_expression "PTR_DAT_000b8348 + 0x2fd4" identifier + number_literal)) ;) }) (else_clause "else if (param_3 == 0xfd) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe4;\n  }\n  else if (param_3 == 0xfe) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }" else (if_statement "if (param_3 == 0xfd) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe4;\n  }\n  else if (param_3 == 0xfe) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }" if (parenthesized_expression "(param_3 == 0xfd)" ( (binary_expression "param_3 == 0xfd" identifier == number_literal) )) (compound_statement "{\n    puVar2 = PTR_DAT_000b8348 + 0x2fe4;\n  }" { (expression_statement "puVar2 = PTR_DAT_000b8348 + 0x2fe4;" (assignment_expression "puVar2 = PTR_DAT_000b8348 + 0x2fe4" identifier = (binary_expression "PTR_DAT_000b8348 + 0x2fe4" identifier + number_literal)) ;) }) (else_clause "else if (param_3 == 0xfe) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }" else (if_statement "if (param_3 == 0xfe) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }" if (parenthesized_expression "(param_3 == 0xfe)" ( (binary_expression "param_3 == 0xfe" identifier == number_literal) )) (compound_statement "{\n    puVar2 = PTR_DAT_000b8348 + 0x2fcc;\n  }" { (expression_statement "puVar2 = PTR_DAT_000b8348 + 0x2fcc;" (assignment_expression "puVar2 = PTR_DAT_000b8348 + 0x2fcc" identifier = (binary_expression "PTR_DAT_000b8348 + 0x2fcc" identifier + number_literal)) ;) }) (else_clause "else {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }" else (compound_statement "{\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }" { (expression_statement "puVar2 = PTR_DAT_000b8348 + 0x2fe8;" (assignment_expression "puVar2 = PTR_DAT_000b8348 + 0x2fe8" identifier = (binary_expression "PTR_DAT_000b8348 + 0x2fe8" identifier + number_literal)) ;) }))))))))) (expression_statement "uVar1 = FUN_0007d040(param_4);" (assignment_expression "uVar1 = FUN_0007d040(param_4)" identifier = (call_expression "FUN_0007d040(param_4)" identifier (argument_list "(param_4)" ( identifier )))) ;) (expression_statement "uVar1 = (*(code *)PTR_dupprintf_000b82dc)(PTR_DAT_000b8348 + 0x2ff0,param_2,puVar2,uVar1);" (assignment_expression "uVar1 = (*(code *)PTR_dupprintf_000b82dc)(PTR_DAT_000b8348 + 0x2ff0,param_2,puVar2,uVar1)" identifier = (call_expression "(*(code *)PTR_dupprintf_000b82dc)(PTR_DAT_000b8348 + 0x2ff0,param_2,puVar2,uVar1)" (parenthesized_expression "(*(code *)PTR_dupprintf_000b82dc)" ( (pointer_expression "*(code *)PTR_dupprintf_000b82dc" * (cast_expression "(code *)PTR_dupprintf_000b82dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000b8348 + 0x2ff0,param_2,puVar2,uVar1)" ( (binary_expression "PTR_DAT_000b8348 + 0x2ff0" identifier + number_literal) , identifier , identifier , identifier )))) ;) (expression_statement "logevent(*(undefined4 *)(param_1 + 0xc),uVar1);" (call_expression "logevent(*(undefined4 *)(param_1 + 0xc),uVar1)" identifier (argument_list "(*(undefined4 *)(param_1 + 0xc),uVar1)" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000b82e8)(uVar1);" (call_expression "(*(code *)PTR_safefree_000b82e8)(uVar1)" (parenthesized_expression "(*(code *)PTR_safefree_000b82e8)" ( (pointer_expression "*(code *)PTR_safefree_000b82e8" * (cast_expression "(code *)PTR_safefree_000b82e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid log_option(Telnet telnet,char *sender,int cmd,int option)\n\n{\n  char *pcVar1;\n  undefined *puVar2;\n  \n  if (cmd == 0xfb) {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fdc;\n  }\n  else if (cmd == 0xfc) {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fd4;\n  }\n  else if (cmd == 0xfd) {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fe4;\n  }\n  else if (cmd == 0xfe) {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fe8;\n  }\n  pcVar1 = telopt(option);\n  pcVar1 = (char *)(*(code *)PTR_dupprintf_000b82dc)\n                             (PTR_PC2_1357_27__000b8348 + 0x2ff0,sender,puVar2,pcVar1);\n  logevent(telnet->frontend,pcVar1);\n  (*(code *)PTR_safefree_000b82e8)(pcVar1);\n  return;\n}\n\n" comment (function_definition "void log_option(Telnet telnet,char *sender,int cmd,int option)\n\n{\n  char *pcVar1;\n  undefined *puVar2;\n  \n  if (cmd == 0xfb) {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fdc;\n  }\n  else if (cmd == 0xfc) {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fd4;\n  }\n  else if (cmd == 0xfd) {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fe4;\n  }\n  else if (cmd == 0xfe) {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fe8;\n  }\n  pcVar1 = telopt(option);\n  pcVar1 = (char *)(*(code *)PTR_dupprintf_000b82dc)\n                             (PTR_PC2_1357_27__000b8348 + 0x2ff0,sender,puVar2,pcVar1);\n  logevent(telnet->frontend,pcVar1);\n  (*(code *)PTR_safefree_000b82e8)(pcVar1);\n  return;\n}" primitive_type (function_declarator "log_option(Telnet telnet,char *sender,int cmd,int option)" identifier (parameter_list "(Telnet telnet,char *sender,int cmd,int option)" ( (parameter_declaration "Telnet telnet" type_identifier identifier) , (parameter_declaration "char *sender" primitive_type (pointer_declarator "*sender" * identifier)) , (parameter_declaration "int cmd" primitive_type identifier) , (parameter_declaration "int option" primitive_type identifier) ))) (compound_statement "{\n  char *pcVar1;\n  undefined *puVar2;\n  \n  if (cmd == 0xfb) {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fdc;\n  }\n  else if (cmd == 0xfc) {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fd4;\n  }\n  else if (cmd == 0xfd) {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fe4;\n  }\n  else if (cmd == 0xfe) {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fe8;\n  }\n  pcVar1 = telopt(option);\n  pcVar1 = (char *)(*(code *)PTR_dupprintf_000b82dc)\n                             (PTR_PC2_1357_27__000b8348 + 0x2ff0,sender,puVar2,pcVar1);\n  logevent(telnet->frontend,pcVar1);\n  (*(code *)PTR_safefree_000b82e8)(pcVar1);\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (cmd == 0xfb) {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fdc;\n  }\n  else if (cmd == 0xfc) {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fd4;\n  }\n  else if (cmd == 0xfd) {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fe4;\n  }\n  else if (cmd == 0xfe) {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fe8;\n  }" if (parenthesized_expression "(cmd == 0xfb)" ( (binary_expression "cmd == 0xfb" identifier == number_literal) )) (compound_statement "{\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fdc;\n  }" { (expression_statement "puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fdc;" (assignment_expression "puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fdc" identifier = (binary_expression "PTR_PC2_1357_27__000b8348 + 0x2fdc" identifier + number_literal)) ;) }) (else_clause "else if (cmd == 0xfc) {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fd4;\n  }\n  else if (cmd == 0xfd) {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fe4;\n  }\n  else if (cmd == 0xfe) {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fe8;\n  }" else (if_statement "if (cmd == 0xfc) {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fd4;\n  }\n  else if (cmd == 0xfd) {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fe4;\n  }\n  else if (cmd == 0xfe) {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fe8;\n  }" if (parenthesized_expression "(cmd == 0xfc)" ( (binary_expression "cmd == 0xfc" identifier == number_literal) )) (compound_statement "{\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fd4;\n  }" { (expression_statement "puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fd4;" (assignment_expression "puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fd4" identifier = (binary_expression "PTR_PC2_1357_27__000b8348 + 0x2fd4" identifier + number_literal)) ;) }) (else_clause "else if (cmd == 0xfd) {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fe4;\n  }\n  else if (cmd == 0xfe) {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fe8;\n  }" else (if_statement "if (cmd == 0xfd) {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fe4;\n  }\n  else if (cmd == 0xfe) {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fe8;\n  }" if (parenthesized_expression "(cmd == 0xfd)" ( (binary_expression "cmd == 0xfd" identifier == number_literal) )) (compound_statement "{\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fe4;\n  }" { (expression_statement "puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fe4;" (assignment_expression "puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fe4" identifier = (binary_expression "PTR_PC2_1357_27__000b8348 + 0x2fe4" identifier + number_literal)) ;) }) (else_clause "else if (cmd == 0xfe) {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fe8;\n  }" else (if_statement "if (cmd == 0xfe) {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fe8;\n  }" if (parenthesized_expression "(cmd == 0xfe)" ( (binary_expression "cmd == 0xfe" identifier == number_literal) )) (compound_statement "{\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fcc;\n  }" { (expression_statement "puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fcc;" (assignment_expression "puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fcc" identifier = (binary_expression "PTR_PC2_1357_27__000b8348 + 0x2fcc" identifier + number_literal)) ;) }) (else_clause "else {\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fe8;\n  }" else (compound_statement "{\n    puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fe8;\n  }" { (expression_statement "puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fe8;" (assignment_expression "puVar2 = PTR_PC2_1357_27__000b8348 + 0x2fe8" identifier = (binary_expression "PTR_PC2_1357_27__000b8348 + 0x2fe8" identifier + number_literal)) ;) }))))))))) (expression_statement "pcVar1 = telopt(option);" (assignment_expression "pcVar1 = telopt(option)" identifier = (call_expression "telopt(option)" identifier (argument_list "(option)" ( identifier )))) ;) (expression_statement "pcVar1 = (char *)(*(code *)PTR_dupprintf_000b82dc)\n                             (PTR_PC2_1357_27__000b8348 + 0x2ff0,sender,puVar2,pcVar1);" (assignment_expression "pcVar1 = (char *)(*(code *)PTR_dupprintf_000b82dc)\n                             (PTR_PC2_1357_27__000b8348 + 0x2ff0,sender,puVar2,pcVar1)" identifier = (cast_expression "(char *)(*(code *)PTR_dupprintf_000b82dc)\n                             (PTR_PC2_1357_27__000b8348 + 0x2ff0,sender,puVar2,pcVar1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dupprintf_000b82dc)\n                             (PTR_PC2_1357_27__000b8348 + 0x2ff0,sender,puVar2,pcVar1)" (parenthesized_expression "(*(code *)PTR_dupprintf_000b82dc)" ( (pointer_expression "*(code *)PTR_dupprintf_000b82dc" * (cast_expression "(code *)PTR_dupprintf_000b82dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_PC2_1357_27__000b8348 + 0x2ff0,sender,puVar2,pcVar1)" ( (binary_expression "PTR_PC2_1357_27__000b8348 + 0x2ff0" identifier + number_literal) , identifier , identifier , identifier ))))) ;) (expression_statement "logevent(telnet->frontend,pcVar1);" (call_expression "logevent(telnet->frontend,pcVar1)" identifier (argument_list "(telnet->frontend,pcVar1)" ( (field_expression "telnet->frontend" identifier -> field_identifier) , identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000b82e8)(pcVar1);" (call_expression "(*(code *)PTR_safefree_000b82e8)(pcVar1)" (parenthesized_expression "(*(code *)PTR_safefree_000b82e8)" ( (pointer_expression "*(code *)PTR_safefree_000b82e8" * (cast_expression "(code *)PTR_safefree_000b82e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0007d5d0(int param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  undefined *puVar2;\n  \n  if (param_3 == 0xfb) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fdc;\n  }\n  else if (param_3 == 0xfc) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fd4;\n  }\n  else if (param_3 == 0xfd) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe4;\n  }\n  else if (param_3 == 0xfe) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }\n  uVar1 = FUN_0007d040(param_4);\n  uVar1 = (*(code *)PTR_dupprintf_000b82dc)(PTR_DAT_000b8348 + 0x2ff0,param_2,puVar2,uVar1);\n  logevent(*(undefined4 *)(param_1 + 0xc),uVar1);\n  (*(code *)PTR_safefree_000b82e8)(uVar1);\n  return;\n}\n\n" (function_definition "void FUN_0007d5d0(int param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  undefined *puVar2;\n  \n  if (param_3 == 0xfb) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fdc;\n  }\n  else if (param_3 == 0xfc) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fd4;\n  }\n  else if (param_3 == 0xfd) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe4;\n  }\n  else if (param_3 == 0xfe) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }\n  uVar1 = FUN_0007d040(param_4);\n  uVar1 = (*(code *)PTR_dupprintf_000b82dc)(PTR_DAT_000b8348 + 0x2ff0,param_2,puVar2,uVar1);\n  logevent(*(undefined4 *)(param_1 + 0xc),uVar1);\n  (*(code *)PTR_safefree_000b82e8)(uVar1);\n  return;\n}" primitive_type (function_declarator "FUN_0007d5d0(int param_1,undefined4 param_2,int param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined *puVar2;\n  \n  if (param_3 == 0xfb) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fdc;\n  }\n  else if (param_3 == 0xfc) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fd4;\n  }\n  else if (param_3 == 0xfd) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe4;\n  }\n  else if (param_3 == 0xfe) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }\n  uVar1 = FUN_0007d040(param_4);\n  uVar1 = (*(code *)PTR_dupprintf_000b82dc)(PTR_DAT_000b8348 + 0x2ff0,param_2,puVar2,uVar1);\n  logevent(*(undefined4 *)(param_1 + 0xc),uVar1);\n  (*(code *)PTR_safefree_000b82e8)(uVar1);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (param_3 == 0xfb) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fdc;\n  }\n  else if (param_3 == 0xfc) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fd4;\n  }\n  else if (param_3 == 0xfd) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe4;\n  }\n  else if (param_3 == 0xfe) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }" if (parenthesized_expression "(param_3 == 0xfb)" ( (binary_expression "param_3 == 0xfb" identifier == number_literal) )) (compound_statement "{\n    puVar2 = PTR_DAT_000b8348 + 0x2fdc;\n  }" { (expression_statement "puVar2 = PTR_DAT_000b8348 + 0x2fdc;" (assignment_expression "puVar2 = PTR_DAT_000b8348 + 0x2fdc" identifier = (binary_expression "PTR_DAT_000b8348 + 0x2fdc" identifier + number_literal)) ;) }) (else_clause "else if (param_3 == 0xfc) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fd4;\n  }\n  else if (param_3 == 0xfd) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe4;\n  }\n  else if (param_3 == 0xfe) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }" else (if_statement "if (param_3 == 0xfc) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fd4;\n  }\n  else if (param_3 == 0xfd) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe4;\n  }\n  else if (param_3 == 0xfe) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }" if (parenthesized_expression "(param_3 == 0xfc)" ( (binary_expression "param_3 == 0xfc" identifier == number_literal) )) (compound_statement "{\n    puVar2 = PTR_DAT_000b8348 + 0x2fd4;\n  }" { (expression_statement "puVar2 = PTR_DAT_000b8348 + 0x2fd4;" (assignment_expression "puVar2 = PTR_DAT_000b8348 + 0x2fd4" identifier = (binary_expression "PTR_DAT_000b8348 + 0x2fd4" identifier + number_literal)) ;) }) (else_clause "else if (param_3 == 0xfd) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe4;\n  }\n  else if (param_3 == 0xfe) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }" else (if_statement "if (param_3 == 0xfd) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe4;\n  }\n  else if (param_3 == 0xfe) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }" if (parenthesized_expression "(param_3 == 0xfd)" ( (binary_expression "param_3 == 0xfd" identifier == number_literal) )) (compound_statement "{\n    puVar2 = PTR_DAT_000b8348 + 0x2fe4;\n  }" { (expression_statement "puVar2 = PTR_DAT_000b8348 + 0x2fe4;" (assignment_expression "puVar2 = PTR_DAT_000b8348 + 0x2fe4" identifier = (binary_expression "PTR_DAT_000b8348 + 0x2fe4" identifier + number_literal)) ;) }) (else_clause "else if (param_3 == 0xfe) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }" else (if_statement "if (param_3 == 0xfe) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }" if (parenthesized_expression "(param_3 == 0xfe)" ( (binary_expression "param_3 == 0xfe" identifier == number_literal) )) (compound_statement "{\n    puVar2 = PTR_DAT_000b8348 + 0x2fcc;\n  }" { (expression_statement "puVar2 = PTR_DAT_000b8348 + 0x2fcc;" (assignment_expression "puVar2 = PTR_DAT_000b8348 + 0x2fcc" identifier = (binary_expression "PTR_DAT_000b8348 + 0x2fcc" identifier + number_literal)) ;) }) (else_clause "else {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }" else (compound_statement "{\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }" { (expression_statement "puVar2 = PTR_DAT_000b8348 + 0x2fe8;" (assignment_expression "puVar2 = PTR_DAT_000b8348 + 0x2fe8" identifier = (binary_expression "PTR_DAT_000b8348 + 0x2fe8" identifier + number_literal)) ;) }))))))))) (expression_statement "uVar1 = FUN_0007d040(param_4);" (assignment_expression "uVar1 = FUN_0007d040(param_4)" identifier = (call_expression "FUN_0007d040(param_4)" identifier (argument_list "(param_4)" ( identifier )))) ;) (expression_statement "uVar1 = (*(code *)PTR_dupprintf_000b82dc)(PTR_DAT_000b8348 + 0x2ff0,param_2,puVar2,uVar1);" (assignment_expression "uVar1 = (*(code *)PTR_dupprintf_000b82dc)(PTR_DAT_000b8348 + 0x2ff0,param_2,puVar2,uVar1)" identifier = (call_expression "(*(code *)PTR_dupprintf_000b82dc)(PTR_DAT_000b8348 + 0x2ff0,param_2,puVar2,uVar1)" (parenthesized_expression "(*(code *)PTR_dupprintf_000b82dc)" ( (pointer_expression "*(code *)PTR_dupprintf_000b82dc" * (cast_expression "(code *)PTR_dupprintf_000b82dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000b8348 + 0x2ff0,param_2,puVar2,uVar1)" ( (binary_expression "PTR_DAT_000b8348 + 0x2ff0" identifier + number_literal) , identifier , identifier , identifier )))) ;) (expression_statement "logevent(*(undefined4 *)(param_1 + 0xc),uVar1);" (call_expression "logevent(*(undefined4 *)(param_1 + 0xc),uVar1)" identifier (argument_list "(*(undefined4 *)(param_1 + 0xc),uVar1)" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000b82e8)(uVar1);" (call_expression "(*(code *)PTR_safefree_000b82e8)(uVar1)" (parenthesized_expression "(*(code *)PTR_safefree_000b82e8)" ( (pointer_expression "*(code *)PTR_safefree_000b82e8" * (cast_expression "(code *)PTR_safefree_000b82e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1)" ( 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) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * 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 (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 { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))))))))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0007d5d0(int param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  undefined *puVar2;\n  \n  if (param_3 == 0xfb) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fdc;\n  }\n  else if (param_3 == 0xfc) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fd4;\n  }\n  else if (param_3 == 0xfd) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe4;\n  }\n  else if (param_3 == 0xfe) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }\n  uVar1 = FUN_0007d040(param_4);\n  uVar1 = (*(code *)PTR_dupprintf_000b82dc)(PTR_DAT_000b8348 + 0x2ff0,param_2,puVar2,uVar1);\n  logevent(*(undefined4 *)(param_1 + 0xc),uVar1);\n  (*(code *)PTR_safefree_000b82e8)(uVar1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0007d5d0(int param_1,undefined4 param_2,int param_3,undefined4 param_4)" (identifier "FUN_0007d5d0") (parameter_list "(int param_1,undefined4 param_2,int param_3,undefined4 param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined *puVar2;\n  \n  if (param_3 == 0xfb) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fdc;\n  }\n  else if (param_3 == 0xfc) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fd4;\n  }\n  else if (param_3 == 0xfd) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe4;\n  }\n  else if (param_3 == 0xfe) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }\n  uVar1 = FUN_0007d040(param_4);\n  uVar1 = (*(code *)PTR_dupprintf_000b82dc)(PTR_DAT_000b8348 + 0x2ff0,param_2,puVar2,uVar1);\n  logevent(*(undefined4 *)(param_1 + 0xc),uVar1);\n  (*(code *)PTR_safefree_000b82e8)(uVar1);\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (if_statement "if (param_3 == 0xfb) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fdc;\n  }\n  else if (param_3 == 0xfc) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fd4;\n  }\n  else if (param_3 == 0xfd) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe4;\n  }\n  else if (param_3 == 0xfe) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }" (if "if") (parenthesized_expression "(param_3 == 0xfb)" (( "(") (binary_expression "param_3 == 0xfb" (identifier "param_3") (== "==") (number_literal "0xfb")) () ")")) (compound_statement "{\n    puVar2 = PTR_DAT_000b8348 + 0x2fdc;\n  }" ({ "{") (expression_statement "puVar2 = PTR_DAT_000b8348 + 0x2fdc;" (assignment_expression "puVar2 = PTR_DAT_000b8348 + 0x2fdc" (identifier "puVar2") (= "=") (binary_expression "PTR_DAT_000b8348 + 0x2fdc" (identifier "PTR_DAT_000b8348") (+ "+") (number_literal "0x2fdc"))) (; ";")) (} "}")) (else_clause "else if (param_3 == 0xfc) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fd4;\n  }\n  else if (param_3 == 0xfd) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe4;\n  }\n  else if (param_3 == 0xfe) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }" (else "else") (if_statement "if (param_3 == 0xfc) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fd4;\n  }\n  else if (param_3 == 0xfd) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe4;\n  }\n  else if (param_3 == 0xfe) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }" (if "if") (parenthesized_expression "(param_3 == 0xfc)" (( "(") (binary_expression "param_3 == 0xfc" (identifier "param_3") (== "==") (number_literal "0xfc")) () ")")) (compound_statement "{\n    puVar2 = PTR_DAT_000b8348 + 0x2fd4;\n  }" ({ "{") (expression_statement "puVar2 = PTR_DAT_000b8348 + 0x2fd4;" (assignment_expression "puVar2 = PTR_DAT_000b8348 + 0x2fd4" (identifier "puVar2") (= "=") (binary_expression "PTR_DAT_000b8348 + 0x2fd4" (identifier "PTR_DAT_000b8348") (+ "+") (number_literal "0x2fd4"))) (; ";")) (} "}")) (else_clause "else if (param_3 == 0xfd) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe4;\n  }\n  else if (param_3 == 0xfe) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }" (else "else") (if_statement "if (param_3 == 0xfd) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe4;\n  }\n  else if (param_3 == 0xfe) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }" (if "if") (parenthesized_expression "(param_3 == 0xfd)" (( "(") (binary_expression "param_3 == 0xfd" (identifier "param_3") (== "==") (number_literal "0xfd")) () ")")) (compound_statement "{\n    puVar2 = PTR_DAT_000b8348 + 0x2fe4;\n  }" ({ "{") (expression_statement "puVar2 = PTR_DAT_000b8348 + 0x2fe4;" (assignment_expression "puVar2 = PTR_DAT_000b8348 + 0x2fe4" (identifier "puVar2") (= "=") (binary_expression "PTR_DAT_000b8348 + 0x2fe4" (identifier "PTR_DAT_000b8348") (+ "+") (number_literal "0x2fe4"))) (; ";")) (} "}")) (else_clause "else if (param_3 == 0xfe) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }" (else "else") (if_statement "if (param_3 == 0xfe) {\n    puVar2 = PTR_DAT_000b8348 + 0x2fcc;\n  }\n  else {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }" (if "if") (parenthesized_expression "(param_3 == 0xfe)" (( "(") (binary_expression "param_3 == 0xfe" (identifier "param_3") (== "==") (number_literal "0xfe")) () ")")) (compound_statement "{\n    puVar2 = PTR_DAT_000b8348 + 0x2fcc;\n  }" ({ "{") (expression_statement "puVar2 = PTR_DAT_000b8348 + 0x2fcc;" (assignment_expression "puVar2 = PTR_DAT_000b8348 + 0x2fcc" (identifier "puVar2") (= "=") (binary_expression "PTR_DAT_000b8348 + 0x2fcc" (identifier "PTR_DAT_000b8348") (+ "+") (number_literal "0x2fcc"))) (; ";")) (} "}")) (else_clause "else {\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }" (else "else") (compound_statement "{\n    puVar2 = PTR_DAT_000b8348 + 0x2fe8;\n  }" ({ "{") (expression_statement "puVar2 = PTR_DAT_000b8348 + 0x2fe8;" (assignment_expression "puVar2 = PTR_DAT_000b8348 + 0x2fe8" (identifier "puVar2") (= "=") (binary_expression "PTR_DAT_000b8348 + 0x2fe8" (identifier "PTR_DAT_000b8348") (+ "+") (number_literal "0x2fe8"))) (; ";")) (} "}")))))))))) (expression_statement "uVar1 = FUN_0007d040(param_4);" (assignment_expression "uVar1 = FUN_0007d040(param_4)" (identifier "uVar1") (= "=") (call_expression "FUN_0007d040(param_4)" (identifier "FUN_0007d040") (argument_list "(param_4)" (( "(") (identifier "param_4") () ")")))) (; ";")) (expression_statement "uVar1 = (*(code *)PTR_dupprintf_000b82dc)(PTR_DAT_000b8348 + 0x2ff0,param_2,puVar2,uVar1);" (assignment_expression "uVar1 = (*(code *)PTR_dupprintf_000b82dc)(PTR_DAT_000b8348 + 0x2ff0,param_2,puVar2,uVar1)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_dupprintf_000b82dc)(PTR_DAT_000b8348 + 0x2ff0,param_2,puVar2,uVar1)" (parenthesized_expression "(*(code *)PTR_dupprintf_000b82dc)" (( "(") (pointer_expression "*(code *)PTR_dupprintf_000b82dc" (* "*") (cast_expression "(code *)PTR_dupprintf_000b82dc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dupprintf_000b82dc"))) () ")")) (argument_list "(PTR_DAT_000b8348 + 0x2ff0,param_2,puVar2,uVar1)" (( "(") (binary_expression "PTR_DAT_000b8348 + 0x2ff0" (identifier "PTR_DAT_000b8348") (+ "+") (number_literal "0x2ff0")) (, ",") (identifier "param_2") (, ",") (identifier "puVar2") (, ",") (identifier "uVar1") () ")")))) (; ";")) (expression_statement "logevent(*(undefined4 *)(param_1 + 0xc),uVar1);" (call_expression "logevent(*(undefined4 *)(param_1 + 0xc),uVar1)" (identifier "logevent") (argument_list "(*(undefined4 *)(param_1 + 0xc),uVar1)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (identifier "uVar1") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_000b82e8)(uVar1);" (call_expression "(*(code *)PTR_safefree_000b82e8)(uVar1)" (parenthesized_expression "(*(code *)PTR_safefree_000b82e8)" (( "(") (pointer_expression "*(code *)PTR_safefree_000b82e8" (* "*") (cast_expression "(code *)PTR_safefree_000b82e8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_000b82e8"))) () ")")) (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (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 (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 (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (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)) (identifier) (identifier) (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (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)))) (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 (identifier)))) (return_statement))))

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

{
  undefined4 uVar1;
  undefined *puVar2;
  
  if (param_3 == 0xfb) {
    puVar2 = PTR_DAT_000b8348 + 0x2fdc;
  }
  else if (param_3 == 0xfc) {
    puVar2 = PTR_DAT_000b8348 + 0x2fd4;
  }
  else if (param_3 == 0xfd) {
    puVar2 = PTR_DAT_000b8348 + 0x2fe4;
  }
  else if (param_3 == 0xfe) {
    puVar2 = PTR_DAT_000b8348 + 0x2fcc;
  }
  else {
    puVar2 = PTR_DAT_000b8348 + 0x2fe8;
  }
  uVar1 = FUN_0007d040(param_4);
  uVar1 = (*(code *)PTR_dupprintf_000b82dc)(PTR_DAT_000b8348 + 0x2ff0,param_2,puVar2,uVar1);
  logevent(*(undefined4 *)(param_1 + 0xc),uVar1);
  (*(code *)PTR_safefree_000b82e8)(uVar1);
  return;
}

