
/* 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;
  undefined4 uVar3;
  int iVar4;
  undefined1 *puVar5;
  undefined1 uVar6;
  uint uVar8;
  uint uVar9;
  undefined1 uVar7;
  
  uVar3 = (*(code *)PTR_dupprintf_000b82dc)
                    (PTR_PC2_1357_27__000b8348 + 0x61a0,*(undefined4 *)PTR_appname_000b8ab4,
                     err_message);
  iVar4 = (*(code *)PTR_strlen_000b8c40)(uVar3);
  puVar5 = (undefined1 *)(*(code *)PTR_safemalloc_000b82f8)(iVar4 + 0xd,1);
  uVar9 = iVar4 + 3;
  *puVar5 = 0;
  puVar5[1] = (char)iVar4;
  uVar8 = *(uint *)(xconn->firstpkt + 2);
  puVar1 = puVar5 + 2;
  uVar2 = (uint)puVar1 & 3;
  *(uint *)(puVar1 + -uVar2) =
       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8;
  puVar1 = puVar5 + 5;
  uVar2 = (uint)puVar1 & 3;
  *(uint *)(puVar1 + -uVar2) =
       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8;
  uVar6 = (undefined1)((int)uVar9 >> 2);
  uVar7 = (undefined1)((int)uVar9 >> 10);
  if (xconn->firstpkt[0] == 'B') {
    puVar5[6] = uVar7;
    puVar5[7] = uVar6;
  }
  else {
    puVar5[6] = uVar6;
    puVar5[7] = uVar7;
  }
  (*(code *)PTR_memset_000b8c10)(puVar5 + 8,0,uVar9 & 0xfffffffc);
  (*(code *)PTR_memcpy_000b8cec)(puVar5 + 8,uVar3,iVar4);
  return;
}



void FUN_00091da8(int param_1,undefined4 param_2)

{
  undefined1 *puVar1;
  uint uVar2;
  undefined4 uVar3;
  int iVar4;
  undefined1 *puVar5;
  undefined1 uVar6;
  uint uVar8;
  uint uVar9;
  undefined1 uVar7;
  
  uVar3 = (*(code *)PTR_dupprintf_000b82dc)
                    (PTR_DAT_000b8348 + 0x61a0,*(undefined4 *)PTR_appname_000b8ab4,param_2);
  iVar4 = (*(code *)PTR_strlen_000b8c40)(uVar3);
  puVar5 = (undefined1 *)(*(code *)PTR_safemalloc_000b82f8)(iVar4 + 0xd,1);
  uVar9 = iVar4 + 3;
  *puVar5 = 0;
  puVar5[1] = (char)iVar4;
  uVar8 = *(uint *)(param_1 + 6);
  puVar1 = puVar5 + 2;
  uVar2 = (uint)puVar1 & 3;
  *(uint *)(puVar1 + -uVar2) =
       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8;
  puVar1 = puVar5 + 5;
  uVar2 = (uint)puVar1 & 3;
  *(uint *)(puVar1 + -uVar2) =
       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8;
  uVar6 = (undefined1)((int)uVar9 >> 2);
  uVar7 = (undefined1)((int)uVar9 >> 10);
  if (*(char *)(param_1 + 4) == 'B') {
    puVar5[6] = uVar7;
    puVar5[7] = uVar6;
  }
  else {
    puVar5[6] = uVar6;
    puVar5[7] = uVar7;
  }
  (*(code *)PTR_memset_000b8c10)(puVar5 + 8,0,uVar9 & 0xfffffffc);
  (*(code *)PTR_memcpy_000b8cec)(puVar5 + 8,uVar3,iVar4);
  (*(code *)PTR_sshfwd_write_000b8480)
            (*(undefined4 *)(param_1 + 0x4c),puVar5,(uVar9 & 0xfffffffc) + 8);
  (*(code *)PTR_sshfwd_write_eof_000b8488)(*(undefined4 *)(param_1 + 0x4c));
  *(undefined4 *)(param_1 + 0x40) = 0;
  (*(code *)PTR_safefree_000b82e8)(puVar5);
  (*(code *)PTR_safefree_000b82e8)(uVar3);
  return;
}


lui gp,0x3
addiu gp,gp,-0x1b18
addu gp,gp,t9
addiu sp,sp,-0x38
sw ra,0x34(sp)
sw s5,0x30(sp)
sw s4,0x2c(sp)
sw s3,0x28(sp)
sw s2,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
sw gp,0x10(sp)
or s2,a0,zero
or a2,a1,zero
lw v0,-0x77dc(gp)
lw a1,0x0(v0)
lw a0,-0x7f48(gp)
addiu a0,a0,0x61a0
lw t9,-0x7fb4(gp)
jalr t9
_nop
lw gp,0x10(sp)
or s4,v0,zero
or a0,v0,zero
lw t9,-0x7650(gp)
jalr t9
_nop
lw gp,0x10(sp)
or s3,v0,zero
li a1,0x1
addiu a0,v0,0xd
lw t9,-0x7f98(gp)
jalr t9
_nop
lw gp,0x10(sp)
or s0,v0,zero
addiu s1,s3,0x3
li v0,-0x4
and s1,s1,v0
sb zero,0x0(s0)
sb s3,0x1(s0)
addiu v0,s0,0x2
addiu a0,s2,0x6
lwl v1,0x0(a0)
lwr v1,0x3(a0)
swl v1,0x2(s0)
swr v1,0x3(v0)
lbu v1,0x4(s2)
li v0,0x42
beq v1,v0,0x00091f3c
_sra v0,s1,0x2
sb v0,0x6(s0)
sra v0,s1,0xa
sb v0,0x7(s0)
addiu s5,s0,0x8
or a2,s1,zero
or a1,zero,zero
or a0,s5,zero
lw t9,-0x7680(gp)
jalr t9
_nop
lw gp,0x10(sp)
or a2,s3,zero
or a1,s4,zero
or a0,s5,zero
lw t9,-0x75a4(gp)
jalr t9
_nop
lw gp,0x10(sp)
addiu a2,s1,0x8
or a1,s0,zero
lw a0,0x4c(s2)
lw t9,-0x7e10(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw a0,0x4c(s2)
lw t9,-0x7e08(gp)
jalr t9
_nop
lw gp,0x10(sp)
sw zero,0x40(s2)
or a0,s0,zero
lw t9,-0x7fa8(gp)
jalr t9
_nop
lw gp,0x10(sp)
or a0,s4,zero
lw t9,-0x7fa8(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw ra,0x34(sp)
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x38
sra v0,s1,0xa
sb v0,0x6(s0)
sra v0,s1,0x2
b 0x00091e80
_sb v0,0x7(s0)
(translation_unit "void FUN_00091da8(int param_1,undefined4 param_2)\n\n{\n  undefined1 *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined1 *puVar5;\n  undefined1 uVar6;\n  uint uVar8;\n  uint uVar9;\n  undefined1 uVar7;\n  \n  uVar3 = (*(code *)PTR_dupprintf_000b82dc)\n                    (PTR_DAT_000b8348 + 0x61a0,*(undefined4 *)PTR_appname_000b8ab4,param_2);\n  iVar4 = (*(code *)PTR_strlen_000b8c40)(uVar3);\n  puVar5 = (undefined1 *)(*(code *)PTR_safemalloc_000b82f8)(iVar4 + 0xd,1);\n  uVar9 = iVar4 + 3;\n  *puVar5 = 0;\n  puVar5[1] = (char)iVar4;\n  uVar8 = *(uint *)(param_1 + 6);\n  puVar1 = puVar5 + 2;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8;\n  puVar1 = puVar5 + 5;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8;\n  uVar6 = (undefined1)((int)uVar9 >> 2);\n  uVar7 = (undefined1)((int)uVar9 >> 10);\n  if (*(char *)(param_1 + 4) == 'B') {\n    puVar5[6] = uVar7;\n    puVar5[7] = uVar6;\n  }\n  else {\n    puVar5[6] = uVar6;\n    puVar5[7] = uVar7;\n  }\n  (*(code *)PTR_memset_000b8c10)(puVar5 + 8,0,uVar9 & 0xfffffffc);\n  (*(code *)PTR_memcpy_000b8cec)(puVar5 + 8,uVar3,iVar4);\n  (*(code *)PTR_sshfwd_write_000b8480)\n            (*(undefined4 *)(param_1 + 0x4c),puVar5,(uVar9 & 0xfffffffc) + 8);\n  (*(code *)PTR_sshfwd_write_eof_000b8488)(*(undefined4 *)(param_1 + 0x4c));\n  *(undefined4 *)(param_1 + 0x40) = 0;\n  (*(code *)PTR_safefree_000b82e8)(puVar5);\n  (*(code *)PTR_safefree_000b82e8)(uVar3);\n  return;\n}\n\n" (function_definition "void FUN_00091da8(int param_1,undefined4 param_2)\n\n{\n  undefined1 *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined1 *puVar5;\n  undefined1 uVar6;\n  uint uVar8;\n  uint uVar9;\n  undefined1 uVar7;\n  \n  uVar3 = (*(code *)PTR_dupprintf_000b82dc)\n                    (PTR_DAT_000b8348 + 0x61a0,*(undefined4 *)PTR_appname_000b8ab4,param_2);\n  iVar4 = (*(code *)PTR_strlen_000b8c40)(uVar3);\n  puVar5 = (undefined1 *)(*(code *)PTR_safemalloc_000b82f8)(iVar4 + 0xd,1);\n  uVar9 = iVar4 + 3;\n  *puVar5 = 0;\n  puVar5[1] = (char)iVar4;\n  uVar8 = *(uint *)(param_1 + 6);\n  puVar1 = puVar5 + 2;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8;\n  puVar1 = puVar5 + 5;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8;\n  uVar6 = (undefined1)((int)uVar9 >> 2);\n  uVar7 = (undefined1)((int)uVar9 >> 10);\n  if (*(char *)(param_1 + 4) == 'B') {\n    puVar5[6] = uVar7;\n    puVar5[7] = uVar6;\n  }\n  else {\n    puVar5[6] = uVar6;\n    puVar5[7] = uVar7;\n  }\n  (*(code *)PTR_memset_000b8c10)(puVar5 + 8,0,uVar9 & 0xfffffffc);\n  (*(code *)PTR_memcpy_000b8cec)(puVar5 + 8,uVar3,iVar4);\n  (*(code *)PTR_sshfwd_write_000b8480)\n            (*(undefined4 *)(param_1 + 0x4c),puVar5,(uVar9 & 0xfffffffc) + 8);\n  (*(code *)PTR_sshfwd_write_eof_000b8488)(*(undefined4 *)(param_1 + 0x4c));\n  *(undefined4 *)(param_1 + 0x40) = 0;\n  (*(code *)PTR_safefree_000b82e8)(puVar5);\n  (*(code *)PTR_safefree_000b82e8)(uVar3);\n  return;\n}" primitive_type (function_declarator "FUN_00091da8(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  undefined4 uVar3;\n  int iVar4;\n  undefined1 *puVar5;\n  undefined1 uVar6;\n  uint uVar8;\n  uint uVar9;\n  undefined1 uVar7;\n  \n  uVar3 = (*(code *)PTR_dupprintf_000b82dc)\n                    (PTR_DAT_000b8348 + 0x61a0,*(undefined4 *)PTR_appname_000b8ab4,param_2);\n  iVar4 = (*(code *)PTR_strlen_000b8c40)(uVar3);\n  puVar5 = (undefined1 *)(*(code *)PTR_safemalloc_000b82f8)(iVar4 + 0xd,1);\n  uVar9 = iVar4 + 3;\n  *puVar5 = 0;\n  puVar5[1] = (char)iVar4;\n  uVar8 = *(uint *)(param_1 + 6);\n  puVar1 = puVar5 + 2;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8;\n  puVar1 = puVar5 + 5;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8;\n  uVar6 = (undefined1)((int)uVar9 >> 2);\n  uVar7 = (undefined1)((int)uVar9 >> 10);\n  if (*(char *)(param_1 + 4) == 'B') {\n    puVar5[6] = uVar7;\n    puVar5[7] = uVar6;\n  }\n  else {\n    puVar5[6] = uVar6;\n    puVar5[7] = uVar7;\n  }\n  (*(code *)PTR_memset_000b8c10)(puVar5 + 8,0,uVar9 & 0xfffffffc);\n  (*(code *)PTR_memcpy_000b8cec)(puVar5 + 8,uVar3,iVar4);\n  (*(code *)PTR_sshfwd_write_000b8480)\n            (*(undefined4 *)(param_1 + 0x4c),puVar5,(uVar9 & 0xfffffffc) + 8);\n  (*(code *)PTR_sshfwd_write_eof_000b8488)(*(undefined4 *)(param_1 + 0x4c));\n  *(undefined4 *)(param_1 + 0x40) = 0;\n  (*(code *)PTR_safefree_000b82e8)(puVar5);\n  (*(code *)PTR_safefree_000b82e8)(uVar3);\n  return;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined1 uVar6;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "undefined1 uVar7;" type_identifier identifier ;) (expression_statement "uVar3 = (*(code *)PTR_dupprintf_000b82dc)\n                    (PTR_DAT_000b8348 + 0x61a0,*(undefined4 *)PTR_appname_000b8ab4,param_2);" (assignment_expression "uVar3 = (*(code *)PTR_dupprintf_000b82dc)\n                    (PTR_DAT_000b8348 + 0x61a0,*(undefined4 *)PTR_appname_000b8ab4,param_2)" identifier = (call_expression "(*(code *)PTR_dupprintf_000b82dc)\n                    (PTR_DAT_000b8348 + 0x61a0,*(undefined4 *)PTR_appname_000b8ab4,param_2)" (parenthesized_expression "(*(code *)PTR_dupprintf_000b82dc)" ( (pointer_expression "*(code *)PTR_dupprintf_000b82dc" * (cast_expression "(code *)PTR_dupprintf_000b82dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000b8348 + 0x61a0,*(undefined4 *)PTR_appname_000b8ab4,param_2)" ( (binary_expression "PTR_DAT_000b8348 + 0x61a0" identifier + number_literal) , (pointer_expression "*(undefined4 *)PTR_appname_000b8ab4" * (cast_expression "(undefined4 *)PTR_appname_000b8ab4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier )))) ;) (expression_statement "iVar4 = (*(code *)PTR_strlen_000b8c40)(uVar3);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_000b8c40)(uVar3)" identifier = (call_expression "(*(code *)PTR_strlen_000b8c40)(uVar3)" (parenthesized_expression "(*(code *)PTR_strlen_000b8c40)" ( (pointer_expression "*(code *)PTR_strlen_000b8c40" * (cast_expression "(code *)PTR_strlen_000b8c40" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3)" ( identifier )))) ;) (expression_statement "puVar5 = (undefined1 *)(*(code *)PTR_safemalloc_000b82f8)(iVar4 + 0xd,1);" (assignment_expression "puVar5 = (undefined1 *)(*(code *)PTR_safemalloc_000b82f8)(iVar4 + 0xd,1)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_safemalloc_000b82f8)(iVar4 + 0xd,1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_000b82f8)(iVar4 + 0xd,1)" (parenthesized_expression "(*(code *)PTR_safemalloc_000b82f8)" ( (pointer_expression "*(code *)PTR_safemalloc_000b82f8" * (cast_expression "(code *)PTR_safemalloc_000b82f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4 + 0xd,1)" ( (binary_expression "iVar4 + 0xd" identifier + number_literal) , number_literal ))))) ;) (expression_statement "uVar9 = iVar4 + 3;" (assignment_expression "uVar9 = iVar4 + 3" identifier = (binary_expression "iVar4 + 3" identifier + number_literal)) ;) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "puVar5[1] = (char)iVar4;" (assignment_expression "puVar5[1] = (char)iVar4" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = (cast_expression "(char)iVar4" ( (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 "puVar1 = puVar5 + 2;" (assignment_expression "puVar1 = puVar5 + 2" identifier = (binary_expression "puVar5 + 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 = puVar5 + 5;" (assignment_expression "puVar1 = puVar5 + 5" identifier = (binary_expression "puVar5 + 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 "uVar6 = (undefined1)((int)uVar9 >> 2);" (assignment_expression "uVar6 = (undefined1)((int)uVar9 >> 2)" identifier = (call_expression "(undefined1)((int)uVar9 >> 2)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((int)uVar9 >> 2)" ( (binary_expression "(int)uVar9 >> 2" (cast_expression "(int)uVar9" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar7 = (undefined1)((int)uVar9 >> 10);" (assignment_expression "uVar7 = (undefined1)((int)uVar9 >> 10)" identifier = (call_expression "(undefined1)((int)uVar9 >> 10)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((int)uVar9 >> 10)" ( (binary_expression "(int)uVar9 >> 10" (cast_expression "(int)uVar9" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )))) ;) (if_statement "if (*(char *)(param_1 + 4) == 'B') {\n    puVar5[6] = uVar7;\n    puVar5[7] = uVar6;\n  }\n  else {\n    puVar5[6] = uVar6;\n    puVar5[7] = uVar7;\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    puVar5[6] = uVar7;\n    puVar5[7] = uVar6;\n  }" { (expression_statement "puVar5[6] = uVar7;" (assignment_expression "puVar5[6] = uVar7" (subscript_expression "puVar5[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar5[7] = uVar6;" (assignment_expression "puVar5[7] = uVar6" (subscript_expression "puVar5[7]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n    puVar5[6] = uVar6;\n    puVar5[7] = uVar7;\n  }" else (compound_statement "{\n    puVar5[6] = uVar6;\n    puVar5[7] = uVar7;\n  }" { (expression_statement "puVar5[6] = uVar6;" (assignment_expression "puVar5[6] = uVar6" (subscript_expression "puVar5[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar5[7] = uVar7;" (assignment_expression "puVar5[7] = uVar7" (subscript_expression "puVar5[7]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "(*(code *)PTR_memset_000b8c10)(puVar5 + 8,0,uVar9 & 0xfffffffc);" (call_expression "(*(code *)PTR_memset_000b8c10)(puVar5 + 8,0,uVar9 & 0xfffffffc)" (parenthesized_expression "(*(code *)PTR_memset_000b8c10)" ( (pointer_expression "*(code *)PTR_memset_000b8c10" * (cast_expression "(code *)PTR_memset_000b8c10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar5 + 8,0,uVar9 & 0xfffffffc)" ( (binary_expression "puVar5 + 8" identifier + number_literal) , number_literal , (binary_expression "uVar9 & 0xfffffffc" identifier & number_literal) ))) ;) (expression_statement "(*(code *)PTR_memcpy_000b8cec)(puVar5 + 8,uVar3,iVar4);" (call_expression "(*(code *)PTR_memcpy_000b8cec)(puVar5 + 8,uVar3,iVar4)" (parenthesized_expression "(*(code *)PTR_memcpy_000b8cec)" ( (pointer_expression "*(code *)PTR_memcpy_000b8cec" * (cast_expression "(code *)PTR_memcpy_000b8cec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar5 + 8,uVar3,iVar4)" ( (binary_expression "puVar5 + 8" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_sshfwd_write_000b8480)\n            (*(undefined4 *)(param_1 + 0x4c),puVar5,(uVar9 & 0xfffffffc) + 8);" (call_expression "(*(code *)PTR_sshfwd_write_000b8480)\n            (*(undefined4 *)(param_1 + 0x4c),puVar5,(uVar9 & 0xfffffffc) + 8)" (parenthesized_expression "(*(code *)PTR_sshfwd_write_000b8480)" ( (pointer_expression "*(code *)PTR_sshfwd_write_000b8480" * (cast_expression "(code *)PTR_sshfwd_write_000b8480" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x4c),puVar5,(uVar9 & 0xfffffffc) + 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 "(uVar9 & 0xfffffffc) + 8" (parenthesized_expression "(uVar9 & 0xfffffffc)" ( (binary_expression "uVar9 & 0xfffffffc" identifier & number_literal) )) + number_literal) ))) ;) (expression_statement "(*(code *)PTR_sshfwd_write_eof_000b8488)(*(undefined4 *)(param_1 + 0x4c));" (call_expression "(*(code *)PTR_sshfwd_write_eof_000b8488)(*(undefined4 *)(param_1 + 0x4c))" (parenthesized_expression "(*(code *)PTR_sshfwd_write_eof_000b8488)" ( (pointer_expression "*(code *)PTR_sshfwd_write_eof_000b8488" * (cast_expression "(code *)PTR_sshfwd_write_eof_000b8488" ( (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 "*(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 *)PTR_safefree_000b82e8)(puVar5);" (call_expression "(*(code *)PTR_safefree_000b82e8)(puVar5)" (parenthesized_expression "(*(code *)PTR_safefree_000b82e8)" ( (pointer_expression "*(code *)PTR_safefree_000b82e8" * (cast_expression "(code *)PTR_safefree_000b82e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar5)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000b82e8)(uVar3);" (call_expression "(*(code *)PTR_safefree_000b82e8)(uVar3)" (parenthesized_expression "(*(code *)PTR_safefree_000b82e8)" ( (pointer_expression "*(code *)PTR_safefree_000b82e8" * (cast_expression "(code *)PTR_safefree_000b82e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3)" ( 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  undefined4 uVar3;\n  int iVar4;\n  undefined1 *puVar5;\n  undefined1 uVar6;\n  uint uVar8;\n  uint uVar9;\n  undefined1 uVar7;\n  \n  uVar3 = (*(code *)PTR_dupprintf_000b82dc)\n                    (PTR_PC2_1357_27__000b8348 + 0x61a0,*(undefined4 *)PTR_appname_000b8ab4,\n                     err_message);\n  iVar4 = (*(code *)PTR_strlen_000b8c40)(uVar3);\n  puVar5 = (undefined1 *)(*(code *)PTR_safemalloc_000b82f8)(iVar4 + 0xd,1);\n  uVar9 = iVar4 + 3;\n  *puVar5 = 0;\n  puVar5[1] = (char)iVar4;\n  uVar8 = *(uint *)(xconn->firstpkt + 2);\n  puVar1 = puVar5 + 2;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8;\n  puVar1 = puVar5 + 5;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8;\n  uVar6 = (undefined1)((int)uVar9 >> 2);\n  uVar7 = (undefined1)((int)uVar9 >> 10);\n  if (xconn->firstpkt[0] == 'B') {\n    puVar5[6] = uVar7;\n    puVar5[7] = uVar6;\n  }\n  else {\n    puVar5[6] = uVar6;\n    puVar5[7] = uVar7;\n  }\n  (*(code *)PTR_memset_000b8c10)(puVar5 + 8,0,uVar9 & 0xfffffffc);\n  (*(code *)PTR_memcpy_000b8cec)(puVar5 + 8,uVar3,iVar4);\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  undefined4 uVar3;\n  int iVar4;\n  undefined1 *puVar5;\n  undefined1 uVar6;\n  uint uVar8;\n  uint uVar9;\n  undefined1 uVar7;\n  \n  uVar3 = (*(code *)PTR_dupprintf_000b82dc)\n                    (PTR_PC2_1357_27__000b8348 + 0x61a0,*(undefined4 *)PTR_appname_000b8ab4,\n                     err_message);\n  iVar4 = (*(code *)PTR_strlen_000b8c40)(uVar3);\n  puVar5 = (undefined1 *)(*(code *)PTR_safemalloc_000b82f8)(iVar4 + 0xd,1);\n  uVar9 = iVar4 + 3;\n  *puVar5 = 0;\n  puVar5[1] = (char)iVar4;\n  uVar8 = *(uint *)(xconn->firstpkt + 2);\n  puVar1 = puVar5 + 2;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8;\n  puVar1 = puVar5 + 5;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8;\n  uVar6 = (undefined1)((int)uVar9 >> 2);\n  uVar7 = (undefined1)((int)uVar9 >> 10);\n  if (xconn->firstpkt[0] == 'B') {\n    puVar5[6] = uVar7;\n    puVar5[7] = uVar6;\n  }\n  else {\n    puVar5[6] = uVar6;\n    puVar5[7] = uVar7;\n  }\n  (*(code *)PTR_memset_000b8c10)(puVar5 + 8,0,uVar9 & 0xfffffffc);\n  (*(code *)PTR_memcpy_000b8cec)(puVar5 + 8,uVar3,iVar4);\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  undefined4 uVar3;\n  int iVar4;\n  undefined1 *puVar5;\n  undefined1 uVar6;\n  uint uVar8;\n  uint uVar9;\n  undefined1 uVar7;\n  \n  uVar3 = (*(code *)PTR_dupprintf_000b82dc)\n                    (PTR_PC2_1357_27__000b8348 + 0x61a0,*(undefined4 *)PTR_appname_000b8ab4,\n                     err_message);\n  iVar4 = (*(code *)PTR_strlen_000b8c40)(uVar3);\n  puVar5 = (undefined1 *)(*(code *)PTR_safemalloc_000b82f8)(iVar4 + 0xd,1);\n  uVar9 = iVar4 + 3;\n  *puVar5 = 0;\n  puVar5[1] = (char)iVar4;\n  uVar8 = *(uint *)(xconn->firstpkt + 2);\n  puVar1 = puVar5 + 2;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8;\n  puVar1 = puVar5 + 5;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8;\n  uVar6 = (undefined1)((int)uVar9 >> 2);\n  uVar7 = (undefined1)((int)uVar9 >> 10);\n  if (xconn->firstpkt[0] == 'B') {\n    puVar5[6] = uVar7;\n    puVar5[7] = uVar6;\n  }\n  else {\n    puVar5[6] = uVar6;\n    puVar5[7] = uVar7;\n  }\n  (*(code *)PTR_memset_000b8c10)(puVar5 + 8,0,uVar9 & 0xfffffffc);\n  (*(code *)PTR_memcpy_000b8cec)(puVar5 + 8,uVar3,iVar4);\n  return;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined1 uVar6;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "undefined1 uVar7;" type_identifier identifier ;) (expression_statement "uVar3 = (*(code *)PTR_dupprintf_000b82dc)\n                    (PTR_PC2_1357_27__000b8348 + 0x61a0,*(undefined4 *)PTR_appname_000b8ab4,\n                     err_message);" (assignment_expression "uVar3 = (*(code *)PTR_dupprintf_000b82dc)\n                    (PTR_PC2_1357_27__000b8348 + 0x61a0,*(undefined4 *)PTR_appname_000b8ab4,\n                     err_message)" identifier = (call_expression "(*(code *)PTR_dupprintf_000b82dc)\n                    (PTR_PC2_1357_27__000b8348 + 0x61a0,*(undefined4 *)PTR_appname_000b8ab4,\n                     err_message)" (parenthesized_expression "(*(code *)PTR_dupprintf_000b82dc)" ( (pointer_expression "*(code *)PTR_dupprintf_000b82dc" * (cast_expression "(code *)PTR_dupprintf_000b82dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_PC2_1357_27__000b8348 + 0x61a0,*(undefined4 *)PTR_appname_000b8ab4,\n                     err_message)" ( (binary_expression "PTR_PC2_1357_27__000b8348 + 0x61a0" identifier + number_literal) , (pointer_expression "*(undefined4 *)PTR_appname_000b8ab4" * (cast_expression "(undefined4 *)PTR_appname_000b8ab4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier )))) ;) (expression_statement "iVar4 = (*(code *)PTR_strlen_000b8c40)(uVar3);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_000b8c40)(uVar3)" identifier = (call_expression "(*(code *)PTR_strlen_000b8c40)(uVar3)" (parenthesized_expression "(*(code *)PTR_strlen_000b8c40)" ( (pointer_expression "*(code *)PTR_strlen_000b8c40" * (cast_expression "(code *)PTR_strlen_000b8c40" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3)" ( identifier )))) ;) (expression_statement "puVar5 = (undefined1 *)(*(code *)PTR_safemalloc_000b82f8)(iVar4 + 0xd,1);" (assignment_expression "puVar5 = (undefined1 *)(*(code *)PTR_safemalloc_000b82f8)(iVar4 + 0xd,1)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_safemalloc_000b82f8)(iVar4 + 0xd,1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_000b82f8)(iVar4 + 0xd,1)" (parenthesized_expression "(*(code *)PTR_safemalloc_000b82f8)" ( (pointer_expression "*(code *)PTR_safemalloc_000b82f8" * (cast_expression "(code *)PTR_safemalloc_000b82f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4 + 0xd,1)" ( (binary_expression "iVar4 + 0xd" identifier + number_literal) , number_literal ))))) ;) (expression_statement "uVar9 = iVar4 + 3;" (assignment_expression "uVar9 = iVar4 + 3" identifier = (binary_expression "iVar4 + 3" identifier + number_literal)) ;) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "puVar5[1] = (char)iVar4;" (assignment_expression "puVar5[1] = (char)iVar4" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = (cast_expression "(char)iVar4" ( (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 "puVar1 = puVar5 + 2;" (assignment_expression "puVar1 = puVar5 + 2" identifier = (binary_expression "puVar5 + 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 = puVar5 + 5;" (assignment_expression "puVar1 = puVar5 + 5" identifier = (binary_expression "puVar5 + 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 "uVar6 = (undefined1)((int)uVar9 >> 2);" (assignment_expression "uVar6 = (undefined1)((int)uVar9 >> 2)" identifier = (call_expression "(undefined1)((int)uVar9 >> 2)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((int)uVar9 >> 2)" ( (binary_expression "(int)uVar9 >> 2" (cast_expression "(int)uVar9" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar7 = (undefined1)((int)uVar9 >> 10);" (assignment_expression "uVar7 = (undefined1)((int)uVar9 >> 10)" identifier = (call_expression "(undefined1)((int)uVar9 >> 10)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((int)uVar9 >> 10)" ( (binary_expression "(int)uVar9 >> 10" (cast_expression "(int)uVar9" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )))) ;) (if_statement "if (xconn->firstpkt[0] == 'B') {\n    puVar5[6] = uVar7;\n    puVar5[7] = uVar6;\n  }\n  else {\n    puVar5[6] = uVar6;\n    puVar5[7] = uVar7;\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    puVar5[6] = uVar7;\n    puVar5[7] = uVar6;\n  }" { (expression_statement "puVar5[6] = uVar7;" (assignment_expression "puVar5[6] = uVar7" (subscript_expression "puVar5[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar5[7] = uVar6;" (assignment_expression "puVar5[7] = uVar6" (subscript_expression "puVar5[7]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n    puVar5[6] = uVar6;\n    puVar5[7] = uVar7;\n  }" else (compound_statement "{\n    puVar5[6] = uVar6;\n    puVar5[7] = uVar7;\n  }" { (expression_statement "puVar5[6] = uVar6;" (assignment_expression "puVar5[6] = uVar6" (subscript_expression "puVar5[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar5[7] = uVar7;" (assignment_expression "puVar5[7] = uVar7" (subscript_expression "puVar5[7]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "(*(code *)PTR_memset_000b8c10)(puVar5 + 8,0,uVar9 & 0xfffffffc);" (call_expression "(*(code *)PTR_memset_000b8c10)(puVar5 + 8,0,uVar9 & 0xfffffffc)" (parenthesized_expression "(*(code *)PTR_memset_000b8c10)" ( (pointer_expression "*(code *)PTR_memset_000b8c10" * (cast_expression "(code *)PTR_memset_000b8c10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar5 + 8,0,uVar9 & 0xfffffffc)" ( (binary_expression "puVar5 + 8" identifier + number_literal) , number_literal , (binary_expression "uVar9 & 0xfffffffc" identifier & number_literal) ))) ;) (expression_statement "(*(code *)PTR_memcpy_000b8cec)(puVar5 + 8,uVar3,iVar4);" (call_expression "(*(code *)PTR_memcpy_000b8cec)(puVar5 + 8,uVar3,iVar4)" (parenthesized_expression "(*(code *)PTR_memcpy_000b8cec)" ( (pointer_expression "*(code *)PTR_memcpy_000b8cec" * (cast_expression "(code *)PTR_memcpy_000b8cec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar5 + 8,uVar3,iVar4)" ( (binary_expression "puVar5 + 8" identifier + number_literal) , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00091da8(int param_1,undefined4 param_2)\n\n{\n  undefined1 *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined1 *puVar5;\n  undefined1 uVar6;\n  uint uVar8;\n  uint uVar9;\n  undefined1 uVar7;\n  \n  uVar3 = (*(code *)PTR_dupprintf_000b82dc)\n                    (PTR_DAT_000b8348 + 0x61a0,*(undefined4 *)PTR_appname_000b8ab4,param_2);\n  iVar4 = (*(code *)PTR_strlen_000b8c40)(uVar3);\n  puVar5 = (undefined1 *)(*(code *)PTR_safemalloc_000b82f8)(iVar4 + 0xd,1);\n  uVar9 = iVar4 + 3;\n  *puVar5 = 0;\n  puVar5[1] = (char)iVar4;\n  uVar8 = *(uint *)(param_1 + 6);\n  puVar1 = puVar5 + 2;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8;\n  puVar1 = puVar5 + 5;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8;\n  uVar6 = (undefined1)((int)uVar9 >> 2);\n  uVar7 = (undefined1)((int)uVar9 >> 10);\n  if (*(char *)(param_1 + 4) == 'B') {\n    puVar5[6] = uVar7;\n    puVar5[7] = uVar6;\n  }\n  else {\n    puVar5[6] = uVar6;\n    puVar5[7] = uVar7;\n  }\n  (*(code *)PTR_memset_000b8c10)(puVar5 + 8,0,uVar9 & 0xfffffffc);\n  (*(code *)PTR_memcpy_000b8cec)(puVar5 + 8,uVar3,iVar4);\n  (*(code *)PTR_sshfwd_write_000b8480)\n            (*(undefined4 *)(param_1 + 0x4c),puVar5,(uVar9 & 0xfffffffc) + 8);\n  (*(code *)PTR_sshfwd_write_eof_000b8488)(*(undefined4 *)(param_1 + 0x4c));\n  *(undefined4 *)(param_1 + 0x40) = 0;\n  (*(code *)PTR_safefree_000b82e8)(puVar5);\n  (*(code *)PTR_safefree_000b82e8)(uVar3);\n  return;\n}\n\n" (function_definition "void FUN_00091da8(int param_1,undefined4 param_2)\n\n{\n  undefined1 *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined1 *puVar5;\n  undefined1 uVar6;\n  uint uVar8;\n  uint uVar9;\n  undefined1 uVar7;\n  \n  uVar3 = (*(code *)PTR_dupprintf_000b82dc)\n                    (PTR_DAT_000b8348 + 0x61a0,*(undefined4 *)PTR_appname_000b8ab4,param_2);\n  iVar4 = (*(code *)PTR_strlen_000b8c40)(uVar3);\n  puVar5 = (undefined1 *)(*(code *)PTR_safemalloc_000b82f8)(iVar4 + 0xd,1);\n  uVar9 = iVar4 + 3;\n  *puVar5 = 0;\n  puVar5[1] = (char)iVar4;\n  uVar8 = *(uint *)(param_1 + 6);\n  puVar1 = puVar5 + 2;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8;\n  puVar1 = puVar5 + 5;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8;\n  uVar6 = (undefined1)((int)uVar9 >> 2);\n  uVar7 = (undefined1)((int)uVar9 >> 10);\n  if (*(char *)(param_1 + 4) == 'B') {\n    puVar5[6] = uVar7;\n    puVar5[7] = uVar6;\n  }\n  else {\n    puVar5[6] = uVar6;\n    puVar5[7] = uVar7;\n  }\n  (*(code *)PTR_memset_000b8c10)(puVar5 + 8,0,uVar9 & 0xfffffffc);\n  (*(code *)PTR_memcpy_000b8cec)(puVar5 + 8,uVar3,iVar4);\n  (*(code *)PTR_sshfwd_write_000b8480)\n            (*(undefined4 *)(param_1 + 0x4c),puVar5,(uVar9 & 0xfffffffc) + 8);\n  (*(code *)PTR_sshfwd_write_eof_000b8488)(*(undefined4 *)(param_1 + 0x4c));\n  *(undefined4 *)(param_1 + 0x40) = 0;\n  (*(code *)PTR_safefree_000b82e8)(puVar5);\n  (*(code *)PTR_safefree_000b82e8)(uVar3);\n  return;\n}" primitive_type (function_declarator "FUN_00091da8(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  undefined4 uVar3;\n  int iVar4;\n  undefined1 *puVar5;\n  undefined1 uVar6;\n  uint uVar8;\n  uint uVar9;\n  undefined1 uVar7;\n  \n  uVar3 = (*(code *)PTR_dupprintf_000b82dc)\n                    (PTR_DAT_000b8348 + 0x61a0,*(undefined4 *)PTR_appname_000b8ab4,param_2);\n  iVar4 = (*(code *)PTR_strlen_000b8c40)(uVar3);\n  puVar5 = (undefined1 *)(*(code *)PTR_safemalloc_000b82f8)(iVar4 + 0xd,1);\n  uVar9 = iVar4 + 3;\n  *puVar5 = 0;\n  puVar5[1] = (char)iVar4;\n  uVar8 = *(uint *)(param_1 + 6);\n  puVar1 = puVar5 + 2;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8;\n  puVar1 = puVar5 + 5;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8;\n  uVar6 = (undefined1)((int)uVar9 >> 2);\n  uVar7 = (undefined1)((int)uVar9 >> 10);\n  if (*(char *)(param_1 + 4) == 'B') {\n    puVar5[6] = uVar7;\n    puVar5[7] = uVar6;\n  }\n  else {\n    puVar5[6] = uVar6;\n    puVar5[7] = uVar7;\n  }\n  (*(code *)PTR_memset_000b8c10)(puVar5 + 8,0,uVar9 & 0xfffffffc);\n  (*(code *)PTR_memcpy_000b8cec)(puVar5 + 8,uVar3,iVar4);\n  (*(code *)PTR_sshfwd_write_000b8480)\n            (*(undefined4 *)(param_1 + 0x4c),puVar5,(uVar9 & 0xfffffffc) + 8);\n  (*(code *)PTR_sshfwd_write_eof_000b8488)(*(undefined4 *)(param_1 + 0x4c));\n  *(undefined4 *)(param_1 + 0x40) = 0;\n  (*(code *)PTR_safefree_000b82e8)(puVar5);\n  (*(code *)PTR_safefree_000b82e8)(uVar3);\n  return;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined1 uVar6;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "undefined1 uVar7;" type_identifier identifier ;) (expression_statement "uVar3 = (*(code *)PTR_dupprintf_000b82dc)\n                    (PTR_DAT_000b8348 + 0x61a0,*(undefined4 *)PTR_appname_000b8ab4,param_2);" (assignment_expression "uVar3 = (*(code *)PTR_dupprintf_000b82dc)\n                    (PTR_DAT_000b8348 + 0x61a0,*(undefined4 *)PTR_appname_000b8ab4,param_2)" identifier = (call_expression "(*(code *)PTR_dupprintf_000b82dc)\n                    (PTR_DAT_000b8348 + 0x61a0,*(undefined4 *)PTR_appname_000b8ab4,param_2)" (parenthesized_expression "(*(code *)PTR_dupprintf_000b82dc)" ( (pointer_expression "*(code *)PTR_dupprintf_000b82dc" * (cast_expression "(code *)PTR_dupprintf_000b82dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000b8348 + 0x61a0,*(undefined4 *)PTR_appname_000b8ab4,param_2)" ( (binary_expression "PTR_DAT_000b8348 + 0x61a0" identifier + number_literal) , (pointer_expression "*(undefined4 *)PTR_appname_000b8ab4" * (cast_expression "(undefined4 *)PTR_appname_000b8ab4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier )))) ;) (expression_statement "iVar4 = (*(code *)PTR_strlen_000b8c40)(uVar3);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_000b8c40)(uVar3)" identifier = (call_expression "(*(code *)PTR_strlen_000b8c40)(uVar3)" (parenthesized_expression "(*(code *)PTR_strlen_000b8c40)" ( (pointer_expression "*(code *)PTR_strlen_000b8c40" * (cast_expression "(code *)PTR_strlen_000b8c40" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3)" ( identifier )))) ;) (expression_statement "puVar5 = (undefined1 *)(*(code *)PTR_safemalloc_000b82f8)(iVar4 + 0xd,1);" (assignment_expression "puVar5 = (undefined1 *)(*(code *)PTR_safemalloc_000b82f8)(iVar4 + 0xd,1)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_safemalloc_000b82f8)(iVar4 + 0xd,1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_000b82f8)(iVar4 + 0xd,1)" (parenthesized_expression "(*(code *)PTR_safemalloc_000b82f8)" ( (pointer_expression "*(code *)PTR_safemalloc_000b82f8" * (cast_expression "(code *)PTR_safemalloc_000b82f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4 + 0xd,1)" ( (binary_expression "iVar4 + 0xd" identifier + number_literal) , number_literal ))))) ;) (expression_statement "uVar9 = iVar4 + 3;" (assignment_expression "uVar9 = iVar4 + 3" identifier = (binary_expression "iVar4 + 3" identifier + number_literal)) ;) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "puVar5[1] = (char)iVar4;" (assignment_expression "puVar5[1] = (char)iVar4" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = (cast_expression "(char)iVar4" ( (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 "puVar1 = puVar5 + 2;" (assignment_expression "puVar1 = puVar5 + 2" identifier = (binary_expression "puVar5 + 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 = puVar5 + 5;" (assignment_expression "puVar1 = puVar5 + 5" identifier = (binary_expression "puVar5 + 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 "uVar6 = (undefined1)((int)uVar9 >> 2);" (assignment_expression "uVar6 = (undefined1)((int)uVar9 >> 2)" identifier = (call_expression "(undefined1)((int)uVar9 >> 2)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((int)uVar9 >> 2)" ( (binary_expression "(int)uVar9 >> 2" (cast_expression "(int)uVar9" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar7 = (undefined1)((int)uVar9 >> 10);" (assignment_expression "uVar7 = (undefined1)((int)uVar9 >> 10)" identifier = (call_expression "(undefined1)((int)uVar9 >> 10)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((int)uVar9 >> 10)" ( (binary_expression "(int)uVar9 >> 10" (cast_expression "(int)uVar9" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )))) ;) (if_statement "if (*(char *)(param_1 + 4) == 'B') {\n    puVar5[6] = uVar7;\n    puVar5[7] = uVar6;\n  }\n  else {\n    puVar5[6] = uVar6;\n    puVar5[7] = uVar7;\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    puVar5[6] = uVar7;\n    puVar5[7] = uVar6;\n  }" { (expression_statement "puVar5[6] = uVar7;" (assignment_expression "puVar5[6] = uVar7" (subscript_expression "puVar5[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar5[7] = uVar6;" (assignment_expression "puVar5[7] = uVar6" (subscript_expression "puVar5[7]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n    puVar5[6] = uVar6;\n    puVar5[7] = uVar7;\n  }" else (compound_statement "{\n    puVar5[6] = uVar6;\n    puVar5[7] = uVar7;\n  }" { (expression_statement "puVar5[6] = uVar6;" (assignment_expression "puVar5[6] = uVar6" (subscript_expression "puVar5[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar5[7] = uVar7;" (assignment_expression "puVar5[7] = uVar7" (subscript_expression "puVar5[7]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "(*(code *)PTR_memset_000b8c10)(puVar5 + 8,0,uVar9 & 0xfffffffc);" (call_expression "(*(code *)PTR_memset_000b8c10)(puVar5 + 8,0,uVar9 & 0xfffffffc)" (parenthesized_expression "(*(code *)PTR_memset_000b8c10)" ( (pointer_expression "*(code *)PTR_memset_000b8c10" * (cast_expression "(code *)PTR_memset_000b8c10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar5 + 8,0,uVar9 & 0xfffffffc)" ( (binary_expression "puVar5 + 8" identifier + number_literal) , number_literal , (binary_expression "uVar9 & 0xfffffffc" identifier & number_literal) ))) ;) (expression_statement "(*(code *)PTR_memcpy_000b8cec)(puVar5 + 8,uVar3,iVar4);" (call_expression "(*(code *)PTR_memcpy_000b8cec)(puVar5 + 8,uVar3,iVar4)" (parenthesized_expression "(*(code *)PTR_memcpy_000b8cec)" ( (pointer_expression "*(code *)PTR_memcpy_000b8cec" * (cast_expression "(code *)PTR_memcpy_000b8cec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar5 + 8,uVar3,iVar4)" ( (binary_expression "puVar5 + 8" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_sshfwd_write_000b8480)\n            (*(undefined4 *)(param_1 + 0x4c),puVar5,(uVar9 & 0xfffffffc) + 8);" (call_expression "(*(code *)PTR_sshfwd_write_000b8480)\n            (*(undefined4 *)(param_1 + 0x4c),puVar5,(uVar9 & 0xfffffffc) + 8)" (parenthesized_expression "(*(code *)PTR_sshfwd_write_000b8480)" ( (pointer_expression "*(code *)PTR_sshfwd_write_000b8480" * (cast_expression "(code *)PTR_sshfwd_write_000b8480" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x4c),puVar5,(uVar9 & 0xfffffffc) + 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 "(uVar9 & 0xfffffffc) + 8" (parenthesized_expression "(uVar9 & 0xfffffffc)" ( (binary_expression "uVar9 & 0xfffffffc" identifier & number_literal) )) + number_literal) ))) ;) (expression_statement "(*(code *)PTR_sshfwd_write_eof_000b8488)(*(undefined4 *)(param_1 + 0x4c));" (call_expression "(*(code *)PTR_sshfwd_write_eof_000b8488)(*(undefined4 *)(param_1 + 0x4c))" (parenthesized_expression "(*(code *)PTR_sshfwd_write_eof_000b8488)" ( (pointer_expression "*(code *)PTR_sshfwd_write_eof_000b8488" * (cast_expression "(code *)PTR_sshfwd_write_eof_000b8488" ( (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 "*(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 *)PTR_safefree_000b82e8)(puVar5);" (call_expression "(*(code *)PTR_safefree_000b82e8)(puVar5)" (parenthesized_expression "(*(code *)PTR_safefree_000b82e8)" ( (pointer_expression "*(code *)PTR_safefree_000b82e8" * (cast_expression "(code *)PTR_safefree_000b82e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar5)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000b82e8)(uVar3);" (call_expression "(*(code *)PTR_safefree_000b82e8)(uVar3)" (parenthesized_expression "(*(code *)PTR_safefree_000b82e8)" ( (pointer_expression "*(code *)PTR_safefree_000b82e8" * (cast_expression "(code *)PTR_safefree_000b82e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3)" ( 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 IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * 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 IDENT = (binary_expression IDENT + 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 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 (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> 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 (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT & LIT) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , 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 (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 ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (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_00091da8(int param_1,undefined4 param_2)\n\n{\n  undefined1 *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined1 *puVar5;\n  undefined1 uVar6;\n  uint uVar8;\n  uint uVar9;\n  undefined1 uVar7;\n  \n  uVar3 = (*(code *)PTR_dupprintf_000b82dc)\n                    (PTR_DAT_000b8348 + 0x61a0,*(undefined4 *)PTR_appname_000b8ab4,param_2);\n  iVar4 = (*(code *)PTR_strlen_000b8c40)(uVar3);\n  puVar5 = (undefined1 *)(*(code *)PTR_safemalloc_000b82f8)(iVar4 + 0xd,1);\n  uVar9 = iVar4 + 3;\n  *puVar5 = 0;\n  puVar5[1] = (char)iVar4;\n  uVar8 = *(uint *)(param_1 + 6);\n  puVar1 = puVar5 + 2;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8;\n  puVar1 = puVar5 + 5;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8;\n  uVar6 = (undefined1)((int)uVar9 >> 2);\n  uVar7 = (undefined1)((int)uVar9 >> 10);\n  if (*(char *)(param_1 + 4) == 'B') {\n    puVar5[6] = uVar7;\n    puVar5[7] = uVar6;\n  }\n  else {\n    puVar5[6] = uVar6;\n    puVar5[7] = uVar7;\n  }\n  (*(code *)PTR_memset_000b8c10)(puVar5 + 8,0,uVar9 & 0xfffffffc);\n  (*(code *)PTR_memcpy_000b8cec)(puVar5 + 8,uVar3,iVar4);\n  (*(code *)PTR_sshfwd_write_000b8480)\n            (*(undefined4 *)(param_1 + 0x4c),puVar5,(uVar9 & 0xfffffffc) + 8);\n  (*(code *)PTR_sshfwd_write_eof_000b8488)(*(undefined4 *)(param_1 + 0x4c));\n  *(undefined4 *)(param_1 + 0x40) = 0;\n  (*(code *)PTR_safefree_000b82e8)(puVar5);\n  (*(code *)PTR_safefree_000b82e8)(uVar3);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00091da8(int param_1,undefined4 param_2)" (identifier "FUN_00091da8") (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  undefined4 uVar3;\n  int iVar4;\n  undefined1 *puVar5;\n  undefined1 uVar6;\n  uint uVar8;\n  uint uVar9;\n  undefined1 uVar7;\n  \n  uVar3 = (*(code *)PTR_dupprintf_000b82dc)\n                    (PTR_DAT_000b8348 + 0x61a0,*(undefined4 *)PTR_appname_000b8ab4,param_2);\n  iVar4 = (*(code *)PTR_strlen_000b8c40)(uVar3);\n  puVar5 = (undefined1 *)(*(code *)PTR_safemalloc_000b82f8)(iVar4 + 0xd,1);\n  uVar9 = iVar4 + 3;\n  *puVar5 = 0;\n  puVar5[1] = (char)iVar4;\n  uVar8 = *(uint *)(param_1 + 6);\n  puVar1 = puVar5 + 2;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8;\n  puVar1 = puVar5 + 5;\n  uVar2 = (uint)puVar1 & 3;\n  *(uint *)(puVar1 + -uVar2) =\n       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8;\n  uVar6 = (undefined1)((int)uVar9 >> 2);\n  uVar7 = (undefined1)((int)uVar9 >> 10);\n  if (*(char *)(param_1 + 4) == 'B') {\n    puVar5[6] = uVar7;\n    puVar5[7] = uVar6;\n  }\n  else {\n    puVar5[6] = uVar6;\n    puVar5[7] = uVar7;\n  }\n  (*(code *)PTR_memset_000b8c10)(puVar5 + 8,0,uVar9 & 0xfffffffc);\n  (*(code *)PTR_memcpy_000b8cec)(puVar5 + 8,uVar3,iVar4);\n  (*(code *)PTR_sshfwd_write_000b8480)\n            (*(undefined4 *)(param_1 + 0x4c),puVar5,(uVar9 & 0xfffffffc) + 8);\n  (*(code *)PTR_sshfwd_write_eof_000b8488)(*(undefined4 *)(param_1 + 0x4c));\n  *(undefined4 *)(param_1 + 0x40) = 0;\n  (*(code *)PTR_safefree_000b82e8)(puVar5);\n  (*(code *)PTR_safefree_000b82e8)(uVar3);\n  return;\n}" ({ "{") (declaration "undefined1 *puVar1;" (type_identifier "undefined1") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined1 *puVar5;" (type_identifier "undefined1") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "undefined1 uVar6;" (type_identifier "undefined1") (identifier "uVar6") (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "uint uVar9;" (type_identifier "uint") (identifier "uVar9") (; ";")) (declaration "undefined1 uVar7;" (type_identifier "undefined1") (identifier "uVar7") (; ";")) (expression_statement "uVar3 = (*(code *)PTR_dupprintf_000b82dc)\n                    (PTR_DAT_000b8348 + 0x61a0,*(undefined4 *)PTR_appname_000b8ab4,param_2);" (assignment_expression "uVar3 = (*(code *)PTR_dupprintf_000b82dc)\n                    (PTR_DAT_000b8348 + 0x61a0,*(undefined4 *)PTR_appname_000b8ab4,param_2)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_dupprintf_000b82dc)\n                    (PTR_DAT_000b8348 + 0x61a0,*(undefined4 *)PTR_appname_000b8ab4,param_2)" (parenthesized_expression "(*(code *)PTR_dupprintf_000b82dc)" (( "(") (pointer_expression "*(code *)PTR_dupprintf_000b82dc" (* "*") (cast_expression "(code *)PTR_dupprintf_000b82dc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dupprintf_000b82dc"))) () ")")) (argument_list "(PTR_DAT_000b8348 + 0x61a0,*(undefined4 *)PTR_appname_000b8ab4,param_2)" (( "(") (binary_expression "PTR_DAT_000b8348 + 0x61a0" (identifier "PTR_DAT_000b8348") (+ "+") (number_literal "0x61a0")) (, ",") (pointer_expression "*(undefined4 *)PTR_appname_000b8ab4" (* "*") (cast_expression "(undefined4 *)PTR_appname_000b8ab4" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_appname_000b8ab4"))) (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "iVar4 = (*(code *)PTR_strlen_000b8c40)(uVar3);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_000b8c40)(uVar3)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_strlen_000b8c40)(uVar3)" (parenthesized_expression "(*(code *)PTR_strlen_000b8c40)" (( "(") (pointer_expression "*(code *)PTR_strlen_000b8c40" (* "*") (cast_expression "(code *)PTR_strlen_000b8c40" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_000b8c40"))) () ")")) (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")")))) (; ";")) (expression_statement "puVar5 = (undefined1 *)(*(code *)PTR_safemalloc_000b82f8)(iVar4 + 0xd,1);" (assignment_expression "puVar5 = (undefined1 *)(*(code *)PTR_safemalloc_000b82f8)(iVar4 + 0xd,1)" (identifier "puVar5") (= "=") (cast_expression "(undefined1 *)(*(code *)PTR_safemalloc_000b82f8)(iVar4 + 0xd,1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_safemalloc_000b82f8)(iVar4 + 0xd,1)" (parenthesized_expression "(*(code *)PTR_safemalloc_000b82f8)" (( "(") (pointer_expression "*(code *)PTR_safemalloc_000b82f8" (* "*") (cast_expression "(code *)PTR_safemalloc_000b82f8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safemalloc_000b82f8"))) () ")")) (argument_list "(iVar4 + 0xd,1)" (( "(") (binary_expression "iVar4 + 0xd" (identifier "iVar4") (+ "+") (number_literal "0xd")) (, ",") (number_literal "1") () ")"))))) (; ";")) (expression_statement "uVar9 = iVar4 + 3;" (assignment_expression "uVar9 = iVar4 + 3" (identifier "uVar9") (= "=") (binary_expression "iVar4 + 3" (identifier "iVar4") (+ "+") (number_literal "3"))) (; ";")) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar5[1] = (char)iVar4;" (assignment_expression "puVar5[1] = (char)iVar4" (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(char)iVar4" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "iVar4"))) (; ";")) (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 "puVar1 = puVar5 + 2;" (assignment_expression "puVar1 = puVar5 + 2" (identifier "puVar1") (= "=") (binary_expression "puVar5 + 2" (identifier "puVar5") (+ "+") (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 = puVar5 + 5;" (assignment_expression "puVar1 = puVar5 + 5" (identifier "puVar1") (= "=") (binary_expression "puVar5 + 5" (identifier "puVar5") (+ "+") (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 "uVar6 = (undefined1)((int)uVar9 >> 2);" (assignment_expression "uVar6 = (undefined1)((int)uVar9 >> 2)" (identifier "uVar6") (= "=") (call_expression "(undefined1)((int)uVar9 >> 2)" (parenthesized_expression "(undefined1)" (( "(") (identifier "undefined1") () ")")) (argument_list "((int)uVar9 >> 2)" (( "(") (binary_expression "(int)uVar9 >> 2" (cast_expression "(int)uVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar9")) (>> ">>") (number_literal "2")) () ")")))) (; ";")) (expression_statement "uVar7 = (undefined1)((int)uVar9 >> 10);" (assignment_expression "uVar7 = (undefined1)((int)uVar9 >> 10)" (identifier "uVar7") (= "=") (call_expression "(undefined1)((int)uVar9 >> 10)" (parenthesized_expression "(undefined1)" (( "(") (identifier "undefined1") () ")")) (argument_list "((int)uVar9 >> 10)" (( "(") (binary_expression "(int)uVar9 >> 10" (cast_expression "(int)uVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar9")) (>> ">>") (number_literal "10")) () ")")))) (; ";")) (if_statement "if (*(char *)(param_1 + 4) == 'B') {\n    puVar5[6] = uVar7;\n    puVar5[7] = uVar6;\n  }\n  else {\n    puVar5[6] = uVar6;\n    puVar5[7] = uVar7;\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    puVar5[6] = uVar7;\n    puVar5[7] = uVar6;\n  }" ({ "{") (expression_statement "puVar5[6] = uVar7;" (assignment_expression "puVar5[6] = uVar7" (subscript_expression "puVar5[6]" (identifier "puVar5") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "puVar5[7] = uVar6;" (assignment_expression "puVar5[7] = uVar6" (subscript_expression "puVar5[7]" (identifier "puVar5") ([ "[") (number_literal "7") (] "]")) (= "=") (identifier "uVar6")) (; ";")) (} "}")) (else_clause "else {\n    puVar5[6] = uVar6;\n    puVar5[7] = uVar7;\n  }" (else "else") (compound_statement "{\n    puVar5[6] = uVar6;\n    puVar5[7] = uVar7;\n  }" ({ "{") (expression_statement "puVar5[6] = uVar6;" (assignment_expression "puVar5[6] = uVar6" (subscript_expression "puVar5[6]" (identifier "puVar5") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "puVar5[7] = uVar7;" (assignment_expression "puVar5[7] = uVar7" (subscript_expression "puVar5[7]" (identifier "puVar5") ([ "[") (number_literal "7") (] "]")) (= "=") (identifier "uVar7")) (; ";")) (} "}")))) (expression_statement "(*(code *)PTR_memset_000b8c10)(puVar5 + 8,0,uVar9 & 0xfffffffc);" (call_expression "(*(code *)PTR_memset_000b8c10)(puVar5 + 8,0,uVar9 & 0xfffffffc)" (parenthesized_expression "(*(code *)PTR_memset_000b8c10)" (( "(") (pointer_expression "*(code *)PTR_memset_000b8c10" (* "*") (cast_expression "(code *)PTR_memset_000b8c10" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memset_000b8c10"))) () ")")) (argument_list "(puVar5 + 8,0,uVar9 & 0xfffffffc)" (( "(") (binary_expression "puVar5 + 8" (identifier "puVar5") (+ "+") (number_literal "8")) (, ",") (number_literal "0") (, ",") (binary_expression "uVar9 & 0xfffffffc" (identifier "uVar9") (& "&") (number_literal "0xfffffffc")) () ")"))) (; ";")) (expression_statement "(*(code *)PTR_memcpy_000b8cec)(puVar5 + 8,uVar3,iVar4);" (call_expression "(*(code *)PTR_memcpy_000b8cec)(puVar5 + 8,uVar3,iVar4)" (parenthesized_expression "(*(code *)PTR_memcpy_000b8cec)" (( "(") (pointer_expression "*(code *)PTR_memcpy_000b8cec" (* "*") (cast_expression "(code *)PTR_memcpy_000b8cec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_000b8cec"))) () ")")) (argument_list "(puVar5 + 8,uVar3,iVar4)" (( "(") (binary_expression "puVar5 + 8" (identifier "puVar5") (+ "+") (number_literal "8")) (, ",") (identifier "uVar3") (, ",") (identifier "iVar4") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_sshfwd_write_000b8480)\n            (*(undefined4 *)(param_1 + 0x4c),puVar5,(uVar9 & 0xfffffffc) + 8);" (call_expression "(*(code *)PTR_sshfwd_write_000b8480)\n            (*(undefined4 *)(param_1 + 0x4c),puVar5,(uVar9 & 0xfffffffc) + 8)" (parenthesized_expression "(*(code *)PTR_sshfwd_write_000b8480)" (( "(") (pointer_expression "*(code *)PTR_sshfwd_write_000b8480" (* "*") (cast_expression "(code *)PTR_sshfwd_write_000b8480" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sshfwd_write_000b8480"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0x4c),puVar5,(uVar9 & 0xfffffffc) + 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 "puVar5") (, ",") (binary_expression "(uVar9 & 0xfffffffc) + 8" (parenthesized_expression "(uVar9 & 0xfffffffc)" (( "(") (binary_expression "uVar9 & 0xfffffffc" (identifier "uVar9") (& "&") (number_literal "0xfffffffc")) () ")")) (+ "+") (number_literal "8")) () ")"))) (; ";")) (expression_statement "(*(code *)PTR_sshfwd_write_eof_000b8488)(*(undefined4 *)(param_1 + 0x4c));" (call_expression "(*(code *)PTR_sshfwd_write_eof_000b8488)(*(undefined4 *)(param_1 + 0x4c))" (parenthesized_expression "(*(code *)PTR_sshfwd_write_eof_000b8488)" (( "(") (pointer_expression "*(code *)PTR_sshfwd_write_eof_000b8488" (* "*") (cast_expression "(code *)PTR_sshfwd_write_eof_000b8488" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sshfwd_write_eof_000b8488"))) () ")")) (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 "*(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 *)PTR_safefree_000b82e8)(puVar5);" (call_expression "(*(code *)PTR_safefree_000b82e8)(puVar5)" (parenthesized_expression "(*(code *)PTR_safefree_000b82e8)" (( "(") (pointer_expression "*(code *)PTR_safefree_000b82e8" (* "*") (cast_expression "(code *)PTR_safefree_000b82e8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_000b82e8"))) () ")")) (argument_list "(puVar5)" (( "(") (identifier "puVar5") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_000b82e8)(uVar3);" (call_expression "(*(code *)PTR_safefree_000b82e8)(uVar3)" (parenthesized_expression "(*(code *)PTR_safefree_000b82e8)" (( "(") (pointer_expression "*(code *)PTR_safefree_000b82e8" (* "*") (cast_expression "(code *)PTR_safefree_000b82e8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_000b82e8"))) () ")")) (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) 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)) (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: (identifier) right: (binary_expression left: (identifier) right: (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: (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) 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 (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) (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (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: (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 (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: (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;
  undefined4 uVar3;
  int iVar4;
  undefined1 *puVar5;
  undefined1 uVar6;
  uint uVar8;
  uint uVar9;
  undefined1 uVar7;
  
  uVar3 = (*(code *)PTR_dupprintf_000b82dc)
                    (PTR_DAT_000b8348 + 0x61a0,*(undefined4 *)PTR_appname_000b8ab4,param_2);
  iVar4 = (*(code *)PTR_strlen_000b8c40)(uVar3);
  puVar5 = (undefined1 *)(*(code *)PTR_safemalloc_000b82f8)(iVar4 + 0xd,1);
  uVar9 = iVar4 + 3;
  *puVar5 = 0;
  puVar5[1] = (char)iVar4;
  uVar8 = *(uint *)(param_1 + 6);
  puVar1 = puVar5 + 2;
  uVar2 = (uint)puVar1 & 3;
  *(uint *)(puVar1 + -uVar2) =
       *(uint *)(puVar1 + -uVar2) & -1 << (4 - uVar2) * 8 | uVar8 >> uVar2 * 8;
  puVar1 = puVar5 + 5;
  uVar2 = (uint)puVar1 & 3;
  *(uint *)(puVar1 + -uVar2) =
       *(uint *)(puVar1 + -uVar2) & 0xffffffffU >> (uVar2 + 1) * 8 | uVar8 << (3 - uVar2) * 8;
  uVar6 = (undefined1)((int)uVar9 >> 2);
  uVar7 = (undefined1)((int)uVar9 >> 10);
  if (*(char *)(param_1 + 4) == 'B') {
    puVar5[6] = uVar7;
    puVar5[7] = uVar6;
  }
  else {
    puVar5[6] = uVar6;
    puVar5[7] = uVar7;
  }
  (*(code *)PTR_memset_000b8c10)(puVar5 + 8,0,uVar9 & 0xfffffffc);
  (*(code *)PTR_memcpy_000b8cec)(puVar5 + 8,uVar3,iVar4);
  (*(code *)PTR_sshfwd_write_000b8480)
            (*(undefined4 *)(param_1 + 0x4c),puVar5,(uVar9 & 0xfffffffc) + 8);
  (*(code *)PTR_sshfwd_write_eof_000b8488)(*(undefined4 *)(param_1 + 0x4c));
  *(undefined4 *)(param_1 + 0x40) = 0;
  (*(code *)PTR_safefree_000b82e8)(puVar5);
  (*(code *)PTR_safefree_000b82e8)(uVar3);
  return;
}

