
bool __thiscall
gold::decompress_input_section
          (gold *this,uchar *compressed_data,ulong compressed_size,uchar *uncompressed_data,
          ulong uncompressed_size,int size,bool big_endian,Elf_Xword sh_flags)

{
  bool bVar3;
  int iVar1;
  uint uVar2;
  gold *compressed_data_00;
  undefined4 uVar4;
  uint in_stack_0000001c;
  
  if ((in_stack_0000001c & 0x800) == 0) {
    if (((uchar *)0xb < compressed_data) &&
       (iVar1 = (*(code *)PTR_strncmp_004366a0)(this,PTR_s__0043226c + 0xe68,4), iVar1 == 0)) {
      if (uncompressed_data != *(uchar **)(this + 8)) {
        uVar4 = 0xcb;
        do {
          (*(code *)PTR_do_gold_unreachable_004323c4)
                    (PTR_s__0043226c + 0xe48,uVar4,PTR_s__0043226c + 0xf50);
LAB_0025b208:
          uVar4 = 0xb8;
        } while( true );
      }
      bVar3 = zlib_decompress((uchar *)(this + 0xc),(ulong)(compressed_data + -0xc),
                              (uchar *)compressed_size,(ulong)uncompressed_data);
      return bVar3;
    }
  }
  else if (uncompressed_size == 0x20) {
    uVar2 = *(uint *)this;
    if ((size & 0xffU) == 0) {
      uVar2 = (((uVar2 >> 0x10) << 0x18 | (uVar2 >> 0x18) << 0x10) >> 0x10) +
              ((uVar2 & 0xff) << 8 | uVar2 >> 8 & 0xff) * 0x10000;
    }
    if (uVar2 == 1) {
      iVar1 = -0xc;
      compressed_data_00 = this + 0xc;
      goto LAB_0025b108;
    }
  }
  else {
    if (uncompressed_size != 0x40) goto LAB_0025b208;
    if (((size & 0xffU) != 0) && (*(int *)this == 1)) {
      iVar1 = -0x18;
      compressed_data_00 = this + 0x18;
LAB_0025b108:
      bVar3 = zlib_decompress((uchar *)compressed_data_00,(ulong)(compressed_data + iVar1),
                              (uchar *)compressed_size,(ulong)uncompressed_data);
      return bVar3;
    }
  }
  return false;
}



/* gold::decompress_input_section(unsigned char const*, unsigned long, unsigned char*, unsigned
   long, int, bool, unsigned long long) */

undefined4 __thiscall
gold::decompress_input_section
          (gold *this,uchar *param_1,ulong param_2,uchar *param_3,ulong param_4,int param_5,
          bool param_6,ulonglong param_7)

