
/* DWARF original prototype: bool open(File_read * this, Task * task, string * name, uchar *
   contents, off_t size) */

int __thiscall gold::File_read::open(File_read *this,char *__file,int __oflag,...)

{
  bool bVar1;
  View *v;
  File_read *this_00;
  Task_token *this_1;
  uchar *in_a3;
  undefined4 in_stack_00000010;
  section_size_type in_stack_00000014;
  
  if ((this->token_).is_blocker_ != false) {
                    /* WARNING: Subroutine does not return */
    Task_token::is_writable((Task_token *)this,(Task_token *)__file);
  }
  if (((((this->token_).writer_ == (Task *)0x0) && (this->descriptor_ < 0)) &&
      (this->is_descriptor_opened_ == false)) && ((this->name_)._M_string_length == 0)) {
    (*(code *)PTR__M_assign_004c200c)(this,__oflag);
    v = (View *)(*(code *)PTR_operator_new_004c13a8)(0x28);
    this_1 = (Task_token *)0x0;
    this->whole_file_view_ = v;
    v->size_ = in_stack_00000014;
    *(undefined4 *)((int)&v->start_ + 4) = 0;
    *(undefined4 *)&v->start_ = 0;
    v->data_ = in_a3;
    v->lock_count_ = 0;
    v->byteshift_ = 0;
    v->cache_ = false;
    v->data_ownership_ = DATA_NOT_OWNED;
    v->accessed_ = true;
    this_00 = this;
    add_view(this,v);
    bVar1 = (this->token_).is_blocker_;
    *(undefined4 *)&this->size_ = in_stack_00000010;
    *(section_size_type *)((int)&this->size_ + 4) = in_stack_00000014;
    if ((bVar1 == false) && ((this->token_).writer_ == (Task *)0x0)) {
      (this->token_).writer_ = (Task *)__file;
      return 1;
    }
                    /* WARNING: Subroutine does not return */
    Task_token::add_writer((Task_token *)this_00,(Task *)v,this_1);
  }
                    /* WARNING: Subroutine does not return */
  do_gold_unreachable(PTR_s__s_004c1a50 + -0x260,0xe4,PTR_s__s_004c1a50 + 0xe4);
}



/* gold::File_read::open(gold::Task const*, std::string const&, unsigned char const*, long long) */

undefined4 gold::File_read::open(Task *param_1,string *param_2,uchar *param_3,longlong param_4)

{
  View *pVVar1;
  undefined4 in_a3;
  
  if (param_1[0x30] != (Task)0x0) {
                    /* WARNING: Subroutine does not return */
    FUN_001741a0();
  }
  if ((((*(int *)(param_1 + 0x38) == 0) && (*(int *)(param_1 + 0x18) < 0)) &&
      (param_1[0x1c] == (Task)0x0)) && (*(int *)(param_1 + 4) == 0)) {
    (*(code *)PTR__M_assign_004c200c)(param_1,param_3);
    pVVar1 = (View *)(*(code *)PTR_operator_new_004c13a8)(0x28);
    *(View **)(param_1 + 0x70) = pVVar1;
    *(undefined4 *)(pVVar1 + 8) = param_4._4_4_;
    *(undefined4 *)(pVVar1 + 4) = 0;
    *(undefined4 *)pVVar1 = 0;
    *(undefined4 *)(pVVar1 + 0xc) = in_a3;
    *(undefined4 *)(pVVar1 + 0x10) = 0;
    *(undefined4 *)(pVVar1 + 0x14) = 0;
    pVVar1[0x18] = (View)0x0;
    *(undefined4 *)(pVVar1 + 0x1c) = 0;
    pVVar1[0x20] = (View)0x1;
    add_view((File_read *)param_1,pVVar1);
    *(longlong *)(param_1 + 0x28) = param_4;
    if ((param_1[0x30] == (Task)0x0) && (*(int *)(param_1 + 0x38) == 0)) {
      *(string **)(param_1 + 0x38) = param_2;
      return 1;
    }
                    /* WARNING: Subroutine does not return */
    FUN_001741d4();
  }
                    /* WARNING: Subroutine does not return */
  do_gold_unreachable(PTR_s__s_004c1a50 + -0x260,0xe4,PTR_s__s_004c1a50 + 0xe4);
}


