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

void x11_send_init_error(X11Connection *xconn,char *err_message)

{
  undefined1 *puVar1;
  uint uVar2;
  undefined *puVar3;
  undefined4 uVar4;
  int iVar5;
  undefined1 *puVar6;
  undefined4 uVar7;
  uint uVar8;
  undefined1 uVar9;
  undefined1 uVar10;
  uint uVar11;
  
  uVar4 = (*(code *)PTR_dupprintf_001113a8)
                    (PTR_DAT_001112f4 + -0x19b0,*(undefined4 *)PTR_appname_00111320,err_message);
  iVar5 = (*(code *)PTR_strlen_00112534)(uVar4);
  puVar6 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar5 + 0xd,1);
  *puVar6 = 0;
  puVar6[1] = (char)iVar5;
  uVar8 = *(uint *)(xconn->firstpkt + 2);
  uVar11 = iVar5 + 3U & 0xfffffffc;
  puVar1 = puVar6 + 2;
  uVar2 = (uint)puVar1 & 3;
  *(uint *)(puVar1 + -uVar2) =
       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8;
  puVar1 = puVar6 + 5;
  uVar2 = (uint)puVar1 & 3;
  *(uint *)(puVar1 + -uVar2) =
       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8;
  uVar10 = (undefined1)((uVar11 << 0x16) >> 0x18);
  uVar9 = (undefined1)((uVar11 << 0xe) >> 0x18);
  if (xconn->firstpkt[0] == 'B') {
    puVar6[6] = uVar9;
    puVar6[7] = uVar10;
  }
  else {
    puVar6[6] = uVar10;
    puVar6[7] = uVar9;
  }
  uVar7 = (*(code *)PTR_memset_001120b4)(puVar6 + 8,0,uVar11);
  (*(code *)PTR_memcpy_0011256c)(uVar7,uVar4,iVar5);
  (*(code *)PTR_sshfwd_write_00111668)(xconn->c,puVar6,uVar11 + 8);
  (*(code *)PTR_sshfwd_write_eof_00111670)(xconn->c);
  puVar3 = PTR_safefree_001112f0;
  xconn->no_data_sent_to_x_client = 0;
  (*(code *)puVar3)(puVar6);
  (*(code *)PTR_safefree_001112f0)(uVar4);
  return;
}



void FUN_000cb4a0(int param_1,undefined4 param_2)

{
  undefined1 *puVar1;
  uint uVar2;
  undefined *puVar3;
  undefined4 uVar4;
  int iVar5;
  undefined1 *puVar6;
  undefined4 uVar7;
  uint uVar8;
  undefined1 uVar9;
  undefined1 uVar10;
  uint uVar11;
  
  uVar4 = (*(code *)PTR_dupprintf_001113a8)
                    (PTR_DAT_001112f4 + -0x19b0,*(undefined4 *)PTR_appname_00111320,param_2);
  iVar5 = (*(code *)PTR_strlen_00112534)(uVar4);
  puVar6 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar5 + 0xd,1);
  *puVar6 = 0;
  puVar6[1] = (char)iVar5;
  uVar8 = *(uint *)(param_1 + 6);
  uVar11 = iVar5 + 3U & 0xfffffffc;
  puVar1 = puVar6 + 2;
  uVar2 = (uint)puVar1 & 3;
  *(uint *)(puVar1 + -uVar2) =
       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8;
  puVar1 = puVar6 + 5;
  uVar2 = (uint)puVar1 & 3;
  *(uint *)(puVar1 + -uVar2) =
       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8;
  uVar10 = (undefined1)((uVar11 << 0x16) >> 0x18);
  uVar9 = (undefined1)((uVar11 << 0xe) >> 0x18);
  if (*(char *)(param_1 + 4) == 'B') {
    puVar6[6] = uVar9;
    puVar6[7] = uVar10;
  }
  else {
    puVar6[6] = uVar10;
    puVar6[7] = uVar9;
  }
  uVar7 = (*(code *)PTR_memset_001120b4)(puVar6 + 8,0,uVar11);
  (*(code *)PTR_memcpy_0011256c)(uVar7,uVar4,iVar5);
  (*(code *)PTR_sshfwd_write_00111668)(*(undefined4 *)(param_1 + 0x4c),puVar6,uVar11 + 8);
  (*(code *)PTR_sshfwd_write_eof_00111670)(*(undefined4 *)(param_1 + 0x4c));
  puVar3 = PTR_safefree_001112f0;
  *(undefined4 *)(param_1 + 0x40) = 0;
  (*(code *)puVar3)(puVar6);
  (*(code *)PTR_safefree_001112f0)(uVar4);
  return;
}