{
  undefined4 uVar1;
  int iVar2;
  uint uVar3;
  gold *pgVar4;
  uint in_stack_0000001c;
  
  if ((in_stack_0000001c & 0x800) == 0) {
    if (((uchar *)0xb < param_1) &&
       (iVar2 = (*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4), iVar2 == 0)) {
      if (param_3 == *(uchar **)(this + 8)) {
        uVar1 = FUN_0025a740(this + 0xc,param_1 + -0xc,param_2);
        return uVar1;
      }
      uVar1 = 0xcb;
LAB_0025b1f0:
      uVar1 = (*(code *)PTR_do_gold_unreachable_004323c4)
                        (PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50);
      return uVar1;
    }
  }
  else if (param_4 == 0x20) {
    uVar3 = *(uint *)this;
    if ((param_5 & 0xffU) == 0) {
      uVar3 = (((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +
              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000;
    }
    if (uVar3 == 1) {
      iVar2 = -0xc;
      pgVar4 = this + 0xc;
LAB_0025b108:
      uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2);
      return uVar1;
    }
  }
  else {
    if (param_4 != 0x40) {
      uVar1 = 0xb8;
      goto LAB_0025b1f0;
    }
    if (((param_5 & 0xffU) != 0) && (*(int *)this == 1)) {
      iVar2 = -0x18;
      pgVar4 = this + 0x18;
      goto LAB_0025b108;
    }
  }
  return 0;
}


lui gp,0x1e
addiu gp,gp,-0xebc
addu gp,gp,t9
addiu sp,sp,-0x30
lw v0,0x4c(sp)
lw v1,0x40(sp)
sw gp,0x10(sp)
andi v0,v0,0x800
sw s2,0x28(sp)
sw s1,0x24(sp)
or s2,a2,zero
sw s0,0x20(sp)
or s1,a1,zero
sw ra,0x2c(sp)
or s0,a0,zero
beq v0,zero,0x0025b12c
_lbu a1,0x47(sp)
li v0,0x20
beq v1,v0,0x0025b170
_nop
li v0,0x40
bne v1,v0,0x0025b208
_nop
beq a1,zero,0x0025b154
_lw v0,0x0(a0)
li v1,0x1
bne v0,v1,0x0025b158
_lw ra,0x2c(sp)
li a0,0x18
subu a1,s1,a0
addu a0,s0,a0
lw t9,-0x4abc(gp)
or a2,s2,zero
lw ra,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
addiu t9,t9,-0x58c0
lw s0,0x20(sp)
b 0x0025a740
_addiu sp,sp,0x30
sltiu v0,s1,0xc
bne v0,zero,0x0025b154
_sw a3,0x18(sp)
lw a1,-0x7f64(gp)
li a2,0x4
lw t9,-0x3b30(gp)
jalr t9
_addiu a1,a1,0xe68
beq v0,zero,0x0025b194
_lw gp,0x10(sp)
lw ra,0x2c(sp)
or v0,zero,zero
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x30
beq a1,zero,0x0025b1d0
_lw v0,0x0(a0)
li v1,0x1
bne v0,v1,0x0025b158
_lw ra,0x2c(sp)
li a0,0xc
subu a1,s1,a0
b 0x0025b108
_addu a0,s0,a0
lwl v0,0x8(s0)
lw a3,0x18(sp)
lwr v0,0xb(s0)
bne a3,v0,0x0025b1ec
_lw t9,-0x4abc(gp)
addiu a1,s1,-0xc
lw ra,0x2c(sp)
addiu a0,s0,0xc
lw s1,0x24(sp)
or a2,s2,zero
lw s0,0x20(sp)
addiu t9,t9,-0x58c0
lw s2,0x28(sp)
b 0x0025a740
_addiu sp,sp,0x30
wsbh v0,v0
li v1,0x1
rotr v0,v0,0x10
bne v0,v1,0x0025b158
_lw ra,0x2c(sp)
b 0x0025b188
_li a0,0xc
li a1,0xcb
lw a2,-0x7f64(gp)
lw a0,-0x7f64(gp)
lw t9,-0x7e0c(gp)
addiu a2,a2,0xf50
jalr t9
_addiu a0,a0,0xe48
b 0x0025b1f0
_li a1,0xb8
(translation_unit "/* gold::decompress_input_section(unsigned char const*, unsigned long, unsigned char*, unsigned\n   long, int, bool, unsigned long long) */\n\nundefined4 __thiscall\ngold::decompress_input_section\n          (gold *this,uchar *param_1,ulong param_2,uchar *param_3,ulong param_4,int param_5,\n          bool param_6,ulonglong param_7)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  uint uVar3;\n  gold *pgVar4;\n  uint in_stack_0000001c;\n  \n  if ((in_stack_0000001c & 0x800) == 0) {\n    if (((uchar *)0xb < param_1) &&\n       (iVar2 = (*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4), iVar2 == 0)) {\n      if (param_3 == *(uchar **)(this + 8)) {\n        uVar1 = FUN_0025a740(this + 0xc,param_1 + -0xc,param_2);\n        return uVar1;\n      }\n      uVar1 = 0xcb;\nLAB_0025b1f0:\n      uVar1 = (*(code *)PTR_do_gold_unreachable_004323c4)\n                        (PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50);\n      return uVar1;\n    }\n  }\n  else if (param_4 == 0x20) {\n    uVar3 = *(uint *)this;\n    if ((param_5 & 0xffU) == 0) {\n      uVar3 = (((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000;\n    }\n    if (uVar3 == 1) {\n      iVar2 = -0xc;\n      pgVar4 = this + 0xc;\nLAB_0025b108:\n      uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2);\n      return uVar1;\n    }\n  }\n  else {\n    if (param_4 != 0x40) {\n      uVar1 = 0xb8;\n      goto LAB_0025b1f0;\n    }\n    if (((param_5 & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar2 = -0x18;\n      pgVar4 = this + 0x18;\n      goto LAB_0025b108;\n    }\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 __thiscall\ngold::decompress_input_section\n          (gold *this,uchar *param_1,ulong param_2,uchar *param_3,ulong param_4,int param_5,\n          bool param_6,ulonglong param_7)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  uint uVar3;\n  gold *pgVar4;\n  uint in_stack_0000001c;\n  \n  if ((in_stack_0000001c & 0x800) == 0) {\n    if (((uchar *)0xb < param_1) &&\n       (iVar2 = (*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4), iVar2 == 0)) {\n      if (param_3 == *(uchar **)(this + 8)) {\n        uVar1 = FUN_0025a740(this + 0xc,param_1 + -0xc,param_2);\n        return uVar1;\n      }\n      uVar1 = 0xcb;\nLAB_0025b1f0:\n      uVar1 = (*(code *)PTR_do_gold_unreachable_004323c4)\n                        (PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50);\n      return uVar1;\n    }\n  }\n  else if (param_4 == 0x20) {\n    uVar3 = *(uint *)this;\n    if ((param_5 & 0xffU) == 0) {\n      uVar3 = (((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000;\n    }\n    if (uVar3 == 1) {\n      iVar2 = -0xc;\n      pgVar4 = this + 0xc;\nLAB_0025b108:\n      uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2);\n      return uVar1;\n    }\n  }\n  else {\n    if (param_4 != 0x40) {\n      uVar1 = 0xb8;\n      goto LAB_0025b1f0;\n    }\n    if (((param_5 & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar2 = -0x18;\n      pgVar4 = this + 0x18;\n      goto LAB_0025b108;\n    }\n  }\n  return 0;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::" identifier : :) (function_declarator "decompress_input_section\n          (gold *this,uchar *param_1,ulong param_2,uchar *param_3,ulong param_4,int param_5,\n          bool param_6,ulonglong param_7)" identifier (parameter_list "(gold *this,uchar *param_1,ulong param_2,uchar *param_3,ulong param_4,int param_5,\n          bool param_6,ulonglong param_7)" ( (parameter_declaration "gold *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "uchar *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "ulong param_2" type_identifier identifier) , (parameter_declaration "uchar *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "ulong param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "bool param_6" primitive_type identifier) , (parameter_declaration "ulonglong param_7" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  uint uVar3;\n  gold *pgVar4;\n  uint in_stack_0000001c;\n  \n  if ((in_stack_0000001c & 0x800) == 0) {\n    if (((uchar *)0xb < param_1) &&\n       (iVar2 = (*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4), iVar2 == 0)) {\n      if (param_3 == *(uchar **)(this + 8)) {\n        uVar1 = FUN_0025a740(this + 0xc,param_1 + -0xc,param_2);\n        return uVar1;\n      }\n      uVar1 = 0xcb;\nLAB_0025b1f0:\n      uVar1 = (*(code *)PTR_do_gold_unreachable_004323c4)\n                        (PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50);\n      return uVar1;\n    }\n  }\n  else if (param_4 == 0x20) {\n    uVar3 = *(uint *)this;\n    if ((param_5 & 0xffU) == 0) {\n      uVar3 = (((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000;\n    }\n    if (uVar3 == 1) {\n      iVar2 = -0xc;\n      pgVar4 = this + 0xc;\nLAB_0025b108:\n      uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2);\n      return uVar1;\n    }\n  }\n  else {\n    if (param_4 != 0x40) {\n      uVar1 = 0xb8;\n      goto LAB_0025b1f0;\n    }\n    if (((param_5 & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar2 = -0x18;\n      pgVar4 = this + 0x18;\n      goto LAB_0025b108;\n    }\n  }\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "gold *pgVar4;" type_identifier (pointer_declarator "*pgVar4" * identifier) ;) (declaration "uint in_stack_0000001c;" type_identifier identifier ;) (if_statement "if ((in_stack_0000001c & 0x800) == 0) {\n    if (((uchar *)0xb < param_1) &&\n       (iVar2 = (*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4), iVar2 == 0)) {\n      if (param_3 == *(uchar **)(this + 8)) {\n        uVar1 = FUN_0025a740(this + 0xc,param_1 + -0xc,param_2);\n        return uVar1;\n      }\n      uVar1 = 0xcb;\nLAB_0025b1f0:\n      uVar1 = (*(code *)PTR_do_gold_unreachable_004323c4)\n                        (PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50);\n      return uVar1;\n    }\n  }\n  else if (param_4 == 0x20) {\n    uVar3 = *(uint *)this;\n    if ((param_5 & 0xffU) == 0) {\n      uVar3 = (((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000;\n    }\n    if (uVar3 == 1) {\n      iVar2 = -0xc;\n      pgVar4 = this + 0xc;\nLAB_0025b108:\n      uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2);\n      return uVar1;\n    }\n  }\n  else {\n    if (param_4 != 0x40) {\n      uVar1 = 0xb8;\n      goto LAB_0025b1f0;\n    }\n    if (((param_5 & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar2 = -0x18;\n      pgVar4 = this + 0x18;\n      goto LAB_0025b108;\n    }\n  }" if (parenthesized_expression "((in_stack_0000001c & 0x800) == 0)" ( (binary_expression "(in_stack_0000001c & 0x800) == 0" (parenthesized_expression "(in_stack_0000001c & 0x800)" ( (binary_expression "in_stack_0000001c & 0x800" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if (((uchar *)0xb < param_1) &&\n       (iVar2 = (*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4), iVar2 == 0)) {\n      if (param_3 == *(uchar **)(this + 8)) {\n        uVar1 = FUN_0025a740(this + 0xc,param_1 + -0xc,param_2);\n        return uVar1;\n      }\n      uVar1 = 0xcb;\nLAB_0025b1f0:\n      uVar1 = (*(code *)PTR_do_gold_unreachable_004323c4)\n                        (PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50);\n      return uVar1;\n    }\n  }" { (if_statement "if (((uchar *)0xb < param_1) &&\n       (iVar2 = (*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4), iVar2 == 0)) {\n      if (param_3 == *(uchar **)(this + 8)) {\n        uVar1 = FUN_0025a740(this + 0xc,param_1 + -0xc,param_2);\n        return uVar1;\n      }\n      uVar1 = 0xcb;\nLAB_0025b1f0:\n      uVar1 = (*(code *)PTR_do_gold_unreachable_004323c4)\n                        (PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50);\n      return uVar1;\n    }" if (parenthesized_expression "(((uchar *)0xb < param_1) &&\n       (iVar2 = (*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4), iVar2 == 0))" ( (binary_expression "((uchar *)0xb < param_1) &&\n       (iVar2 = (*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4), iVar2 == 0)" (parenthesized_expression "((uchar *)0xb < param_1)" ( (binary_expression "(uchar *)0xb < param_1" (cast_expression "(uchar *)0xb" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) < identifier) )) && (parenthesized_expression "(iVar2 = (*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4), iVar2 == 0)" ( (comma_expression "iVar2 = (*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4), iVar2 == 0" (assignment_expression "iVar2 = (*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4)" identifier = (call_expression "(*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4)" (parenthesized_expression "(*(code *)PTR_strncmp_004366a0)" ( (pointer_expression "*(code *)PTR_strncmp_004366a0" * (cast_expression "(code *)PTR_strncmp_004366a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(this,PTR_DAT_0043226c + 0xe68,4)" ( identifier , (binary_expression "PTR_DAT_0043226c + 0xe68" identifier + number_literal) , number_literal )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      if (param_3 == *(uchar **)(this + 8)) {\n        uVar1 = FUN_0025a740(this + 0xc,param_1 + -0xc,param_2);\n        return uVar1;\n      }\n      uVar1 = 0xcb;\nLAB_0025b1f0:\n      uVar1 = (*(code *)PTR_do_gold_unreachable_004323c4)\n                        (PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50);\n      return uVar1;\n    }" { (if_statement "if (param_3 == *(uchar **)(this + 8)) {\n        uVar1 = FUN_0025a740(this + 0xc,param_1 + -0xc,param_2);\n        return uVar1;\n      }" if (parenthesized_expression "(param_3 == *(uchar **)(this + 8))" ( (binary_expression "param_3 == *(uchar **)(this + 8)" identifier == (pointer_expression "*(uchar **)(this + 8)" * (cast_expression "(uchar **)(this + 8)" ( (type_descriptor "uchar **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) )) (compound_statement "{\n        uVar1 = FUN_0025a740(this + 0xc,param_1 + -0xc,param_2);\n        return uVar1;\n      }" { (expression_statement "uVar1 = FUN_0025a740(this + 0xc,param_1 + -0xc,param_2);" (assignment_expression "uVar1 = FUN_0025a740(this + 0xc,param_1 + -0xc,param_2)" identifier = (call_expression "FUN_0025a740(this + 0xc,param_1 + -0xc,param_2)" identifier (argument_list "(this + 0xc,param_1 + -0xc,param_2)" ( (binary_expression "this + 0xc" identifier + number_literal) , (binary_expression "param_1 + -0xc" identifier + number_literal) , identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "uVar1 = 0xcb;" (assignment_expression "uVar1 = 0xcb" identifier = number_literal) ;) (labeled_statement "LAB_0025b1f0:\n      uVar1 = (*(code *)PTR_do_gold_unreachable_004323c4)\n                        (PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50);" statement_identifier : (expression_statement "uVar1 = (*(code *)PTR_do_gold_unreachable_004323c4)\n                        (PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50);" (assignment_expression "uVar1 = (*(code *)PTR_do_gold_unreachable_004323c4)\n                        (PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50)" identifier = (call_expression "(*(code *)PTR_do_gold_unreachable_004323c4)\n                        (PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50)" (parenthesized_expression "(*(code *)PTR_do_gold_unreachable_004323c4)" ( (pointer_expression "*(code *)PTR_do_gold_unreachable_004323c4" * (cast_expression "(code *)PTR_do_gold_unreachable_004323c4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50)" ( (binary_expression "PTR_DAT_0043226c + 0xe48" identifier + number_literal) , identifier , (binary_expression "PTR_DAT_0043226c + 0xf50" identifier + number_literal) )))) ;)) (return_statement "return uVar1;" return identifier ;) })) }) (else_clause "else if (param_4 == 0x20) {\n    uVar3 = *(uint *)this;\n    if ((param_5 & 0xffU) == 0) {\n      uVar3 = (((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000;\n    }\n    if (uVar3 == 1) {\n      iVar2 = -0xc;\n      pgVar4 = this + 0xc;\nLAB_0025b108:\n      uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2);\n      return uVar1;\n    }\n  }\n  else {\n    if (param_4 != 0x40) {\n      uVar1 = 0xb8;\n      goto LAB_0025b1f0;\n    }\n    if (((param_5 & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar2 = -0x18;\n      pgVar4 = this + 0x18;\n      goto LAB_0025b108;\n    }\n  }" else (if_statement "if (param_4 == 0x20) {\n    uVar3 = *(uint *)this;\n    if ((param_5 & 0xffU) == 0) {\n      uVar3 = (((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000;\n    }\n    if (uVar3 == 1) {\n      iVar2 = -0xc;\n      pgVar4 = this + 0xc;\nLAB_0025b108:\n      uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2);\n      return uVar1;\n    }\n  }\n  else {\n    if (param_4 != 0x40) {\n      uVar1 = 0xb8;\n      goto LAB_0025b1f0;\n    }\n    if (((param_5 & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar2 = -0x18;\n      pgVar4 = this + 0x18;\n      goto LAB_0025b108;\n    }\n  }" if (parenthesized_expression "(param_4 == 0x20)" ( (binary_expression "param_4 == 0x20" identifier == number_literal) )) (compound_statement "{\n    uVar3 = *(uint *)this;\n    if ((param_5 & 0xffU) == 0) {\n      uVar3 = (((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000;\n    }\n    if (uVar3 == 1) {\n      iVar2 = -0xc;\n      pgVar4 = this + 0xc;\nLAB_0025b108:\n      uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2);\n      return uVar1;\n    }\n  }" { (expression_statement "uVar3 = *(uint *)this;" (assignment_expression "uVar3 = *(uint *)this" identifier = (pointer_expression "*(uint *)this" * (cast_expression "(uint *)this" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((param_5 & 0xffU) == 0) {\n      uVar3 = (((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000;\n    }" if (parenthesized_expression "((param_5 & 0xffU) == 0)" ( (binary_expression "(param_5 & 0xffU) == 0" (parenthesized_expression "(param_5 & 0xffU)" ( (binary_expression "param_5 & 0xffU" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      uVar3 = (((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000;\n    }" { (expression_statement "uVar3 = (((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000;" (assignment_expression "uVar3 = (((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000" identifier = (binary_expression "(((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000" (parenthesized_expression "(((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10)" ( (binary_expression "((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10" (parenthesized_expression "((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10)" ( (binary_expression "(uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10" (binary_expression "(uVar3 >> 0x10) << 0x18" (parenthesized_expression "(uVar3 >> 0x10)" ( (binary_expression "uVar3 >> 0x10" identifier >> number_literal) )) << number_literal) | (binary_expression "(uVar3 >> 0x18) << 0x10" (parenthesized_expression "(uVar3 >> 0x18)" ( (binary_expression "uVar3 >> 0x18" identifier >> number_literal) )) << number_literal)) )) >> number_literal) )) + (binary_expression "((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000" (parenthesized_expression "((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff)" ( (binary_expression "(uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff" (binary_expression "(uVar3 & 0xff) << 8" (parenthesized_expression "(uVar3 & 0xff)" ( (binary_expression "uVar3 & 0xff" identifier & number_literal) )) << number_literal) | (binary_expression "uVar3 >> 8 & 0xff" (binary_expression "uVar3 >> 8" identifier >> number_literal) & number_literal)) )) * number_literal))) ;) })) (if_statement "if (uVar3 == 1) {\n      iVar2 = -0xc;\n      pgVar4 = this + 0xc;\nLAB_0025b108:\n      uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2);\n      return uVar1;\n    }" if (parenthesized_expression "(uVar3 == 1)" ( (binary_expression "uVar3 == 1" identifier == number_literal) )) (compound_statement "{\n      iVar2 = -0xc;\n      pgVar4 = this + 0xc;\nLAB_0025b108:\n      uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2);\n      return uVar1;\n    }" { (expression_statement "iVar2 = -0xc;" (assignment_expression "iVar2 = -0xc" identifier = number_literal) ;) (expression_statement "pgVar4 = this + 0xc;" (assignment_expression "pgVar4 = this + 0xc" identifier = (binary_expression "this + 0xc" identifier + number_literal)) ;) (labeled_statement "LAB_0025b108:\n      uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2);" statement_identifier : (expression_statement "uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2);" (assignment_expression "uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2)" identifier = (call_expression "FUN_0025a740(pgVar4,param_1 + iVar2,param_2)" identifier (argument_list "(pgVar4,param_1 + iVar2,param_2)" ( identifier , (binary_expression "param_1 + iVar2" identifier + identifier) , identifier )))) ;)) (return_statement "return uVar1;" return identifier ;) })) }) (else_clause "else {\n    if (param_4 != 0x40) {\n      uVar1 = 0xb8;\n      goto LAB_0025b1f0;\n    }\n    if (((param_5 & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar2 = -0x18;\n      pgVar4 = this + 0x18;\n      goto LAB_0025b108;\n    }\n  }" else (compound_statement "{\n    if (param_4 != 0x40) {\n      uVar1 = 0xb8;\n      goto LAB_0025b1f0;\n    }\n    if (((param_5 & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar2 = -0x18;\n      pgVar4 = this + 0x18;\n      goto LAB_0025b108;\n    }\n  }" { (if_statement "if (param_4 != 0x40) {\n      uVar1 = 0xb8;\n      goto LAB_0025b1f0;\n    }" if (parenthesized_expression "(param_4 != 0x40)" ( (binary_expression "param_4 != 0x40" identifier != number_literal) )) (compound_statement "{\n      uVar1 = 0xb8;\n      goto LAB_0025b1f0;\n    }" { (expression_statement "uVar1 = 0xb8;" (assignment_expression "uVar1 = 0xb8" identifier = number_literal) ;) (goto_statement "goto LAB_0025b1f0;" goto statement_identifier ;) })) (if_statement "if (((param_5 & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar2 = -0x18;\n      pgVar4 = this + 0x18;\n      goto LAB_0025b108;\n    }" if (parenthesized_expression "(((param_5 & 0xffU) != 0) && (*(int *)this == 1))" ( (binary_expression "((param_5 & 0xffU) != 0) && (*(int *)this == 1)" (parenthesized_expression "((param_5 & 0xffU) != 0)" ( (binary_expression "(param_5 & 0xffU) != 0" (parenthesized_expression "(param_5 & 0xffU)" ( (binary_expression "param_5 & 0xffU" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(*(int *)this == 1)" ( (binary_expression "*(int *)this == 1" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) ))) )) (compound_statement "{\n      iVar2 = -0x18;\n      pgVar4 = this + 0x18;\n      goto LAB_0025b108;\n    }" { (expression_statement "iVar2 = -0x18;" (assignment_expression "iVar2 = -0x18" identifier = number_literal) ;) (expression_statement "pgVar4 = this + 0x18;" (assignment_expression "pgVar4 = this + 0x18" identifier = (binary_expression "this + 0x18" identifier + number_literal)) ;) (goto_statement "goto LAB_0025b108;" goto statement_identifier ;) })) }))))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "bool __thiscall\ngold::decompress_input_section\n          (gold *this,uchar *compressed_data,ulong compressed_size,uchar *uncompressed_data,\n          ulong uncompressed_size,int size,bool big_endian,Elf_Xword sh_flags)\n\n{\n  bool bVar3;\n  int iVar1;\n  uint uVar2;\n  gold *compressed_data_00;\n  undefined4 uVar4;\n  uint in_stack_0000001c;\n  \n  if ((in_stack_0000001c & 0x800) == 0) {\n    if (((uchar *)0xb < compressed_data) &&\n       (iVar1 = (*(code *)PTR_strncmp_004366a0)(this,PTR_s__0043226c + 0xe68,4), iVar1 == 0)) {\n      if (uncompressed_data != *(uchar **)(this + 8)) {\n        uVar4 = 0xcb;\n        do {\n          (*(code *)PTR_do_gold_unreachable_004323c4)\n                    (PTR_s__0043226c + 0xe48,uVar4,PTR_s__0043226c + 0xf50);\nLAB_0025b208:\n          uVar4 = 0xb8;\n        } while( true );\n      }\n      bVar3 = zlib_decompress((uchar *)(this + 0xc),(ulong)(compressed_data + -0xc),\n                              (uchar *)compressed_size,(ulong)uncompressed_data);\n      return bVar3;\n    }\n  }\n  else if (uncompressed_size == 0x20) {\n    uVar2 = *(uint *)this;\n    if ((size & 0xffU) == 0) {\n      uVar2 = (((uVar2 >> 0x10) << 0x18 | (uVar2 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar2 & 0xff) << 8 | uVar2 >> 8 & 0xff) * 0x10000;\n    }\n    if (uVar2 == 1) {\n      iVar1 = -0xc;\n      compressed_data_00 = this + 0xc;\n      goto LAB_0025b108;\n    }\n  }\n  else {\n    if (uncompressed_size != 0x40) goto LAB_0025b208;\n    if (((size & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar1 = -0x18;\n      compressed_data_00 = this + 0x18;\nLAB_0025b108:\n      bVar3 = zlib_decompress((uchar *)compressed_data_00,(ulong)(compressed_data + iVar1),\n                              (uchar *)compressed_size,(ulong)uncompressed_data);\n      return bVar3;\n    }\n  }\n  return false;\n}\n\n" (function_definition "bool __thiscall\ngold::decompress_input_section\n          (gold *this,uchar *compressed_data,ulong compressed_size,uchar *uncompressed_data,\n          ulong uncompressed_size,int size,bool big_endian,Elf_Xword sh_flags)\n\n{\n  bool bVar3;\n  int iVar1;\n  uint uVar2;\n  gold *compressed_data_00;\n  undefined4 uVar4;\n  uint in_stack_0000001c;\n  \n  if ((in_stack_0000001c & 0x800) == 0) {\n    if (((uchar *)0xb < compressed_data) &&\n       (iVar1 = (*(code *)PTR_strncmp_004366a0)(this,PTR_s__0043226c + 0xe68,4), iVar1 == 0)) {\n      if (uncompressed_data != *(uchar **)(this + 8)) {\n        uVar4 = 0xcb;\n        do {\n          (*(code *)PTR_do_gold_unreachable_004323c4)\n                    (PTR_s__0043226c + 0xe48,uVar4,PTR_s__0043226c + 0xf50);\nLAB_0025b208:\n          uVar4 = 0xb8;\n        } while( true );\n      }\n      bVar3 = zlib_decompress((uchar *)(this + 0xc),(ulong)(compressed_data + -0xc),\n                              (uchar *)compressed_size,(ulong)uncompressed_data);\n      return bVar3;\n    }\n  }\n  else if (uncompressed_size == 0x20) {\n    uVar2 = *(uint *)this;\n    if ((size & 0xffU) == 0) {\n      uVar2 = (((uVar2 >> 0x10) << 0x18 | (uVar2 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar2 & 0xff) << 8 | uVar2 >> 8 & 0xff) * 0x10000;\n    }\n    if (uVar2 == 1) {\n      iVar1 = -0xc;\n      compressed_data_00 = this + 0xc;\n      goto LAB_0025b108;\n    }\n  }\n  else {\n    if (uncompressed_size != 0x40) goto LAB_0025b208;\n    if (((size & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar1 = -0x18;\n      compressed_data_00 = this + 0x18;\nLAB_0025b108:\n      bVar3 = zlib_decompress((uchar *)compressed_data_00,(ulong)(compressed_data + iVar1),\n                              (uchar *)compressed_size,(ulong)uncompressed_data);\n      return bVar3;\n    }\n  }\n  return false;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::" identifier : :) (function_declarator "decompress_input_section\n          (gold *this,uchar *compressed_data,ulong compressed_size,uchar *uncompressed_data,\n          ulong uncompressed_size,int size,bool big_endian,Elf_Xword sh_flags)" identifier (parameter_list "(gold *this,uchar *compressed_data,ulong compressed_size,uchar *uncompressed_data,\n          ulong uncompressed_size,int size,bool big_endian,Elf_Xword sh_flags)" ( (parameter_declaration "gold *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "uchar *compressed_data" type_identifier (pointer_declarator "*compressed_data" * identifier)) , (parameter_declaration "ulong compressed_size" type_identifier identifier) , (parameter_declaration "uchar *uncompressed_data" type_identifier (pointer_declarator "*uncompressed_data" * identifier)) , (parameter_declaration "ulong uncompressed_size" type_identifier identifier) , (parameter_declaration "int size" primitive_type identifier) , (parameter_declaration "bool big_endian" primitive_type identifier) , (parameter_declaration "Elf_Xword sh_flags" type_identifier identifier) ))) (compound_statement "{\n  bool bVar3;\n  int iVar1;\n  uint uVar2;\n  gold *compressed_data_00;\n  undefined4 uVar4;\n  uint in_stack_0000001c;\n  \n  if ((in_stack_0000001c & 0x800) == 0) {\n    if (((uchar *)0xb < compressed_data) &&\n       (iVar1 = (*(code *)PTR_strncmp_004366a0)(this,PTR_s__0043226c + 0xe68,4), iVar1 == 0)) {\n      if (uncompressed_data != *(uchar **)(this + 8)) {\n        uVar4 = 0xcb;\n        do {\n          (*(code *)PTR_do_gold_unreachable_004323c4)\n                    (PTR_s__0043226c + 0xe48,uVar4,PTR_s__0043226c + 0xf50);\nLAB_0025b208:\n          uVar4 = 0xb8;\n        } while( true );\n      }\n      bVar3 = zlib_decompress((uchar *)(this + 0xc),(ulong)(compressed_data + -0xc),\n                              (uchar *)compressed_size,(ulong)uncompressed_data);\n      return bVar3;\n    }\n  }\n  else if (uncompressed_size == 0x20) {\n    uVar2 = *(uint *)this;\n    if ((size & 0xffU) == 0) {\n      uVar2 = (((uVar2 >> 0x10) << 0x18 | (uVar2 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar2 & 0xff) << 8 | uVar2 >> 8 & 0xff) * 0x10000;\n    }\n    if (uVar2 == 1) {\n      iVar1 = -0xc;\n      compressed_data_00 = this + 0xc;\n      goto LAB_0025b108;\n    }\n  }\n  else {\n    if (uncompressed_size != 0x40) goto LAB_0025b208;\n    if (((size & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar1 = -0x18;\n      compressed_data_00 = this + 0x18;\nLAB_0025b108:\n      bVar3 = zlib_decompress((uchar *)compressed_data_00,(ulong)(compressed_data + iVar1),\n                              (uchar *)compressed_size,(ulong)uncompressed_data);\n      return bVar3;\n    }\n  }\n  return false;\n}" { (declaration "bool bVar3;" primitive_type identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "gold *compressed_data_00;" type_identifier (pointer_declarator "*compressed_data_00" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "uint in_stack_0000001c;" type_identifier identifier ;) (if_statement "if ((in_stack_0000001c & 0x800) == 0) {\n    if (((uchar *)0xb < compressed_data) &&\n       (iVar1 = (*(code *)PTR_strncmp_004366a0)(this,PTR_s__0043226c + 0xe68,4), iVar1 == 0)) {\n      if (uncompressed_data != *(uchar **)(this + 8)) {\n        uVar4 = 0xcb;\n        do {\n          (*(code *)PTR_do_gold_unreachable_004323c4)\n                    (PTR_s__0043226c + 0xe48,uVar4,PTR_s__0043226c + 0xf50);\nLAB_0025b208:\n          uVar4 = 0xb8;\n        } while( true );\n      }\n      bVar3 = zlib_decompress((uchar *)(this + 0xc),(ulong)(compressed_data + -0xc),\n                              (uchar *)compressed_size,(ulong)uncompressed_data);\n      return bVar3;\n    }\n  }\n  else if (uncompressed_size == 0x20) {\n    uVar2 = *(uint *)this;\n    if ((size & 0xffU) == 0) {\n      uVar2 = (((uVar2 >> 0x10) << 0x18 | (uVar2 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar2 & 0xff) << 8 | uVar2 >> 8 & 0xff) * 0x10000;\n    }\n    if (uVar2 == 1) {\n      iVar1 = -0xc;\n      compressed_data_00 = this + 0xc;\n      goto LAB_0025b108;\n    }\n  }\n  else {\n    if (uncompressed_size != 0x40) goto LAB_0025b208;\n    if (((size & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar1 = -0x18;\n      compressed_data_00 = this + 0x18;\nLAB_0025b108:\n      bVar3 = zlib_decompress((uchar *)compressed_data_00,(ulong)(compressed_data + iVar1),\n                              (uchar *)compressed_size,(ulong)uncompressed_data);\n      return bVar3;\n    }\n  }" if (parenthesized_expression "((in_stack_0000001c & 0x800) == 0)" ( (binary_expression "(in_stack_0000001c & 0x800) == 0" (parenthesized_expression "(in_stack_0000001c & 0x800)" ( (binary_expression "in_stack_0000001c & 0x800" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if (((uchar *)0xb < compressed_data) &&\n       (iVar1 = (*(code *)PTR_strncmp_004366a0)(this,PTR_s__0043226c + 0xe68,4), iVar1 == 0)) {\n      if (uncompressed_data != *(uchar **)(this + 8)) {\n        uVar4 = 0xcb;\n        do {\n          (*(code *)PTR_do_gold_unreachable_004323c4)\n                    (PTR_s__0043226c + 0xe48,uVar4,PTR_s__0043226c + 0xf50);\nLAB_0025b208:\n          uVar4 = 0xb8;\n        } while( true );\n      }\n      bVar3 = zlib_decompress((uchar *)(this + 0xc),(ulong)(compressed_data + -0xc),\n                              (uchar *)compressed_size,(ulong)uncompressed_data);\n      return bVar3;\n    }\n  }" { (if_statement "if (((uchar *)0xb < compressed_data) &&\n       (iVar1 = (*(code *)PTR_strncmp_004366a0)(this,PTR_s__0043226c + 0xe68,4), iVar1 == 0)) {\n      if (uncompressed_data != *(uchar **)(this + 8)) {\n        uVar4 = 0xcb;\n        do {\n          (*(code *)PTR_do_gold_unreachable_004323c4)\n                    (PTR_s__0043226c + 0xe48,uVar4,PTR_s__0043226c + 0xf50);\nLAB_0025b208:\n          uVar4 = 0xb8;\n        } while( true );\n      }\n      bVar3 = zlib_decompress((uchar *)(this + 0xc),(ulong)(compressed_data + -0xc),\n                              (uchar *)compressed_size,(ulong)uncompressed_data);\n      return bVar3;\n    }" if (parenthesized_expression "(((uchar *)0xb < compressed_data) &&\n       (iVar1 = (*(code *)PTR_strncmp_004366a0)(this,PTR_s__0043226c + 0xe68,4), iVar1 == 0))" ( (binary_expression "((uchar *)0xb < compressed_data) &&\n       (iVar1 = (*(code *)PTR_strncmp_004366a0)(this,PTR_s__0043226c + 0xe68,4), iVar1 == 0)" (parenthesized_expression "((uchar *)0xb < compressed_data)" ( (binary_expression "(uchar *)0xb < compressed_data" (cast_expression "(uchar *)0xb" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) < identifier) )) && (parenthesized_expression "(iVar1 = (*(code *)PTR_strncmp_004366a0)(this,PTR_s__0043226c + 0xe68,4), iVar1 == 0)" ( (comma_expression "iVar1 = (*(code *)PTR_strncmp_004366a0)(this,PTR_s__0043226c + 0xe68,4), iVar1 == 0" (assignment_expression "iVar1 = (*(code *)PTR_strncmp_004366a0)(this,PTR_s__0043226c + 0xe68,4)" identifier = (call_expression "(*(code *)PTR_strncmp_004366a0)(this,PTR_s__0043226c + 0xe68,4)" (parenthesized_expression "(*(code *)PTR_strncmp_004366a0)" ( (pointer_expression "*(code *)PTR_strncmp_004366a0" * (cast_expression "(code *)PTR_strncmp_004366a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(this,PTR_s__0043226c + 0xe68,4)" ( identifier , (binary_expression "PTR_s__0043226c + 0xe68" identifier + number_literal) , number_literal )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      if (uncompressed_data != *(uchar **)(this + 8)) {\n        uVar4 = 0xcb;\n        do {\n          (*(code *)PTR_do_gold_unreachable_004323c4)\n                    (PTR_s__0043226c + 0xe48,uVar4,PTR_s__0043226c + 0xf50);\nLAB_0025b208:\n          uVar4 = 0xb8;\n        } while( true );\n      }\n      bVar3 = zlib_decompress((uchar *)(this + 0xc),(ulong)(compressed_data + -0xc),\n                              (uchar *)compressed_size,(ulong)uncompressed_data);\n      return bVar3;\n    }" { (if_statement "if (uncompressed_data != *(uchar **)(this + 8)) {\n        uVar4 = 0xcb;\n        do {\n          (*(code *)PTR_do_gold_unreachable_004323c4)\n                    (PTR_s__0043226c + 0xe48,uVar4,PTR_s__0043226c + 0xf50);\nLAB_0025b208:\n          uVar4 = 0xb8;\n        } while( true );\n      }" if (parenthesized_expression "(uncompressed_data != *(uchar **)(this + 8))" ( (binary_expression "uncompressed_data != *(uchar **)(this + 8)" identifier != (pointer_expression "*(uchar **)(this + 8)" * (cast_expression "(uchar **)(this + 8)" ( (type_descriptor "uchar **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) )) (compound_statement "{\n        uVar4 = 0xcb;\n        do {\n          (*(code *)PTR_do_gold_unreachable_004323c4)\n                    (PTR_s__0043226c + 0xe48,uVar4,PTR_s__0043226c + 0xf50);\nLAB_0025b208:\n          uVar4 = 0xb8;\n        } while( true );\n      }" { (expression_statement "uVar4 = 0xcb;" (assignment_expression "uVar4 = 0xcb" identifier = number_literal) ;) (do_statement "do {\n          (*(code *)PTR_do_gold_unreachable_004323c4)\n                    (PTR_s__0043226c + 0xe48,uVar4,PTR_s__0043226c + 0xf50);\nLAB_0025b208:\n          uVar4 = 0xb8;\n        } while( true );" do (compound_statement "{\n          (*(code *)PTR_do_gold_unreachable_004323c4)\n                    (PTR_s__0043226c + 0xe48,uVar4,PTR_s__0043226c + 0xf50);\nLAB_0025b208:\n          uVar4 = 0xb8;\n        }" { (expression_statement "(*(code *)PTR_do_gold_unreachable_004323c4)\n                    (PTR_s__0043226c + 0xe48,uVar4,PTR_s__0043226c + 0xf50);" (call_expression "(*(code *)PTR_do_gold_unreachable_004323c4)\n                    (PTR_s__0043226c + 0xe48,uVar4,PTR_s__0043226c + 0xf50)" (parenthesized_expression "(*(code *)PTR_do_gold_unreachable_004323c4)" ( (pointer_expression "*(code *)PTR_do_gold_unreachable_004323c4" * (cast_expression "(code *)PTR_do_gold_unreachable_004323c4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s__0043226c + 0xe48,uVar4,PTR_s__0043226c + 0xf50)" ( (binary_expression "PTR_s__0043226c + 0xe48" identifier + number_literal) , identifier , (binary_expression "PTR_s__0043226c + 0xf50" identifier + number_literal) ))) ;) (labeled_statement "LAB_0025b208:\n          uVar4 = 0xb8;" statement_identifier : (expression_statement "uVar4 = 0xb8;" (assignment_expression "uVar4 = 0xb8" identifier = number_literal) ;)) }) while (parenthesized_expression "( true )" ( true )) ;) })) (expression_statement "bVar3 = zlib_decompress((uchar *)(this + 0xc),(ulong)(compressed_data + -0xc),\n                              (uchar *)compressed_size,(ulong)uncompressed_data);" (assignment_expression "bVar3 = zlib_decompress((uchar *)(this + 0xc),(ulong)(compressed_data + -0xc),\n                              (uchar *)compressed_size,(ulong)uncompressed_data)" identifier = (call_expression "zlib_decompress((uchar *)(this + 0xc),(ulong)(compressed_data + -0xc),\n                              (uchar *)compressed_size,(ulong)uncompressed_data)" identifier (argument_list "((uchar *)(this + 0xc),(ulong)(compressed_data + -0xc),\n                              (uchar *)compressed_size,(ulong)uncompressed_data)" ( (cast_expression "(uchar *)(this + 0xc)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) ))) , (call_expression "(ulong)(compressed_data + -0xc)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(compressed_data + -0xc)" ( (binary_expression "compressed_data + -0xc" identifier + number_literal) ))) , (cast_expression "(uchar *)compressed_size" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(ulong)uncompressed_data" ( (type_descriptor "ulong" type_identifier) ) identifier) )))) ;) (return_statement "return bVar3;" return identifier ;) })) }) (else_clause "else if (uncompressed_size == 0x20) {\n    uVar2 = *(uint *)this;\n    if ((size & 0xffU) == 0) {\n      uVar2 = (((uVar2 >> 0x10) << 0x18 | (uVar2 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar2 & 0xff) << 8 | uVar2 >> 8 & 0xff) * 0x10000;\n    }\n    if (uVar2 == 1) {\n      iVar1 = -0xc;\n      compressed_data_00 = this + 0xc;\n      goto LAB_0025b108;\n    }\n  }\n  else {\n    if (uncompressed_size != 0x40) goto LAB_0025b208;\n    if (((size & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar1 = -0x18;\n      compressed_data_00 = this + 0x18;\nLAB_0025b108:\n      bVar3 = zlib_decompress((uchar *)compressed_data_00,(ulong)(compressed_data + iVar1),\n                              (uchar *)compressed_size,(ulong)uncompressed_data);\n      return bVar3;\n    }\n  }" else (if_statement "if (uncompressed_size == 0x20) {\n    uVar2 = *(uint *)this;\n    if ((size & 0xffU) == 0) {\n      uVar2 = (((uVar2 >> 0x10) << 0x18 | (uVar2 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar2 & 0xff) << 8 | uVar2 >> 8 & 0xff) * 0x10000;\n    }\n    if (uVar2 == 1) {\n      iVar1 = -0xc;\n      compressed_data_00 = this + 0xc;\n      goto LAB_0025b108;\n    }\n  }\n  else {\n    if (uncompressed_size != 0x40) goto LAB_0025b208;\n    if (((size & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar1 = -0x18;\n      compressed_data_00 = this + 0x18;\nLAB_0025b108:\n      bVar3 = zlib_decompress((uchar *)compressed_data_00,(ulong)(compressed_data + iVar1),\n                              (uchar *)compressed_size,(ulong)uncompressed_data);\n      return bVar3;\n    }\n  }" if (parenthesized_expression "(uncompressed_size == 0x20)" ( (binary_expression "uncompressed_size == 0x20" identifier == number_literal) )) (compound_statement "{\n    uVar2 = *(uint *)this;\n    if ((size & 0xffU) == 0) {\n      uVar2 = (((uVar2 >> 0x10) << 0x18 | (uVar2 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar2 & 0xff) << 8 | uVar2 >> 8 & 0xff) * 0x10000;\n    }\n    if (uVar2 == 1) {\n      iVar1 = -0xc;\n      compressed_data_00 = this + 0xc;\n      goto LAB_0025b108;\n    }\n  }" { (expression_statement "uVar2 = *(uint *)this;" (assignment_expression "uVar2 = *(uint *)this" identifier = (pointer_expression "*(uint *)this" * (cast_expression "(uint *)this" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((size & 0xffU) == 0) {\n      uVar2 = (((uVar2 >> 0x10) << 0x18 | (uVar2 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar2 & 0xff) << 8 | uVar2 >> 8 & 0xff) * 0x10000;\n    }" if (parenthesized_expression "((size & 0xffU) == 0)" ( (binary_expression "(size & 0xffU) == 0" (parenthesized_expression "(size & 0xffU)" ( (binary_expression "size & 0xffU" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      uVar2 = (((uVar2 >> 0x10) << 0x18 | (uVar2 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar2 & 0xff) << 8 | uVar2 >> 8 & 0xff) * 0x10000;\n    }" { (expression_statement "uVar2 = (((uVar2 >> 0x10) << 0x18 | (uVar2 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar2 & 0xff) << 8 | uVar2 >> 8 & 0xff) * 0x10000;" (assignment_expression "uVar2 = (((uVar2 >> 0x10) << 0x18 | (uVar2 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar2 & 0xff) << 8 | uVar2 >> 8 & 0xff) * 0x10000" identifier = (binary_expression "(((uVar2 >> 0x10) << 0x18 | (uVar2 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar2 & 0xff) << 8 | uVar2 >> 8 & 0xff) * 0x10000" (parenthesized_expression "(((uVar2 >> 0x10) << 0x18 | (uVar2 >> 0x18) << 0x10) >> 0x10)" ( (binary_expression "((uVar2 >> 0x10) << 0x18 | (uVar2 >> 0x18) << 0x10) >> 0x10" (parenthesized_expression "((uVar2 >> 0x10) << 0x18 | (uVar2 >> 0x18) << 0x10)" ( (binary_expression "(uVar2 >> 0x10) << 0x18 | (uVar2 >> 0x18) << 0x10" (binary_expression "(uVar2 >> 0x10) << 0x18" (parenthesized_expression "(uVar2 >> 0x10)" ( (binary_expression "uVar2 >> 0x10" identifier >> number_literal) )) << number_literal) | (binary_expression "(uVar2 >> 0x18) << 0x10" (parenthesized_expression "(uVar2 >> 0x18)" ( (binary_expression "uVar2 >> 0x18" identifier >> number_literal) )) << number_literal)) )) >> number_literal) )) + (binary_expression "((uVar2 & 0xff) << 8 | uVar2 >> 8 & 0xff) * 0x10000" (parenthesized_expression "((uVar2 & 0xff) << 8 | uVar2 >> 8 & 0xff)" ( (binary_expression "(uVar2 & 0xff) << 8 | uVar2 >> 8 & 0xff" (binary_expression "(uVar2 & 0xff) << 8" (parenthesized_expression "(uVar2 & 0xff)" ( (binary_expression "uVar2 & 0xff" identifier & number_literal) )) << number_literal) | (binary_expression "uVar2 >> 8 & 0xff" (binary_expression "uVar2 >> 8" identifier >> number_literal) & number_literal)) )) * number_literal))) ;) })) (if_statement "if (uVar2 == 1) {\n      iVar1 = -0xc;\n      compressed_data_00 = this + 0xc;\n      goto LAB_0025b108;\n    }" if (parenthesized_expression "(uVar2 == 1)" ( (binary_expression "uVar2 == 1" identifier == number_literal) )) (compound_statement "{\n      iVar1 = -0xc;\n      compressed_data_00 = this + 0xc;\n      goto LAB_0025b108;\n    }" { (expression_statement "iVar1 = -0xc;" (assignment_expression "iVar1 = -0xc" identifier = number_literal) ;) (expression_statement "compressed_data_00 = this + 0xc;" (assignment_expression "compressed_data_00 = this + 0xc" identifier = (binary_expression "this + 0xc" identifier + number_literal)) ;) (goto_statement "goto LAB_0025b108;" goto statement_identifier ;) })) }) (else_clause "else {\n    if (uncompressed_size != 0x40) goto LAB_0025b208;\n    if (((size & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar1 = -0x18;\n      compressed_data_00 = this + 0x18;\nLAB_0025b108:\n      bVar3 = zlib_decompress((uchar *)compressed_data_00,(ulong)(compressed_data + iVar1),\n                              (uchar *)compressed_size,(ulong)uncompressed_data);\n      return bVar3;\n    }\n  }" else (compound_statement "{\n    if (uncompressed_size != 0x40) goto LAB_0025b208;\n    if (((size & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar1 = -0x18;\n      compressed_data_00 = this + 0x18;\nLAB_0025b108:\n      bVar3 = zlib_decompress((uchar *)compressed_data_00,(ulong)(compressed_data + iVar1),\n                              (uchar *)compressed_size,(ulong)uncompressed_data);\n      return bVar3;\n    }\n  }" { (if_statement "if (uncompressed_size != 0x40) goto LAB_0025b208;" if (parenthesized_expression "(uncompressed_size != 0x40)" ( (binary_expression "uncompressed_size != 0x40" identifier != number_literal) )) (goto_statement "goto LAB_0025b208;" goto statement_identifier ;)) (if_statement "if (((size & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar1 = -0x18;\n      compressed_data_00 = this + 0x18;\nLAB_0025b108:\n      bVar3 = zlib_decompress((uchar *)compressed_data_00,(ulong)(compressed_data + iVar1),\n                              (uchar *)compressed_size,(ulong)uncompressed_data);\n      return bVar3;\n    }" if (parenthesized_expression "(((size & 0xffU) != 0) && (*(int *)this == 1))" ( (binary_expression "((size & 0xffU) != 0) && (*(int *)this == 1)" (parenthesized_expression "((size & 0xffU) != 0)" ( (binary_expression "(size & 0xffU) != 0" (parenthesized_expression "(size & 0xffU)" ( (binary_expression "size & 0xffU" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(*(int *)this == 1)" ( (binary_expression "*(int *)this == 1" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) ))) )) (compound_statement "{\n      iVar1 = -0x18;\n      compressed_data_00 = this + 0x18;\nLAB_0025b108:\n      bVar3 = zlib_decompress((uchar *)compressed_data_00,(ulong)(compressed_data + iVar1),\n                              (uchar *)compressed_size,(ulong)uncompressed_data);\n      return bVar3;\n    }" { (expression_statement "iVar1 = -0x18;" (assignment_expression "iVar1 = -0x18" identifier = number_literal) ;) (expression_statement "compressed_data_00 = this + 0x18;" (assignment_expression "compressed_data_00 = this + 0x18" identifier = (binary_expression "this + 0x18" identifier + number_literal)) ;) (labeled_statement "LAB_0025b108:\n      bVar3 = zlib_decompress((uchar *)compressed_data_00,(ulong)(compressed_data + iVar1),\n                              (uchar *)compressed_size,(ulong)uncompressed_data);" statement_identifier : (expression_statement "bVar3 = zlib_decompress((uchar *)compressed_data_00,(ulong)(compressed_data + iVar1),\n                              (uchar *)compressed_size,(ulong)uncompressed_data);" (assignment_expression "bVar3 = zlib_decompress((uchar *)compressed_data_00,(ulong)(compressed_data + iVar1),\n                              (uchar *)compressed_size,(ulong)uncompressed_data)" identifier = (call_expression "zlib_decompress((uchar *)compressed_data_00,(ulong)(compressed_data + iVar1),\n                              (uchar *)compressed_size,(ulong)uncompressed_data)" identifier (argument_list "((uchar *)compressed_data_00,(ulong)(compressed_data + iVar1),\n                              (uchar *)compressed_size,(ulong)uncompressed_data)" ( (cast_expression "(uchar *)compressed_data_00" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (call_expression "(ulong)(compressed_data + iVar1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(compressed_data + iVar1)" ( (binary_expression "compressed_data + iVar1" identifier + identifier) ))) , (cast_expression "(uchar *)compressed_size" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(ulong)uncompressed_data" ( (type_descriptor "ulong" type_identifier) ) identifier) )))) ;)) (return_statement "return bVar3;" return identifier ;) })) }))))) (return_statement "return false;" return false ;) })))
(translation_unit "undefined4 __thiscall\ngold::decompress_input_section\n          (gold *this,uchar *param_1,ulong param_2,uchar *param_3,ulong param_4,int param_5,\n          bool param_6,ulonglong param_7)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  uint uVar3;\n  gold *pgVar4;\n  uint in_stack_0000001c;\n  \n  if ((in_stack_0000001c & 0x800) == 0) {\n    if (((uchar *)0xb < param_1) &&\n       (iVar2 = (*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4), iVar2 == 0)) {\n      if (param_3 == *(uchar **)(this + 8)) {\n        uVar1 = FUN_0025a740(this + 0xc,param_1 + -0xc,param_2);\n        return uVar1;\n      }\n      uVar1 = 0xcb;\nLAB_0025b1f0:\n      uVar1 = (*(code *)PTR_do_gold_unreachable_004323c4)\n                        (PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50);\n      return uVar1;\n    }\n  }\n  else if (param_4 == 0x20) {\n    uVar3 = *(uint *)this;\n    if ((param_5 & 0xffU) == 0) {\n      uVar3 = (((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000;\n    }\n    if (uVar3 == 1) {\n      iVar2 = -0xc;\n      pgVar4 = this + 0xc;\nLAB_0025b108:\n      uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2);\n      return uVar1;\n    }\n  }\n  else {\n    if (param_4 != 0x40) {\n      uVar1 = 0xb8;\n      goto LAB_0025b1f0;\n    }\n    if (((param_5 & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar2 = -0x18;\n      pgVar4 = this + 0x18;\n      goto LAB_0025b108;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 __thiscall\ngold::decompress_input_section\n          (gold *this,uchar *param_1,ulong param_2,uchar *param_3,ulong param_4,int param_5,\n          bool param_6,ulonglong param_7)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  uint uVar3;\n  gold *pgVar4;\n  uint in_stack_0000001c;\n  \n  if ((in_stack_0000001c & 0x800) == 0) {\n    if (((uchar *)0xb < param_1) &&\n       (iVar2 = (*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4), iVar2 == 0)) {\n      if (param_3 == *(uchar **)(this + 8)) {\n        uVar1 = FUN_0025a740(this + 0xc,param_1 + -0xc,param_2);\n        return uVar1;\n      }\n      uVar1 = 0xcb;\nLAB_0025b1f0:\n      uVar1 = (*(code *)PTR_do_gold_unreachable_004323c4)\n                        (PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50);\n      return uVar1;\n    }\n  }\n  else if (param_4 == 0x20) {\n    uVar3 = *(uint *)this;\n    if ((param_5 & 0xffU) == 0) {\n      uVar3 = (((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000;\n    }\n    if (uVar3 == 1) {\n      iVar2 = -0xc;\n      pgVar4 = this + 0xc;\nLAB_0025b108:\n      uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2);\n      return uVar1;\n    }\n  }\n  else {\n    if (param_4 != 0x40) {\n      uVar1 = 0xb8;\n      goto LAB_0025b1f0;\n    }\n    if (((param_5 & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar2 = -0x18;\n      pgVar4 = this + 0x18;\n      goto LAB_0025b108;\n    }\n  }\n  return 0;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::" identifier : :) (function_declarator "decompress_input_section\n          (gold *this,uchar *param_1,ulong param_2,uchar *param_3,ulong param_4,int param_5,\n          bool param_6,ulonglong param_7)" identifier (parameter_list "(gold *this,uchar *param_1,ulong param_2,uchar *param_3,ulong param_4,int param_5,\n          bool param_6,ulonglong param_7)" ( (parameter_declaration "gold *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "uchar *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "ulong param_2" type_identifier identifier) , (parameter_declaration "uchar *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "ulong param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "bool param_6" primitive_type identifier) , (parameter_declaration "ulonglong param_7" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  uint uVar3;\n  gold *pgVar4;\n  uint in_stack_0000001c;\n  \n  if ((in_stack_0000001c & 0x800) == 0) {\n    if (((uchar *)0xb < param_1) &&\n       (iVar2 = (*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4), iVar2 == 0)) {\n      if (param_3 == *(uchar **)(this + 8)) {\n        uVar1 = FUN_0025a740(this + 0xc,param_1 + -0xc,param_2);\n        return uVar1;\n      }\n      uVar1 = 0xcb;\nLAB_0025b1f0:\n      uVar1 = (*(code *)PTR_do_gold_unreachable_004323c4)\n                        (PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50);\n      return uVar1;\n    }\n  }\n  else if (param_4 == 0x20) {\n    uVar3 = *(uint *)this;\n    if ((param_5 & 0xffU) == 0) {\n      uVar3 = (((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000;\n    }\n    if (uVar3 == 1) {\n      iVar2 = -0xc;\n      pgVar4 = this + 0xc;\nLAB_0025b108:\n      uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2);\n      return uVar1;\n    }\n  }\n  else {\n    if (param_4 != 0x40) {\n      uVar1 = 0xb8;\n      goto LAB_0025b1f0;\n    }\n    if (((param_5 & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar2 = -0x18;\n      pgVar4 = this + 0x18;\n      goto LAB_0025b108;\n    }\n  }\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "gold *pgVar4;" type_identifier (pointer_declarator "*pgVar4" * identifier) ;) (declaration "uint in_stack_0000001c;" type_identifier identifier ;) (if_statement "if ((in_stack_0000001c & 0x800) == 0) {\n    if (((uchar *)0xb < param_1) &&\n       (iVar2 = (*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4), iVar2 == 0)) {\n      if (param_3 == *(uchar **)(this + 8)) {\n        uVar1 = FUN_0025a740(this + 0xc,param_1 + -0xc,param_2);\n        return uVar1;\n      }\n      uVar1 = 0xcb;\nLAB_0025b1f0:\n      uVar1 = (*(code *)PTR_do_gold_unreachable_004323c4)\n                        (PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50);\n      return uVar1;\n    }\n  }\n  else if (param_4 == 0x20) {\n    uVar3 = *(uint *)this;\n    if ((param_5 & 0xffU) == 0) {\n      uVar3 = (((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000;\n    }\n    if (uVar3 == 1) {\n      iVar2 = -0xc;\n      pgVar4 = this + 0xc;\nLAB_0025b108:\n      uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2);\n      return uVar1;\n    }\n  }\n  else {\n    if (param_4 != 0x40) {\n      uVar1 = 0xb8;\n      goto LAB_0025b1f0;\n    }\n    if (((param_5 & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar2 = -0x18;\n      pgVar4 = this + 0x18;\n      goto LAB_0025b108;\n    }\n  }" if (parenthesized_expression "((in_stack_0000001c & 0x800) == 0)" ( (binary_expression "(in_stack_0000001c & 0x800) == 0" (parenthesized_expression "(in_stack_0000001c & 0x800)" ( (binary_expression "in_stack_0000001c & 0x800" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if (((uchar *)0xb < param_1) &&\n       (iVar2 = (*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4), iVar2 == 0)) {\n      if (param_3 == *(uchar **)(this + 8)) {\n        uVar1 = FUN_0025a740(this + 0xc,param_1 + -0xc,param_2);\n        return uVar1;\n      }\n      uVar1 = 0xcb;\nLAB_0025b1f0:\n      uVar1 = (*(code *)PTR_do_gold_unreachable_004323c4)\n                        (PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50);\n      return uVar1;\n    }\n  }" { (if_statement "if (((uchar *)0xb < param_1) &&\n       (iVar2 = (*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4), iVar2 == 0)) {\n      if (param_3 == *(uchar **)(this + 8)) {\n        uVar1 = FUN_0025a740(this + 0xc,param_1 + -0xc,param_2);\n        return uVar1;\n      }\n      uVar1 = 0xcb;\nLAB_0025b1f0:\n      uVar1 = (*(code *)PTR_do_gold_unreachable_004323c4)\n                        (PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50);\n      return uVar1;\n    }" if (parenthesized_expression "(((uchar *)0xb < param_1) &&\n       (iVar2 = (*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4), iVar2 == 0))" ( (binary_expression "((uchar *)0xb < param_1) &&\n       (iVar2 = (*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4), iVar2 == 0)" (parenthesized_expression "((uchar *)0xb < param_1)" ( (binary_expression "(uchar *)0xb < param_1" (cast_expression "(uchar *)0xb" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) < identifier) )) && (parenthesized_expression "(iVar2 = (*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4), iVar2 == 0)" ( (comma_expression "iVar2 = (*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4), iVar2 == 0" (assignment_expression "iVar2 = (*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4)" identifier = (call_expression "(*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4)" (parenthesized_expression "(*(code *)PTR_strncmp_004366a0)" ( (pointer_expression "*(code *)PTR_strncmp_004366a0" * (cast_expression "(code *)PTR_strncmp_004366a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(this,PTR_DAT_0043226c + 0xe68,4)" ( identifier , (binary_expression "PTR_DAT_0043226c + 0xe68" identifier + number_literal) , number_literal )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      if (param_3 == *(uchar **)(this + 8)) {\n        uVar1 = FUN_0025a740(this + 0xc,param_1 + -0xc,param_2);\n        return uVar1;\n      }\n      uVar1 = 0xcb;\nLAB_0025b1f0:\n      uVar1 = (*(code *)PTR_do_gold_unreachable_004323c4)\n                        (PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50);\n      return uVar1;\n    }" { (if_statement "if (param_3 == *(uchar **)(this + 8)) {\n        uVar1 = FUN_0025a740(this + 0xc,param_1 + -0xc,param_2);\n        return uVar1;\n      }" if (parenthesized_expression "(param_3 == *(uchar **)(this + 8))" ( (binary_expression "param_3 == *(uchar **)(this + 8)" identifier == (pointer_expression "*(uchar **)(this + 8)" * (cast_expression "(uchar **)(this + 8)" ( (type_descriptor "uchar **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) )) (compound_statement "{\n        uVar1 = FUN_0025a740(this + 0xc,param_1 + -0xc,param_2);\n        return uVar1;\n      }" { (expression_statement "uVar1 = FUN_0025a740(this + 0xc,param_1 + -0xc,param_2);" (assignment_expression "uVar1 = FUN_0025a740(this + 0xc,param_1 + -0xc,param_2)" identifier = (call_expression "FUN_0025a740(this + 0xc,param_1 + -0xc,param_2)" identifier (argument_list "(this + 0xc,param_1 + -0xc,param_2)" ( (binary_expression "this + 0xc" identifier + number_literal) , (binary_expression "param_1 + -0xc" identifier + number_literal) , identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "uVar1 = 0xcb;" (assignment_expression "uVar1 = 0xcb" identifier = number_literal) ;) (labeled_statement "LAB_0025b1f0:\n      uVar1 = (*(code *)PTR_do_gold_unreachable_004323c4)\n                        (PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50);" statement_identifier : (expression_statement "uVar1 = (*(code *)PTR_do_gold_unreachable_004323c4)\n                        (PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50);" (assignment_expression "uVar1 = (*(code *)PTR_do_gold_unreachable_004323c4)\n                        (PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50)" identifier = (call_expression "(*(code *)PTR_do_gold_unreachable_004323c4)\n                        (PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50)" (parenthesized_expression "(*(code *)PTR_do_gold_unreachable_004323c4)" ( (pointer_expression "*(code *)PTR_do_gold_unreachable_004323c4" * (cast_expression "(code *)PTR_do_gold_unreachable_004323c4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50)" ( (binary_expression "PTR_DAT_0043226c + 0xe48" identifier + number_literal) , identifier , (binary_expression "PTR_DAT_0043226c + 0xf50" identifier + number_literal) )))) ;)) (return_statement "return uVar1;" return identifier ;) })) }) (else_clause "else if (param_4 == 0x20) {\n    uVar3 = *(uint *)this;\n    if ((param_5 & 0xffU) == 0) {\n      uVar3 = (((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000;\n    }\n    if (uVar3 == 1) {\n      iVar2 = -0xc;\n      pgVar4 = this + 0xc;\nLAB_0025b108:\n      uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2);\n      return uVar1;\n    }\n  }\n  else {\n    if (param_4 != 0x40) {\n      uVar1 = 0xb8;\n      goto LAB_0025b1f0;\n    }\n    if (((param_5 & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar2 = -0x18;\n      pgVar4 = this + 0x18;\n      goto LAB_0025b108;\n    }\n  }" else (if_statement "if (param_4 == 0x20) {\n    uVar3 = *(uint *)this;\n    if ((param_5 & 0xffU) == 0) {\n      uVar3 = (((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000;\n    }\n    if (uVar3 == 1) {\n      iVar2 = -0xc;\n      pgVar4 = this + 0xc;\nLAB_0025b108:\n      uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2);\n      return uVar1;\n    }\n  }\n  else {\n    if (param_4 != 0x40) {\n      uVar1 = 0xb8;\n      goto LAB_0025b1f0;\n    }\n    if (((param_5 & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar2 = -0x18;\n      pgVar4 = this + 0x18;\n      goto LAB_0025b108;\n    }\n  }" if (parenthesized_expression "(param_4 == 0x20)" ( (binary_expression "param_4 == 0x20" identifier == number_literal) )) (compound_statement "{\n    uVar3 = *(uint *)this;\n    if ((param_5 & 0xffU) == 0) {\n      uVar3 = (((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000;\n    }\n    if (uVar3 == 1) {\n      iVar2 = -0xc;\n      pgVar4 = this + 0xc;\nLAB_0025b108:\n      uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2);\n      return uVar1;\n    }\n  }" { (expression_statement "uVar3 = *(uint *)this;" (assignment_expression "uVar3 = *(uint *)this" identifier = (pointer_expression "*(uint *)this" * (cast_expression "(uint *)this" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((param_5 & 0xffU) == 0) {\n      uVar3 = (((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000;\n    }" if (parenthesized_expression "((param_5 & 0xffU) == 0)" ( (binary_expression "(param_5 & 0xffU) == 0" (parenthesized_expression "(param_5 & 0xffU)" ( (binary_expression "param_5 & 0xffU" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      uVar3 = (((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000;\n    }" { (expression_statement "uVar3 = (((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000;" (assignment_expression "uVar3 = (((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000" identifier = (binary_expression "(((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000" (parenthesized_expression "(((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10)" ( (binary_expression "((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10" (parenthesized_expression "((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10)" ( (binary_expression "(uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10" (binary_expression "(uVar3 >> 0x10) << 0x18" (parenthesized_expression "(uVar3 >> 0x10)" ( (binary_expression "uVar3 >> 0x10" identifier >> number_literal) )) << number_literal) | (binary_expression "(uVar3 >> 0x18) << 0x10" (parenthesized_expression "(uVar3 >> 0x18)" ( (binary_expression "uVar3 >> 0x18" identifier >> number_literal) )) << number_literal)) )) >> number_literal) )) + (binary_expression "((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000" (parenthesized_expression "((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff)" ( (binary_expression "(uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff" (binary_expression "(uVar3 & 0xff) << 8" (parenthesized_expression "(uVar3 & 0xff)" ( (binary_expression "uVar3 & 0xff" identifier & number_literal) )) << number_literal) | (binary_expression "uVar3 >> 8 & 0xff" (binary_expression "uVar3 >> 8" identifier >> number_literal) & number_literal)) )) * number_literal))) ;) })) (if_statement "if (uVar3 == 1) {\n      iVar2 = -0xc;\n      pgVar4 = this + 0xc;\nLAB_0025b108:\n      uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2);\n      return uVar1;\n    }" if (parenthesized_expression "(uVar3 == 1)" ( (binary_expression "uVar3 == 1" identifier == number_literal) )) (compound_statement "{\n      iVar2 = -0xc;\n      pgVar4 = this + 0xc;\nLAB_0025b108:\n      uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2);\n      return uVar1;\n    }" { (expression_statement "iVar2 = -0xc;" (assignment_expression "iVar2 = -0xc" identifier = number_literal) ;) (expression_statement "pgVar4 = this + 0xc;" (assignment_expression "pgVar4 = this + 0xc" identifier = (binary_expression "this + 0xc" identifier + number_literal)) ;) (labeled_statement "LAB_0025b108:\n      uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2);" statement_identifier : (expression_statement "uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2);" (assignment_expression "uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2)" identifier = (call_expression "FUN_0025a740(pgVar4,param_1 + iVar2,param_2)" identifier (argument_list "(pgVar4,param_1 + iVar2,param_2)" ( identifier , (binary_expression "param_1 + iVar2" identifier + identifier) , identifier )))) ;)) (return_statement "return uVar1;" return identifier ;) })) }) (else_clause "else {\n    if (param_4 != 0x40) {\n      uVar1 = 0xb8;\n      goto LAB_0025b1f0;\n    }\n    if (((param_5 & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar2 = -0x18;\n      pgVar4 = this + 0x18;\n      goto LAB_0025b108;\n    }\n  }" else (compound_statement "{\n    if (param_4 != 0x40) {\n      uVar1 = 0xb8;\n      goto LAB_0025b1f0;\n    }\n    if (((param_5 & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar2 = -0x18;\n      pgVar4 = this + 0x18;\n      goto LAB_0025b108;\n    }\n  }" { (if_statement "if (param_4 != 0x40) {\n      uVar1 = 0xb8;\n      goto LAB_0025b1f0;\n    }" if (parenthesized_expression "(param_4 != 0x40)" ( (binary_expression "param_4 != 0x40" identifier != number_literal) )) (compound_statement "{\n      uVar1 = 0xb8;\n      goto LAB_0025b1f0;\n    }" { (expression_statement "uVar1 = 0xb8;" (assignment_expression "uVar1 = 0xb8" identifier = number_literal) ;) (goto_statement "goto LAB_0025b1f0;" goto statement_identifier ;) })) (if_statement "if (((param_5 & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar2 = -0x18;\n      pgVar4 = this + 0x18;\n      goto LAB_0025b108;\n    }" if (parenthesized_expression "(((param_5 & 0xffU) != 0) && (*(int *)this == 1))" ( (binary_expression "((param_5 & 0xffU) != 0) && (*(int *)this == 1)" (parenthesized_expression "((param_5 & 0xffU) != 0)" ( (binary_expression "(param_5 & 0xffU) != 0" (parenthesized_expression "(param_5 & 0xffU)" ( (binary_expression "param_5 & 0xffU" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(*(int *)this == 1)" ( (binary_expression "*(int *)this == 1" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) ))) )) (compound_statement "{\n      iVar2 = -0x18;\n      pgVar4 = this + 0x18;\n      goto LAB_0025b108;\n    }" { (expression_statement "iVar2 = -0x18;" (assignment_expression "iVar2 = -0x18" identifier = number_literal) ;) (expression_statement "pgVar4 = this + 0x18;" (assignment_expression "pgVar4 = this + 0x18" identifier = (binary_expression "this + 0x18" identifier + number_literal)) ;) (goto_statement "goto LAB_0025b108;" goto statement_identifier ;) })) }))))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ms_call_modifier __thiscall) (ERROR IDENT : :) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) < IDENT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) , LIT )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , IDENT )))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT , (binary_expression IDENT + LIT) )))) ;)) (return_statement return IDENT ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT >> LIT) )) << LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT >> LIT) )) << LIT)) )) >> LIT) )) + (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT) | (binary_expression (binary_expression IDENT >> LIT) & LIT)) )) * LIT))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + IDENT) , IDENT )))) ;)) (return_statement return IDENT ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (goto_statement goto statement_identifier ;) })) }))))) (return_statement return LIT ;) })))
(function_definition "undefined4 __thiscall\ngold::decompress_input_section\n          (gold *this,uchar *param_1,ulong param_2,uchar *param_3,ulong param_4,int param_5,\n          bool param_6,ulonglong param_7)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  uint uVar3;\n  gold *pgVar4;\n  uint in_stack_0000001c;\n  \n  if ((in_stack_0000001c & 0x800) == 0) {\n    if (((uchar *)0xb < param_1) &&\n       (iVar2 = (*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4), iVar2 == 0)) {\n      if (param_3 == *(uchar **)(this + 8)) {\n        uVar1 = FUN_0025a740(this + 0xc,param_1 + -0xc,param_2);\n        return uVar1;\n      }\n      uVar1 = 0xcb;\nLAB_0025b1f0:\n      uVar1 = (*(code *)PTR_do_gold_unreachable_004323c4)\n                        (PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50);\n      return uVar1;\n    }\n  }\n  else if (param_4 == 0x20) {\n    uVar3 = *(uint *)this;\n    if ((param_5 & 0xffU) == 0) {\n      uVar3 = (((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000;\n    }\n    if (uVar3 == 1) {\n      iVar2 = -0xc;\n      pgVar4 = this + 0xc;\nLAB_0025b108:\n      uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2);\n      return uVar1;\n    }\n  }\n  else {\n    if (param_4 != 0x40) {\n      uVar1 = 0xb8;\n      goto LAB_0025b1f0;\n    }\n    if (((param_5 & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar2 = -0x18;\n      pgVar4 = this + 0x18;\n      goto LAB_0025b108;\n    }\n  }\n  return 0;\n}" (type_identifier "undefined4") (ms_call_modifier "__thiscall" (__thiscall "__thiscall")) (ERROR "gold::" (identifier "gold") (: ":") (: ":")) (function_declarator "decompress_input_section\n          (gold *this,uchar *param_1,ulong param_2,uchar *param_3,ulong param_4,int param_5,\n          bool param_6,ulonglong param_7)" (identifier "decompress_input_section") (parameter_list "(gold *this,uchar *param_1,ulong param_2,uchar *param_3,ulong param_4,int param_5,\n          bool param_6,ulonglong param_7)" (( "(") (parameter_declaration "gold *this" (type_identifier "gold") (pointer_declarator "*this" (* "*") (identifier "this"))) (, ",") (parameter_declaration "uchar *param_1" (type_identifier "uchar") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "ulong param_2" (type_identifier "ulong") (identifier "param_2")) (, ",") (parameter_declaration "uchar *param_3" (type_identifier "uchar") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "ulong param_4" (type_identifier "ulong") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) (, ",") (parameter_declaration "bool param_6" (primitive_type "bool") (identifier "param_6")) (, ",") (parameter_declaration "ulonglong param_7" (type_identifier "ulonglong") (identifier "param_7")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  uint uVar3;\n  gold *pgVar4;\n  uint in_stack_0000001c;\n  \n  if ((in_stack_0000001c & 0x800) == 0) {\n    if (((uchar *)0xb < param_1) &&\n       (iVar2 = (*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4), iVar2 == 0)) {\n      if (param_3 == *(uchar **)(this + 8)) {\n        uVar1 = FUN_0025a740(this + 0xc,param_1 + -0xc,param_2);\n        return uVar1;\n      }\n      uVar1 = 0xcb;\nLAB_0025b1f0:\n      uVar1 = (*(code *)PTR_do_gold_unreachable_004323c4)\n                        (PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50);\n      return uVar1;\n    }\n  }\n  else if (param_4 == 0x20) {\n    uVar3 = *(uint *)this;\n    if ((param_5 & 0xffU) == 0) {\n      uVar3 = (((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000;\n    }\n    if (uVar3 == 1) {\n      iVar2 = -0xc;\n      pgVar4 = this + 0xc;\nLAB_0025b108:\n      uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2);\n      return uVar1;\n    }\n  }\n  else {\n    if (param_4 != 0x40) {\n      uVar1 = 0xb8;\n      goto LAB_0025b1f0;\n    }\n    if (((param_5 & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar2 = -0x18;\n      pgVar4 = this + 0x18;\n      goto LAB_0025b108;\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "gold *pgVar4;" (type_identifier "gold") (pointer_declarator "*pgVar4" (* "*") (identifier "pgVar4")) (; ";")) (declaration "uint in_stack_0000001c;" (type_identifier "uint") (identifier "in_stack_0000001c") (; ";")) (if_statement "if ((in_stack_0000001c & 0x800) == 0) {\n    if (((uchar *)0xb < param_1) &&\n       (iVar2 = (*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4), iVar2 == 0)) {\n      if (param_3 == *(uchar **)(this + 8)) {\n        uVar1 = FUN_0025a740(this + 0xc,param_1 + -0xc,param_2);\n        return uVar1;\n      }\n      uVar1 = 0xcb;\nLAB_0025b1f0:\n      uVar1 = (*(code *)PTR_do_gold_unreachable_004323c4)\n                        (PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50);\n      return uVar1;\n    }\n  }\n  else if (param_4 == 0x20) {\n    uVar3 = *(uint *)this;\n    if ((param_5 & 0xffU) == 0) {\n      uVar3 = (((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000;\n    }\n    if (uVar3 == 1) {\n      iVar2 = -0xc;\n      pgVar4 = this + 0xc;\nLAB_0025b108:\n      uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2);\n      return uVar1;\n    }\n  }\n  else {\n    if (param_4 != 0x40) {\n      uVar1 = 0xb8;\n      goto LAB_0025b1f0;\n    }\n    if (((param_5 & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar2 = -0x18;\n      pgVar4 = this + 0x18;\n      goto LAB_0025b108;\n    }\n  }" (if "if") (parenthesized_expression "((in_stack_0000001c & 0x800) == 0)" (( "(") (binary_expression "(in_stack_0000001c & 0x800) == 0" (parenthesized_expression "(in_stack_0000001c & 0x800)" (( "(") (binary_expression "in_stack_0000001c & 0x800" (identifier "in_stack_0000001c") (& "&") (number_literal "0x800")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (((uchar *)0xb < param_1) &&\n       (iVar2 = (*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4), iVar2 == 0)) {\n      if (param_3 == *(uchar **)(this + 8)) {\n        uVar1 = FUN_0025a740(this + 0xc,param_1 + -0xc,param_2);\n        return uVar1;\n      }\n      uVar1 = 0xcb;\nLAB_0025b1f0:\n      uVar1 = (*(code *)PTR_do_gold_unreachable_004323c4)\n                        (PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50);\n      return uVar1;\n    }\n  }" ({ "{") (if_statement "if (((uchar *)0xb < param_1) &&\n       (iVar2 = (*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4), iVar2 == 0)) {\n      if (param_3 == *(uchar **)(this + 8)) {\n        uVar1 = FUN_0025a740(this + 0xc,param_1 + -0xc,param_2);\n        return uVar1;\n      }\n      uVar1 = 0xcb;\nLAB_0025b1f0:\n      uVar1 = (*(code *)PTR_do_gold_unreachable_004323c4)\n                        (PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50);\n      return uVar1;\n    }" (if "if") (parenthesized_expression "(((uchar *)0xb < param_1) &&\n       (iVar2 = (*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4), iVar2 == 0))" (( "(") (binary_expression "((uchar *)0xb < param_1) &&\n       (iVar2 = (*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4), iVar2 == 0)" (parenthesized_expression "((uchar *)0xb < param_1)" (( "(") (binary_expression "(uchar *)0xb < param_1" (cast_expression "(uchar *)0xb" (( "(") (type_descriptor "uchar *" (type_identifier "uchar") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0xb")) (< "<") (identifier "param_1")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = (*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4), iVar2 == 0)" (( "(") (comma_expression "iVar2 = (*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4), iVar2 == 0" (assignment_expression "iVar2 = (*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4)" (parenthesized_expression "(*(code *)PTR_strncmp_004366a0)" (( "(") (pointer_expression "*(code *)PTR_strncmp_004366a0" (* "*") (cast_expression "(code *)PTR_strncmp_004366a0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strncmp_004366a0"))) () ")")) (argument_list "(this,PTR_DAT_0043226c + 0xe68,4)" (( "(") (identifier "this") (, ",") (binary_expression "PTR_DAT_0043226c + 0xe68" (identifier "PTR_DAT_0043226c") (+ "+") (number_literal "0xe68")) (, ",") (number_literal "4") () ")")))) (, ",") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      if (param_3 == *(uchar **)(this + 8)) {\n        uVar1 = FUN_0025a740(this + 0xc,param_1 + -0xc,param_2);\n        return uVar1;\n      }\n      uVar1 = 0xcb;\nLAB_0025b1f0:\n      uVar1 = (*(code *)PTR_do_gold_unreachable_004323c4)\n                        (PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50);\n      return uVar1;\n    }" ({ "{") (if_statement "if (param_3 == *(uchar **)(this + 8)) {\n        uVar1 = FUN_0025a740(this + 0xc,param_1 + -0xc,param_2);\n        return uVar1;\n      }" (if "if") (parenthesized_expression "(param_3 == *(uchar **)(this + 8))" (( "(") (binary_expression "param_3 == *(uchar **)(this + 8)" (identifier "param_3") (== "==") (pointer_expression "*(uchar **)(this + 8)" (* "*") (cast_expression "(uchar **)(this + 8)" (( "(") (type_descriptor "uchar **" (type_identifier "uchar") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(this + 8)" (( "(") (binary_expression "this + 8" (identifier "this") (+ "+") (number_literal "8")) () ")"))))) () ")")) (compound_statement "{\n        uVar1 = FUN_0025a740(this + 0xc,param_1 + -0xc,param_2);\n        return uVar1;\n      }" ({ "{") (expression_statement "uVar1 = FUN_0025a740(this + 0xc,param_1 + -0xc,param_2);" (assignment_expression "uVar1 = FUN_0025a740(this + 0xc,param_1 + -0xc,param_2)" (identifier "uVar1") (= "=") (call_expression "FUN_0025a740(this + 0xc,param_1 + -0xc,param_2)" (identifier "FUN_0025a740") (argument_list "(this + 0xc,param_1 + -0xc,param_2)" (( "(") (binary_expression "this + 0xc" (identifier "this") (+ "+") (number_literal "0xc")) (, ",") (binary_expression "param_1 + -0xc" (identifier "param_1") (+ "+") (number_literal "-0xc")) (, ",") (identifier "param_2") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "uVar1 = 0xcb;" (assignment_expression "uVar1 = 0xcb" (identifier "uVar1") (= "=") (number_literal "0xcb")) (; ";")) (labeled_statement "LAB_0025b1f0:\n      uVar1 = (*(code *)PTR_do_gold_unreachable_004323c4)\n                        (PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50);" (statement_identifier "LAB_0025b1f0") (: ":") (expression_statement "uVar1 = (*(code *)PTR_do_gold_unreachable_004323c4)\n                        (PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50);" (assignment_expression "uVar1 = (*(code *)PTR_do_gold_unreachable_004323c4)\n                        (PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_do_gold_unreachable_004323c4)\n                        (PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50)" (parenthesized_expression "(*(code *)PTR_do_gold_unreachable_004323c4)" (( "(") (pointer_expression "*(code *)PTR_do_gold_unreachable_004323c4" (* "*") (cast_expression "(code *)PTR_do_gold_unreachable_004323c4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_do_gold_unreachable_004323c4"))) () ")")) (argument_list "(PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50)" (( "(") (binary_expression "PTR_DAT_0043226c + 0xe48" (identifier "PTR_DAT_0043226c") (+ "+") (number_literal "0xe48")) (, ",") (identifier "uVar1") (, ",") (binary_expression "PTR_DAT_0043226c + 0xf50" (identifier "PTR_DAT_0043226c") (+ "+") (number_literal "0xf50")) () ")")))) (; ";"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (} "}")) (else_clause "else if (param_4 == 0x20) {\n    uVar3 = *(uint *)this;\n    if ((param_5 & 0xffU) == 0) {\n      uVar3 = (((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000;\n    }\n    if (uVar3 == 1) {\n      iVar2 = -0xc;\n      pgVar4 = this + 0xc;\nLAB_0025b108:\n      uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2);\n      return uVar1;\n    }\n  }\n  else {\n    if (param_4 != 0x40) {\n      uVar1 = 0xb8;\n      goto LAB_0025b1f0;\n    }\n    if (((param_5 & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar2 = -0x18;\n      pgVar4 = this + 0x18;\n      goto LAB_0025b108;\n    }\n  }" (else "else") (if_statement "if (param_4 == 0x20) {\n    uVar3 = *(uint *)this;\n    if ((param_5 & 0xffU) == 0) {\n      uVar3 = (((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000;\n    }\n    if (uVar3 == 1) {\n      iVar2 = -0xc;\n      pgVar4 = this + 0xc;\nLAB_0025b108:\n      uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2);\n      return uVar1;\n    }\n  }\n  else {\n    if (param_4 != 0x40) {\n      uVar1 = 0xb8;\n      goto LAB_0025b1f0;\n    }\n    if (((param_5 & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar2 = -0x18;\n      pgVar4 = this + 0x18;\n      goto LAB_0025b108;\n    }\n  }" (if "if") (parenthesized_expression "(param_4 == 0x20)" (( "(") (binary_expression "param_4 == 0x20" (identifier "param_4") (== "==") (number_literal "0x20")) () ")")) (compound_statement "{\n    uVar3 = *(uint *)this;\n    if ((param_5 & 0xffU) == 0) {\n      uVar3 = (((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000;\n    }\n    if (uVar3 == 1) {\n      iVar2 = -0xc;\n      pgVar4 = this + 0xc;\nLAB_0025b108:\n      uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2);\n      return uVar1;\n    }\n  }" ({ "{") (expression_statement "uVar3 = *(uint *)this;" (assignment_expression "uVar3 = *(uint *)this" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)this" (* "*") (cast_expression "(uint *)this" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this")))) (; ";")) (if_statement "if ((param_5 & 0xffU) == 0) {\n      uVar3 = (((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000;\n    }" (if "if") (parenthesized_expression "((param_5 & 0xffU) == 0)" (( "(") (binary_expression "(param_5 & 0xffU) == 0" (parenthesized_expression "(param_5 & 0xffU)" (( "(") (binary_expression "param_5 & 0xffU" (identifier "param_5") (& "&") (number_literal "0xffU")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar3 = (((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000;\n    }" ({ "{") (expression_statement "uVar3 = (((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000;" (assignment_expression "uVar3 = (((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000" (identifier "uVar3") (= "=") (binary_expression "(((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +\n              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000" (parenthesized_expression "(((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10)" (( "(") (binary_expression "((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10" (parenthesized_expression "((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10)" (( "(") (binary_expression "(uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10" (binary_expression "(uVar3 >> 0x10) << 0x18" (parenthesized_expression "(uVar3 >> 0x10)" (( "(") (binary_expression "uVar3 >> 0x10" (identifier "uVar3") (>> ">>") (number_literal "0x10")) () ")")) (<< "<<") (number_literal "0x18")) (| "|") (binary_expression "(uVar3 >> 0x18) << 0x10" (parenthesized_expression "(uVar3 >> 0x18)" (( "(") (binary_expression "uVar3 >> 0x18" (identifier "uVar3") (>> ">>") (number_literal "0x18")) () ")")) (<< "<<") (number_literal "0x10"))) () ")")) (>> ">>") (number_literal "0x10")) () ")")) (+ "+") (binary_expression "((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000" (parenthesized_expression "((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff)" (( "(") (binary_expression "(uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff" (binary_expression "(uVar3 & 0xff) << 8" (parenthesized_expression "(uVar3 & 0xff)" (( "(") (binary_expression "uVar3 & 0xff" (identifier "uVar3") (& "&") (number_literal "0xff")) () ")")) (<< "<<") (number_literal "8")) (| "|") (binary_expression "uVar3 >> 8 & 0xff" (binary_expression "uVar3 >> 8" (identifier "uVar3") (>> ">>") (number_literal "8")) (& "&") (number_literal "0xff"))) () ")")) (* "*") (number_literal "0x10000")))) (; ";")) (} "}"))) (if_statement "if (uVar3 == 1) {\n      iVar2 = -0xc;\n      pgVar4 = this + 0xc;\nLAB_0025b108:\n      uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2);\n      return uVar1;\n    }" (if "if") (parenthesized_expression "(uVar3 == 1)" (( "(") (binary_expression "uVar3 == 1" (identifier "uVar3") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      iVar2 = -0xc;\n      pgVar4 = this + 0xc;\nLAB_0025b108:\n      uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2);\n      return uVar1;\n    }" ({ "{") (expression_statement "iVar2 = -0xc;" (assignment_expression "iVar2 = -0xc" (identifier "iVar2") (= "=") (number_literal "-0xc")) (; ";")) (expression_statement "pgVar4 = this + 0xc;" (assignment_expression "pgVar4 = this + 0xc" (identifier "pgVar4") (= "=") (binary_expression "this + 0xc" (identifier "this") (+ "+") (number_literal "0xc"))) (; ";")) (labeled_statement "LAB_0025b108:\n      uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2);" (statement_identifier "LAB_0025b108") (: ":") (expression_statement "uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2);" (assignment_expression "uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2)" (identifier "uVar1") (= "=") (call_expression "FUN_0025a740(pgVar4,param_1 + iVar2,param_2)" (identifier "FUN_0025a740") (argument_list "(pgVar4,param_1 + iVar2,param_2)" (( "(") (identifier "pgVar4") (, ",") (binary_expression "param_1 + iVar2" (identifier "param_1") (+ "+") (identifier "iVar2")) (, ",") (identifier "param_2") () ")")))) (; ";"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if (param_4 != 0x40) {\n      uVar1 = 0xb8;\n      goto LAB_0025b1f0;\n    }\n    if (((param_5 & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar2 = -0x18;\n      pgVar4 = this + 0x18;\n      goto LAB_0025b108;\n    }\n  }" (else "else") (compound_statement "{\n    if (param_4 != 0x40) {\n      uVar1 = 0xb8;\n      goto LAB_0025b1f0;\n    }\n    if (((param_5 & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar2 = -0x18;\n      pgVar4 = this + 0x18;\n      goto LAB_0025b108;\n    }\n  }" ({ "{") (if_statement "if (param_4 != 0x40) {\n      uVar1 = 0xb8;\n      goto LAB_0025b1f0;\n    }" (if "if") (parenthesized_expression "(param_4 != 0x40)" (( "(") (binary_expression "param_4 != 0x40" (identifier "param_4") (!= "!=") (number_literal "0x40")) () ")")) (compound_statement "{\n      uVar1 = 0xb8;\n      goto LAB_0025b1f0;\n    }" ({ "{") (expression_statement "uVar1 = 0xb8;" (assignment_expression "uVar1 = 0xb8" (identifier "uVar1") (= "=") (number_literal "0xb8")) (; ";")) (goto_statement "goto LAB_0025b1f0;" (goto "goto") (statement_identifier "LAB_0025b1f0") (; ";")) (} "}"))) (if_statement "if (((param_5 & 0xffU) != 0) && (*(int *)this == 1)) {\n      iVar2 = -0x18;\n      pgVar4 = this + 0x18;\n      goto LAB_0025b108;\n    }" (if "if") (parenthesized_expression "(((param_5 & 0xffU) != 0) && (*(int *)this == 1))" (( "(") (binary_expression "((param_5 & 0xffU) != 0) && (*(int *)this == 1)" (parenthesized_expression "((param_5 & 0xffU) != 0)" (( "(") (binary_expression "(param_5 & 0xffU) != 0" (parenthesized_expression "(param_5 & 0xffU)" (( "(") (binary_expression "param_5 & 0xffU" (identifier "param_5") (& "&") (number_literal "0xffU")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)this == 1)" (( "(") (binary_expression "*(int *)this == 1" (pointer_expression "*(int *)this" (* "*") (cast_expression "(int *)this" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this"))) (== "==") (number_literal "1")) () ")"))) () ")")) (compound_statement "{\n      iVar2 = -0x18;\n      pgVar4 = this + 0x18;\n      goto LAB_0025b108;\n    }" ({ "{") (expression_statement "iVar2 = -0x18;" (assignment_expression "iVar2 = -0x18" (identifier "iVar2") (= "=") (number_literal "-0x18")) (; ";")) (expression_statement "pgVar4 = this + 0x18;" (assignment_expression "pgVar4 = this + 0x18" (identifier "pgVar4") (= "=") (binary_expression "this + 0x18" (identifier "this") (+ "+") (number_literal "0x18"))) (; ";")) (goto_statement "goto LAB_0025b108;" (goto "goto") (statement_identifier "LAB_0025b108") (; ";")) (} "}"))) (} "}")))))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

bool __thiscall
type_1::function_1
          (type_1 *var_6,type_2 *var_2,type_3 compressed_size,type_2 *var_5,
          type_3 var_8,int var_9,bool big_endian,type_4 sh_flags)

{
  bool bVar3;
  int var_4;
  type_5 var_10;
  type_1 *compressed_data_00;
  type_6 uVar4;
  type_5 var_1;
  
  if ((var_1 & 0x800) == 0) {
    if (((type_2 *)0xb < var_2) &&
       (var_4 = (*(type_7 *)PTR_strncmp_004366a0)(var_6,var_3 + 0xe68,4), var_4 == 0)) {
      if (var_5 != *(type_2 **)(var_6 + 8)) {
        uVar4 = 0xcb;
        do {
          (*(type_7 *)PTR_do_gold_unreachable_004323c4)
                    (var_3 + 0xe48,uVar4,var_3 + 0xf50);
LAB_0025b208:
          uVar4 = 0xb8;
        } while( true );
      }
      bVar3 = var_7((type_2 *)(var_6 + 0xc),(type_3)(var_2 + -0xc),
                              (type_2 *)compressed_size,(type_3)var_5);
      return bVar3;
    }
  }
  else if (var_8 == 0x20) {
    var_10 = *(type_5 *)var_6;
    if ((var_9 & 0xffU) == 0) {
      var_10 = (((var_10 >> 0x10) << 0x18 | (var_10 >> 0x18) << 0x10) >> 0x10) +
              ((var_10 & 0xff) << 8 | var_10 >> 8 & 0xff) * 0x10000;
    }
    if (var_10 == 1) {
      var_4 = -0xc;
      compressed_data_00 = var_6 + 0xc;
      goto LAB_0025b108;
    }
  }
  else {
    if (var_8 != 0x40) goto LAB_0025b208;
    if (((var_9 & 0xffU) != 0) && (*(int *)var_6 == 1)) {
      var_4 = -0x18;
      compressed_data_00 = var_6 + 0x18;
LAB_0025b108:
      bVar3 = var_7((type_2 *)compressed_data_00,(type_3)(var_2 + var_4),
                              (type_2 *)compressed_size,(type_3)var_5);
      return bVar3;
    }
  }
  return false;
}


(translation_unit (function_definition type: (type_identifier) (ms_call_modifier) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)) right: (identifier))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)) (number_literal)))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (identifier))))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier) (binary_expression left: (identifier) right: (number_literal))))))) (return_statement (identifier))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))) right: (number_literal))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (identifier)) (identifier)))))) (return_statement (identifier))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (goto_statement label: (statement_identifier))))))))) (return_statement (number_literal)))))

/* gold::MASKED(unsigned char const*, unsigned long, unsigned char*, unsigned
   long, int, bool, unsigned long long) */

undefined4 __thiscall
gold::MASKED
          (gold *this,uchar *param_1,ulong param_2,uchar *param_3,ulong param_4,int param_5,
          bool param_6,ulonglong param_7)

{
  undefined4 uVar1;
  int iVar2;
  uint uVar3;
  gold *pgVar4;
  uint in_stack_0000001c;
  
  if ((in_stack_0000001c & 0x800) == 0) {
    if (((uchar *)0xb < param_1) &&
       (iVar2 = (*(code *)PTR_strncmp_004366a0)(this,PTR_DAT_0043226c + 0xe68,4), iVar2 == 0)) {
      if (param_3 == *(uchar **)(this + 8)) {
        uVar1 = FUN_0025a740(this + 0xc,param_1 + -0xc,param_2);
        return uVar1;
      }
      uVar1 = 0xcb;
LAB_0025b1f0:
      uVar1 = (*(code *)PTR_do_gold_unreachable_004323c4)
                        (PTR_DAT_0043226c + 0xe48,uVar1,PTR_DAT_0043226c + 0xf50);
      return uVar1;
    }
  }
  else if (param_4 == 0x20) {
    uVar3 = *(uint *)this;
    if ((param_5 & 0xffU) == 0) {
      uVar3 = (((uVar3 >> 0x10) << 0x18 | (uVar3 >> 0x18) << 0x10) >> 0x10) +
              ((uVar3 & 0xff) << 8 | uVar3 >> 8 & 0xff) * 0x10000;
    }
    if (uVar3 == 1) {
      iVar2 = -0xc;
      pgVar4 = this + 0xc;
LAB_0025b108:
      uVar1 = FUN_0025a740(pgVar4,param_1 + iVar2,param_2);
      return uVar1;
    }
  }
  else {
    if (param_4 != 0x40) {
      uVar1 = 0xb8;
      goto LAB_0025b1f0;
    }
    if (((param_5 & 0xffU) != 0) && (*(int *)this == 1)) {
      iVar2 = -0x18;
      pgVar4 = this + 0x18;
      goto LAB_0025b108;
    }
  }
  return 0;
}