lui gp,0x35
addiu gp,gp,0x3144
addu gp,gp,t9
addiu sp,sp,-0x30
lbu v0,0x30(a0)
sw gp,0x10(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw ra,0x2c(sp)
sw s4,0x28(sp)
sw s3,0x24(sp)
sw s0,0x18(sp)
lw s2,0x40(sp)
bne v0,zero,0x00176240
_lw s1,0x44(sp)
lw v0,0x38(a0)
bne v0,zero,0x00176214
_or s0,a0,zero
lw v0,0x18(a0)
bgez v0,0x00176214
_nop
lbu v0,0x1c(a0)
bne v0,zero,0x00176214
_nop
lw v0,0x4(a0)
bne v0,zero,0x00176214
_lw t9,-0x7234(gp)
or s4,a1,zero
or a1,a2,zero
jalr t9
_or s3,a3,zero
lw gp,0x10(sp)
lw t9,-0x7e98(gp)
jalr t9
_li a0,0x28
or a3,zero,zero
lw gp,0x10(sp)
or a2,zero,zero
li v1,0x1
sw v0,0x70(s0)
or a1,v0,zero
sw s1,0x8(v0)
sw a3,0x4(v0)
or a0,s0,zero
sw a2,0x0(v0)
sw s3,0xc(v0)
sw zero,0x10(v0)
sw zero,0x14(v0)
sb zero,0x18(v0)
sw zero,0x1c(v0)
lw t9,-0x71e0(gp)
bal 0x00175ff4
_sb v1,0x20(v0)
lbu v0,0x30(s0)
lw gp,0x10(sp)
sw s2,0x28(s0)
bne v0,zero,0x00176230
_sw s1,0x2c(s0)
lw v0,0x38(s0)
bne v0,zero,0x00176230
_lw ra,0x2c(sp)
li v0,0x1
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
sw s4,0x38(s0)
lw s4,0x28(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
lw a2,-0x77f0(gp)
li a1,0xe4
lw a0,-0x77f0(gp)
lw t9,-0x7810(gp)
addiu a2,a2,0xe4
bal 0x0017db90
_addiu a0,a0,-0x260
lw t9,-0x7224(gp)
addiu t9,t9,0x41d4
bal 0x001741d4
_nop
lw t9,-0x7224(gp)
addiu t9,t9,0x41a0
bal 0x001741a0
_nop
(translation_unit "/* gold::File_read::open(gold::Task const*, std::string const&, unsigned char const*, long long) */\n\nundefined4 gold::File_read::open(Task *param_1,string *param_2,uchar *param_3,longlong param_4)\n\n{\n  View *pVVar1;\n  undefined4 in_a3;\n  \n  if (param_1[0x30] != (Task)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_001741a0();\n  }\n  if ((((*(int *)(param_1 + 0x38) == 0) && (*(int *)(param_1 + 0x18) < 0)) &&\n      (param_1[0x1c] == (Task)0x0)) && (*(int *)(param_1 + 4) == 0)) {\n    (*(code *)PTR__M_assign_004c200c)(param_1,param_3);\n    pVVar1 = (View *)(*(code *)PTR_operator_new_004c13a8)(0x28);\n    *(View **)(param_1 + 0x70) = pVVar1;\n    *(undefined4 *)(pVVar1 + 8) = param_4._4_4_;\n    *(undefined4 *)(pVVar1 + 4) = 0;\n    *(undefined4 *)pVVar1 = 0;\n    *(undefined4 *)(pVVar1 + 0xc) = in_a3;\n    *(undefined4 *)(pVVar1 + 0x10) = 0;\n    *(undefined4 *)(pVVar1 + 0x14) = 0;\n    pVVar1[0x18] = (View)0x0;\n    *(undefined4 *)(pVVar1 + 0x1c) = 0;\n    pVVar1[0x20] = (View)0x1;\n    add_view((File_read *)param_1,pVVar1);\n    *(longlong *)(param_1 + 0x28) = param_4;\n    if ((param_1[0x30] == (Task)0x0) && (*(int *)(param_1 + 0x38) == 0)) {\n      *(string **)(param_1 + 0x38) = param_2;\n      return 1;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_001741d4();\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable(PTR_s__s_004c1a50 + -0x260,0xe4,PTR_s__s_004c1a50 + 0xe4);\n}\n\n" comment (function_definition "undefined4 gold::File_read::open(Task *param_1,string *param_2,uchar *param_3,longlong param_4)\n\n{\n  View *pVVar1;\n  undefined4 in_a3;\n  \n  if (param_1[0x30] != (Task)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_001741a0();\n  }\n  if ((((*(int *)(param_1 + 0x38) == 0) && (*(int *)(param_1 + 0x18) < 0)) &&\n      (param_1[0x1c] == (Task)0x0)) && (*(int *)(param_1 + 4) == 0)) {\n    (*(code *)PTR__M_assign_004c200c)(param_1,param_3);\n    pVVar1 = (View *)(*(code *)PTR_operator_new_004c13a8)(0x28);\n    *(View **)(param_1 + 0x70) = pVVar1;\n    *(undefined4 *)(pVVar1 + 8) = param_4._4_4_;\n    *(undefined4 *)(pVVar1 + 4) = 0;\n    *(undefined4 *)pVVar1 = 0;\n    *(undefined4 *)(pVVar1 + 0xc) = in_a3;\n    *(undefined4 *)(pVVar1 + 0x10) = 0;\n    *(undefined4 *)(pVVar1 + 0x14) = 0;\n    pVVar1[0x18] = (View)0x0;\n    *(undefined4 *)(pVVar1 + 0x1c) = 0;\n    pVVar1[0x20] = (View)0x1;\n    add_view((File_read *)param_1,pVVar1);\n    *(longlong *)(param_1 + 0x28) = param_4;\n    if ((param_1[0x30] == (Task)0x0) && (*(int *)(param_1 + 0x38) == 0)) {\n      *(string **)(param_1 + 0x38) = param_2;\n      return 1;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_001741d4();\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable(PTR_s__s_004c1a50 + -0x260,0xe4,PTR_s__s_004c1a50 + 0xe4);\n}" type_identifier (ERROR "gold::File_read::" identifier : : identifier : :) (function_declarator "open(Task *param_1,string *param_2,uchar *param_3,longlong param_4)" identifier (parameter_list "(Task *param_1,string *param_2,uchar *param_3,longlong param_4)" ( (parameter_declaration "Task *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "string *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uchar *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "longlong param_4" type_identifier identifier) ))) (compound_statement "{\n  View *pVVar1;\n  undefined4 in_a3;\n  \n  if (param_1[0x30] != (Task)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_001741a0();\n  }\n  if ((((*(int *)(param_1 + 0x38) == 0) && (*(int *)(param_1 + 0x18) < 0)) &&\n      (param_1[0x1c] == (Task)0x0)) && (*(int *)(param_1 + 4) == 0)) {\n    (*(code *)PTR__M_assign_004c200c)(param_1,param_3);\n    pVVar1 = (View *)(*(code *)PTR_operator_new_004c13a8)(0x28);\n    *(View **)(param_1 + 0x70) = pVVar1;\n    *(undefined4 *)(pVVar1 + 8) = param_4._4_4_;\n    *(undefined4 *)(pVVar1 + 4) = 0;\n    *(undefined4 *)pVVar1 = 0;\n    *(undefined4 *)(pVVar1 + 0xc) = in_a3;\n    *(undefined4 *)(pVVar1 + 0x10) = 0;\n    *(undefined4 *)(pVVar1 + 0x14) = 0;\n    pVVar1[0x18] = (View)0x0;\n    *(undefined4 *)(pVVar1 + 0x1c) = 0;\n    pVVar1[0x20] = (View)0x1;\n    add_view((File_read *)param_1,pVVar1);\n    *(longlong *)(param_1 + 0x28) = param_4;\n    if ((param_1[0x30] == (Task)0x0) && (*(int *)(param_1 + 0x38) == 0)) {\n      *(string **)(param_1 + 0x38) = param_2;\n      return 1;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_001741d4();\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable(PTR_s__s_004c1a50 + -0x260,0xe4,PTR_s__s_004c1a50 + 0xe4);\n}" { (declaration "View *pVVar1;" type_identifier (pointer_declarator "*pVVar1" * identifier) ;) (declaration "undefined4 in_a3;" type_identifier identifier ;) (if_statement "if (param_1[0x30] != (Task)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_001741a0();\n  }" if (parenthesized_expression "(param_1[0x30] != (Task)0x0)" ( (binary_expression "param_1[0x30] != (Task)0x0" (subscript_expression "param_1[0x30]" identifier [ number_literal ]) != (cast_expression "(Task)0x0" ( (type_descriptor "Task" type_identifier) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_001741a0();\n  }" { comment (expression_statement "FUN_001741a0();" (call_expression "FUN_001741a0()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if ((((*(int *)(param_1 + 0x38) == 0) && (*(int *)(param_1 + 0x18) < 0)) &&\n      (param_1[0x1c] == (Task)0x0)) && (*(int *)(param_1 + 4) == 0)) {\n    (*(code *)PTR__M_assign_004c200c)(param_1,param_3);\n    pVVar1 = (View *)(*(code *)PTR_operator_new_004c13a8)(0x28);\n    *(View **)(param_1 + 0x70) = pVVar1;\n    *(undefined4 *)(pVVar1 + 8) = param_4._4_4_;\n    *(undefined4 *)(pVVar1 + 4) = 0;\n    *(undefined4 *)pVVar1 = 0;\n    *(undefined4 *)(pVVar1 + 0xc) = in_a3;\n    *(undefined4 *)(pVVar1 + 0x10) = 0;\n    *(undefined4 *)(pVVar1 + 0x14) = 0;\n    pVVar1[0x18] = (View)0x0;\n    *(undefined4 *)(pVVar1 + 0x1c) = 0;\n    pVVar1[0x20] = (View)0x1;\n    add_view((File_read *)param_1,pVVar1);\n    *(longlong *)(param_1 + 0x28) = param_4;\n    if ((param_1[0x30] == (Task)0x0) && (*(int *)(param_1 + 0x38) == 0)) {\n      *(string **)(param_1 + 0x38) = param_2;\n      return 1;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_001741d4();\n  }" if (parenthesized_expression "((((*(int *)(param_1 + 0x38) == 0) && (*(int *)(param_1 + 0x18) < 0)) &&\n      (param_1[0x1c] == (Task)0x0)) && (*(int *)(param_1 + 4) == 0))" ( (binary_expression "(((*(int *)(param_1 + 0x38) == 0) && (*(int *)(param_1 + 0x18) < 0)) &&\n      (param_1[0x1c] == (Task)0x0)) && (*(int *)(param_1 + 4) == 0)" (parenthesized_expression "(((*(int *)(param_1 + 0x38) == 0) && (*(int *)(param_1 + 0x18) < 0)) &&\n      (param_1[0x1c] == (Task)0x0))" ( (binary_expression "((*(int *)(param_1 + 0x38) == 0) && (*(int *)(param_1 + 0x18) < 0)) &&\n      (param_1[0x1c] == (Task)0x0)" (parenthesized_expression "((*(int *)(param_1 + 0x38) == 0) && (*(int *)(param_1 + 0x18) < 0))" ( (binary_expression "(*(int *)(param_1 + 0x38) == 0) && (*(int *)(param_1 + 0x18) < 0)" (parenthesized_expression "(*(int *)(param_1 + 0x38) == 0)" ( (binary_expression "*(int *)(param_1 + 0x38) == 0" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) == number_literal) )) && (parenthesized_expression "(*(int *)(param_1 + 0x18) < 0)" ( (binary_expression "*(int *)(param_1 + 0x18) < 0" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) < number_literal) ))) )) && (parenthesized_expression "(param_1[0x1c] == (Task)0x0)" ( (binary_expression "param_1[0x1c] == (Task)0x0" (subscript_expression "param_1[0x1c]" identifier [ number_literal ]) == (cast_expression "(Task)0x0" ( (type_descriptor "Task" type_identifier) ) number_literal)) ))) )) && (parenthesized_expression "(*(int *)(param_1 + 4) == 0)" ( (binary_expression "*(int *)(param_1 + 4) == 0" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    (*(code *)PTR__M_assign_004c200c)(param_1,param_3);\n    pVVar1 = (View *)(*(code *)PTR_operator_new_004c13a8)(0x28);\n    *(View **)(param_1 + 0x70) = pVVar1;\n    *(undefined4 *)(pVVar1 + 8) = param_4._4_4_;\n    *(undefined4 *)(pVVar1 + 4) = 0;\n    *(undefined4 *)pVVar1 = 0;\n    *(undefined4 *)(pVVar1 + 0xc) = in_a3;\n    *(undefined4 *)(pVVar1 + 0x10) = 0;\n    *(undefined4 *)(pVVar1 + 0x14) = 0;\n    pVVar1[0x18] = (View)0x0;\n    *(undefined4 *)(pVVar1 + 0x1c) = 0;\n    pVVar1[0x20] = (View)0x1;\n    add_view((File_read *)param_1,pVVar1);\n    *(longlong *)(param_1 + 0x28) = param_4;\n    if ((param_1[0x30] == (Task)0x0) && (*(int *)(param_1 + 0x38) == 0)) {\n      *(string **)(param_1 + 0x38) = param_2;\n      return 1;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_001741d4();\n  }" { (expression_statement "(*(code *)PTR__M_assign_004c200c)(param_1,param_3);" (call_expression "(*(code *)PTR__M_assign_004c200c)(param_1,param_3)" (parenthesized_expression "(*(code *)PTR__M_assign_004c200c)" ( (pointer_expression "*(code *)PTR__M_assign_004c200c" * (cast_expression "(code *)PTR__M_assign_004c200c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_3)" ( identifier , identifier ))) ;) (expression_statement "pVVar1 = (View *)(*(code *)PTR_operator_new_004c13a8)(0x28);" (assignment_expression "pVVar1 = (View *)(*(code *)PTR_operator_new_004c13a8)(0x28)" identifier = (cast_expression "(View *)(*(code *)PTR_operator_new_004c13a8)(0x28)" ( (type_descriptor "View *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_operator_new_004c13a8)(0x28)" (parenthesized_expression "(*(code *)PTR_operator_new_004c13a8)" ( (pointer_expression "*(code *)PTR_operator_new_004c13a8" * (cast_expression "(code *)PTR_operator_new_004c13a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x28)" ( number_literal ))))) ;) (expression_statement "*(View **)(param_1 + 0x70) = pVVar1;" (assignment_expression "*(View **)(param_1 + 0x70) = pVVar1" (pointer_expression "*(View **)(param_1 + 0x70)" * (cast_expression "(View **)(param_1 + 0x70)" ( (type_descriptor "View **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(pVVar1 + 8) = param_4._4_4_;" (assignment_expression "*(undefined4 *)(pVVar1 + 8) = param_4._4_4_" (pointer_expression "*(undefined4 *)(pVVar1 + 8)" * (cast_expression "(undefined4 *)(pVVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pVVar1 + 8)" ( (binary_expression "pVVar1 + 8" identifier + number_literal) )))) = (field_expression "param_4._4_4_" identifier . field_identifier)) ;) (expression_statement "*(undefined4 *)(pVVar1 + 4) = 0;" (assignment_expression "*(undefined4 *)(pVVar1 + 4) = 0" (pointer_expression "*(undefined4 *)(pVVar1 + 4)" * (cast_expression "(undefined4 *)(pVVar1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pVVar1 + 4)" ( (binary_expression "pVVar1 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)pVVar1 = 0;" (assignment_expression "*(undefined4 *)pVVar1 = 0" (pointer_expression "*(undefined4 *)pVVar1" * (cast_expression "(undefined4 *)pVVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(undefined4 *)(pVVar1 + 0xc) = in_a3;" (assignment_expression "*(undefined4 *)(pVVar1 + 0xc) = in_a3" (pointer_expression "*(undefined4 *)(pVVar1 + 0xc)" * (cast_expression "(undefined4 *)(pVVar1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pVVar1 + 0xc)" ( (binary_expression "pVVar1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(pVVar1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(pVVar1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(pVVar1 + 0x10)" * (cast_expression "(undefined4 *)(pVVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pVVar1 + 0x10)" ( (binary_expression "pVVar1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(pVVar1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(pVVar1 + 0x14) = 0" (pointer_expression "*(undefined4 *)(pVVar1 + 0x14)" * (cast_expression "(undefined4 *)(pVVar1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pVVar1 + 0x14)" ( (binary_expression "pVVar1 + 0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "pVVar1[0x18] = (View)0x0;" (assignment_expression "pVVar1[0x18] = (View)0x0" (subscript_expression "pVVar1[0x18]" identifier [ number_literal ]) = (cast_expression "(View)0x0" ( (type_descriptor "View" type_identifier) ) number_literal)) ;) (expression_statement "*(undefined4 *)(pVVar1 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(pVVar1 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(pVVar1 + 0x1c)" * (cast_expression "(undefined4 *)(pVVar1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pVVar1 + 0x1c)" ( (binary_expression "pVVar1 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "pVVar1[0x20] = (View)0x1;" (assignment_expression "pVVar1[0x20] = (View)0x1" (subscript_expression "pVVar1[0x20]" identifier [ number_literal ]) = (cast_expression "(View)0x1" ( (type_descriptor "View" type_identifier) ) number_literal)) ;) (expression_statement "add_view((File_read *)param_1,pVVar1);" (call_expression "add_view((File_read *)param_1,pVVar1)" identifier (argument_list "((File_read *)param_1,pVVar1)" ( (cast_expression "(File_read *)param_1" ( (type_descriptor "File_read *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;) (expression_statement "*(longlong *)(param_1 + 0x28) = param_4;" (assignment_expression "*(longlong *)(param_1 + 0x28) = param_4" (pointer_expression "*(longlong *)(param_1 + 0x28)" * (cast_expression "(longlong *)(param_1 + 0x28)" ( (type_descriptor "longlong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((param_1[0x30] == (Task)0x0) && (*(int *)(param_1 + 0x38) == 0)) {\n      *(string **)(param_1 + 0x38) = param_2;\n      return 1;\n    }" if (parenthesized_expression "((param_1[0x30] == (Task)0x0) && (*(int *)(param_1 + 0x38) == 0))" ( (binary_expression "(param_1[0x30] == (Task)0x0) && (*(int *)(param_1 + 0x38) == 0)" (parenthesized_expression "(param_1[0x30] == (Task)0x0)" ( (binary_expression "param_1[0x30] == (Task)0x0" (subscript_expression "param_1[0x30]" identifier [ number_literal ]) == (cast_expression "(Task)0x0" ( (type_descriptor "Task" type_identifier) ) number_literal)) )) && (parenthesized_expression "(*(int *)(param_1 + 0x38) == 0)" ( (binary_expression "*(int *)(param_1 + 0x38) == 0" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n      *(string **)(param_1 + 0x38) = param_2;\n      return 1;\n    }" { (expression_statement "*(string **)(param_1 + 0x38) = param_2;" (assignment_expression "*(string **)(param_1 + 0x38) = param_2" (pointer_expression "*(string **)(param_1 + 0x38)" * (cast_expression "(string **)(param_1 + 0x38)" ( (type_descriptor "string **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) comment (expression_statement "FUN_001741d4();" (call_expression "FUN_001741d4()" identifier (argument_list "()" ( ))) ;) })) comment (expression_statement "do_gold_unreachable(PTR_s__s_004c1a50 + -0x260,0xe4,PTR_s__s_004c1a50 + 0xe4);" (call_expression "do_gold_unreachable(PTR_s__s_004c1a50 + -0x260,0xe4,PTR_s__s_004c1a50 + 0xe4)" identifier (argument_list "(PTR_s__s_004c1a50 + -0x260,0xe4,PTR_s__s_004c1a50 + 0xe4)" ( (binary_expression "PTR_s__s_004c1a50 + -0x260" identifier + number_literal) , number_literal , (binary_expression "PTR_s__s_004c1a50 + 0xe4" identifier + number_literal) ))) ;) })))
(translation_unit "/* DWARF original prototype: bool open(File_read * this, Task * task, string * name, uchar *\n   contents, off_t size) */\n\nint __thiscall gold::File_read::open(File_read *this,char *__file,int __oflag,...)\n\n{\n  bool bVar1;\n  View *v;\n  File_read *this_00;\n  Task_token *this_1;\n  uchar *in_a3;\n  undefined4 in_stack_00000010;\n  section_size_type in_stack_00000014;\n  \n  if ((this->token_).is_blocker_ != false) {\n                    /* WARNING: Subroutine does not return */\n    Task_token::is_writable((Task_token *)this,(Task_token *)__file);\n  }\n  if (((((this->token_).writer_ == (Task *)0x0) && (this->descriptor_ < 0)) &&\n      (this->is_descriptor_opened_ == false)) && ((this->name_)._M_string_length == 0)) {\n    (*(code *)PTR__M_assign_004c200c)(this,__oflag);\n    v = (View *)(*(code *)PTR_operator_new_004c13a8)(0x28);\n    this_1 = (Task_token *)0x0;\n    this->whole_file_view_ = v;\n    v->size_ = in_stack_00000014;\n    *(undefined4 *)((int)&v->start_ + 4) = 0;\n    *(undefined4 *)&v->start_ = 0;\n    v->data_ = in_a3;\n    v->lock_count_ = 0;\n    v->byteshift_ = 0;\n    v->cache_ = false;\n    v->data_ownership_ = DATA_NOT_OWNED;\n    v->accessed_ = true;\n    this_00 = this;\n    add_view(this,v);\n    bVar1 = (this->token_).is_blocker_;\n    *(undefined4 *)&this->size_ = in_stack_00000010;\n    *(section_size_type *)((int)&this->size_ + 4) = in_stack_00000014;\n    if ((bVar1 == false) && ((this->token_).writer_ == (Task *)0x0)) {\n      (this->token_).writer_ = (Task *)__file;\n      return 1;\n    }\n                    /* WARNING: Subroutine does not return */\n    Task_token::add_writer((Task_token *)this_00,(Task *)v,this_1);\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable(PTR_s__s_004c1a50 + -0x260,0xe4,PTR_s__s_004c1a50 + 0xe4);\n}\n\n" comment (function_definition "int __thiscall gold::File_read::open(File_read *this,char *__file,int __oflag,...)\n\n{\n  bool bVar1;\n  View *v;\n  File_read *this_00;\n  Task_token *this_1;\n  uchar *in_a3;\n  undefined4 in_stack_00000010;\n  section_size_type in_stack_00000014;\n  \n  if ((this->token_).is_blocker_ != false) {\n                    /* WARNING: Subroutine does not return */\n    Task_token::is_writable((Task_token *)this,(Task_token *)__file);\n  }\n  if (((((this->token_).writer_ == (Task *)0x0) && (this->descriptor_ < 0)) &&\n      (this->is_descriptor_opened_ == false)) && ((this->name_)._M_string_length == 0)) {\n    (*(code *)PTR__M_assign_004c200c)(this,__oflag);\n    v = (View *)(*(code *)PTR_operator_new_004c13a8)(0x28);\n    this_1 = (Task_token *)0x0;\n    this->whole_file_view_ = v;\n    v->size_ = in_stack_00000014;\n    *(undefined4 *)((int)&v->start_ + 4) = 0;\n    *(undefined4 *)&v->start_ = 0;\n    v->data_ = in_a3;\n    v->lock_count_ = 0;\n    v->byteshift_ = 0;\n    v->cache_ = false;\n    v->data_ownership_ = DATA_NOT_OWNED;\n    v->accessed_ = true;\n    this_00 = this;\n    add_view(this,v);\n    bVar1 = (this->token_).is_blocker_;\n    *(undefined4 *)&this->size_ = in_stack_00000010;\n    *(section_size_type *)((int)&this->size_ + 4) = in_stack_00000014;\n    if ((bVar1 == false) && ((this->token_).writer_ == (Task *)0x0)) {\n      (this->token_).writer_ = (Task *)__file;\n      return 1;\n    }\n                    /* WARNING: Subroutine does not return */\n    Task_token::add_writer((Task_token *)this_00,(Task *)v,this_1);\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable(PTR_s__s_004c1a50 + -0x260,0xe4,PTR_s__s_004c1a50 + 0xe4);\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::File_read::" identifier : : identifier : :) (function_declarator "open(File_read *this,char *__file,int __oflag,...)" identifier (parameter_list "(File_read *this,char *__file,int __oflag,...)" ( (parameter_declaration "File_read *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *__file" primitive_type (pointer_declarator "*__file" * identifier)) , (parameter_declaration "int __oflag" primitive_type identifier) , (variadic_parameter "..." ...) ))) (compound_statement "{\n  bool bVar1;\n  View *v;\n  File_read *this_00;\n  Task_token *this_1;\n  uchar *in_a3;\n  undefined4 in_stack_00000010;\n  section_size_type in_stack_00000014;\n  \n  if ((this->token_).is_blocker_ != false) {\n                    /* WARNING: Subroutine does not return */\n    Task_token::is_writable((Task_token *)this,(Task_token *)__file);\n  }\n  if (((((this->token_).writer_ == (Task *)0x0) && (this->descriptor_ < 0)) &&\n      (this->is_descriptor_opened_ == false)) && ((this->name_)._M_string_length == 0)) {\n    (*(code *)PTR__M_assign_004c200c)(this,__oflag);\n    v = (View *)(*(code *)PTR_operator_new_004c13a8)(0x28);\n    this_1 = (Task_token *)0x0;\n    this->whole_file_view_ = v;\n    v->size_ = in_stack_00000014;\n    *(undefined4 *)((int)&v->start_ + 4) = 0;\n    *(undefined4 *)&v->start_ = 0;\n    v->data_ = in_a3;\n    v->lock_count_ = 0;\n    v->byteshift_ = 0;\n    v->cache_ = false;\n    v->data_ownership_ = DATA_NOT_OWNED;\n    v->accessed_ = true;\n    this_00 = this;\n    add_view(this,v);\n    bVar1 = (this->token_).is_blocker_;\n    *(undefined4 *)&this->size_ = in_stack_00000010;\n    *(section_size_type *)((int)&this->size_ + 4) = in_stack_00000014;\n    if ((bVar1 == false) && ((this->token_).writer_ == (Task *)0x0)) {\n      (this->token_).writer_ = (Task *)__file;\n      return 1;\n    }\n                    /* WARNING: Subroutine does not return */\n    Task_token::add_writer((Task_token *)this_00,(Task *)v,this_1);\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable(PTR_s__s_004c1a50 + -0x260,0xe4,PTR_s__s_004c1a50 + 0xe4);\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "View *v;" type_identifier (pointer_declarator "*v" * identifier) ;) (declaration "File_read *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "Task_token *this_1;" type_identifier (pointer_declarator "*this_1" * identifier) ;) (declaration "uchar *in_a3;" type_identifier (pointer_declarator "*in_a3" * identifier) ;) (declaration "undefined4 in_stack_00000010;" type_identifier identifier ;) (declaration "section_size_type in_stack_00000014;" type_identifier identifier ;) (if_statement "if ((this->token_).is_blocker_ != false) {\n                    /* WARNING: Subroutine does not return */\n    Task_token::is_writable((Task_token *)this,(Task_token *)__file);\n  }" if (parenthesized_expression "((this->token_).is_blocker_ != false)" ( (binary_expression "(this->token_).is_blocker_ != false" (field_expression "(this->token_).is_blocker_" (parenthesized_expression "(this->token_)" ( (field_expression "this->token_" identifier -> field_identifier) )) . field_identifier) != false) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    Task_token::is_writable((Task_token *)this,(Task_token *)__file);\n  }" { comment (labeled_statement "Task_token::is_writable((Task_token *)this,(Task_token *)__file);" statement_identifier : (ERROR ":" :) (expression_statement "is_writable((Task_token *)this,(Task_token *)__file);" (call_expression "is_writable((Task_token *)this,(Task_token *)__file)" identifier (argument_list "((Task_token *)this,(Task_token *)__file)" ( (cast_expression "(Task_token *)this" ( (type_descriptor "Task_token *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(Task_token *)__file" ( (type_descriptor "Task_token *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;)) })) (if_statement "if (((((this->token_).writer_ == (Task *)0x0) && (this->descriptor_ < 0)) &&\n      (this->is_descriptor_opened_ == false)) && ((this->name_)._M_string_length == 0)) {\n    (*(code *)PTR__M_assign_004c200c)(this,__oflag);\n    v = (View *)(*(code *)PTR_operator_new_004c13a8)(0x28);\n    this_1 = (Task_token *)0x0;\n    this->whole_file_view_ = v;\n    v->size_ = in_stack_00000014;\n    *(undefined4 *)((int)&v->start_ + 4) = 0;\n    *(undefined4 *)&v->start_ = 0;\n    v->data_ = in_a3;\n    v->lock_count_ = 0;\n    v->byteshift_ = 0;\n    v->cache_ = false;\n    v->data_ownership_ = DATA_NOT_OWNED;\n    v->accessed_ = true;\n    this_00 = this;\n    add_view(this,v);\n    bVar1 = (this->token_).is_blocker_;\n    *(undefined4 *)&this->size_ = in_stack_00000010;\n    *(section_size_type *)((int)&this->size_ + 4) = in_stack_00000014;\n    if ((bVar1 == false) && ((this->token_).writer_ == (Task *)0x0)) {\n      (this->token_).writer_ = (Task *)__file;\n      return 1;\n    }\n                    /* WARNING: Subroutine does not return */\n    Task_token::add_writer((Task_token *)this_00,(Task *)v,this_1);\n  }" if (parenthesized_expression "(((((this->token_).writer_ == (Task *)0x0) && (this->descriptor_ < 0)) &&\n      (this->is_descriptor_opened_ == false)) && ((this->name_)._M_string_length == 0))" ( (binary_expression "((((this->token_).writer_ == (Task *)0x0) && (this->descriptor_ < 0)) &&\n      (this->is_descriptor_opened_ == false)) && ((this->name_)._M_string_length == 0)" (parenthesized_expression "((((this->token_).writer_ == (Task *)0x0) && (this->descriptor_ < 0)) &&\n      (this->is_descriptor_opened_ == false))" ( (binary_expression "(((this->token_).writer_ == (Task *)0x0) && (this->descriptor_ < 0)) &&\n      (this->is_descriptor_opened_ == false)" (parenthesized_expression "(((this->token_).writer_ == (Task *)0x0) && (this->descriptor_ < 0))" ( (binary_expression "((this->token_).writer_ == (Task *)0x0) && (this->descriptor_ < 0)" (parenthesized_expression "((this->token_).writer_ == (Task *)0x0)" ( (binary_expression "(this->token_).writer_ == (Task *)0x0" (field_expression "(this->token_).writer_" (parenthesized_expression "(this->token_)" ( (field_expression "this->token_" identifier -> field_identifier) )) . field_identifier) == (cast_expression "(Task *)0x0" ( (type_descriptor "Task *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(this->descriptor_ < 0)" ( (binary_expression "this->descriptor_ < 0" (field_expression "this->descriptor_" identifier -> field_identifier) < number_literal) ))) )) && (parenthesized_expression "(this->is_descriptor_opened_ == false)" ( (binary_expression "this->is_descriptor_opened_ == false" (field_expression "this->is_descriptor_opened_" identifier -> field_identifier) == false) ))) )) && (parenthesized_expression "((this->name_)._M_string_length == 0)" ( (binary_expression "(this->name_)._M_string_length == 0" (field_expression "(this->name_)._M_string_length" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier) == number_literal) ))) )) (compound_statement "{\n    (*(code *)PTR__M_assign_004c200c)(this,__oflag);\n    v = (View *)(*(code *)PTR_operator_new_004c13a8)(0x28);\n    this_1 = (Task_token *)0x0;\n    this->whole_file_view_ = v;\n    v->size_ = in_stack_00000014;\n    *(undefined4 *)((int)&v->start_ + 4) = 0;\n    *(undefined4 *)&v->start_ = 0;\n    v->data_ = in_a3;\n    v->lock_count_ = 0;\n    v->byteshift_ = 0;\n    v->cache_ = false;\n    v->data_ownership_ = DATA_NOT_OWNED;\n    v->accessed_ = true;\n    this_00 = this;\n    add_view(this,v);\n    bVar1 = (this->token_).is_blocker_;\n    *(undefined4 *)&this->size_ = in_stack_00000010;\n    *(section_size_type *)((int)&this->size_ + 4) = in_stack_00000014;\n    if ((bVar1 == false) && ((this->token_).writer_ == (Task *)0x0)) {\n      (this->token_).writer_ = (Task *)__file;\n      return 1;\n    }\n                    /* WARNING: Subroutine does not return */\n    Task_token::add_writer((Task_token *)this_00,(Task *)v,this_1);\n  }" { (expression_statement "(*(code *)PTR__M_assign_004c200c)(this,__oflag);" (call_expression "(*(code *)PTR__M_assign_004c200c)(this,__oflag)" (parenthesized_expression "(*(code *)PTR__M_assign_004c200c)" ( (pointer_expression "*(code *)PTR__M_assign_004c200c" * (cast_expression "(code *)PTR__M_assign_004c200c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(this,__oflag)" ( identifier , identifier ))) ;) (expression_statement "v = (View *)(*(code *)PTR_operator_new_004c13a8)(0x28);" (assignment_expression "v = (View *)(*(code *)PTR_operator_new_004c13a8)(0x28)" identifier = (cast_expression "(View *)(*(code *)PTR_operator_new_004c13a8)(0x28)" ( (type_descriptor "View *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_operator_new_004c13a8)(0x28)" (parenthesized_expression "(*(code *)PTR_operator_new_004c13a8)" ( (pointer_expression "*(code *)PTR_operator_new_004c13a8" * (cast_expression "(code *)PTR_operator_new_004c13a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x28)" ( number_literal ))))) ;) (expression_statement "this_1 = (Task_token *)0x0;" (assignment_expression "this_1 = (Task_token *)0x0" identifier = (cast_expression "(Task_token *)0x0" ( (type_descriptor "Task_token *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "this->whole_file_view_ = v;" (assignment_expression "this->whole_file_view_ = v" (field_expression "this->whole_file_view_" identifier -> field_identifier) = identifier) ;) (expression_statement "v->size_ = in_stack_00000014;" (assignment_expression "v->size_ = in_stack_00000014" (field_expression "v->size_" identifier -> field_identifier) = identifier) ;) (expression_statement "*(undefined4 *)((int)&v->start_ + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&v->start_ + 4) = 0" (pointer_expression "*(undefined4 *)((int)&v->start_ + 4)" * (cast_expression "(undefined4 *)((int)&v->start_ + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&v->start_ + 4)" ( (binary_expression "(int)&v->start_ + 4" (cast_expression "(int)&v->start_" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&v->start_" & (field_expression "v->start_" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)&v->start_ = 0;" (assignment_expression "*(undefined4 *)&v->start_ = 0" (pointer_expression "*(undefined4 *)&v->start_" * (cast_expression "(undefined4 *)&v->start_" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&v->start_" & (field_expression "v->start_" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "v->data_ = in_a3;" (assignment_expression "v->data_ = in_a3" (field_expression "v->data_" identifier -> field_identifier) = identifier) ;) (expression_statement "v->lock_count_ = 0;" (assignment_expression "v->lock_count_ = 0" (field_expression "v->lock_count_" identifier -> field_identifier) = number_literal) ;) (expression_statement "v->byteshift_ = 0;" (assignment_expression "v->byteshift_ = 0" (field_expression "v->byteshift_" identifier -> field_identifier) = number_literal) ;) (expression_statement "v->cache_ = false;" (assignment_expression "v->cache_ = false" (field_expression "v->cache_" identifier -> field_identifier) = false) ;) (expression_statement "v->data_ownership_ = DATA_NOT_OWNED;" (assignment_expression "v->data_ownership_ = DATA_NOT_OWNED" (field_expression "v->data_ownership_" identifier -> field_identifier) = identifier) ;) (expression_statement "v->accessed_ = true;" (assignment_expression "v->accessed_ = true" (field_expression "v->accessed_" identifier -> field_identifier) = true) ;) (expression_statement "this_00 = this;" (assignment_expression "this_00 = this" identifier = identifier) ;) (expression_statement "add_view(this,v);" (call_expression "add_view(this,v)" identifier (argument_list "(this,v)" ( identifier , identifier ))) ;) (expression_statement "bVar1 = (this->token_).is_blocker_;" (assignment_expression "bVar1 = (this->token_).is_blocker_" identifier = (field_expression "(this->token_).is_blocker_" (parenthesized_expression "(this->token_)" ( (field_expression "this->token_" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "*(undefined4 *)&this->size_ = in_stack_00000010;" (assignment_expression "*(undefined4 *)&this->size_ = in_stack_00000010" (pointer_expression "*(undefined4 *)&this->size_" * (cast_expression "(undefined4 *)&this->size_" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&this->size_" & (field_expression "this->size_" identifier -> field_identifier)))) = identifier) ;) (expression_statement "*(section_size_type *)((int)&this->size_ + 4) = in_stack_00000014;" (assignment_expression "*(section_size_type *)((int)&this->size_ + 4) = in_stack_00000014" (pointer_expression "*(section_size_type *)((int)&this->size_ + 4)" * (cast_expression "(section_size_type *)((int)&this->size_ + 4)" ( (type_descriptor "section_size_type *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&this->size_ + 4)" ( (binary_expression "(int)&this->size_ + 4" (cast_expression "(int)&this->size_" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&this->size_" & (field_expression "this->size_" identifier -> field_identifier))) + number_literal) )))) = identifier) ;) (if_statement "if ((bVar1 == false) && ((this->token_).writer_ == (Task *)0x0)) {\n      (this->token_).writer_ = (Task *)__file;\n      return 1;\n    }" if (parenthesized_expression "((bVar1 == false) && ((this->token_).writer_ == (Task *)0x0))" ( (binary_expression "(bVar1 == false) && ((this->token_).writer_ == (Task *)0x0)" (parenthesized_expression "(bVar1 == false)" ( (binary_expression "bVar1 == false" identifier == false) )) && (parenthesized_expression "((this->token_).writer_ == (Task *)0x0)" ( (binary_expression "(this->token_).writer_ == (Task *)0x0" (field_expression "(this->token_).writer_" (parenthesized_expression "(this->token_)" ( (field_expression "this->token_" identifier -> field_identifier) )) . field_identifier) == (cast_expression "(Task *)0x0" ( (type_descriptor "Task *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n      (this->token_).writer_ = (Task *)__file;\n      return 1;\n    }" { (expression_statement "(this->token_).writer_ = (Task *)__file;" (assignment_expression "(this->token_).writer_ = (Task *)__file" (field_expression "(this->token_).writer_" (parenthesized_expression "(this->token_)" ( (field_expression "this->token_" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(Task *)__file" ( (type_descriptor "Task *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (return_statement "return 1;" return number_literal ;) })) comment (labeled_statement "Task_token::add_writer((Task_token *)this_00,(Task *)v,this_1);" statement_identifier : (ERROR ":" :) (expression_statement "add_writer((Task_token *)this_00,(Task *)v,this_1);" (call_expression "add_writer((Task_token *)this_00,(Task *)v,this_1)" identifier (argument_list "((Task_token *)this_00,(Task *)v,this_1)" ( (cast_expression "(Task_token *)this_00" ( (type_descriptor "Task_token *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(Task *)v" ( (type_descriptor "Task *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;)) })) comment (expression_statement "do_gold_unreachable(PTR_s__s_004c1a50 + -0x260,0xe4,PTR_s__s_004c1a50 + 0xe4);" (call_expression "do_gold_unreachable(PTR_s__s_004c1a50 + -0x260,0xe4,PTR_s__s_004c1a50 + 0xe4)" identifier (argument_list "(PTR_s__s_004c1a50 + -0x260,0xe4,PTR_s__s_004c1a50 + 0xe4)" ( (binary_expression "PTR_s__s_004c1a50 + -0x260" identifier + number_literal) , number_literal , (binary_expression "PTR_s__s_004c1a50 + 0xe4" identifier + number_literal) ))) ;) })))
(translation_unit "undefined4 gold::File_read::open(Task *param_1,string *param_2,uchar *param_3,longlong param_4)\n\n{\n  View *pVVar1;\n  undefined4 in_a3;\n  \n  if (param_1[0x30] != (Task)0x0) {\n                    \n    FUN_001741a0();\n  }\n  if ((((*(int *)(param_1 + 0x38) == 0) && (*(int *)(param_1 + 0x18) < 0)) &&\n      (param_1[0x1c] == (Task)0x0)) && (*(int *)(param_1 + 4) == 0)) {\n    (*(code *)PTR__M_assign_004c200c)(param_1,param_3);\n    pVVar1 = (View *)(*(code *)PTR_operator_new_004c13a8)(0x28);\n    *(View **)(param_1 + 0x70) = pVVar1;\n    *(undefined4 *)(pVVar1 + 8) = param_4._4_4_;\n    *(undefined4 *)(pVVar1 + 4) = 0;\n    *(undefined4 *)pVVar1 = 0;\n    *(undefined4 *)(pVVar1 + 0xc) = in_a3;\n    *(undefined4 *)(pVVar1 + 0x10) = 0;\n    *(undefined4 *)(pVVar1 + 0x14) = 0;\n    pVVar1[0x18] = (View)0x0;\n    *(undefined4 *)(pVVar1 + 0x1c) = 0;\n    pVVar1[0x20] = (View)0x1;\n    add_view((File_read *)param_1,pVVar1);\n    *(longlong *)(param_1 + 0x28) = param_4;\n    if ((param_1[0x30] == (Task)0x0) && (*(int *)(param_1 + 0x38) == 0)) {\n      *(string **)(param_1 + 0x38) = param_2;\n      return 1;\n    }\n                    \n    FUN_001741d4();\n  }\n                    \n  do_gold_unreachable(PTR_s__s_004c1a50 + -0x260,0xe4,PTR_s__s_004c1a50 + 0xe4);\n}\n\n" (function_definition "undefined4 gold::File_read::open(Task *param_1,string *param_2,uchar *param_3,longlong param_4)\n\n{\n  View *pVVar1;\n  undefined4 in_a3;\n  \n  if (param_1[0x30] != (Task)0x0) {\n                    \n    FUN_001741a0();\n  }\n  if ((((*(int *)(param_1 + 0x38) == 0) && (*(int *)(param_1 + 0x18) < 0)) &&\n      (param_1[0x1c] == (Task)0x0)) && (*(int *)(param_1 + 4) == 0)) {\n    (*(code *)PTR__M_assign_004c200c)(param_1,param_3);\n    pVVar1 = (View *)(*(code *)PTR_operator_new_004c13a8)(0x28);\n    *(View **)(param_1 + 0x70) = pVVar1;\n    *(undefined4 *)(pVVar1 + 8) = param_4._4_4_;\n    *(undefined4 *)(pVVar1 + 4) = 0;\n    *(undefined4 *)pVVar1 = 0;\n    *(undefined4 *)(pVVar1 + 0xc) = in_a3;\n    *(undefined4 *)(pVVar1 + 0x10) = 0;\n    *(undefined4 *)(pVVar1 + 0x14) = 0;\n    pVVar1[0x18] = (View)0x0;\n    *(undefined4 *)(pVVar1 + 0x1c) = 0;\n    pVVar1[0x20] = (View)0x1;\n    add_view((File_read *)param_1,pVVar1);\n    *(longlong *)(param_1 + 0x28) = param_4;\n    if ((param_1[0x30] == (Task)0x0) && (*(int *)(param_1 + 0x38) == 0)) {\n      *(string **)(param_1 + 0x38) = param_2;\n      return 1;\n    }\n                    \n    FUN_001741d4();\n  }\n                    \n  do_gold_unreachable(PTR_s__s_004c1a50 + -0x260,0xe4,PTR_s__s_004c1a50 + 0xe4);\n}" type_identifier (ERROR "gold::File_read::" identifier : : identifier : :) (function_declarator "open(Task *param_1,string *param_2,uchar *param_3,longlong param_4)" identifier (parameter_list "(Task *param_1,string *param_2,uchar *param_3,longlong param_4)" ( (parameter_declaration "Task *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "string *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uchar *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "longlong param_4" type_identifier identifier) ))) (compound_statement "{\n  View *pVVar1;\n  undefined4 in_a3;\n  \n  if (param_1[0x30] != (Task)0x0) {\n                    \n    FUN_001741a0();\n  }\n  if ((((*(int *)(param_1 + 0x38) == 0) && (*(int *)(param_1 + 0x18) < 0)) &&\n      (param_1[0x1c] == (Task)0x0)) && (*(int *)(param_1 + 4) == 0)) {\n    (*(code *)PTR__M_assign_004c200c)(param_1,param_3);\n    pVVar1 = (View *)(*(code *)PTR_operator_new_004c13a8)(0x28);\n    *(View **)(param_1 + 0x70) = pVVar1;\n    *(undefined4 *)(pVVar1 + 8) = param_4._4_4_;\n    *(undefined4 *)(pVVar1 + 4) = 0;\n    *(undefined4 *)pVVar1 = 0;\n    *(undefined4 *)(pVVar1 + 0xc) = in_a3;\n    *(undefined4 *)(pVVar1 + 0x10) = 0;\n    *(undefined4 *)(pVVar1 + 0x14) = 0;\n    pVVar1[0x18] = (View)0x0;\n    *(undefined4 *)(pVVar1 + 0x1c) = 0;\n    pVVar1[0x20] = (View)0x1;\n    add_view((File_read *)param_1,pVVar1);\n    *(longlong *)(param_1 + 0x28) = param_4;\n    if ((param_1[0x30] == (Task)0x0) && (*(int *)(param_1 + 0x38) == 0)) {\n      *(string **)(param_1 + 0x38) = param_2;\n      return 1;\n    }\n                    \n    FUN_001741d4();\n  }\n                    \n  do_gold_unreachable(PTR_s__s_004c1a50 + -0x260,0xe4,PTR_s__s_004c1a50 + 0xe4);\n}" { (declaration "View *pVVar1;" type_identifier (pointer_declarator "*pVVar1" * identifier) ;) (declaration "undefined4 in_a3;" type_identifier identifier ;) (if_statement "if (param_1[0x30] != (Task)0x0) {\n                    \n    FUN_001741a0();\n  }" if (parenthesized_expression "(param_1[0x30] != (Task)0x0)" ( (binary_expression "param_1[0x30] != (Task)0x0" (subscript_expression "param_1[0x30]" identifier [ number_literal ]) != (cast_expression "(Task)0x0" ( (type_descriptor "Task" type_identifier) ) number_literal)) )) (compound_statement "{\n                    \n    FUN_001741a0();\n  }" { (expression_statement "FUN_001741a0();" (call_expression "FUN_001741a0()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if ((((*(int *)(param_1 + 0x38) == 0) && (*(int *)(param_1 + 0x18) < 0)) &&\n      (param_1[0x1c] == (Task)0x0)) && (*(int *)(param_1 + 4) == 0)) {\n    (*(code *)PTR__M_assign_004c200c)(param_1,param_3);\n    pVVar1 = (View *)(*(code *)PTR_operator_new_004c13a8)(0x28);\n    *(View **)(param_1 + 0x70) = pVVar1;\n    *(undefined4 *)(pVVar1 + 8) = param_4._4_4_;\n    *(undefined4 *)(pVVar1 + 4) = 0;\n    *(undefined4 *)pVVar1 = 0;\n    *(undefined4 *)(pVVar1 + 0xc) = in_a3;\n    *(undefined4 *)(pVVar1 + 0x10) = 0;\n    *(undefined4 *)(pVVar1 + 0x14) = 0;\n    pVVar1[0x18] = (View)0x0;\n    *(undefined4 *)(pVVar1 + 0x1c) = 0;\n    pVVar1[0x20] = (View)0x1;\n    add_view((File_read *)param_1,pVVar1);\n    *(longlong *)(param_1 + 0x28) = param_4;\n    if ((param_1[0x30] == (Task)0x0) && (*(int *)(param_1 + 0x38) == 0)) {\n      *(string **)(param_1 + 0x38) = param_2;\n      return 1;\n    }\n                    \n    FUN_001741d4();\n  }" if (parenthesized_expression "((((*(int *)(param_1 + 0x38) == 0) && (*(int *)(param_1 + 0x18) < 0)) &&\n      (param_1[0x1c] == (Task)0x0)) && (*(int *)(param_1 + 4) == 0))" ( (binary_expression "(((*(int *)(param_1 + 0x38) == 0) && (*(int *)(param_1 + 0x18) < 0)) &&\n      (param_1[0x1c] == (Task)0x0)) && (*(int *)(param_1 + 4) == 0)" (parenthesized_expression "(((*(int *)(param_1 + 0x38) == 0) && (*(int *)(param_1 + 0x18) < 0)) &&\n      (param_1[0x1c] == (Task)0x0))" ( (binary_expression "((*(int *)(param_1 + 0x38) == 0) && (*(int *)(param_1 + 0x18) < 0)) &&\n      (param_1[0x1c] == (Task)0x0)" (parenthesized_expression "((*(int *)(param_1 + 0x38) == 0) && (*(int *)(param_1 + 0x18) < 0))" ( (binary_expression "(*(int *)(param_1 + 0x38) == 0) && (*(int *)(param_1 + 0x18) < 0)" (parenthesized_expression "(*(int *)(param_1 + 0x38) == 0)" ( (binary_expression "*(int *)(param_1 + 0x38) == 0" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) == number_literal) )) && (parenthesized_expression "(*(int *)(param_1 + 0x18) < 0)" ( (binary_expression "*(int *)(param_1 + 0x18) < 0" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) < number_literal) ))) )) && (parenthesized_expression "(param_1[0x1c] == (Task)0x0)" ( (binary_expression "param_1[0x1c] == (Task)0x0" (subscript_expression "param_1[0x1c]" identifier [ number_literal ]) == (cast_expression "(Task)0x0" ( (type_descriptor "Task" type_identifier) ) number_literal)) ))) )) && (parenthesized_expression "(*(int *)(param_1 + 4) == 0)" ( (binary_expression "*(int *)(param_1 + 4) == 0" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    (*(code *)PTR__M_assign_004c200c)(param_1,param_3);\n    pVVar1 = (View *)(*(code *)PTR_operator_new_004c13a8)(0x28);\n    *(View **)(param_1 + 0x70) = pVVar1;\n    *(undefined4 *)(pVVar1 + 8) = param_4._4_4_;\n    *(undefined4 *)(pVVar1 + 4) = 0;\n    *(undefined4 *)pVVar1 = 0;\n    *(undefined4 *)(pVVar1 + 0xc) = in_a3;\n    *(undefined4 *)(pVVar1 + 0x10) = 0;\n    *(undefined4 *)(pVVar1 + 0x14) = 0;\n    pVVar1[0x18] = (View)0x0;\n    *(undefined4 *)(pVVar1 + 0x1c) = 0;\n    pVVar1[0x20] = (View)0x1;\n    add_view((File_read *)param_1,pVVar1);\n    *(longlong *)(param_1 + 0x28) = param_4;\n    if ((param_1[0x30] == (Task)0x0) && (*(int *)(param_1 + 0x38) == 0)) {\n      *(string **)(param_1 + 0x38) = param_2;\n      return 1;\n    }\n                    \n    FUN_001741d4();\n  }" { (expression_statement "(*(code *)PTR__M_assign_004c200c)(param_1,param_3);" (call_expression "(*(code *)PTR__M_assign_004c200c)(param_1,param_3)" (parenthesized_expression "(*(code *)PTR__M_assign_004c200c)" ( (pointer_expression "*(code *)PTR__M_assign_004c200c" * (cast_expression "(code *)PTR__M_assign_004c200c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_3)" ( identifier , identifier ))) ;) (expression_statement "pVVar1 = (View *)(*(code *)PTR_operator_new_004c13a8)(0x28);" (assignment_expression "pVVar1 = (View *)(*(code *)PTR_operator_new_004c13a8)(0x28)" identifier = (cast_expression "(View *)(*(code *)PTR_operator_new_004c13a8)(0x28)" ( (type_descriptor "View *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_operator_new_004c13a8)(0x28)" (parenthesized_expression "(*(code *)PTR_operator_new_004c13a8)" ( (pointer_expression "*(code *)PTR_operator_new_004c13a8" * (cast_expression "(code *)PTR_operator_new_004c13a8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x28)" ( number_literal ))))) ;) (expression_statement "*(View **)(param_1 + 0x70) = pVVar1;" (assignment_expression "*(View **)(param_1 + 0x70) = pVVar1" (pointer_expression "*(View **)(param_1 + 0x70)" * (cast_expression "(View **)(param_1 + 0x70)" ( (type_descriptor "View **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(pVVar1 + 8) = param_4._4_4_;" (assignment_expression "*(undefined4 *)(pVVar1 + 8) = param_4._4_4_" (pointer_expression "*(undefined4 *)(pVVar1 + 8)" * (cast_expression "(undefined4 *)(pVVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pVVar1 + 8)" ( (binary_expression "pVVar1 + 8" identifier + number_literal) )))) = (field_expression "param_4._4_4_" identifier . field_identifier)) ;) (expression_statement "*(undefined4 *)(pVVar1 + 4) = 0;" (assignment_expression "*(undefined4 *)(pVVar1 + 4) = 0" (pointer_expression "*(undefined4 *)(pVVar1 + 4)" * (cast_expression "(undefined4 *)(pVVar1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pVVar1 + 4)" ( (binary_expression "pVVar1 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)pVVar1 = 0;" (assignment_expression "*(undefined4 *)pVVar1 = 0" (pointer_expression "*(undefined4 *)pVVar1" * (cast_expression "(undefined4 *)pVVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(undefined4 *)(pVVar1 + 0xc) = in_a3;" (assignment_expression "*(undefined4 *)(pVVar1 + 0xc) = in_a3" (pointer_expression "*(undefined4 *)(pVVar1 + 0xc)" * (cast_expression "(undefined4 *)(pVVar1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pVVar1 + 0xc)" ( (binary_expression "pVVar1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(pVVar1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(pVVar1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(pVVar1 + 0x10)" * (cast_expression "(undefined4 *)(pVVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pVVar1 + 0x10)" ( (binary_expression "pVVar1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(pVVar1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(pVVar1 + 0x14) = 0" (pointer_expression "*(undefined4 *)(pVVar1 + 0x14)" * (cast_expression "(undefined4 *)(pVVar1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pVVar1 + 0x14)" ( (binary_expression "pVVar1 + 0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "pVVar1[0x18] = (View)0x0;" (assignment_expression "pVVar1[0x18] = (View)0x0" (subscript_expression "pVVar1[0x18]" identifier [ number_literal ]) = (cast_expression "(View)0x0" ( (type_descriptor "View" type_identifier) ) number_literal)) ;) (expression_statement "*(undefined4 *)(pVVar1 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(pVVar1 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(pVVar1 + 0x1c)" * (cast_expression "(undefined4 *)(pVVar1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pVVar1 + 0x1c)" ( (binary_expression "pVVar1 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "pVVar1[0x20] = (View)0x1;" (assignment_expression "pVVar1[0x20] = (View)0x1" (subscript_expression "pVVar1[0x20]" identifier [ number_literal ]) = (cast_expression "(View)0x1" ( (type_descriptor "View" type_identifier) ) number_literal)) ;) (expression_statement "add_view((File_read *)param_1,pVVar1);" (call_expression "add_view((File_read *)param_1,pVVar1)" identifier (argument_list "((File_read *)param_1,pVVar1)" ( (cast_expression "(File_read *)param_1" ( (type_descriptor "File_read *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;) (expression_statement "*(longlong *)(param_1 + 0x28) = param_4;" (assignment_expression "*(longlong *)(param_1 + 0x28) = param_4" (pointer_expression "*(longlong *)(param_1 + 0x28)" * (cast_expression "(longlong *)(param_1 + 0x28)" ( (type_descriptor "longlong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((param_1[0x30] == (Task)0x0) && (*(int *)(param_1 + 0x38) == 0)) {\n      *(string **)(param_1 + 0x38) = param_2;\n      return 1;\n    }" if (parenthesized_expression "((param_1[0x30] == (Task)0x0) && (*(int *)(param_1 + 0x38) == 0))" ( (binary_expression "(param_1[0x30] == (Task)0x0) && (*(int *)(param_1 + 0x38) == 0)" (parenthesized_expression "(param_1[0x30] == (Task)0x0)" ( (binary_expression "param_1[0x30] == (Task)0x0" (subscript_expression "param_1[0x30]" identifier [ number_literal ]) == (cast_expression "(Task)0x0" ( (type_descriptor "Task" type_identifier) ) number_literal)) )) && (parenthesized_expression "(*(int *)(param_1 + 0x38) == 0)" ( (binary_expression "*(int *)(param_1 + 0x38) == 0" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n      *(string **)(param_1 + 0x38) = param_2;\n      return 1;\n    }" { (expression_statement "*(string **)(param_1 + 0x38) = param_2;" (assignment_expression "*(string **)(param_1 + 0x38) = param_2" (pointer_expression "*(string **)(param_1 + 0x38)" * (cast_expression "(string **)(param_1 + 0x38)" ( (type_descriptor "string **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "FUN_001741d4();" (call_expression "FUN_001741d4()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "do_gold_unreachable(PTR_s__s_004c1a50 + -0x260,0xe4,PTR_s__s_004c1a50 + 0xe4);" (call_expression "do_gold_unreachable(PTR_s__s_004c1a50 + -0x260,0xe4,PTR_s__s_004c1a50 + 0xe4)" identifier (argument_list "(PTR_s__s_004c1a50 + -0x260,0xe4,PTR_s__s_004c1a50 + 0xe4)" ( (binary_expression "PTR_s__s_004c1a50 + -0x260" identifier + number_literal) , number_literal , (binary_expression "PTR_s__s_004c1a50 + 0xe4" identifier + number_literal) ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT : : IDENT : :) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (cast_expression ( (type_descriptor TYPE) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < LIT) ))) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (cast_expression ( (type_descriptor TYPE) ) LIT)) ))) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) ))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (field_expression IDENT . field_identifier)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (cast_expression ( (type_descriptor TYPE) ) LIT)) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return LIT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) ))) ;) })))
(function_definition "undefined4 gold::File_read::open(Task *param_1,string *param_2,uchar *param_3,longlong param_4)\n\n{\n  View *pVVar1;\n  undefined4 in_a3;\n  \n  if (param_1[0x30] != (Task)0x0) {\n                    \n    FUN_001741a0();\n  }\n  if ((((*(int *)(param_1 + 0x38) == 0) && (*(int *)(param_1 + 0x18) < 0)) &&\n      (param_1[0x1c] == (Task)0x0)) && (*(int *)(param_1 + 4) == 0)) {\n    (*(code *)PTR__M_assign_004c200c)(param_1,param_3);\n    pVVar1 = (View *)(*(code *)PTR_operator_new_004c13a8)(0x28);\n    *(View **)(param_1 + 0x70) = pVVar1;\n    *(undefined4 *)(pVVar1 + 8) = param_4._4_4_;\n    *(undefined4 *)(pVVar1 + 4) = 0;\n    *(undefined4 *)pVVar1 = 0;\n    *(undefined4 *)(pVVar1 + 0xc) = in_a3;\n    *(undefined4 *)(pVVar1 + 0x10) = 0;\n    *(undefined4 *)(pVVar1 + 0x14) = 0;\n    pVVar1[0x18] = (View)0x0;\n    *(undefined4 *)(pVVar1 + 0x1c) = 0;\n    pVVar1[0x20] = (View)0x1;\n    add_view((File_read *)param_1,pVVar1);\n    *(longlong *)(param_1 + 0x28) = param_4;\n    if ((param_1[0x30] == (Task)0x0) && (*(int *)(param_1 + 0x38) == 0)) {\n      *(string **)(param_1 + 0x38) = param_2;\n      return 1;\n    }\n                    \n    FUN_001741d4();\n  }\n                    \n  do_gold_unreachable(PTR_s__s_004c1a50 + -0x260,0xe4,PTR_s__s_004c1a50 + 0xe4);\n}" (type_identifier "undefined4") (ERROR "gold::File_read::" (identifier "gold") (: ":") (: ":") (identifier "File_read") (: ":") (: ":")) (function_declarator "open(Task *param_1,string *param_2,uchar *param_3,longlong param_4)" (identifier "open") (parameter_list "(Task *param_1,string *param_2,uchar *param_3,longlong param_4)" (( "(") (parameter_declaration "Task *param_1" (type_identifier "Task") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "string *param_2" (type_identifier "string") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "uchar *param_3" (type_identifier "uchar") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "longlong param_4" (type_identifier "longlong") (identifier "param_4")) () ")"))) (compound_statement "{\n  View *pVVar1;\n  undefined4 in_a3;\n  \n  if (param_1[0x30] != (Task)0x0) {\n                    \n    FUN_001741a0();\n  }\n  if ((((*(int *)(param_1 + 0x38) == 0) && (*(int *)(param_1 + 0x18) < 0)) &&\n      (param_1[0x1c] == (Task)0x0)) && (*(int *)(param_1 + 4) == 0)) {\n    (*(code *)PTR__M_assign_004c200c)(param_1,param_3);\n    pVVar1 = (View *)(*(code *)PTR_operator_new_004c13a8)(0x28);\n    *(View **)(param_1 + 0x70) = pVVar1;\n    *(undefined4 *)(pVVar1 + 8) = param_4._4_4_;\n    *(undefined4 *)(pVVar1 + 4) = 0;\n    *(undefined4 *)pVVar1 = 0;\n    *(undefined4 *)(pVVar1 + 0xc) = in_a3;\n    *(undefined4 *)(pVVar1 + 0x10) = 0;\n    *(undefined4 *)(pVVar1 + 0x14) = 0;\n    pVVar1[0x18] = (View)0x0;\n    *(undefined4 *)(pVVar1 + 0x1c) = 0;\n    pVVar1[0x20] = (View)0x1;\n    add_view((File_read *)param_1,pVVar1);\n    *(longlong *)(param_1 + 0x28) = param_4;\n    if ((param_1[0x30] == (Task)0x0) && (*(int *)(param_1 + 0x38) == 0)) {\n      *(string **)(param_1 + 0x38) = param_2;\n      return 1;\n    }\n                    \n    FUN_001741d4();\n  }\n                    \n  do_gold_unreachable(PTR_s__s_004c1a50 + -0x260,0xe4,PTR_s__s_004c1a50 + 0xe4);\n}" ({ "{") (declaration "View *pVVar1;" (type_identifier "View") (pointer_declarator "*pVVar1" (* "*") (identifier "pVVar1")) (; ";")) (declaration "undefined4 in_a3;" (type_identifier "undefined4") (identifier "in_a3") (; ";")) (if_statement "if (param_1[0x30] != (Task)0x0) {\n                    \n    FUN_001741a0();\n  }" (if "if") (parenthesized_expression "(param_1[0x30] != (Task)0x0)" (( "(") (binary_expression "param_1[0x30] != (Task)0x0" (subscript_expression "param_1[0x30]" (identifier "param_1") ([ "[") (number_literal "0x30") (] "]")) (!= "!=") (cast_expression "(Task)0x0" (( "(") (type_descriptor "Task" (type_identifier "Task")) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n    FUN_001741a0();\n  }" ({ "{") (expression_statement "FUN_001741a0();" (call_expression "FUN_001741a0()" (identifier "FUN_001741a0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if ((((*(int *)(param_1 + 0x38) == 0) && (*(int *)(param_1 + 0x18) < 0)) &&\n      (param_1[0x1c] == (Task)0x0)) && (*(int *)(param_1 + 4) == 0)) {\n    (*(code *)PTR__M_assign_004c200c)(param_1,param_3);\n    pVVar1 = (View *)(*(code *)PTR_operator_new_004c13a8)(0x28);\n    *(View **)(param_1 + 0x70) = pVVar1;\n    *(undefined4 *)(pVVar1 + 8) = param_4._4_4_;\n    *(undefined4 *)(pVVar1 + 4) = 0;\n    *(undefined4 *)pVVar1 = 0;\n    *(undefined4 *)(pVVar1 + 0xc) = in_a3;\n    *(undefined4 *)(pVVar1 + 0x10) = 0;\n    *(undefined4 *)(pVVar1 + 0x14) = 0;\n    pVVar1[0x18] = (View)0x0;\n    *(undefined4 *)(pVVar1 + 0x1c) = 0;\n    pVVar1[0x20] = (View)0x1;\n    add_view((File_read *)param_1,pVVar1);\n    *(longlong *)(param_1 + 0x28) = param_4;\n    if ((param_1[0x30] == (Task)0x0) && (*(int *)(param_1 + 0x38) == 0)) {\n      *(string **)(param_1 + 0x38) = param_2;\n      return 1;\n    }\n                    \n    FUN_001741d4();\n  }" (if "if") (parenthesized_expression "((((*(int *)(param_1 + 0x38) == 0) && (*(int *)(param_1 + 0x18) < 0)) &&\n      (param_1[0x1c] == (Task)0x0)) && (*(int *)(param_1 + 4) == 0))" (( "(") (binary_expression "(((*(int *)(param_1 + 0x38) == 0) && (*(int *)(param_1 + 0x18) < 0)) &&\n      (param_1[0x1c] == (Task)0x0)) && (*(int *)(param_1 + 4) == 0)" (parenthesized_expression "(((*(int *)(param_1 + 0x38) == 0) && (*(int *)(param_1 + 0x18) < 0)) &&\n      (param_1[0x1c] == (Task)0x0))" (( "(") (binary_expression "((*(int *)(param_1 + 0x38) == 0) && (*(int *)(param_1 + 0x18) < 0)) &&\n      (param_1[0x1c] == (Task)0x0)" (parenthesized_expression "((*(int *)(param_1 + 0x38) == 0) && (*(int *)(param_1 + 0x18) < 0))" (( "(") (binary_expression "(*(int *)(param_1 + 0x38) == 0) && (*(int *)(param_1 + 0x18) < 0)" (parenthesized_expression "(*(int *)(param_1 + 0x38) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x38) == 0" (pointer_expression "*(int *)(param_1 + 0x38)" (* "*") (cast_expression "(int *)(param_1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(param_1 + 0x18) < 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x18) < 0" (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (< "<") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(param_1[0x1c] == (Task)0x0)" (( "(") (binary_expression "param_1[0x1c] == (Task)0x0" (subscript_expression "param_1[0x1c]" (identifier "param_1") ([ "[") (number_literal "0x1c") (] "]")) (== "==") (cast_expression "(Task)0x0" (( "(") (type_descriptor "Task" (type_identifier "Task")) () ")") (number_literal "0x0"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(param_1 + 4) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 4) == 0" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    (*(code *)PTR__M_assign_004c200c)(param_1,param_3);\n    pVVar1 = (View *)(*(code *)PTR_operator_new_004c13a8)(0x28);\n    *(View **)(param_1 + 0x70) = pVVar1;\n    *(undefined4 *)(pVVar1 + 8) = param_4._4_4_;\n    *(undefined4 *)(pVVar1 + 4) = 0;\n    *(undefined4 *)pVVar1 = 0;\n    *(undefined4 *)(pVVar1 + 0xc) = in_a3;\n    *(undefined4 *)(pVVar1 + 0x10) = 0;\n    *(undefined4 *)(pVVar1 + 0x14) = 0;\n    pVVar1[0x18] = (View)0x0;\n    *(undefined4 *)(pVVar1 + 0x1c) = 0;\n    pVVar1[0x20] = (View)0x1;\n    add_view((File_read *)param_1,pVVar1);\n    *(longlong *)(param_1 + 0x28) = param_4;\n    if ((param_1[0x30] == (Task)0x0) && (*(int *)(param_1 + 0x38) == 0)) {\n      *(string **)(param_1 + 0x38) = param_2;\n      return 1;\n    }\n                    \n    FUN_001741d4();\n  }" ({ "{") (expression_statement "(*(code *)PTR__M_assign_004c200c)(param_1,param_3);" (call_expression "(*(code *)PTR__M_assign_004c200c)(param_1,param_3)" (parenthesized_expression "(*(code *)PTR__M_assign_004c200c)" (( "(") (pointer_expression "*(code *)PTR__M_assign_004c200c" (* "*") (cast_expression "(code *)PTR__M_assign_004c200c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR__M_assign_004c200c"))) () ")")) (argument_list "(param_1,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "pVVar1 = (View *)(*(code *)PTR_operator_new_004c13a8)(0x28);" (assignment_expression "pVVar1 = (View *)(*(code *)PTR_operator_new_004c13a8)(0x28)" (identifier "pVVar1") (= "=") (cast_expression "(View *)(*(code *)PTR_operator_new_004c13a8)(0x28)" (( "(") (type_descriptor "View *" (type_identifier "View") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_operator_new_004c13a8)(0x28)" (parenthesized_expression "(*(code *)PTR_operator_new_004c13a8)" (( "(") (pointer_expression "*(code *)PTR_operator_new_004c13a8" (* "*") (cast_expression "(code *)PTR_operator_new_004c13a8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_operator_new_004c13a8"))) () ")")) (argument_list "(0x28)" (( "(") (number_literal "0x28") () ")"))))) (; ";")) (expression_statement "*(View **)(param_1 + 0x70) = pVVar1;" (assignment_expression "*(View **)(param_1 + 0x70) = pVVar1" (pointer_expression "*(View **)(param_1 + 0x70)" (* "*") (cast_expression "(View **)(param_1 + 0x70)" (( "(") (type_descriptor "View **" (type_identifier "View") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")")))) (= "=") (identifier "pVVar1")) (; ";")) (expression_statement "*(undefined4 *)(pVVar1 + 8) = param_4._4_4_;" (assignment_expression "*(undefined4 *)(pVVar1 + 8) = param_4._4_4_" (pointer_expression "*(undefined4 *)(pVVar1 + 8)" (* "*") (cast_expression "(undefined4 *)(pVVar1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pVVar1 + 8)" (( "(") (binary_expression "pVVar1 + 8" (identifier "pVVar1") (+ "+") (number_literal "8")) () ")")))) (= "=") (field_expression "param_4._4_4_" (identifier "param_4") (. ".") (field_identifier "_4_4_"))) (; ";")) (expression_statement "*(undefined4 *)(pVVar1 + 4) = 0;" (assignment_expression "*(undefined4 *)(pVVar1 + 4) = 0" (pointer_expression "*(undefined4 *)(pVVar1 + 4)" (* "*") (cast_expression "(undefined4 *)(pVVar1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pVVar1 + 4)" (( "(") (binary_expression "pVVar1 + 4" (identifier "pVVar1") (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)pVVar1 = 0;" (assignment_expression "*(undefined4 *)pVVar1 = 0" (pointer_expression "*(undefined4 *)pVVar1" (* "*") (cast_expression "(undefined4 *)pVVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "pVVar1"))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(pVVar1 + 0xc) = in_a3;" (assignment_expression "*(undefined4 *)(pVVar1 + 0xc) = in_a3" (pointer_expression "*(undefined4 *)(pVVar1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(pVVar1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pVVar1 + 0xc)" (( "(") (binary_expression "pVVar1 + 0xc" (identifier "pVVar1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "in_a3")) (; ";")) (expression_statement "*(undefined4 *)(pVVar1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(pVVar1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(pVVar1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(pVVar1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pVVar1 + 0x10)" (( "(") (binary_expression "pVVar1 + 0x10" (identifier "pVVar1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(pVVar1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(pVVar1 + 0x14) = 0" (pointer_expression "*(undefined4 *)(pVVar1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(pVVar1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pVVar1 + 0x14)" (( "(") (binary_expression "pVVar1 + 0x14" (identifier "pVVar1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "pVVar1[0x18] = (View)0x0;" (assignment_expression "pVVar1[0x18] = (View)0x0" (subscript_expression "pVVar1[0x18]" (identifier "pVVar1") ([ "[") (number_literal "0x18") (] "]")) (= "=") (cast_expression "(View)0x0" (( "(") (type_descriptor "View" (type_identifier "View")) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "*(undefined4 *)(pVVar1 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(pVVar1 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(pVVar1 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(pVVar1 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pVVar1 + 0x1c)" (( "(") (binary_expression "pVVar1 + 0x1c" (identifier "pVVar1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "pVVar1[0x20] = (View)0x1;" (assignment_expression "pVVar1[0x20] = (View)0x1" (subscript_expression "pVVar1[0x20]" (identifier "pVVar1") ([ "[") (number_literal "0x20") (] "]")) (= "=") (cast_expression "(View)0x1" (( "(") (type_descriptor "View" (type_identifier "View")) () ")") (number_literal "0x1"))) (; ";")) (expression_statement "add_view((File_read *)param_1,pVVar1);" (call_expression "add_view((File_read *)param_1,pVVar1)" (identifier "add_view") (argument_list "((File_read *)param_1,pVVar1)" (( "(") (cast_expression "(File_read *)param_1" (( "(") (type_descriptor "File_read *" (type_identifier "File_read") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1")) (, ",") (identifier "pVVar1") () ")"))) (; ";")) (expression_statement "*(longlong *)(param_1 + 0x28) = param_4;" (assignment_expression "*(longlong *)(param_1 + 0x28) = param_4" (pointer_expression "*(longlong *)(param_1 + 0x28)" (* "*") (cast_expression "(longlong *)(param_1 + 0x28)" (( "(") (type_descriptor "longlong *" (type_identifier "longlong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (identifier "param_4")) (; ";")) (if_statement "if ((param_1[0x30] == (Task)0x0) && (*(int *)(param_1 + 0x38) == 0)) {\n      *(string **)(param_1 + 0x38) = param_2;\n      return 1;\n    }" (if "if") (parenthesized_expression "((param_1[0x30] == (Task)0x0) && (*(int *)(param_1 + 0x38) == 0))" (( "(") (binary_expression "(param_1[0x30] == (Task)0x0) && (*(int *)(param_1 + 0x38) == 0)" (parenthesized_expression "(param_1[0x30] == (Task)0x0)" (( "(") (binary_expression "param_1[0x30] == (Task)0x0" (subscript_expression "param_1[0x30]" (identifier "param_1") ([ "[") (number_literal "0x30") (] "]")) (== "==") (cast_expression "(Task)0x0" (( "(") (type_descriptor "Task" (type_identifier "Task")) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(param_1 + 0x38) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x38) == 0" (pointer_expression "*(int *)(param_1 + 0x38)" (* "*") (cast_expression "(int *)(param_1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      *(string **)(param_1 + 0x38) = param_2;\n      return 1;\n    }" ({ "{") (expression_statement "*(string **)(param_1 + 0x38) = param_2;" (assignment_expression "*(string **)(param_1 + 0x38) = param_2" (pointer_expression "*(string **)(param_1 + 0x38)" (* "*") (cast_expression "(string **)(param_1 + 0x38)" (( "(") (type_descriptor "string **" (type_identifier "string") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "FUN_001741d4();" (call_expression "FUN_001741d4()" (identifier "FUN_001741d4") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "do_gold_unreachable(PTR_s__s_004c1a50 + -0x260,0xe4,PTR_s__s_004c1a50 + 0xe4);" (call_expression "do_gold_unreachable(PTR_s__s_004c1a50 + -0x260,0xe4,PTR_s__s_004c1a50 + 0xe4)" (identifier "do_gold_unreachable") (argument_list "(PTR_s__s_004c1a50 + -0x260,0xe4,PTR_s__s_004c1a50 + 0xe4)" (( "(") (binary_expression "PTR_s__s_004c1a50 + -0x260" (identifier "PTR_s__s_004c1a50") (+ "+") (number_literal "-0x260")) (, ",") (number_literal "0xe4") (, ",") (binary_expression "PTR_s__s_004c1a50 + 0xe4" (identifier "PTR_s__s_004c1a50") (+ "+") (number_literal "0xe4")) () ")"))) (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) (ERROR (identifier) (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: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (number_literal)))))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (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))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)) (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (number_literal)))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (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))))) right: (identifier))) (return_statement (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal))))))))

/* gold::File_read::MASKED(gold::Task const*, std::string const&, unsigned char const*, long long) */

undefined4 gold::File_read::MASKED(Task *param_1,string *param_2,uchar *param_3,longlong param_4)

{
  View *pVVar1;
  undefined4 in_a3;
  
  if (param_1[0x30] != (Task)0x0) {
                    /* WARNING: Subroutine does not return */
    FUN_001741a0();
  }
  if ((((*(int *)(param_1 + 0x38) == 0) && (*(int *)(param_1 + 0x18) < 0)) &&
      (param_1[0x1c] == (Task)0x0)) && (*(int *)(param_1 + 4) == 0)) {
    (*(code *)PTR__M_assign_004c200c)(param_1,param_3);
    pVVar1 = (View *)(*(code *)PTR_operator_new_004c13a8)(0x28);
    *(View **)(param_1 + 0x70) = pVVar1;
    *(undefined4 *)(pVVar1 + 8) = param_4._4_4_;
    *(undefined4 *)(pVVar1 + 4) = 0;
    *(undefined4 *)pVVar1 = 0;
    *(undefined4 *)(pVVar1 + 0xc) = in_a3;
    *(undefined4 *)(pVVar1 + 0x10) = 0;
    *(undefined4 *)(pVVar1 + 0x14) = 0;
    pVVar1[0x18] = (View)0x0;
    *(undefined4 *)(pVVar1 + 0x1c) = 0;
    pVVar1[0x20] = (View)0x1;
    add_view((File_read *)param_1,pVVar1);
    *(longlong *)(param_1 + 0x28) = param_4;
    if ((param_1[0x30] == (Task)0x0) && (*(int *)(param_1 + 0x38) == 0)) {
      *(string **)(param_1 + 0x38) = param_2;
      return 1;
    }
                    /* WARNING: Subroutine does not return */
    FUN_001741d4();
  }
                    /* WARNING: Subroutine does not return */
  do_gold_unreachable(PTR_s__s_004c1a50 + -0x260,0xe4,PTR_s__s_004c1a50 + 0xe4);
}