lui gp,0x5
addiu gp,gp,-0x21f0
addu gp,gp,t9
addiu sp,sp,-0x30
lw v0,-0x7f90(gp)
or a2,a1,zero
lw t9,-0x7f08(gp)
sw s2,0x20(sp)
or s2,a0,zero
sw ra,0x2c(sp)
sw gp,0x10(sp)
sw s4,0x28(sp)
sw s3,0x24(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
lw a0,-0x7fbc(gp)
lw a1,0x0(v0)
jalr t9
_addiu a0,a0,-0x19b0
lw gp,0x10(sp)
or a0,v0,zero
lw t9,-0x6d7c(gp)
jalr t9
_or s4,v0,zero
li a1,0x1
lw gp,0x10(sp)
addiu a0,v0,0xd
or s3,v0,zero
lw t9,-0x7fc4(gp)
jalr t9
_addiu s1,s3,0x3
addiu a0,s2,0x6
or s0,v0,zero
lw gp,0x10(sp)
addiu v0,v0,0x2
sb zero,0x0(s0)
li a1,-0x4
sb s3,0x1(s0)
li a3,0x42
lwl v1,0x0(a0)
and s1,s1,a1
ext a2,s1,0x2,0x8
lwr v1,0x3(a0)
swl v1,0x2(s0)
swr v1,0x3(v0)
lbu v0,0x4(s2)
beq v0,a3,0x000cb600
_ext a1,s1,0xa,0x8
sb a2,0x6(s0)
sb a1,0x7(s0)
addiu v1,s0,0x8
lw t9,-0x71fc(gp)
or a1,zero,zero
or a0,v1,zero
jalr t9
_or a2,s1,zero
or a2,s3,zero
lw gp,0x10(sp)
or a1,s4,zero
lw t9,-0x6d44(gp)
jalr t9
_or a0,v0,zero
addiu a2,s1,0x8
lw gp,0x10(sp)
or a1,s0,zero
lw t9,-0x7c48(gp)
jalr t9
_lw a0,0x4c(s2)
lw gp,0x10(sp)
lw t9,-0x7c40(gp)
jalr t9
_lw a0,0x4c(s2)
or a0,s0,zero
lw gp,0x10(sp)
lw t9,-0x7fc0(gp)
jalr t9
_sw zero,0x40(s2)
or a0,s4,zero
lw gp,0x10(sp)
lw ra,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
lw t9,-0x7fc0(gp)
jr t9
_addiu sp,sp,0x30
sb a1,0x6(s0)
b 0x000cb568
_sb a2,0x7(s0)
(translation_unit "void FUN_000cb4a0(int param_1,undefined4 param_2)\n\n{\n  undefined1 *puVar1;\n  uint uVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  undefined4 uVar7;\n  uint uVar8;\n  undefined1 uVar9;\n  undefined1 uVar10;\n  uint uVar11;\n  \n  uVar4 = (*(code *)PTR_dupprintf_001113a8)\n                    (PTR_DAT_001112f4 + -0x19b0,*(undefined4 *)PTR_appname_00111320,param_2);\n  iVar5 = (*(code *)PTR_strlen_00112534)(uVar4);\n  puVar6 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar5 + 0xd,1);\n  *puVar6 = 0;\n  puVar6[1] = (char)iVar5;\n  uVar8 = *(uint *)(param_1 + 6);\n  uVar11 = iVar5 + 3U & 0xfffffffc;\n  puVar1 = puVar6 + 2;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8;\n  puVar1 = puVar6 + 5;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8;\n  uVar10 = (undefined1)((uVar11 << 0x16) >> 0x18);\n  uVar9 = (undefined1)((uVar11 << 0xe) >> 0x18);\n  if (*(char *)(param_1 + 4) == 'B') {\n    puVar6[6] = uVar9;\n    puVar6[7] = uVar10;\n  }\n  else {\n    puVar6[6] = uVar10;\n    puVar6[7] = uVar9;\n  }\n  uVar7 = (*(code *)PTR_memset_001120b4)(puVar6 + 8,0,uVar11);\n  (*(code *)PTR_memcpy_0011256c)(uVar7,uVar4,iVar5);\n  (*(code *)PTR_sshfwd_write_00111668)(*(undefined4 *)(param_1 + 0x4c),puVar6,uVar11 + 8);\n  (*(code *)PTR_sshfwd_write_eof_00111670)(*(undefined4 *)(param_1 + 0x4c));\n  puVar3 = PTR_safefree_001112f0;\n  *(undefined4 *)(param_1 + 0x40) = 0;\n  (*(code *)puVar3)(puVar6);\n  (*(code *)PTR_safefree_001112f0)(uVar4);\n  return;\n}\n\n" (function_definition "void FUN_000cb4a0(int param_1,undefined4 param_2)\n\n{\n  undefined1 *puVar1;\n  uint uVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  undefined4 uVar7;\n  uint uVar8;\n  undefined1 uVar9;\n  undefined1 uVar10;\n  uint uVar11;\n  \n  uVar4 = (*(code *)PTR_dupprintf_001113a8)\n                    (PTR_DAT_001112f4 + -0x19b0,*(undefined4 *)PTR_appname_00111320,param_2);\n  iVar5 = (*(code *)PTR_strlen_00112534)(uVar4);\n  puVar6 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar5 + 0xd,1);\n  *puVar6 = 0;\n  puVar6[1] = (char)iVar5;\n  uVar8 = *(uint *)(param_1 + 6);\n  uVar11 = iVar5 + 3U & 0xfffffffc;\n  puVar1 = puVar6 + 2;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8;\n  puVar1 = puVar6 + 5;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8;\n  uVar10 = (undefined1)((uVar11 << 0x16) >> 0x18);\n  uVar9 = (undefined1)((uVar11 << 0xe) >> 0x18);\n  if (*(char *)(param_1 + 4) == 'B') {\n    puVar6[6] = uVar9;\n    puVar6[7] = uVar10;\n  }\n  else {\n    puVar6[6] = uVar10;\n    puVar6[7] = uVar9;\n  }\n  uVar7 = (*(code *)PTR_memset_001120b4)(puVar6 + 8,0,uVar11);\n  (*(code *)PTR_memcpy_0011256c)(uVar7,uVar4,iVar5);\n  (*(code *)PTR_sshfwd_write_00111668)(*(undefined4 *)(param_1 + 0x4c),puVar6,uVar11 + 8);\n  (*(code *)PTR_sshfwd_write_eof_00111670)(*(undefined4 *)(param_1 + 0x4c));\n  puVar3 = PTR_safefree_001112f0;\n  *(undefined4 *)(param_1 + 0x40) = 0;\n  (*(code *)puVar3)(puVar6);\n  (*(code *)PTR_safefree_001112f0)(uVar4);\n  return;\n}" primitive_type (function_declarator "FUN_000cb4a0(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined1 *puVar1;\n  uint uVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  undefined4 uVar7;\n  uint uVar8;\n  undefined1 uVar9;\n  undefined1 uVar10;\n  uint uVar11;\n  \n  uVar4 = (*(code *)PTR_dupprintf_001113a8)\n                    (PTR_DAT_001112f4 + -0x19b0,*(undefined4 *)PTR_appname_00111320,param_2);\n  iVar5 = (*(code *)PTR_strlen_00112534)(uVar4);\n  puVar6 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar5 + 0xd,1);\n  *puVar6 = 0;\n  puVar6[1] = (char)iVar5;\n  uVar8 = *(uint *)(param_1 + 6);\n  uVar11 = iVar5 + 3U & 0xfffffffc;\n  puVar1 = puVar6 + 2;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8;\n  puVar1 = puVar6 + 5;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8;\n  uVar10 = (undefined1)((uVar11 << 0x16) >> 0x18);\n  uVar9 = (undefined1)((uVar11 << 0xe) >> 0x18);\n  if (*(char *)(param_1 + 4) == 'B') {\n    puVar6[6] = uVar9;\n    puVar6[7] = uVar10;\n  }\n  else {\n    puVar6[6] = uVar10;\n    puVar6[7] = uVar9;\n  }\n  uVar7 = (*(code *)PTR_memset_001120b4)(puVar6 + 8,0,uVar11);\n  (*(code *)PTR_memcpy_0011256c)(uVar7,uVar4,iVar5);\n  (*(code *)PTR_sshfwd_write_00111668)(*(undefined4 *)(param_1 + 0x4c),puVar6,uVar11 + 8);\n  (*(code *)PTR_sshfwd_write_eof_00111670)(*(undefined4 *)(param_1 + 0x4c));\n  puVar3 = PTR_safefree_001112f0;\n  *(undefined4 *)(param_1 + 0x40) = 0;\n  (*(code *)puVar3)(puVar6);\n  (*(code *)PTR_safefree_001112f0)(uVar4);\n  return;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined1 uVar9;" type_identifier identifier ;) (declaration "undefined1 uVar10;" type_identifier identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (expression_statement "uVar4 = (*(code *)PTR_dupprintf_001113a8)\n                    (PTR_DAT_001112f4 + -0x19b0,*(undefined4 *)PTR_appname_00111320,param_2);" (assignment_expression "uVar4 = (*(code *)PTR_dupprintf_001113a8)\n                    (PTR_DAT_001112f4 + -0x19b0,*(undefined4 *)PTR_appname_00111320,param_2)" identifier = (call_expression "(*(code *)PTR_dupprintf_001113a8)\n                    (PTR_DAT_001112f4 + -0x19b0,*(undefined4 *)PTR_appname_00111320,param_2)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" ( (pointer_expression "*(code *)PTR_dupprintf_001113a8" * (cast_expression "(code *)PTR_dupprintf_001113a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x19b0,*(undefined4 *)PTR_appname_00111320,param_2)" ( (binary_expression "PTR_DAT_001112f4 + -0x19b0" identifier + number_literal) , (pointer_expression "*(undefined4 *)PTR_appname_00111320" * (cast_expression "(undefined4 *)PTR_appname_00111320" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier )))) ;) (expression_statement "iVar5 = (*(code *)PTR_strlen_00112534)(uVar4);" (assignment_expression "iVar5 = (*(code *)PTR_strlen_00112534)(uVar4)" identifier = (call_expression "(*(code *)PTR_strlen_00112534)(uVar4)" (parenthesized_expression "(*(code *)PTR_strlen_00112534)" ( (pointer_expression "*(code *)PTR_strlen_00112534" * (cast_expression "(code *)PTR_strlen_00112534" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "puVar6 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar5 + 0xd,1);" (assignment_expression "puVar6 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar5 + 0xd,1)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar5 + 0xd,1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_001112ec)(iVar5 + 0xd,1)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" ( (pointer_expression "*(code *)PTR_safemalloc_001112ec" * (cast_expression "(code *)PTR_safemalloc_001112ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5 + 0xd,1)" ( (binary_expression "iVar5 + 0xd" identifier + number_literal) , number_literal ))))) ;) (expression_statement "*puVar6 = 0;" (assignment_expression "*puVar6 = 0" (pointer_expression "*puVar6" * identifier) = number_literal) ;) (expression_statement "puVar6[1] = (char)iVar5;" (assignment_expression "puVar6[1] = (char)iVar5" (subscript_expression "puVar6[1]" identifier [ number_literal ]) = (cast_expression "(char)iVar5" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "uVar8 = *(uint *)(param_1 + 6);" (assignment_expression "uVar8 = *(uint *)(param_1 + 6)" identifier = (pointer_expression "*(uint *)(param_1 + 6)" * (cast_expression "(uint *)(param_1 + 6)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) ))))) ;) (expression_statement "uVar11 = iVar5 + 3U & 0xfffffffc;" (assignment_expression "uVar11 = iVar5 + 3U & 0xfffffffc" identifier = (binary_expression "iVar5 + 3U & 0xfffffffc" (binary_expression "iVar5 + 3U" identifier + number_literal) & number_literal)) ;) (expression_statement "puVar1 = puVar6 + 2;" (assignment_expression "puVar1 = puVar6 + 2" identifier = (binary_expression "puVar6 + 2" identifier + number_literal)) ;) (expression_statement "uVar2 = (uint)puVar1 & 3;" (assignment_expression "uVar2 = (uint)puVar1 & 3" identifier = (binary_expression "(uint)puVar1 & 3" (cast_expression "(uint)puVar1" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal)) ;) (expression_statement "*(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8;" (assignment_expression "*(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8" (pointer_expression "*(uint *)(puVar1 + -uVar2)" * (cast_expression "(uint *)(puVar1 + -uVar2)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -uVar2)" ( (binary_expression "puVar1 + -uVar2" identifier + (unary_expression "-uVar2" - identifier)) )))) = (binary_expression "*(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8" (binary_expression "*(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8" (pointer_expression "*(uint *)(puVar1 + -uVar2)" * (cast_expression "(uint *)(puVar1 + -uVar2)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -uVar2)" ( (binary_expression "puVar1 + -uVar2" identifier + (unary_expression "-uVar2" - identifier)) )))) & (binary_expression "-1 << (4 - uVar2) * 8" number_literal << (binary_expression "(4 - uVar2) * 8" (parenthesized_expression "(4 - uVar2)" ( (binary_expression "4 - uVar2" number_literal - identifier) )) * number_literal))) | (binary_expression "uVar8 >> uVar2 * 8" identifier >> (binary_expression "uVar2 * 8" identifier * number_literal)))) ;) (expression_statement "puVar1 = puVar6 + 5;" (assignment_expression "puVar1 = puVar6 + 5" identifier = (binary_expression "puVar6 + 5" identifier + number_literal)) ;) (expression_statement "uVar2 = (uint)puVar1 & 3;" (assignment_expression "uVar2 = (uint)puVar1 & 3" identifier = (binary_expression "(uint)puVar1 & 3" (cast_expression "(uint)puVar1" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal)) ;) (expression_statement "*(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8;" (assignment_expression "*(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8" (pointer_expression "*(uint *)(puVar1 + -uVar2)" * (cast_expression "(uint *)(puVar1 + -uVar2)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -uVar2)" ( (binary_expression "puVar1 + -uVar2" identifier + (unary_expression "-uVar2" - identifier)) )))) = (binary_expression "*(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8" (binary_expression "*(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8" (pointer_expression "*(uint *)(puVar1 + -uVar2)" * (cast_expression "(uint *)(puVar1 + -uVar2)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -uVar2)" ( (binary_expression "puVar1 + -uVar2" identifier + (unary_expression "-uVar2" - identifier)) )))) & (binary_expression "0xffffffffU >> (uVar2 + 1) * 8" number_literal >> (binary_expression "(uVar2 + 1) * 8" (parenthesized_expression "(uVar2 + 1)" ( (binary_expression "uVar2 + 1" identifier + number_literal) )) * number_literal))) | (binary_expression "uVar8 << (3 - uVar2) * 8" identifier << (binary_expression "(3 - uVar2) * 8" (parenthesized_expression "(3 - uVar2)" ( (binary_expression "3 - uVar2" number_literal - identifier) )) * number_literal)))) ;) (expression_statement "uVar10 = (undefined1)((uVar11 << 0x16) >> 0x18);" (assignment_expression "uVar10 = (undefined1)((uVar11 << 0x16) >> 0x18)" identifier = (call_expression "(undefined1)((uVar11 << 0x16) >> 0x18)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uVar11 << 0x16) >> 0x18)" ( (binary_expression "(uVar11 << 0x16) >> 0x18" (parenthesized_expression "(uVar11 << 0x16)" ( (binary_expression "uVar11 << 0x16" identifier << number_literal) )) >> number_literal) )))) ;) (expression_statement "uVar9 = (undefined1)((uVar11 << 0xe) >> 0x18);" (assignment_expression "uVar9 = (undefined1)((uVar11 << 0xe) >> 0x18)" identifier = (call_expression "(undefined1)((uVar11 << 0xe) >> 0x18)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uVar11 << 0xe) >> 0x18)" ( (binary_expression "(uVar11 << 0xe) >> 0x18" (parenthesized_expression "(uVar11 << 0xe)" ( (binary_expression "uVar11 << 0xe" identifier << number_literal) )) >> number_literal) )))) ;) (if_statement "if (*(char *)(param_1 + 4) == 'B') {\n    puVar6[6] = uVar9;\n    puVar6[7] = uVar10;\n  }\n  else {\n    puVar6[6] = uVar10;\n    puVar6[7] = uVar9;\n  }" if (parenthesized_expression "(*(char *)(param_1 + 4) == 'B')" ( (binary_expression "*(char *)(param_1 + 4) == 'B'" (pointer_expression "*(char *)(param_1 + 4)" * (cast_expression "(char *)(param_1 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == (char_literal "'B'" ' character ')) )) (compound_statement "{\n    puVar6[6] = uVar9;\n    puVar6[7] = uVar10;\n  }" { (expression_statement "puVar6[6] = uVar9;" (assignment_expression "puVar6[6] = uVar9" (subscript_expression "puVar6[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar6[7] = uVar10;" (assignment_expression "puVar6[7] = uVar10" (subscript_expression "puVar6[7]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n    puVar6[6] = uVar10;\n    puVar6[7] = uVar9;\n  }" else (compound_statement "{\n    puVar6[6] = uVar10;\n    puVar6[7] = uVar9;\n  }" { (expression_statement "puVar6[6] = uVar10;" (assignment_expression "puVar6[6] = uVar10" (subscript_expression "puVar6[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar6[7] = uVar9;" (assignment_expression "puVar6[7] = uVar9" (subscript_expression "puVar6[7]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "uVar7 = (*(code *)PTR_memset_001120b4)(puVar6 + 8,0,uVar11);" (assignment_expression "uVar7 = (*(code *)PTR_memset_001120b4)(puVar6 + 8,0,uVar11)" identifier = (call_expression "(*(code *)PTR_memset_001120b4)(puVar6 + 8,0,uVar11)" (parenthesized_expression "(*(code *)PTR_memset_001120b4)" ( (pointer_expression "*(code *)PTR_memset_001120b4" * (cast_expression "(code *)PTR_memset_001120b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar6 + 8,0,uVar11)" ( (binary_expression "puVar6 + 8" identifier + number_literal) , number_literal , identifier )))) ;) (expression_statement "(*(code *)PTR_memcpy_0011256c)(uVar7,uVar4,iVar5);" (call_expression "(*(code *)PTR_memcpy_0011256c)(uVar7,uVar4,iVar5)" (parenthesized_expression "(*(code *)PTR_memcpy_0011256c)" ( (pointer_expression "*(code *)PTR_memcpy_0011256c" * (cast_expression "(code *)PTR_memcpy_0011256c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar7,uVar4,iVar5)" ( identifier , identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_sshfwd_write_00111668)(*(undefined4 *)(param_1 + 0x4c),puVar6,uVar11 + 8);" (call_expression "(*(code *)PTR_sshfwd_write_00111668)(*(undefined4 *)(param_1 + 0x4c),puVar6,uVar11 + 8)" (parenthesized_expression "(*(code *)PTR_sshfwd_write_00111668)" ( (pointer_expression "*(code *)PTR_sshfwd_write_00111668" * (cast_expression "(code *)PTR_sshfwd_write_00111668" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x4c),puVar6,uVar11 + 8)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" * (cast_expression "(undefined4 *)(param_1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) , identifier , (binary_expression "uVar11 + 8" identifier + number_literal) ))) ;) (expression_statement "(*(code *)PTR_sshfwd_write_eof_00111670)(*(undefined4 *)(param_1 + 0x4c));" (call_expression "(*(code *)PTR_sshfwd_write_eof_00111670)(*(undefined4 *)(param_1 + 0x4c))" (parenthesized_expression "(*(code *)PTR_sshfwd_write_eof_00111670)" ( (pointer_expression "*(code *)PTR_sshfwd_write_eof_00111670" * (cast_expression "(code *)PTR_sshfwd_write_eof_00111670" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x4c))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" * (cast_expression "(undefined4 *)(param_1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) ))) ;) (expression_statement "puVar3 = PTR_safefree_001112f0;" (assignment_expression "puVar3 = PTR_safefree_001112f0" identifier = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x40) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x40) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x40)" * (cast_expression "(undefined4 *)(param_1 + 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) = number_literal) ;) (expression_statement "(*(code *)puVar3)(puVar6);" (call_expression "(*(code *)puVar3)(puVar6)" (parenthesized_expression "(*(code *)puVar3)" ( (pointer_expression "*(code *)puVar3" * (cast_expression "(code *)puVar3" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar6)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(uVar4);" (call_expression "(*(code *)PTR_safefree_001112f0)(uVar4)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid x11_send_init_error(X11Connection *xconn,char *err_message)\n\n{\n  undefined1 *puVar1;\n  uint uVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  undefined4 uVar7;\n  uint uVar8;\n  undefined1 uVar9;\n  undefined1 uVar10;\n  uint uVar11;\n  \n  uVar4 = (*(code *)PTR_dupprintf_001113a8)\n                    (PTR_DAT_001112f4 + -0x19b0,*(undefined4 *)PTR_appname_00111320,err_message);\n  iVar5 = (*(code *)PTR_strlen_00112534)(uVar4);\n  puVar6 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar5 + 0xd,1);\n  *puVar6 = 0;\n  puVar6[1] = (char)iVar5;\n  uVar8 = *(uint *)(xconn->firstpkt + 2);\n  uVar11 = iVar5 + 3U & 0xfffffffc;\n  puVar1 = puVar6 + 2;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8;\n  puVar1 = puVar6 + 5;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8;\n  uVar10 = (undefined1)((uVar11 << 0x16) >> 0x18);\n  uVar9 = (undefined1)((uVar11 << 0xe) >> 0x18);\n  if (xconn->firstpkt[0] == 'B') {\n    puVar6[6] = uVar9;\n    puVar6[7] = uVar10;\n  }\n  else {\n    puVar6[6] = uVar10;\n    puVar6[7] = uVar9;\n  }\n  uVar7 = (*(code *)PTR_memset_001120b4)(puVar6 + 8,0,uVar11);\n  (*(code *)PTR_memcpy_0011256c)(uVar7,uVar4,iVar5);\n  (*(code *)PTR_sshfwd_write_00111668)(xconn->c,puVar6,uVar11 + 8);\n  (*(code *)PTR_sshfwd_write_eof_00111670)(xconn->c);\n  puVar3 = PTR_safefree_001112f0;\n  xconn->no_data_sent_to_x_client = 0;\n  (*(code *)puVar3)(puVar6);\n  (*(code *)PTR_safefree_001112f0)(uVar4);\n  return;\n}\n\n" comment (function_definition "void x11_send_init_error(X11Connection *xconn,char *err_message)\n\n{\n  undefined1 *puVar1;\n  uint uVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  undefined4 uVar7;\n  uint uVar8;\n  undefined1 uVar9;\n  undefined1 uVar10;\n  uint uVar11;\n  \n  uVar4 = (*(code *)PTR_dupprintf_001113a8)\n                    (PTR_DAT_001112f4 + -0x19b0,*(undefined4 *)PTR_appname_00111320,err_message);\n  iVar5 = (*(code *)PTR_strlen_00112534)(uVar4);\n  puVar6 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar5 + 0xd,1);\n  *puVar6 = 0;\n  puVar6[1] = (char)iVar5;\n  uVar8 = *(uint *)(xconn->firstpkt + 2);\n  uVar11 = iVar5 + 3U & 0xfffffffc;\n  puVar1 = puVar6 + 2;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8;\n  puVar1 = puVar6 + 5;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8;\n  uVar10 = (undefined1)((uVar11 << 0x16) >> 0x18);\n  uVar9 = (undefined1)((uVar11 << 0xe) >> 0x18);\n  if (xconn->firstpkt[0] == 'B') {\n    puVar6[6] = uVar9;\n    puVar6[7] = uVar10;\n  }\n  else {\n    puVar6[6] = uVar10;\n    puVar6[7] = uVar9;\n  }\n  uVar7 = (*(code *)PTR_memset_001120b4)(puVar6 + 8,0,uVar11);\n  (*(code *)PTR_memcpy_0011256c)(uVar7,uVar4,iVar5);\n  (*(code *)PTR_sshfwd_write_00111668)(xconn->c,puVar6,uVar11 + 8);\n  (*(code *)PTR_sshfwd_write_eof_00111670)(xconn->c);\n  puVar3 = PTR_safefree_001112f0;\n  xconn->no_data_sent_to_x_client = 0;\n  (*(code *)puVar3)(puVar6);\n  (*(code *)PTR_safefree_001112f0)(uVar4);\n  return;\n}" primitive_type (function_declarator "x11_send_init_error(X11Connection *xconn,char *err_message)" identifier (parameter_list "(X11Connection *xconn,char *err_message)" ( (parameter_declaration "X11Connection *xconn" type_identifier (pointer_declarator "*xconn" * identifier)) , (parameter_declaration "char *err_message" primitive_type (pointer_declarator "*err_message" * identifier)) ))) (compound_statement "{\n  undefined1 *puVar1;\n  uint uVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  undefined4 uVar7;\n  uint uVar8;\n  undefined1 uVar9;\n  undefined1 uVar10;\n  uint uVar11;\n  \n  uVar4 = (*(code *)PTR_dupprintf_001113a8)\n                    (PTR_DAT_001112f4 + -0x19b0,*(undefined4 *)PTR_appname_00111320,err_message);\n  iVar5 = (*(code *)PTR_strlen_00112534)(uVar4);\n  puVar6 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar5 + 0xd,1);\n  *puVar6 = 0;\n  puVar6[1] = (char)iVar5;\n  uVar8 = *(uint *)(xconn->firstpkt + 2);\n  uVar11 = iVar5 + 3U & 0xfffffffc;\n  puVar1 = puVar6 + 2;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8;\n  puVar1 = puVar6 + 5;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8;\n  uVar10 = (undefined1)((uVar11 << 0x16) >> 0x18);\n  uVar9 = (undefined1)((uVar11 << 0xe) >> 0x18);\n  if (xconn->firstpkt[0] == 'B') {\n    puVar6[6] = uVar9;\n    puVar6[7] = uVar10;\n  }\n  else {\n    puVar6[6] = uVar10;\n    puVar6[7] = uVar9;\n  }\n  uVar7 = (*(code *)PTR_memset_001120b4)(puVar6 + 8,0,uVar11);\n  (*(code *)PTR_memcpy_0011256c)(uVar7,uVar4,iVar5);\n  (*(code *)PTR_sshfwd_write_00111668)(xconn->c,puVar6,uVar11 + 8);\n  (*(code *)PTR_sshfwd_write_eof_00111670)(xconn->c);\n  puVar3 = PTR_safefree_001112f0;\n  xconn->no_data_sent_to_x_client = 0;\n  (*(code *)puVar3)(puVar6);\n  (*(code *)PTR_safefree_001112f0)(uVar4);\n  return;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined1 uVar9;" type_identifier identifier ;) (declaration "undefined1 uVar10;" type_identifier identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (expression_statement "uVar4 = (*(code *)PTR_dupprintf_001113a8)\n                    (PTR_DAT_001112f4 + -0x19b0,*(undefined4 *)PTR_appname_00111320,err_message);" (assignment_expression "uVar4 = (*(code *)PTR_dupprintf_001113a8)\n                    (PTR_DAT_001112f4 + -0x19b0,*(undefined4 *)PTR_appname_00111320,err_message)" identifier = (call_expression "(*(code *)PTR_dupprintf_001113a8)\n                    (PTR_DAT_001112f4 + -0x19b0,*(undefined4 *)PTR_appname_00111320,err_message)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" ( (pointer_expression "*(code *)PTR_dupprintf_001113a8" * (cast_expression "(code *)PTR_dupprintf_001113a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x19b0,*(undefined4 *)PTR_appname_00111320,err_message)" ( (binary_expression "PTR_DAT_001112f4 + -0x19b0" identifier + number_literal) , (pointer_expression "*(undefined4 *)PTR_appname_00111320" * (cast_expression "(undefined4 *)PTR_appname_00111320" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier )))) ;) (expression_statement "iVar5 = (*(code *)PTR_strlen_00112534)(uVar4);" (assignment_expression "iVar5 = (*(code *)PTR_strlen_00112534)(uVar4)" identifier = (call_expression "(*(code *)PTR_strlen_00112534)(uVar4)" (parenthesized_expression "(*(code *)PTR_strlen_00112534)" ( (pointer_expression "*(code *)PTR_strlen_00112534" * (cast_expression "(code *)PTR_strlen_00112534" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "puVar6 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar5 + 0xd,1);" (assignment_expression "puVar6 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar5 + 0xd,1)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar5 + 0xd,1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_001112ec)(iVar5 + 0xd,1)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" ( (pointer_expression "*(code *)PTR_safemalloc_001112ec" * (cast_expression "(code *)PTR_safemalloc_001112ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5 + 0xd,1)" ( (binary_expression "iVar5 + 0xd" identifier + number_literal) , number_literal ))))) ;) (expression_statement "*puVar6 = 0;" (assignment_expression "*puVar6 = 0" (pointer_expression "*puVar6" * identifier) = number_literal) ;) (expression_statement "puVar6[1] = (char)iVar5;" (assignment_expression "puVar6[1] = (char)iVar5" (subscript_expression "puVar6[1]" identifier [ number_literal ]) = (cast_expression "(char)iVar5" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "uVar8 = *(uint *)(xconn->firstpkt + 2);" (assignment_expression "uVar8 = *(uint *)(xconn->firstpkt + 2)" identifier = (pointer_expression "*(uint *)(xconn->firstpkt + 2)" * (cast_expression "(uint *)(xconn->firstpkt + 2)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(xconn->firstpkt + 2)" ( (binary_expression "xconn->firstpkt + 2" (field_expression "xconn->firstpkt" identifier -> field_identifier) + number_literal) ))))) ;) (expression_statement "uVar11 = iVar5 + 3U & 0xfffffffc;" (assignment_expression "uVar11 = iVar5 + 3U & 0xfffffffc" identifier = (binary_expression "iVar5 + 3U & 0xfffffffc" (binary_expression "iVar5 + 3U" identifier + number_literal) & number_literal)) ;) (expression_statement "puVar1 = puVar6 + 2;" (assignment_expression "puVar1 = puVar6 + 2" identifier = (binary_expression "puVar6 + 2" identifier + number_literal)) ;) (expression_statement "uVar2 = (uint)puVar1 & 3;" (assignment_expression "uVar2 = (uint)puVar1 & 3" identifier = (binary_expression "(uint)puVar1 & 3" (cast_expression "(uint)puVar1" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal)) ;) (expression_statement "*(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8;" (assignment_expression "*(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8" (pointer_expression "*(uint *)(puVar1 + -uVar2)" * (cast_expression "(uint *)(puVar1 + -uVar2)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -uVar2)" ( (binary_expression "puVar1 + -uVar2" identifier + (unary_expression "-uVar2" - identifier)) )))) = (binary_expression "*(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8" (binary_expression "*(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8" (pointer_expression "*(uint *)(puVar1 + -uVar2)" * (cast_expression "(uint *)(puVar1 + -uVar2)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -uVar2)" ( (binary_expression "puVar1 + -uVar2" identifier + (unary_expression "-uVar2" - identifier)) )))) & (binary_expression "-1 << (4 - uVar2) * 8" number_literal << (binary_expression "(4 - uVar2) * 8" (parenthesized_expression "(4 - uVar2)" ( (binary_expression "4 - uVar2" number_literal - identifier) )) * number_literal))) | (binary_expression "uVar8 >> uVar2 * 8" identifier >> (binary_expression "uVar2 * 8" identifier * number_literal)))) ;) (expression_statement "puVar1 = puVar6 + 5;" (assignment_expression "puVar1 = puVar6 + 5" identifier = (binary_expression "puVar6 + 5" identifier + number_literal)) ;) (expression_statement "uVar2 = (uint)puVar1 & 3;" (assignment_expression "uVar2 = (uint)puVar1 & 3" identifier = (binary_expression "(uint)puVar1 & 3" (cast_expression "(uint)puVar1" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal)) ;) (expression_statement "*(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8;" (assignment_expression "*(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8" (pointer_expression "*(uint *)(puVar1 + -uVar2)" * (cast_expression "(uint *)(puVar1 + -uVar2)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -uVar2)" ( (binary_expression "puVar1 + -uVar2" identifier + (unary_expression "-uVar2" - identifier)) )))) = (binary_expression "*(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8" (binary_expression "*(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8" (pointer_expression "*(uint *)(puVar1 + -uVar2)" * (cast_expression "(uint *)(puVar1 + -uVar2)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -uVar2)" ( (binary_expression "puVar1 + -uVar2" identifier + (unary_expression "-uVar2" - identifier)) )))) & (binary_expression "0xffffffffU >> (uVar2 + 1) * 8" number_literal >> (binary_expression "(uVar2 + 1) * 8" (parenthesized_expression "(uVar2 + 1)" ( (binary_expression "uVar2 + 1" identifier + number_literal) )) * number_literal))) | (binary_expression "uVar8 << (3 - uVar2) * 8" identifier << (binary_expression "(3 - uVar2) * 8" (parenthesized_expression "(3 - uVar2)" ( (binary_expression "3 - uVar2" number_literal - identifier) )) * number_literal)))) ;) (expression_statement "uVar10 = (undefined1)((uVar11 << 0x16) >> 0x18);" (assignment_expression "uVar10 = (undefined1)((uVar11 << 0x16) >> 0x18)" identifier = (call_expression "(undefined1)((uVar11 << 0x16) >> 0x18)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uVar11 << 0x16) >> 0x18)" ( (binary_expression "(uVar11 << 0x16) >> 0x18" (parenthesized_expression "(uVar11 << 0x16)" ( (binary_expression "uVar11 << 0x16" identifier << number_literal) )) >> number_literal) )))) ;) (expression_statement "uVar9 = (undefined1)((uVar11 << 0xe) >> 0x18);" (assignment_expression "uVar9 = (undefined1)((uVar11 << 0xe) >> 0x18)" identifier = (call_expression "(undefined1)((uVar11 << 0xe) >> 0x18)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uVar11 << 0xe) >> 0x18)" ( (binary_expression "(uVar11 << 0xe) >> 0x18" (parenthesized_expression "(uVar11 << 0xe)" ( (binary_expression "uVar11 << 0xe" identifier << number_literal) )) >> number_literal) )))) ;) (if_statement "if (xconn->firstpkt[0] == 'B') {\n    puVar6[6] = uVar9;\n    puVar6[7] = uVar10;\n  }\n  else {\n    puVar6[6] = uVar10;\n    puVar6[7] = uVar9;\n  }" if (parenthesized_expression "(xconn->firstpkt[0] == 'B')" ( (binary_expression "xconn->firstpkt[0] == 'B'" (subscript_expression "xconn->firstpkt[0]" (field_expression "xconn->firstpkt" identifier -> field_identifier) [ number_literal ]) == (char_literal "'B'" ' character ')) )) (compound_statement "{\n    puVar6[6] = uVar9;\n    puVar6[7] = uVar10;\n  }" { (expression_statement "puVar6[6] = uVar9;" (assignment_expression "puVar6[6] = uVar9" (subscript_expression "puVar6[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar6[7] = uVar10;" (assignment_expression "puVar6[7] = uVar10" (subscript_expression "puVar6[7]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n    puVar6[6] = uVar10;\n    puVar6[7] = uVar9;\n  }" else (compound_statement "{\n    puVar6[6] = uVar10;\n    puVar6[7] = uVar9;\n  }" { (expression_statement "puVar6[6] = uVar10;" (assignment_expression "puVar6[6] = uVar10" (subscript_expression "puVar6[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar6[7] = uVar9;" (assignment_expression "puVar6[7] = uVar9" (subscript_expression "puVar6[7]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "uVar7 = (*(code *)PTR_memset_001120b4)(puVar6 + 8,0,uVar11);" (assignment_expression "uVar7 = (*(code *)PTR_memset_001120b4)(puVar6 + 8,0,uVar11)" identifier = (call_expression "(*(code *)PTR_memset_001120b4)(puVar6 + 8,0,uVar11)" (parenthesized_expression "(*(code *)PTR_memset_001120b4)" ( (pointer_expression "*(code *)PTR_memset_001120b4" * (cast_expression "(code *)PTR_memset_001120b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar6 + 8,0,uVar11)" ( (binary_expression "puVar6 + 8" identifier + number_literal) , number_literal , identifier )))) ;) (expression_statement "(*(code *)PTR_memcpy_0011256c)(uVar7,uVar4,iVar5);" (call_expression "(*(code *)PTR_memcpy_0011256c)(uVar7,uVar4,iVar5)" (parenthesized_expression "(*(code *)PTR_memcpy_0011256c)" ( (pointer_expression "*(code *)PTR_memcpy_0011256c" * (cast_expression "(code *)PTR_memcpy_0011256c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar7,uVar4,iVar5)" ( identifier , identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_sshfwd_write_00111668)(xconn->c,puVar6,uVar11 + 8);" (call_expression "(*(code *)PTR_sshfwd_write_00111668)(xconn->c,puVar6,uVar11 + 8)" (parenthesized_expression "(*(code *)PTR_sshfwd_write_00111668)" ( (pointer_expression "*(code *)PTR_sshfwd_write_00111668" * (cast_expression "(code *)PTR_sshfwd_write_00111668" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(xconn->c,puVar6,uVar11 + 8)" ( (field_expression "xconn->c" identifier -> field_identifier) , identifier , (binary_expression "uVar11 + 8" identifier + number_literal) ))) ;) (expression_statement "(*(code *)PTR_sshfwd_write_eof_00111670)(xconn->c);" (call_expression "(*(code *)PTR_sshfwd_write_eof_00111670)(xconn->c)" (parenthesized_expression "(*(code *)PTR_sshfwd_write_eof_00111670)" ( (pointer_expression "*(code *)PTR_sshfwd_write_eof_00111670" * (cast_expression "(code *)PTR_sshfwd_write_eof_00111670" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(xconn->c)" ( (field_expression "xconn->c" identifier -> field_identifier) ))) ;) (expression_statement "puVar3 = PTR_safefree_001112f0;" (assignment_expression "puVar3 = PTR_safefree_001112f0" identifier = identifier) ;) (expression_statement "xconn->no_data_sent_to_x_client = 0;" (assignment_expression "xconn->no_data_sent_to_x_client = 0" (field_expression "xconn->no_data_sent_to_x_client" identifier -> field_identifier) = number_literal) ;) (expression_statement "(*(code *)puVar3)(puVar6);" (call_expression "(*(code *)puVar3)(puVar6)" (parenthesized_expression "(*(code *)puVar3)" ( (pointer_expression "*(code *)puVar3" * (cast_expression "(code *)puVar3" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar6)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(uVar4);" (call_expression "(*(code *)PTR_safefree_001112f0)(uVar4)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000cb4a0(int param_1,undefined4 param_2)\n\n{\n  undefined1 *puVar1;\n  uint uVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  undefined4 uVar7;\n  uint uVar8;\n  undefined1 uVar9;\n  undefined1 uVar10;\n  uint uVar11;\n  \n  uVar4 = (*(code *)PTR_dupprintf_001113a8)\n                    (PTR_DAT_001112f4 + -0x19b0,*(undefined4 *)PTR_appname_00111320,param_2);\n  iVar5 = (*(code *)PTR_strlen_00112534)(uVar4);\n  puVar6 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar5 + 0xd,1);\n  *puVar6 = 0;\n  puVar6[1] = (char)iVar5;\n  uVar8 = *(uint *)(param_1 + 6);\n  uVar11 = iVar5 + 3U & 0xfffffffc;\n  puVar1 = puVar6 + 2;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8;\n  puVar1 = puVar6 + 5;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8;\n  uVar10 = (undefined1)((uVar11 << 0x16) >> 0x18);\n  uVar9 = (undefined1)((uVar11 << 0xe) >> 0x18);\n  if (*(char *)(param_1 + 4) == 'B') {\n    puVar6[6] = uVar9;\n    puVar6[7] = uVar10;\n  }\n  else {\n    puVar6[6] = uVar10;\n    puVar6[7] = uVar9;\n  }\n  uVar7 = (*(code *)PTR_memset_001120b4)(puVar6 + 8,0,uVar11);\n  (*(code *)PTR_memcpy_0011256c)(uVar7,uVar4,iVar5);\n  (*(code *)PTR_sshfwd_write_00111668)(*(undefined4 *)(param_1 + 0x4c),puVar6,uVar11 + 8);\n  (*(code *)PTR_sshfwd_write_eof_00111670)(*(undefined4 *)(param_1 + 0x4c));\n  puVar3 = PTR_safefree_001112f0;\n  *(undefined4 *)(param_1 + 0x40) = 0;\n  (*(code *)puVar3)(puVar6);\n  (*(code *)PTR_safefree_001112f0)(uVar4);\n  return;\n}\n\n" (function_definition "void FUN_000cb4a0(int param_1,undefined4 param_2)\n\n{\n  undefined1 *puVar1;\n  uint uVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  undefined4 uVar7;\n  uint uVar8;\n  undefined1 uVar9;\n  undefined1 uVar10;\n  uint uVar11;\n  \n  uVar4 = (*(code *)PTR_dupprintf_001113a8)\n                    (PTR_DAT_001112f4 + -0x19b0,*(undefined4 *)PTR_appname_00111320,param_2);\n  iVar5 = (*(code *)PTR_strlen_00112534)(uVar4);\n  puVar6 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar5 + 0xd,1);\n  *puVar6 = 0;\n  puVar6[1] = (char)iVar5;\n  uVar8 = *(uint *)(param_1 + 6);\n  uVar11 = iVar5 + 3U & 0xfffffffc;\n  puVar1 = puVar6 + 2;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8;\n  puVar1 = puVar6 + 5;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8;\n  uVar10 = (undefined1)((uVar11 << 0x16) >> 0x18);\n  uVar9 = (undefined1)((uVar11 << 0xe) >> 0x18);\n  if (*(char *)(param_1 + 4) == 'B') {\n    puVar6[6] = uVar9;\n    puVar6[7] = uVar10;\n  }\n  else {\n    puVar6[6] = uVar10;\n    puVar6[7] = uVar9;\n  }\n  uVar7 = (*(code *)PTR_memset_001120b4)(puVar6 + 8,0,uVar11);\n  (*(code *)PTR_memcpy_0011256c)(uVar7,uVar4,iVar5);\n  (*(code *)PTR_sshfwd_write_00111668)(*(undefined4 *)(param_1 + 0x4c),puVar6,uVar11 + 8);\n  (*(code *)PTR_sshfwd_write_eof_00111670)(*(undefined4 *)(param_1 + 0x4c));\n  puVar3 = PTR_safefree_001112f0;\n  *(undefined4 *)(param_1 + 0x40) = 0;\n  (*(code *)puVar3)(puVar6);\n  (*(code *)PTR_safefree_001112f0)(uVar4);\n  return;\n}" primitive_type (function_declarator "FUN_000cb4a0(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined1 *puVar1;\n  uint uVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  undefined4 uVar7;\n  uint uVar8;\n  undefined1 uVar9;\n  undefined1 uVar10;\n  uint uVar11;\n  \n  uVar4 = (*(code *)PTR_dupprintf_001113a8)\n                    (PTR_DAT_001112f4 + -0x19b0,*(undefined4 *)PTR_appname_00111320,param_2);\n  iVar5 = (*(code *)PTR_strlen_00112534)(uVar4);\n  puVar6 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar5 + 0xd,1);\n  *puVar6 = 0;\n  puVar6[1] = (char)iVar5;\n  uVar8 = *(uint *)(param_1 + 6);\n  uVar11 = iVar5 + 3U & 0xfffffffc;\n  puVar1 = puVar6 + 2;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8;\n  puVar1 = puVar6 + 5;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8;\n  uVar10 = (undefined1)((uVar11 << 0x16) >> 0x18);\n  uVar9 = (undefined1)((uVar11 << 0xe) >> 0x18);\n  if (*(char *)(param_1 + 4) == 'B') {\n    puVar6[6] = uVar9;\n    puVar6[7] = uVar10;\n  }\n  else {\n    puVar6[6] = uVar10;\n    puVar6[7] = uVar9;\n  }\n  uVar7 = (*(code *)PTR_memset_001120b4)(puVar6 + 8,0,uVar11);\n  (*(code *)PTR_memcpy_0011256c)(uVar7,uVar4,iVar5);\n  (*(code *)PTR_sshfwd_write_00111668)(*(undefined4 *)(param_1 + 0x4c),puVar6,uVar11 + 8);\n  (*(code *)PTR_sshfwd_write_eof_00111670)(*(undefined4 *)(param_1 + 0x4c));\n  puVar3 = PTR_safefree_001112f0;\n  *(undefined4 *)(param_1 + 0x40) = 0;\n  (*(code *)puVar3)(puVar6);\n  (*(code *)PTR_safefree_001112f0)(uVar4);\n  return;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined1 uVar9;" type_identifier identifier ;) (declaration "undefined1 uVar10;" type_identifier identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (expression_statement "uVar4 = (*(code *)PTR_dupprintf_001113a8)\n                    (PTR_DAT_001112f4 + -0x19b0,*(undefined4 *)PTR_appname_00111320,param_2);" (assignment_expression "uVar4 = (*(code *)PTR_dupprintf_001113a8)\n                    (PTR_DAT_001112f4 + -0x19b0,*(undefined4 *)PTR_appname_00111320,param_2)" identifier = (call_expression "(*(code *)PTR_dupprintf_001113a8)\n                    (PTR_DAT_001112f4 + -0x19b0,*(undefined4 *)PTR_appname_00111320,param_2)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" ( (pointer_expression "*(code *)PTR_dupprintf_001113a8" * (cast_expression "(code *)PTR_dupprintf_001113a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f4 + -0x19b0,*(undefined4 *)PTR_appname_00111320,param_2)" ( (binary_expression "PTR_DAT_001112f4 + -0x19b0" identifier + number_literal) , (pointer_expression "*(undefined4 *)PTR_appname_00111320" * (cast_expression "(undefined4 *)PTR_appname_00111320" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier )))) ;) (expression_statement "iVar5 = (*(code *)PTR_strlen_00112534)(uVar4);" (assignment_expression "iVar5 = (*(code *)PTR_strlen_00112534)(uVar4)" identifier = (call_expression "(*(code *)PTR_strlen_00112534)(uVar4)" (parenthesized_expression "(*(code *)PTR_strlen_00112534)" ( (pointer_expression "*(code *)PTR_strlen_00112534" * (cast_expression "(code *)PTR_strlen_00112534" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "puVar6 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar5 + 0xd,1);" (assignment_expression "puVar6 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar5 + 0xd,1)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar5 + 0xd,1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_001112ec)(iVar5 + 0xd,1)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" ( (pointer_expression "*(code *)PTR_safemalloc_001112ec" * (cast_expression "(code *)PTR_safemalloc_001112ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5 + 0xd,1)" ( (binary_expression "iVar5 + 0xd" identifier + number_literal) , number_literal ))))) ;) (expression_statement "*puVar6 = 0;" (assignment_expression "*puVar6 = 0" (pointer_expression "*puVar6" * identifier) = number_literal) ;) (expression_statement "puVar6[1] = (char)iVar5;" (assignment_expression "puVar6[1] = (char)iVar5" (subscript_expression "puVar6[1]" identifier [ number_literal ]) = (cast_expression "(char)iVar5" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "uVar8 = *(uint *)(param_1 + 6);" (assignment_expression "uVar8 = *(uint *)(param_1 + 6)" identifier = (pointer_expression "*(uint *)(param_1 + 6)" * (cast_expression "(uint *)(param_1 + 6)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) ))))) ;) (expression_statement "uVar11 = iVar5 + 3U & 0xfffffffc;" (assignment_expression "uVar11 = iVar5 + 3U & 0xfffffffc" identifier = (binary_expression "iVar5 + 3U & 0xfffffffc" (binary_expression "iVar5 + 3U" identifier + number_literal) & number_literal)) ;) (expression_statement "puVar1 = puVar6 + 2;" (assignment_expression "puVar1 = puVar6 + 2" identifier = (binary_expression "puVar6 + 2" identifier + number_literal)) ;) (expression_statement "uVar2 = (uint)puVar1 & 3;" (assignment_expression "uVar2 = (uint)puVar1 & 3" identifier = (binary_expression "(uint)puVar1 & 3" (cast_expression "(uint)puVar1" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal)) ;) (expression_statement "*(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8;" (assignment_expression "*(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8" (pointer_expression "*(uint *)(puVar1 + -uVar2)" * (cast_expression "(uint *)(puVar1 + -uVar2)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -uVar2)" ( (binary_expression "puVar1 + -uVar2" identifier + (unary_expression "-uVar2" - identifier)) )))) = (binary_expression "*(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8" (binary_expression "*(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8" (pointer_expression "*(uint *)(puVar1 + -uVar2)" * (cast_expression "(uint *)(puVar1 + -uVar2)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -uVar2)" ( (binary_expression "puVar1 + -uVar2" identifier + (unary_expression "-uVar2" - identifier)) )))) & (binary_expression "-1 << (4 - uVar2) * 8" number_literal << (binary_expression "(4 - uVar2) * 8" (parenthesized_expression "(4 - uVar2)" ( (binary_expression "4 - uVar2" number_literal - identifier) )) * number_literal))) | (binary_expression "uVar8 >> uVar2 * 8" identifier >> (binary_expression "uVar2 * 8" identifier * number_literal)))) ;) (expression_statement "puVar1 = puVar6 + 5;" (assignment_expression "puVar1 = puVar6 + 5" identifier = (binary_expression "puVar6 + 5" identifier + number_literal)) ;) (expression_statement "uVar2 = (uint)puVar1 & 3;" (assignment_expression "uVar2 = (uint)puVar1 & 3" identifier = (binary_expression "(uint)puVar1 & 3" (cast_expression "(uint)puVar1" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal)) ;) (expression_statement "*(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8;" (assignment_expression "*(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8" (pointer_expression "*(uint *)(puVar1 + -uVar2)" * (cast_expression "(uint *)(puVar1 + -uVar2)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -uVar2)" ( (binary_expression "puVar1 + -uVar2" identifier + (unary_expression "-uVar2" - identifier)) )))) = (binary_expression "*(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8" (binary_expression "*(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8" (pointer_expression "*(uint *)(puVar1 + -uVar2)" * (cast_expression "(uint *)(puVar1 + -uVar2)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -uVar2)" ( (binary_expression "puVar1 + -uVar2" identifier + (unary_expression "-uVar2" - identifier)) )))) & (binary_expression "0xffffffffU >> (uVar2 + 1) * 8" number_literal >> (binary_expression "(uVar2 + 1) * 8" (parenthesized_expression "(uVar2 + 1)" ( (binary_expression "uVar2 + 1" identifier + number_literal) )) * number_literal))) | (binary_expression "uVar8 << (3 - uVar2) * 8" identifier << (binary_expression "(3 - uVar2) * 8" (parenthesized_expression "(3 - uVar2)" ( (binary_expression "3 - uVar2" number_literal - identifier) )) * number_literal)))) ;) (expression_statement "uVar10 = (undefined1)((uVar11 << 0x16) >> 0x18);" (assignment_expression "uVar10 = (undefined1)((uVar11 << 0x16) >> 0x18)" identifier = (call_expression "(undefined1)((uVar11 << 0x16) >> 0x18)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uVar11 << 0x16) >> 0x18)" ( (binary_expression "(uVar11 << 0x16) >> 0x18" (parenthesized_expression "(uVar11 << 0x16)" ( (binary_expression "uVar11 << 0x16" identifier << number_literal) )) >> number_literal) )))) ;) (expression_statement "uVar9 = (undefined1)((uVar11 << 0xe) >> 0x18);" (assignment_expression "uVar9 = (undefined1)((uVar11 << 0xe) >> 0x18)" identifier = (call_expression "(undefined1)((uVar11 << 0xe) >> 0x18)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uVar11 << 0xe) >> 0x18)" ( (binary_expression "(uVar11 << 0xe) >> 0x18" (parenthesized_expression "(uVar11 << 0xe)" ( (binary_expression "uVar11 << 0xe" identifier << number_literal) )) >> number_literal) )))) ;) (if_statement "if (*(char *)(param_1 + 4) == 'B') {\n    puVar6[6] = uVar9;\n    puVar6[7] = uVar10;\n  }\n  else {\n    puVar6[6] = uVar10;\n    puVar6[7] = uVar9;\n  }" if (parenthesized_expression "(*(char *)(param_1 + 4) == 'B')" ( (binary_expression "*(char *)(param_1 + 4) == 'B'" (pointer_expression "*(char *)(param_1 + 4)" * (cast_expression "(char *)(param_1 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == (char_literal "'B'" ' character ')) )) (compound_statement "{\n    puVar6[6] = uVar9;\n    puVar6[7] = uVar10;\n  }" { (expression_statement "puVar6[6] = uVar9;" (assignment_expression "puVar6[6] = uVar9" (subscript_expression "puVar6[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar6[7] = uVar10;" (assignment_expression "puVar6[7] = uVar10" (subscript_expression "puVar6[7]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n    puVar6[6] = uVar10;\n    puVar6[7] = uVar9;\n  }" else (compound_statement "{\n    puVar6[6] = uVar10;\n    puVar6[7] = uVar9;\n  }" { (expression_statement "puVar6[6] = uVar10;" (assignment_expression "puVar6[6] = uVar10" (subscript_expression "puVar6[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar6[7] = uVar9;" (assignment_expression "puVar6[7] = uVar9" (subscript_expression "puVar6[7]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "uVar7 = (*(code *)PTR_memset_001120b4)(puVar6 + 8,0,uVar11);" (assignment_expression "uVar7 = (*(code *)PTR_memset_001120b4)(puVar6 + 8,0,uVar11)" identifier = (call_expression "(*(code *)PTR_memset_001120b4)(puVar6 + 8,0,uVar11)" (parenthesized_expression "(*(code *)PTR_memset_001120b4)" ( (pointer_expression "*(code *)PTR_memset_001120b4" * (cast_expression "(code *)PTR_memset_001120b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar6 + 8,0,uVar11)" ( (binary_expression "puVar6 + 8" identifier + number_literal) , number_literal , identifier )))) ;) (expression_statement "(*(code *)PTR_memcpy_0011256c)(uVar7,uVar4,iVar5);" (call_expression "(*(code *)PTR_memcpy_0011256c)(uVar7,uVar4,iVar5)" (parenthesized_expression "(*(code *)PTR_memcpy_0011256c)" ( (pointer_expression "*(code *)PTR_memcpy_0011256c" * (cast_expression "(code *)PTR_memcpy_0011256c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar7,uVar4,iVar5)" ( identifier , identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_sshfwd_write_00111668)(*(undefined4 *)(param_1 + 0x4c),puVar6,uVar11 + 8);" (call_expression "(*(code *)PTR_sshfwd_write_00111668)(*(undefined4 *)(param_1 + 0x4c),puVar6,uVar11 + 8)" (parenthesized_expression "(*(code *)PTR_sshfwd_write_00111668)" ( (pointer_expression "*(code *)PTR_sshfwd_write_00111668" * (cast_expression "(code *)PTR_sshfwd_write_00111668" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x4c),puVar6,uVar11 + 8)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" * (cast_expression "(undefined4 *)(param_1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) , identifier , (binary_expression "uVar11 + 8" identifier + number_literal) ))) ;) (expression_statement "(*(code *)PTR_sshfwd_write_eof_00111670)(*(undefined4 *)(param_1 + 0x4c));" (call_expression "(*(code *)PTR_sshfwd_write_eof_00111670)(*(undefined4 *)(param_1 + 0x4c))" (parenthesized_expression "(*(code *)PTR_sshfwd_write_eof_00111670)" ( (pointer_expression "*(code *)PTR_sshfwd_write_eof_00111670" * (cast_expression "(code *)PTR_sshfwd_write_eof_00111670" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x4c))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" * (cast_expression "(undefined4 *)(param_1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) ))) ;) (expression_statement "puVar3 = PTR_safefree_001112f0;" (assignment_expression "puVar3 = PTR_safefree_001112f0" identifier = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x40) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x40) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x40)" * (cast_expression "(undefined4 *)(param_1 + 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) = number_literal) ;) (expression_statement "(*(code *)puVar3)(puVar6);" (call_expression "(*(code *)puVar3)(puVar6)" (parenthesized_expression "(*(code *)puVar3)" ( (pointer_expression "*(code *)puVar3" * (cast_expression "(code *)puVar3" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar6)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(uVar4);" (call_expression "(*(code *)PTR_safefree_001112f0)(uVar4)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) & LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (unary_expression - IDENT)) )))) = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (unary_expression - IDENT)) )))) & (binary_expression LIT << (binary_expression (parenthesized_expression ( (binary_expression LIT - IDENT) )) * LIT))) | (binary_expression IDENT >> (binary_expression IDENT * LIT)))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (unary_expression - IDENT)) )))) = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (unary_expression - IDENT)) )))) & (binary_expression LIT >> (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * LIT))) | (binary_expression IDENT << (binary_expression (parenthesized_expression ( (binary_expression LIT - IDENT) )) * LIT)))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT << LIT) )) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT << LIT) )) >> LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = 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) , LIT , IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( 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_000cb4a0(int param_1,undefined4 param_2)\n\n{\n  undefined1 *puVar1;\n  uint uVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  undefined4 uVar7;\n  uint uVar8;\n  undefined1 uVar9;\n  undefined1 uVar10;\n  uint uVar11;\n  \n  uVar4 = (*(code *)PTR_dupprintf_001113a8)\n                    (PTR_DAT_001112f4 + -0x19b0,*(undefined4 *)PTR_appname_00111320,param_2);\n  iVar5 = (*(code *)PTR_strlen_00112534)(uVar4);\n  puVar6 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar5 + 0xd,1);\n  *puVar6 = 0;\n  puVar6[1] = (char)iVar5;\n  uVar8 = *(uint *)(param_1 + 6);\n  uVar11 = iVar5 + 3U & 0xfffffffc;\n  puVar1 = puVar6 + 2;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8;\n  puVar1 = puVar6 + 5;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8;\n  uVar10 = (undefined1)((uVar11 << 0x16) >> 0x18);\n  uVar9 = (undefined1)((uVar11 << 0xe) >> 0x18);\n  if (*(char *)(param_1 + 4) == 'B') {\n    puVar6[6] = uVar9;\n    puVar6[7] = uVar10;\n  }\n  else {\n    puVar6[6] = uVar10;\n    puVar6[7] = uVar9;\n  }\n  uVar7 = (*(code *)PTR_memset_001120b4)(puVar6 + 8,0,uVar11);\n  (*(code *)PTR_memcpy_0011256c)(uVar7,uVar4,iVar5);\n  (*(code *)PTR_sshfwd_write_00111668)(*(undefined4 *)(param_1 + 0x4c),puVar6,uVar11 + 8);\n  (*(code *)PTR_sshfwd_write_eof_00111670)(*(undefined4 *)(param_1 + 0x4c));\n  puVar3 = PTR_safefree_001112f0;\n  *(undefined4 *)(param_1 + 0x40) = 0;\n  (*(code *)puVar3)(puVar6);\n  (*(code *)PTR_safefree_001112f0)(uVar4);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000cb4a0(int param_1,undefined4 param_2)" (identifier "FUN_000cb4a0") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined1 *puVar1;\n  uint uVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  undefined4 uVar7;\n  uint uVar8;\n  undefined1 uVar9;\n  undefined1 uVar10;\n  uint uVar11;\n  \n  uVar4 = (*(code *)PTR_dupprintf_001113a8)\n                    (PTR_DAT_001112f4 + -0x19b0,*(undefined4 *)PTR_appname_00111320,param_2);\n  iVar5 = (*(code *)PTR_strlen_00112534)(uVar4);\n  puVar6 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar5 + 0xd,1);\n  *puVar6 = 0;\n  puVar6[1] = (char)iVar5;\n  uVar8 = *(uint *)(param_1 + 6);\n  uVar11 = iVar5 + 3U & 0xfffffffc;\n  puVar1 = puVar6 + 2;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8;\n  puVar1 = puVar6 + 5;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8;\n  uVar10 = (undefined1)((uVar11 << 0x16) >> 0x18);\n  uVar9 = (undefined1)((uVar11 << 0xe) >> 0x18);\n  if (*(char *)(param_1 + 4) == 'B') {\n    puVar6[6] = uVar9;\n    puVar6[7] = uVar10;\n  }\n  else {\n    puVar6[6] = uVar10;\n    puVar6[7] = uVar9;\n  }\n  uVar7 = (*(code *)PTR_memset_001120b4)(puVar6 + 8,0,uVar11);\n  (*(code *)PTR_memcpy_0011256c)(uVar7,uVar4,iVar5);\n  (*(code *)PTR_sshfwd_write_00111668)(*(undefined4 *)(param_1 + 0x4c),puVar6,uVar11 + 8);\n  (*(code *)PTR_sshfwd_write_eof_00111670)(*(undefined4 *)(param_1 + 0x4c));\n  puVar3 = PTR_safefree_001112f0;\n  *(undefined4 *)(param_1 + 0x40) = 0;\n  (*(code *)puVar3)(puVar6);\n  (*(code *)PTR_safefree_001112f0)(uVar4);\n  return;\n}" ({ "{") (declaration "undefined1 *puVar1;" (type_identifier "undefined1") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined1 *puVar6;" (type_identifier "undefined1") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "undefined1 uVar9;" (type_identifier "undefined1") (identifier "uVar9") (; ";")) (declaration "undefined1 uVar10;" (type_identifier "undefined1") (identifier "uVar10") (; ";")) (declaration "uint uVar11;" (type_identifier "uint") (identifier "uVar11") (; ";")) (expression_statement "uVar4 = (*(code *)PTR_dupprintf_001113a8)\n                    (PTR_DAT_001112f4 + -0x19b0,*(undefined4 *)PTR_appname_00111320,param_2);" (assignment_expression "uVar4 = (*(code *)PTR_dupprintf_001113a8)\n                    (PTR_DAT_001112f4 + -0x19b0,*(undefined4 *)PTR_appname_00111320,param_2)" (identifier "uVar4") (= "=") (call_expression "(*(code *)PTR_dupprintf_001113a8)\n                    (PTR_DAT_001112f4 + -0x19b0,*(undefined4 *)PTR_appname_00111320,param_2)" (parenthesized_expression "(*(code *)PTR_dupprintf_001113a8)" (( "(") (pointer_expression "*(code *)PTR_dupprintf_001113a8" (* "*") (cast_expression "(code *)PTR_dupprintf_001113a8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dupprintf_001113a8"))) () ")")) (argument_list "(PTR_DAT_001112f4 + -0x19b0,*(undefined4 *)PTR_appname_00111320,param_2)" (( "(") (binary_expression "PTR_DAT_001112f4 + -0x19b0" (identifier "PTR_DAT_001112f4") (+ "+") (number_literal "-0x19b0")) (, ",") (pointer_expression "*(undefined4 *)PTR_appname_00111320" (* "*") (cast_expression "(undefined4 *)PTR_appname_00111320" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_appname_00111320"))) (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "iVar5 = (*(code *)PTR_strlen_00112534)(uVar4);" (assignment_expression "iVar5 = (*(code *)PTR_strlen_00112534)(uVar4)" (identifier "iVar5") (= "=") (call_expression "(*(code *)PTR_strlen_00112534)(uVar4)" (parenthesized_expression "(*(code *)PTR_strlen_00112534)" (( "(") (pointer_expression "*(code *)PTR_strlen_00112534" (* "*") (cast_expression "(code *)PTR_strlen_00112534" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_00112534"))) () ")")) (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "puVar6 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar5 + 0xd,1);" (assignment_expression "puVar6 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar5 + 0xd,1)" (identifier "puVar6") (= "=") (cast_expression "(undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar5 + 0xd,1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_safemalloc_001112ec)(iVar5 + 0xd,1)" (parenthesized_expression "(*(code *)PTR_safemalloc_001112ec)" (( "(") (pointer_expression "*(code *)PTR_safemalloc_001112ec" (* "*") (cast_expression "(code *)PTR_safemalloc_001112ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safemalloc_001112ec"))) () ")")) (argument_list "(iVar5 + 0xd,1)" (( "(") (binary_expression "iVar5 + 0xd" (identifier "iVar5") (+ "+") (number_literal "0xd")) (, ",") (number_literal "1") () ")"))))) (; ";")) (expression_statement "*puVar6 = 0;" (assignment_expression "*puVar6 = 0" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar6[1] = (char)iVar5;" (assignment_expression "puVar6[1] = (char)iVar5" (subscript_expression "puVar6[1]" (identifier "puVar6") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(char)iVar5" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "iVar5"))) (; ";")) (expression_statement "uVar8 = *(uint *)(param_1 + 6);" (assignment_expression "uVar8 = *(uint *)(param_1 + 6)" (identifier "uVar8") (= "=") (pointer_expression "*(uint *)(param_1 + 6)" (* "*") (cast_expression "(uint *)(param_1 + 6)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 6)" (( "(") (binary_expression "param_1 + 6" (identifier "param_1") (+ "+") (number_literal "6")) () ")"))))) (; ";")) (expression_statement "uVar11 = iVar5 + 3U & 0xfffffffc;" (assignment_expression "uVar11 = iVar5 + 3U & 0xfffffffc" (identifier "uVar11") (= "=") (binary_expression "iVar5 + 3U & 0xfffffffc" (binary_expression "iVar5 + 3U" (identifier "iVar5") (+ "+") (number_literal "3U")) (& "&") (number_literal "0xfffffffc"))) (; ";")) (expression_statement "puVar1 = puVar6 + 2;" (assignment_expression "puVar1 = puVar6 + 2" (identifier "puVar1") (= "=") (binary_expression "puVar6 + 2" (identifier "puVar6") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "uVar2 = (uint)puVar1 & 3;" (assignment_expression "uVar2 = (uint)puVar1 & 3" (identifier "uVar2") (= "=") (binary_expression "(uint)puVar1 & 3" (cast_expression "(uint)puVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "puVar1")) (& "&") (number_literal "3"))) (; ";")) (expression_statement "*(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8;" (assignment_expression "*(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8" (pointer_expression "*(uint *)(puVar1 + -uVar2)" (* "*") (cast_expression "(uint *)(puVar1 + -uVar2)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + -uVar2)" (( "(") (binary_expression "puVar1 + -uVar2" (identifier "puVar1") (+ "+") (unary_expression "-uVar2" (- "-") (identifier "uVar2"))) () ")")))) (= "=") (binary_expression "*(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8" (binary_expression "*(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8" (pointer_expression "*(uint *)(puVar1 + -uVar2)" (* "*") (cast_expression "(uint *)(puVar1 + -uVar2)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + -uVar2)" (( "(") (binary_expression "puVar1 + -uVar2" (identifier "puVar1") (+ "+") (unary_expression "-uVar2" (- "-") (identifier "uVar2"))) () ")")))) (& "&") (binary_expression "-1 << (4 - uVar2) * 8" (number_literal "-1") (<< "<<") (binary_expression "(4 - uVar2) * 8" (parenthesized_expression "(4 - uVar2)" (( "(") (binary_expression "4 - uVar2" (number_literal "4") (- "-") (identifier "uVar2")) () ")")) (* "*") (number_literal "8")))) (| "|") (binary_expression "uVar8 >> uVar2 * 8" (identifier "uVar8") (>> ">>") (binary_expression "uVar2 * 8" (identifier "uVar2") (* "*") (number_literal "8"))))) (; ";")) (expression_statement "puVar1 = puVar6 + 5;" (assignment_expression "puVar1 = puVar6 + 5" (identifier "puVar1") (= "=") (binary_expression "puVar6 + 5" (identifier "puVar6") (+ "+") (number_literal "5"))) (; ";")) (expression_statement "uVar2 = (uint)puVar1 & 3;" (assignment_expression "uVar2 = (uint)puVar1 & 3" (identifier "uVar2") (= "=") (binary_expression "(uint)puVar1 & 3" (cast_expression "(uint)puVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "puVar1")) (& "&") (number_literal "3"))) (; ";")) (expression_statement "*(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8;" (assignment_expression "*(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8" (pointer_expression "*(uint *)(puVar1 + -uVar2)" (* "*") (cast_expression "(uint *)(puVar1 + -uVar2)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + -uVar2)" (( "(") (binary_expression "puVar1 + -uVar2" (identifier "puVar1") (+ "+") (unary_expression "-uVar2" (- "-") (identifier "uVar2"))) () ")")))) (= "=") (binary_expression "*(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8" (binary_expression "*(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8" (pointer_expression "*(uint *)(puVar1 + -uVar2)" (* "*") (cast_expression "(uint *)(puVar1 + -uVar2)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + -uVar2)" (( "(") (binary_expression "puVar1 + -uVar2" (identifier "puVar1") (+ "+") (unary_expression "-uVar2" (- "-") (identifier "uVar2"))) () ")")))) (& "&") (binary_expression "0xffffffffU >> (uVar2 + 1) * 8" (number_literal "0xffffffffU") (>> ">>") (binary_expression "(uVar2 + 1) * 8" (parenthesized_expression "(uVar2 + 1)" (( "(") (binary_expression "uVar2 + 1" (identifier "uVar2") (+ "+") (number_literal "1")) () ")")) (* "*") (number_literal "8")))) (| "|") (binary_expression "uVar8 << (3 - uVar2) * 8" (identifier "uVar8") (<< "<<") (binary_expression "(3 - uVar2) * 8" (parenthesized_expression "(3 - uVar2)" (( "(") (binary_expression "3 - uVar2" (number_literal "3") (- "-") (identifier "uVar2")) () ")")) (* "*") (number_literal "8"))))) (; ";")) (expression_statement "uVar10 = (undefined1)((uVar11 << 0x16) >> 0x18);" (assignment_expression "uVar10 = (undefined1)((uVar11 << 0x16) >> 0x18)" (identifier "uVar10") (= "=") (call_expression "(undefined1)((uVar11 << 0x16) >> 0x18)" (parenthesized_expression "(undefined1)" (( "(") (identifier "undefined1") () ")")) (argument_list "((uVar11 << 0x16) >> 0x18)" (( "(") (binary_expression "(uVar11 << 0x16) >> 0x18" (parenthesized_expression "(uVar11 << 0x16)" (( "(") (binary_expression "uVar11 << 0x16" (identifier "uVar11") (<< "<<") (number_literal "0x16")) () ")")) (>> ">>") (number_literal "0x18")) () ")")))) (; ";")) (expression_statement "uVar9 = (undefined1)((uVar11 << 0xe) >> 0x18);" (assignment_expression "uVar9 = (undefined1)((uVar11 << 0xe) >> 0x18)" (identifier "uVar9") (= "=") (call_expression "(undefined1)((uVar11 << 0xe) >> 0x18)" (parenthesized_expression "(undefined1)" (( "(") (identifier "undefined1") () ")")) (argument_list "((uVar11 << 0xe) >> 0x18)" (( "(") (binary_expression "(uVar11 << 0xe) >> 0x18" (parenthesized_expression "(uVar11 << 0xe)" (( "(") (binary_expression "uVar11 << 0xe" (identifier "uVar11") (<< "<<") (number_literal "0xe")) () ")")) (>> ">>") (number_literal "0x18")) () ")")))) (; ";")) (if_statement "if (*(char *)(param_1 + 4) == 'B') {\n    puVar6[6] = uVar9;\n    puVar6[7] = uVar10;\n  }\n  else {\n    puVar6[6] = uVar10;\n    puVar6[7] = uVar9;\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 4) == 'B')" (( "(") (binary_expression "*(char *)(param_1 + 4) == 'B'" (pointer_expression "*(char *)(param_1 + 4)" (* "*") (cast_expression "(char *)(param_1 + 4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (== "==") (char_literal "'B'" (' "'") (character "B") (' "'"))) () ")")) (compound_statement "{\n    puVar6[6] = uVar9;\n    puVar6[7] = uVar10;\n  }" ({ "{") (expression_statement "puVar6[6] = uVar9;" (assignment_expression "puVar6[6] = uVar9" (subscript_expression "puVar6[6]" (identifier "puVar6") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "uVar9")) (; ";")) (expression_statement "puVar6[7] = uVar10;" (assignment_expression "puVar6[7] = uVar10" (subscript_expression "puVar6[7]" (identifier "puVar6") ([ "[") (number_literal "7") (] "]")) (= "=") (identifier "uVar10")) (; ";")) (} "}")) (else_clause "else {\n    puVar6[6] = uVar10;\n    puVar6[7] = uVar9;\n  }" (else "else") (compound_statement "{\n    puVar6[6] = uVar10;\n    puVar6[7] = uVar9;\n  }" ({ "{") (expression_statement "puVar6[6] = uVar10;" (assignment_expression "puVar6[6] = uVar10" (subscript_expression "puVar6[6]" (identifier "puVar6") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "uVar10")) (; ";")) (expression_statement "puVar6[7] = uVar9;" (assignment_expression "puVar6[7] = uVar9" (subscript_expression "puVar6[7]" (identifier "puVar6") ([ "[") (number_literal "7") (] "]")) (= "=") (identifier "uVar9")) (; ";")) (} "}")))) (expression_statement "uVar7 = (*(code *)PTR_memset_001120b4)(puVar6 + 8,0,uVar11);" (assignment_expression "uVar7 = (*(code *)PTR_memset_001120b4)(puVar6 + 8,0,uVar11)" (identifier "uVar7") (= "=") (call_expression "(*(code *)PTR_memset_001120b4)(puVar6 + 8,0,uVar11)" (parenthesized_expression "(*(code *)PTR_memset_001120b4)" (( "(") (pointer_expression "*(code *)PTR_memset_001120b4" (* "*") (cast_expression "(code *)PTR_memset_001120b4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memset_001120b4"))) () ")")) (argument_list "(puVar6 + 8,0,uVar11)" (( "(") (binary_expression "puVar6 + 8" (identifier "puVar6") (+ "+") (number_literal "8")) (, ",") (number_literal "0") (, ",") (identifier "uVar11") () ")")))) (; ";")) (expression_statement "(*(code *)PTR_memcpy_0011256c)(uVar7,uVar4,iVar5);" (call_expression "(*(code *)PTR_memcpy_0011256c)(uVar7,uVar4,iVar5)" (parenthesized_expression "(*(code *)PTR_memcpy_0011256c)" (( "(") (pointer_expression "*(code *)PTR_memcpy_0011256c" (* "*") (cast_expression "(code *)PTR_memcpy_0011256c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_0011256c"))) () ")")) (argument_list "(uVar7,uVar4,iVar5)" (( "(") (identifier "uVar7") (, ",") (identifier "uVar4") (, ",") (identifier "iVar5") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_sshfwd_write_00111668)(*(undefined4 *)(param_1 + 0x4c),puVar6,uVar11 + 8);" (call_expression "(*(code *)PTR_sshfwd_write_00111668)(*(undefined4 *)(param_1 + 0x4c),puVar6,uVar11 + 8)" (parenthesized_expression "(*(code *)PTR_sshfwd_write_00111668)" (( "(") (pointer_expression "*(code *)PTR_sshfwd_write_00111668" (* "*") (cast_expression "(code *)PTR_sshfwd_write_00111668" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sshfwd_write_00111668"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0x4c),puVar6,uVar11 + 8)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x4c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")")))) (, ",") (identifier "puVar6") (, ",") (binary_expression "uVar11 + 8" (identifier "uVar11") (+ "+") (number_literal "8")) () ")"))) (; ";")) (expression_statement "(*(code *)PTR_sshfwd_write_eof_00111670)(*(undefined4 *)(param_1 + 0x4c));" (call_expression "(*(code *)PTR_sshfwd_write_eof_00111670)(*(undefined4 *)(param_1 + 0x4c))" (parenthesized_expression "(*(code *)PTR_sshfwd_write_eof_00111670)" (( "(") (pointer_expression "*(code *)PTR_sshfwd_write_eof_00111670" (* "*") (cast_expression "(code *)PTR_sshfwd_write_eof_00111670" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sshfwd_write_eof_00111670"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0x4c))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x4c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")")))) () ")"))) (; ";")) (expression_statement "puVar3 = PTR_safefree_001112f0;" (assignment_expression "puVar3 = PTR_safefree_001112f0" (identifier "puVar3") (= "=") (identifier "PTR_safefree_001112f0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x40) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x40) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x40)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x40)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "(*(code *)puVar3)(puVar6);" (call_expression "(*(code *)puVar3)(puVar6)" (parenthesized_expression "(*(code *)puVar3)" (( "(") (pointer_expression "*(code *)puVar3" (* "*") (cast_expression "(code *)puVar3" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) () ")")) (argument_list "(puVar6)" (( "(") (identifier "puVar6") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_001112f0)(uVar4);" (call_expression "(*(code *)PTR_safefree_001112f0)(uVar4)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" (( "(") (pointer_expression "*(code *)PTR_safefree_001112f0" (* "*") (cast_expression "(code *)PTR_safefree_001112f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_001112f0"))) () ")")) (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *xconn,char *err_message)

{
  type_2 *var_4;
  type_3 var_5;
  type_4 *puVar3;
  type_5 uVar4;
  int var_2;
  type_2 *var_3;
  type_5 uVar7;
  type_3 var_6;
  type_2 uVar9;
  type_2 uVar10;
  type_3 var_7;
  
  uVar4 = (*(type_6 *)PTR_dupprintf_001113a8)
                    (var_1 + -0x19b0,*(type_5 *)PTR_appname_00111320,err_message);
  var_2 = (*(type_6 *)PTR_strlen_00112534)(uVar4);
  var_3 = (type_2 *)(*(type_6 *)PTR_safemalloc_001112ec)(var_2 + 0xd,1);
  *var_3 = 0;
  var_3[1] = (char)var_2;
  var_6 = *(type_3 *)(xconn->firstpkt + 2);
  var_7 = var_2 + 3U & 0xfffffffc;
  var_4 = var_3 + 2;
  var_5 = (type_3)var_4 & 3;
  *(type_3 *)(var_4 + -var_5) =
       *(type_3 *)(var_4 + -var_5) & -1 << (4 - var_5) * 8 | var_6 >> var_5 * 8;
  var_4 = var_3 + 5;
  var_5 = (type_3)var_4 & 3;
  *(type_3 *)(var_4 + -var_5) =
       *(type_3 *)(var_4 + -var_5) & 0xffffffffU >> (var_5 + 1) * 8 | var_6 << (3 - var_5) * 8;
  uVar10 = (type_2)((var_7 << 0x16) >> 0x18);
  uVar9 = (type_2)((var_7 << 0xe) >> 0x18);
  if (xconn->firstpkt[0] == 'B') {
    var_3[6] = uVar9;
    var_3[7] = uVar10;
  }
  else {
    var_3[6] = uVar10;
    var_3[7] = uVar9;
  }
  uVar7 = (*(type_6 *)PTR_memset_001120b4)(var_3 + 8,0,var_7);
  (*(type_6 *)PTR_memcpy_0011256c)(uVar7,uVar4,var_2);
  (*(type_6 *)PTR_sshfwd_write_00111668)(xconn->c,var_3,var_7 + 8);
  (*(type_6 *)PTR_sshfwd_write_eof_00111670)(xconn->c);
  puVar3 = PTR_safefree_001112f0;
  xconn->no_data_sent_to_x_client = 0;
  (*(type_6 *)puVar3)(var_3);
  (*(type_6 *)PTR_safefree_001112f0)(uVar4);
  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)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) 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)) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) (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 (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))) (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: (unary_expression argument: (identifier)))))) right: (binary_expression left: (binary_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: (unary_expression argument: (identifier)))))) right: (binary_expression left: (number_literal) right: (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) right: (number_literal)))) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))) (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: (unary_expression argument: (identifier)))))) right: (binary_expression left: (binary_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: (unary_expression argument: (identifier)))))) right: (binary_expression left: (number_literal) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))) right: (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (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)) (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) (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 (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) (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 (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)))))))) (expression_statement (assignment_expression left: (identifier) right: (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))) (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)))) (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)

{
  undefined1 *puVar1;
  uint uVar2;
  undefined *puVar3;
  undefined4 uVar4;
  int iVar5;
  undefined1 *puVar6;
  undefined4 uVar7;
  uint uVar8;
  undefined1 uVar9;
  undefined1 uVar10;
  uint uVar11;
  
  uVar4 = (*(code *)PTR_dupprintf_001113a8)
                    (PTR_DAT_001112f4 + -0x19b0,*(undefined4 *)PTR_appname_00111320,param_2);
  iVar5 = (*(code *)PTR_strlen_00112534)(uVar4);
  puVar6 = (undefined1 *)(*(code *)PTR_safemalloc_001112ec)(iVar5 + 0xd,1);
  *puVar6 = 0;
  puVar6[1] = (char)iVar5;
  uVar8 = *(uint *)(param_1 + 6);
  uVar11 = iVar5 + 3U & 0xfffffffc;
  puVar1 = puVar6 + 2;
  uVar2 = (uint)puVar1 & 3;
  *(uint *)(puVar1 + -uVar2) =
       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8;
  puVar1 = puVar6 + 5;
  uVar2 = (uint)puVar1 & 3;
  *(uint *)(puVar1 + -uVar2) =
       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8;
  uVar10 = (undefined1)((uVar11 << 0x16) >> 0x18);
  uVar9 = (undefined1)((uVar11 << 0xe) >> 0x18);
  if (*(char *)(param_1 + 4) == 'B') {
    puVar6[6] = uVar9;
    puVar6[7] = uVar10;
  }
  else {
    puVar6[6] = uVar10;
    puVar6[7] = uVar9;
  }
  uVar7 = (*(code *)PTR_memset_001120b4)(puVar6 + 8,0,uVar11);
  (*(code *)PTR_memcpy_0011256c)(uVar7,uVar4,iVar5);
  (*(code *)PTR_sshfwd_write_00111668)(*(undefined4 *)(param_1 + 0x4c),puVar6,uVar11 + 8);
  (*(code *)PTR_sshfwd_write_eof_00111670)(*(undefined4 *)(param_1 + 0x4c));
  puVar3 = PTR_safefree_001112f0;
  *(undefined4 *)(param_1 + 0x40) = 0;
  (*(code *)puVar3)(puVar6);
  (*(code *)PTR_safefree_001112f0)(uVar4);
  return;
}

