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

void platform_get_x11_auth(X11Display *disp,Conf *conf)

{
  char *pcVar1;
  int iVar2;
  
  pcVar1 = (char *)(*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7df0);
  if (pcVar1 != (char *)0x0) {
    x11_get_auth_from_authfile(disp,pcVar1);
    return;
  }
  iVar2 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7de4);
  if ((iVar2 != 0) &&
     (pcVar1 = (char *)(*(code *)PTR_dupcat_000ad7b4)(iVar2,PTR_DAT_000ad2d0 + -0x7ddc,0),
     pcVar1 != (char *)0x0)) {
    x11_get_auth_from_authfile(disp,pcVar1);
                    /* WARNING: Could not recover jumptable at 0x000797c0. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (*(code *)PTR_safefree_000ad380)(pcVar1);
    return;
  }
  return;
}



void platform_get_x11_auth(undefined4 param_1)

{
  int iVar1;
  
  iVar1 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7df0);
  if (iVar1 != 0) {
    x11_get_auth_from_authfile(param_1,iVar1);
    return;
  }
  iVar1 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7de4);
  if ((iVar1 != 0) &&
     (iVar1 = (*(code *)PTR_dupcat_000ad7b4)(iVar1,PTR_DAT_000ad2d0 + -0x7ddc,0), iVar1 != 0)) {
    x11_get_auth_from_authfile(param_1,iVar1);
                    /* WARNING: Could not recover jumptable at 0x000797c0. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (*(code *)PTR_safefree_000ad380)(iVar1);
    return;
  }
  return;
}


lui gp,0x4
addiu gp,gp,-0x4470
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x762c(gp)
sw s0,0x1c(sp)
or s0,a0,zero
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s1,0x20(sp)
lw a0,-0x7fc0(gp)
jalr t9
_addiu a0,a0,-0x7df0
beq v0,zero,0x0007975c
_lw gp,0x10(sp)
lw ra,0x24(sp)
or a0,s0,zero
lw s1,0x20(sp)
or a1,v0,zero
lw s0,0x1c(sp)
lw t9,-0x7874(gp)
b 0x00087970
_addiu sp,sp,0x28
lw a0,-0x7fc0(gp)
lw t9,-0x762c(gp)
jalr t9
_addiu a0,a0,-0x7de4
beq v0,zero,0x000797c8
_lw gp,0x10(sp)
lw a1,-0x7fc0(gp)
or a2,zero,zero
lw t9,-0x7adc(gp)
or a0,v0,zero
jalr t9
_addiu a1,a1,-0x7ddc
lw gp,0x10(sp)
beq v0,zero,0x000797c8
_or s1,v0,zero
lw t9,-0x7874(gp)
or a0,s0,zero
bal 0x00087970
_or a1,v0,zero
or a0,s1,zero
lw gp,0x10(sp)
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
lw t9,-0x7f10(gp)
jr t9
_addiu sp,sp,0x28
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "void platform_get_x11_auth(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7df0);\n  if (iVar1 != 0) {\n    x11_get_auth_from_authfile(param_1,iVar1);\n    return;\n  }\n  iVar1 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7de4);\n  if ((iVar1 != 0) &&\n     (iVar1 = (*(code *)PTR_dupcat_000ad7b4)(iVar1,PTR_DAT_000ad2d0 + -0x7ddc,0), iVar1 != 0)) {\n    x11_get_auth_from_authfile(param_1,iVar1);\n                    /* WARNING: Could not recover jumptable at 0x000797c0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_safefree_000ad380)(iVar1);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void platform_get_x11_auth(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7df0);\n  if (iVar1 != 0) {\n    x11_get_auth_from_authfile(param_1,iVar1);\n    return;\n  }\n  iVar1 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7de4);\n  if ((iVar1 != 0) &&\n     (iVar1 = (*(code *)PTR_dupcat_000ad7b4)(iVar1,PTR_DAT_000ad2d0 + -0x7ddc,0), iVar1 != 0)) {\n    x11_get_auth_from_authfile(param_1,iVar1);\n                    /* WARNING: Could not recover jumptable at 0x000797c0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_safefree_000ad380)(iVar1);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "platform_get_x11_auth(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7df0);\n  if (iVar1 != 0) {\n    x11_get_auth_from_authfile(param_1,iVar1);\n    return;\n  }\n  iVar1 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7de4);\n  if ((iVar1 != 0) &&\n     (iVar1 = (*(code *)PTR_dupcat_000ad7b4)(iVar1,PTR_DAT_000ad2d0 + -0x7ddc,0), iVar1 != 0)) {\n    x11_get_auth_from_authfile(param_1,iVar1);\n                    /* WARNING: Could not recover jumptable at 0x000797c0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_safefree_000ad380)(iVar1);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7df0);" (assignment_expression "iVar1 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7df0)" identifier = (call_expression "(*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7df0)" (parenthesized_expression "(*(code *)PTR_getenv_000adc64)" ( (pointer_expression "*(code *)PTR_getenv_000adc64" * (cast_expression "(code *)PTR_getenv_000adc64" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000ad2d0 + -0x7df0)" ( (binary_expression "PTR_DAT_000ad2d0 + -0x7df0" identifier + number_literal) )))) ;) (if_statement "if (iVar1 != 0) {\n    x11_get_auth_from_authfile(param_1,iVar1);\n    return;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    x11_get_auth_from_authfile(param_1,iVar1);\n    return;\n  }" { (expression_statement "x11_get_auth_from_authfile(param_1,iVar1);" (call_expression "x11_get_auth_from_authfile(param_1,iVar1)" identifier (argument_list "(param_1,iVar1)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7de4);" (assignment_expression "iVar1 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7de4)" identifier = (call_expression "(*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7de4)" (parenthesized_expression "(*(code *)PTR_getenv_000adc64)" ( (pointer_expression "*(code *)PTR_getenv_000adc64" * (cast_expression "(code *)PTR_getenv_000adc64" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000ad2d0 + -0x7de4)" ( (binary_expression "PTR_DAT_000ad2d0 + -0x7de4" identifier + number_literal) )))) ;) (if_statement "if ((iVar1 != 0) &&\n     (iVar1 = (*(code *)PTR_dupcat_000ad7b4)(iVar1,PTR_DAT_000ad2d0 + -0x7ddc,0), iVar1 != 0)) {\n    x11_get_auth_from_authfile(param_1,iVar1);\n                    /* WARNING: Could not recover jumptable at 0x000797c0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_safefree_000ad380)(iVar1);\n    return;\n  }" if (parenthesized_expression "((iVar1 != 0) &&\n     (iVar1 = (*(code *)PTR_dupcat_000ad7b4)(iVar1,PTR_DAT_000ad2d0 + -0x7ddc,0), iVar1 != 0))" ( (binary_expression "(iVar1 != 0) &&\n     (iVar1 = (*(code *)PTR_dupcat_000ad7b4)(iVar1,PTR_DAT_000ad2d0 + -0x7ddc,0), iVar1 != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = (*(code *)PTR_dupcat_000ad7b4)(iVar1,PTR_DAT_000ad2d0 + -0x7ddc,0), iVar1 != 0)" ( (comma_expression "iVar1 = (*(code *)PTR_dupcat_000ad7b4)(iVar1,PTR_DAT_000ad2d0 + -0x7ddc,0), iVar1 != 0" (assignment_expression "iVar1 = (*(code *)PTR_dupcat_000ad7b4)(iVar1,PTR_DAT_000ad2d0 + -0x7ddc,0)" identifier = (call_expression "(*(code *)PTR_dupcat_000ad7b4)(iVar1,PTR_DAT_000ad2d0 + -0x7ddc,0)" (parenthesized_expression "(*(code *)PTR_dupcat_000ad7b4)" ( (pointer_expression "*(code *)PTR_dupcat_000ad7b4" * (cast_expression "(code *)PTR_dupcat_000ad7b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1,PTR_DAT_000ad2d0 + -0x7ddc,0)" ( identifier , (binary_expression "PTR_DAT_000ad2d0 + -0x7ddc" identifier + number_literal) , number_literal )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    x11_get_auth_from_authfile(param_1,iVar1);\n                    /* WARNING: Could not recover jumptable at 0x000797c0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_safefree_000ad380)(iVar1);\n    return;\n  }" { (expression_statement "x11_get_auth_from_authfile(param_1,iVar1);" (call_expression "x11_get_auth_from_authfile(param_1,iVar1)" identifier (argument_list "(param_1,iVar1)" ( identifier , identifier ))) ;) comment comment (expression_statement "(*(code *)PTR_safefree_000ad380)(iVar1);" (call_expression "(*(code *)PTR_safefree_000ad380)(iVar1)" (parenthesized_expression "(*(code *)PTR_safefree_000ad380)" ( (pointer_expression "*(code *)PTR_safefree_000ad380" * (cast_expression "(code *)PTR_safefree_000ad380" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid platform_get_x11_auth(X11Display *disp,Conf *conf)\n\n{\n  char *pcVar1;\n  int iVar2;\n  \n  pcVar1 = (char *)(*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7df0);\n  if (pcVar1 != (char *)0x0) {\n    x11_get_auth_from_authfile(disp,pcVar1);\n    return;\n  }\n  iVar2 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7de4);\n  if ((iVar2 != 0) &&\n     (pcVar1 = (char *)(*(code *)PTR_dupcat_000ad7b4)(iVar2,PTR_DAT_000ad2d0 + -0x7ddc,0),\n     pcVar1 != (char *)0x0)) {\n    x11_get_auth_from_authfile(disp,pcVar1);\n                    /* WARNING: Could not recover jumptable at 0x000797c0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_safefree_000ad380)(pcVar1);\n    return;\n  }\n  return;\n}\n\n" comment (function_definition "void platform_get_x11_auth(X11Display *disp,Conf *conf)\n\n{\n  char *pcVar1;\n  int iVar2;\n  \n  pcVar1 = (char *)(*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7df0);\n  if (pcVar1 != (char *)0x0) {\n    x11_get_auth_from_authfile(disp,pcVar1);\n    return;\n  }\n  iVar2 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7de4);\n  if ((iVar2 != 0) &&\n     (pcVar1 = (char *)(*(code *)PTR_dupcat_000ad7b4)(iVar2,PTR_DAT_000ad2d0 + -0x7ddc,0),\n     pcVar1 != (char *)0x0)) {\n    x11_get_auth_from_authfile(disp,pcVar1);\n                    /* WARNING: Could not recover jumptable at 0x000797c0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_safefree_000ad380)(pcVar1);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "platform_get_x11_auth(X11Display *disp,Conf *conf)" identifier (parameter_list "(X11Display *disp,Conf *conf)" ( (parameter_declaration "X11Display *disp" type_identifier (pointer_declarator "*disp" * identifier)) , (parameter_declaration "Conf *conf" type_identifier (pointer_declarator "*conf" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  \n  pcVar1 = (char *)(*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7df0);\n  if (pcVar1 != (char *)0x0) {\n    x11_get_auth_from_authfile(disp,pcVar1);\n    return;\n  }\n  iVar2 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7de4);\n  if ((iVar2 != 0) &&\n     (pcVar1 = (char *)(*(code *)PTR_dupcat_000ad7b4)(iVar2,PTR_DAT_000ad2d0 + -0x7ddc,0),\n     pcVar1 != (char *)0x0)) {\n    x11_get_auth_from_authfile(disp,pcVar1);\n                    /* WARNING: Could not recover jumptable at 0x000797c0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_safefree_000ad380)(pcVar1);\n    return;\n  }\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "pcVar1 = (char *)(*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7df0);" (assignment_expression "pcVar1 = (char *)(*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7df0)" identifier = (cast_expression "(char *)(*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7df0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7df0)" (parenthesized_expression "(*(code *)PTR_getenv_000adc64)" ( (pointer_expression "*(code *)PTR_getenv_000adc64" * (cast_expression "(code *)PTR_getenv_000adc64" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000ad2d0 + -0x7df0)" ( (binary_expression "PTR_DAT_000ad2d0 + -0x7df0" identifier + number_literal) ))))) ;) (if_statement "if (pcVar1 != (char *)0x0) {\n    x11_get_auth_from_authfile(disp,pcVar1);\n    return;\n  }" if (parenthesized_expression "(pcVar1 != (char *)0x0)" ( (binary_expression "pcVar1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    x11_get_auth_from_authfile(disp,pcVar1);\n    return;\n  }" { (expression_statement "x11_get_auth_from_authfile(disp,pcVar1);" (call_expression "x11_get_auth_from_authfile(disp,pcVar1)" identifier (argument_list "(disp,pcVar1)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar2 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7de4);" (assignment_expression "iVar2 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7de4)" identifier = (call_expression "(*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7de4)" (parenthesized_expression "(*(code *)PTR_getenv_000adc64)" ( (pointer_expression "*(code *)PTR_getenv_000adc64" * (cast_expression "(code *)PTR_getenv_000adc64" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000ad2d0 + -0x7de4)" ( (binary_expression "PTR_DAT_000ad2d0 + -0x7de4" identifier + number_literal) )))) ;) (if_statement "if ((iVar2 != 0) &&\n     (pcVar1 = (char *)(*(code *)PTR_dupcat_000ad7b4)(iVar2,PTR_DAT_000ad2d0 + -0x7ddc,0),\n     pcVar1 != (char *)0x0)) {\n    x11_get_auth_from_authfile(disp,pcVar1);\n                    /* WARNING: Could not recover jumptable at 0x000797c0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_safefree_000ad380)(pcVar1);\n    return;\n  }" if (parenthesized_expression "((iVar2 != 0) &&\n     (pcVar1 = (char *)(*(code *)PTR_dupcat_000ad7b4)(iVar2,PTR_DAT_000ad2d0 + -0x7ddc,0),\n     pcVar1 != (char *)0x0))" ( (binary_expression "(iVar2 != 0) &&\n     (pcVar1 = (char *)(*(code *)PTR_dupcat_000ad7b4)(iVar2,PTR_DAT_000ad2d0 + -0x7ddc,0),\n     pcVar1 != (char *)0x0)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) && (parenthesized_expression "(pcVar1 = (char *)(*(code *)PTR_dupcat_000ad7b4)(iVar2,PTR_DAT_000ad2d0 + -0x7ddc,0),\n     pcVar1 != (char *)0x0)" ( (comma_expression "pcVar1 = (char *)(*(code *)PTR_dupcat_000ad7b4)(iVar2,PTR_DAT_000ad2d0 + -0x7ddc,0),\n     pcVar1 != (char *)0x0" (assignment_expression "pcVar1 = (char *)(*(code *)PTR_dupcat_000ad7b4)(iVar2,PTR_DAT_000ad2d0 + -0x7ddc,0)" identifier = (cast_expression "(char *)(*(code *)PTR_dupcat_000ad7b4)(iVar2,PTR_DAT_000ad2d0 + -0x7ddc,0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dupcat_000ad7b4)(iVar2,PTR_DAT_000ad2d0 + -0x7ddc,0)" (parenthesized_expression "(*(code *)PTR_dupcat_000ad7b4)" ( (pointer_expression "*(code *)PTR_dupcat_000ad7b4" * (cast_expression "(code *)PTR_dupcat_000ad7b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,PTR_DAT_000ad2d0 + -0x7ddc,0)" ( identifier , (binary_expression "PTR_DAT_000ad2d0 + -0x7ddc" identifier + number_literal) , number_literal ))))) , (binary_expression "pcVar1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    x11_get_auth_from_authfile(disp,pcVar1);\n                    /* WARNING: Could not recover jumptable at 0x000797c0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_safefree_000ad380)(pcVar1);\n    return;\n  }" { (expression_statement "x11_get_auth_from_authfile(disp,pcVar1);" (call_expression "x11_get_auth_from_authfile(disp,pcVar1)" identifier (argument_list "(disp,pcVar1)" ( identifier , identifier ))) ;) comment comment (expression_statement "(*(code *)PTR_safefree_000ad380)(pcVar1);" (call_expression "(*(code *)PTR_safefree_000ad380)(pcVar1)" (parenthesized_expression "(*(code *)PTR_safefree_000ad380)" ( (pointer_expression "*(code *)PTR_safefree_000ad380" * (cast_expression "(code *)PTR_safefree_000ad380" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void platform_get_x11_auth(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7df0);\n  if (iVar1 != 0) {\n    x11_get_auth_from_authfile(param_1,iVar1);\n    return;\n  }\n  iVar1 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7de4);\n  if ((iVar1 != 0) &&\n     (iVar1 = (*(code *)PTR_dupcat_000ad7b4)(iVar1,PTR_DAT_000ad2d0 + -0x7ddc,0), iVar1 != 0)) {\n    x11_get_auth_from_authfile(param_1,iVar1);\n                    \n                    \n    (*(code *)PTR_safefree_000ad380)(iVar1);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void platform_get_x11_auth(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7df0);\n  if (iVar1 != 0) {\n    x11_get_auth_from_authfile(param_1,iVar1);\n    return;\n  }\n  iVar1 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7de4);\n  if ((iVar1 != 0) &&\n     (iVar1 = (*(code *)PTR_dupcat_000ad7b4)(iVar1,PTR_DAT_000ad2d0 + -0x7ddc,0), iVar1 != 0)) {\n    x11_get_auth_from_authfile(param_1,iVar1);\n                    \n                    \n    (*(code *)PTR_safefree_000ad380)(iVar1);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "platform_get_x11_auth(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7df0);\n  if (iVar1 != 0) {\n    x11_get_auth_from_authfile(param_1,iVar1);\n    return;\n  }\n  iVar1 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7de4);\n  if ((iVar1 != 0) &&\n     (iVar1 = (*(code *)PTR_dupcat_000ad7b4)(iVar1,PTR_DAT_000ad2d0 + -0x7ddc,0), iVar1 != 0)) {\n    x11_get_auth_from_authfile(param_1,iVar1);\n                    \n                    \n    (*(code *)PTR_safefree_000ad380)(iVar1);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7df0);" (assignment_expression "iVar1 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7df0)" identifier = (call_expression "(*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7df0)" (parenthesized_expression "(*(code *)PTR_getenv_000adc64)" ( (pointer_expression "*(code *)PTR_getenv_000adc64" * (cast_expression "(code *)PTR_getenv_000adc64" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000ad2d0 + -0x7df0)" ( (binary_expression "PTR_DAT_000ad2d0 + -0x7df0" identifier + number_literal) )))) ;) (if_statement "if (iVar1 != 0) {\n    x11_get_auth_from_authfile(param_1,iVar1);\n    return;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    x11_get_auth_from_authfile(param_1,iVar1);\n    return;\n  }" { (expression_statement "x11_get_auth_from_authfile(param_1,iVar1);" (call_expression "x11_get_auth_from_authfile(param_1,iVar1)" identifier (argument_list "(param_1,iVar1)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7de4);" (assignment_expression "iVar1 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7de4)" identifier = (call_expression "(*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7de4)" (parenthesized_expression "(*(code *)PTR_getenv_000adc64)" ( (pointer_expression "*(code *)PTR_getenv_000adc64" * (cast_expression "(code *)PTR_getenv_000adc64" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000ad2d0 + -0x7de4)" ( (binary_expression "PTR_DAT_000ad2d0 + -0x7de4" identifier + number_literal) )))) ;) (if_statement "if ((iVar1 != 0) &&\n     (iVar1 = (*(code *)PTR_dupcat_000ad7b4)(iVar1,PTR_DAT_000ad2d0 + -0x7ddc,0), iVar1 != 0)) {\n    x11_get_auth_from_authfile(param_1,iVar1);\n                    \n                    \n    (*(code *)PTR_safefree_000ad380)(iVar1);\n    return;\n  }" if (parenthesized_expression "((iVar1 != 0) &&\n     (iVar1 = (*(code *)PTR_dupcat_000ad7b4)(iVar1,PTR_DAT_000ad2d0 + -0x7ddc,0), iVar1 != 0))" ( (binary_expression "(iVar1 != 0) &&\n     (iVar1 = (*(code *)PTR_dupcat_000ad7b4)(iVar1,PTR_DAT_000ad2d0 + -0x7ddc,0), iVar1 != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = (*(code *)PTR_dupcat_000ad7b4)(iVar1,PTR_DAT_000ad2d0 + -0x7ddc,0), iVar1 != 0)" ( (comma_expression "iVar1 = (*(code *)PTR_dupcat_000ad7b4)(iVar1,PTR_DAT_000ad2d0 + -0x7ddc,0), iVar1 != 0" (assignment_expression "iVar1 = (*(code *)PTR_dupcat_000ad7b4)(iVar1,PTR_DAT_000ad2d0 + -0x7ddc,0)" identifier = (call_expression "(*(code *)PTR_dupcat_000ad7b4)(iVar1,PTR_DAT_000ad2d0 + -0x7ddc,0)" (parenthesized_expression "(*(code *)PTR_dupcat_000ad7b4)" ( (pointer_expression "*(code *)PTR_dupcat_000ad7b4" * (cast_expression "(code *)PTR_dupcat_000ad7b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1,PTR_DAT_000ad2d0 + -0x7ddc,0)" ( identifier , (binary_expression "PTR_DAT_000ad2d0 + -0x7ddc" identifier + number_literal) , number_literal )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    x11_get_auth_from_authfile(param_1,iVar1);\n                    \n                    \n    (*(code *)PTR_safefree_000ad380)(iVar1);\n    return;\n  }" { (expression_statement "x11_get_auth_from_authfile(param_1,iVar1);" (call_expression "x11_get_auth_from_authfile(param_1,iVar1)" identifier (argument_list "(param_1,iVar1)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000ad380)(iVar1);" (call_expression "(*(code *)PTR_safefree_000ad380)(iVar1)" (parenthesized_expression "(*(code *)PTR_safefree_000ad380)" ( (pointer_expression "*(code *)PTR_safefree_000ad380" * (cast_expression "(code *)PTR_safefree_000ad380" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE 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) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return ;) })) (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) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) , LIT )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void platform_get_x11_auth(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7df0);\n  if (iVar1 != 0) {\n    x11_get_auth_from_authfile(param_1,iVar1);\n    return;\n  }\n  iVar1 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7de4);\n  if ((iVar1 != 0) &&\n     (iVar1 = (*(code *)PTR_dupcat_000ad7b4)(iVar1,PTR_DAT_000ad2d0 + -0x7ddc,0), iVar1 != 0)) {\n    x11_get_auth_from_authfile(param_1,iVar1);\n                    \n                    \n    (*(code *)PTR_safefree_000ad380)(iVar1);\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "platform_get_x11_auth(undefined4 param_1)" (identifier "platform_get_x11_auth") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7df0);\n  if (iVar1 != 0) {\n    x11_get_auth_from_authfile(param_1,iVar1);\n    return;\n  }\n  iVar1 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7de4);\n  if ((iVar1 != 0) &&\n     (iVar1 = (*(code *)PTR_dupcat_000ad7b4)(iVar1,PTR_DAT_000ad2d0 + -0x7ddc,0), iVar1 != 0)) {\n    x11_get_auth_from_authfile(param_1,iVar1);\n                    \n                    \n    (*(code *)PTR_safefree_000ad380)(iVar1);\n    return;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7df0);" (assignment_expression "iVar1 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7df0)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7df0)" (parenthesized_expression "(*(code *)PTR_getenv_000adc64)" (( "(") (pointer_expression "*(code *)PTR_getenv_000adc64" (* "*") (cast_expression "(code *)PTR_getenv_000adc64" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_getenv_000adc64"))) () ")")) (argument_list "(PTR_DAT_000ad2d0 + -0x7df0)" (( "(") (binary_expression "PTR_DAT_000ad2d0 + -0x7df0" (identifier "PTR_DAT_000ad2d0") (+ "+") (number_literal "-0x7df0")) () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    x11_get_auth_from_authfile(param_1,iVar1);\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    x11_get_auth_from_authfile(param_1,iVar1);\n    return;\n  }" ({ "{") (expression_statement "x11_get_auth_from_authfile(param_1,iVar1);" (call_expression "x11_get_auth_from_authfile(param_1,iVar1)" (identifier "x11_get_auth_from_authfile") (argument_list "(param_1,iVar1)" (( "(") (identifier "param_1") (, ",") (identifier "iVar1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar1 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7de4);" (assignment_expression "iVar1 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7de4)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7de4)" (parenthesized_expression "(*(code *)PTR_getenv_000adc64)" (( "(") (pointer_expression "*(code *)PTR_getenv_000adc64" (* "*") (cast_expression "(code *)PTR_getenv_000adc64" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_getenv_000adc64"))) () ")")) (argument_list "(PTR_DAT_000ad2d0 + -0x7de4)" (( "(") (binary_expression "PTR_DAT_000ad2d0 + -0x7de4" (identifier "PTR_DAT_000ad2d0") (+ "+") (number_literal "-0x7de4")) () ")")))) (; ";")) (if_statement "if ((iVar1 != 0) &&\n     (iVar1 = (*(code *)PTR_dupcat_000ad7b4)(iVar1,PTR_DAT_000ad2d0 + -0x7ddc,0), iVar1 != 0)) {\n    x11_get_auth_from_authfile(param_1,iVar1);\n                    \n                    \n    (*(code *)PTR_safefree_000ad380)(iVar1);\n    return;\n  }" (if "if") (parenthesized_expression "((iVar1 != 0) &&\n     (iVar1 = (*(code *)PTR_dupcat_000ad7b4)(iVar1,PTR_DAT_000ad2d0 + -0x7ddc,0), iVar1 != 0))" (( "(") (binary_expression "(iVar1 != 0) &&\n     (iVar1 = (*(code *)PTR_dupcat_000ad7b4)(iVar1,PTR_DAT_000ad2d0 + -0x7ddc,0), iVar1 != 0)" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = (*(code *)PTR_dupcat_000ad7b4)(iVar1,PTR_DAT_000ad2d0 + -0x7ddc,0), iVar1 != 0)" (( "(") (comma_expression "iVar1 = (*(code *)PTR_dupcat_000ad7b4)(iVar1,PTR_DAT_000ad2d0 + -0x7ddc,0), iVar1 != 0" (assignment_expression "iVar1 = (*(code *)PTR_dupcat_000ad7b4)(iVar1,PTR_DAT_000ad2d0 + -0x7ddc,0)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_dupcat_000ad7b4)(iVar1,PTR_DAT_000ad2d0 + -0x7ddc,0)" (parenthesized_expression "(*(code *)PTR_dupcat_000ad7b4)" (( "(") (pointer_expression "*(code *)PTR_dupcat_000ad7b4" (* "*") (cast_expression "(code *)PTR_dupcat_000ad7b4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dupcat_000ad7b4"))) () ")")) (argument_list "(iVar1,PTR_DAT_000ad2d0 + -0x7ddc,0)" (( "(") (identifier "iVar1") (, ",") (binary_expression "PTR_DAT_000ad2d0 + -0x7ddc" (identifier "PTR_DAT_000ad2d0") (+ "+") (number_literal "-0x7ddc")) (, ",") (number_literal "0") () ")")))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    x11_get_auth_from_authfile(param_1,iVar1);\n                    \n                    \n    (*(code *)PTR_safefree_000ad380)(iVar1);\n    return;\n  }" ({ "{") (expression_statement "x11_get_auth_from_authfile(param_1,iVar1);" (call_expression "x11_get_auth_from_authfile(param_1,iVar1)" (identifier "x11_get_auth_from_authfile") (argument_list "(param_1,iVar1)" (( "(") (identifier "param_1") (, ",") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_000ad380)(iVar1);" (call_expression "(*(code *)PTR_safefree_000ad380)(iVar1)" (parenthesized_expression "(*(code *)PTR_safefree_000ad380)" (( "(") (pointer_expression "*(code *)PTR_safefree_000ad380" (* "*") (cast_expression "(code *)PTR_safefree_000ad380" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_000ad380"))) () ")")) (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *disp,type_2 *conf)

{
  char *var_2;
  int var_4;
  
  var_2 = (char *)(*(type_3 *)PTR_getenv_000adc64)(var_1 + -0x7df0);
  if (var_2 != (char *)0x0) {
    var_3(disp,var_2);
    return;
  }
  var_4 = (*(type_3 *)PTR_getenv_000adc64)(var_1 + -0x7de4);
  if ((var_4 != 0) &&
     (var_2 = (char *)(*(type_3 *)PTR_dupcat_000ad7b4)(var_4,var_1 + -0x7ddc,0),
     var_2 != (char *)0x0)) {
    var_3(disp,var_2);
                    /* WARNING: Could not recover jumptable at 0x000797c0. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (*(type_3 *)PTR_safefree_000ad380)(var_2);
    return;
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (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)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (return_statement))) (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)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (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 (identifier) (binary_expression left: (identifier) right: (number_literal)) (number_literal)))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (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))) (return_statement))))

void MASKED(undefined4 param_1)

{
  int iVar1;
  
  iVar1 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7df0);
  if (iVar1 != 0) {
    x11_get_auth_from_authfile(param_1,iVar1);
    return;
  }
  iVar1 = (*(code *)PTR_getenv_000adc64)(PTR_DAT_000ad2d0 + -0x7de4);
  if ((iVar1 != 0) &&
     (iVar1 = (*(code *)PTR_dupcat_000ad7b4)(iVar1,PTR_DAT_000ad2d0 + -0x7ddc,0), iVar1 != 0)) {
    x11_get_auth_from_authfile(param_1,iVar1);
                    /* WARNING: Could not recover jumptable at 0x000797c0. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (*(code *)PTR_safefree_000ad380)(iVar1);
    return;
  }
  return;
}

