
/* WARNING: Enum "GravityType": Some values do not have unique names */
/* WARNING: Enum "DisposeType": Some values do not have unique names */
/* WARNING: Enum "ChannelType": Some values do not have unique names */
/* WARNING: Enum "PixelChannel": Some values do not have unique names */

uint ReadBlobMSBLong(Image *image)

{
  int iVar1;
  byte *pbVar2;
  uint uVar3;
  undefined *puVar4;
  ssize_t count;
  uchar buffer [4];
  
  iVar1 = *(int *)PTR___stack_chk_guard_003fa248;
  if (image == (Image *)0x0) {
    uVar3 = (*(code *)PTR___assert_fail_003fa620)
                      (PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,
                       PTR_LAB_003f98e0 + 0x5338);
    return uVar3;
  }
  if (image->signature == 0xabacadab) {
    buffer[0] = '\0';
    pbVar2 = (byte *)(*(code *)PTR_ReadBlobStream_003fa0b0)(image,4,buffer,&count);
    if (count == 4) {
      uVar3 = (uint)pbVar2[2] << 8 |
              (uint)pbVar2[1] << 0x10 | (uint)*pbVar2 << 0x18 | (uint)pbVar2[3];
    }
    else {
      uVar3 = 0;
    }
    if (iVar1 == *(int *)PTR___stack_chk_guard_003fa248) {
      return uVar3;
    }
    puVar4 = PTR___stack_chk_fail_003fa07c;
    (*(code *)PTR___stack_chk_fail_003fa07c)();
    uVar3 = (**(code **)(puVar4 + 0x3b7278))();
    return uVar3;
  }
  uVar3 = (*(code *)PTR___assert_fail_003fa620)
                    (PTR_UINT_003f98e4 + -0x784,PTR_LAB_003f98e0 + 0x4aac,0x1178,
                     PTR_LAB_003f98e0 + 0x5338);
  return uVar3;
}



uint ReadBlobMSBLong(int param_1)

{
  byte *pbVar1;
  uint uVar2;
  undefined *puVar3;
  int local_14;
  undefined1 local_10 [4];
  int local_c;
  
  local_c = *(int *)PTR___stack_chk_guard_003fa248;
  if (param_1 == 0) {
    uVar2 = (*(code *)PTR___assert_fail_003fa620)
                      (PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,
                       PTR_LAB_003f98e0 + 0x5338);
    return uVar2;
  }
  if (*(int *)(param_1 + 0x336c) == -0x54535255) {
    local_10[0] = 0;
    pbVar1 = (byte *)(*(code *)PTR_ReadBlobStream_003fa0b0)(param_1,4,local_10,&local_14);
    if (local_14 == 4) {
      uVar2 = (uint)pbVar1[2] << 8 |
              (uint)pbVar1[1] << 0x10 | (uint)*pbVar1 << 0x18 | (uint)pbVar1[3];
    }
    else {
      uVar2 = 0;
    }
    if (local_c == *(int *)PTR___stack_chk_guard_003fa248) {
      return uVar2;
    }
    puVar3 = PTR___stack_chk_fail_003fa07c;
    (*(code *)PTR___stack_chk_fail_003fa07c)();
    uVar2 = (**(code **)(puVar3 + 0x3b7278))();
    return uVar2;
  }
  uVar2 = (*(code *)PTR___assert_fail_003fa620)
                    (PTR_UINT_003f98e4 + -0x784,PTR_LAB_003f98e0 + 0x4aac,0x1178,
                     PTR_LAB_003f98e0 + 0x5338);
  return uVar2;
}


lui gp,0x3c
addiu gp,gp,-0x1178
addu gp,gp,t9
addiu sp,sp,-0x30
sw ra,0x2c(sp)
sw gp,0x10(sp)
lw v0,-0x7668(gp)
lw v0,0x0(v0)
sw v0,0x24(sp)
beq a0,zero,0x00042ab4
_lw a3,-0x7fd0(gp)
lw v1,0x336c(a0)
lui v0,0xabac
ori v0,v0,0xadab
bne v1,v0,0x00042ad8
_addiu a3,sp,0x1c
sb zero,0x20(sp)
addiu a2,sp,0x20
li a1,0x4
lw t9,-0x7800(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw a0,0x1c(sp)
li v1,0x4
beq a0,v1,0x00042b00
_nop
or v0,zero,zero
lw a0,0x24(sp)
lw v1,-0x7668(gp)
lw v1,0x0(v1)
bne a0,v1,0x00042b2c
_lw ra,0x2c(sp)
jr ra
_addiu sp,sp,0x30
addiu a3,a3,0x5338
li a2,0x1177
lw a1,-0x7fd0(gp)
addiu a1,a1,0x4aac
lw a0,-0x7fd0(gp)
addiu a0,a0,0x3da0
lw t9,-0x7290(gp)
jalr t9
_nop
lw a3,-0x7fd0(gp)
addiu a3,a3,0x5338
li a2,0x1178
lw a1,-0x7fd0(gp)
addiu a1,a1,0x4aac
lw a0,-0x7fcc(gp)
addiu a0,a0,-0x784
lw t9,-0x7290(gp)
jalr t9
_nop
lbu v1,0x0(v0)
sll a0,v1,0x18
lbu v1,0x1(v0)
sll v1,v1,0x10
or v1,v1,a0
lbu a0,0x3(v0)
or v1,v1,a0
lbu v0,0x2(v0)
sll v0,v0,0x8
b 0x00042a98
_or v0,v0,v1
lw t9,-0x7834(gp)
jalr t9
_nop
(translation_unit "uint ReadBlobMSBLong(int param_1)\n\n{\n  byte *pbVar1;\n  uint uVar2;\n  undefined *puVar3;\n  int local_14;\n  undefined1 local_10 [4];\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_003fa248;\n  if (param_1 == 0) {\n    uVar2 = (*(code *)PTR___assert_fail_003fa620)\n                      (PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338);\n    return uVar2;\n  }\n  if (*(int *)(param_1 + 0x336c) == -0x54535255) {\n    local_10[0] = 0;\n    pbVar1 = (byte *)(*(code *)PTR_ReadBlobStream_003fa0b0)(param_1,4,local_10,&local_14);\n    if (local_14 == 4) {\n      uVar2 = (uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10 | (uint)*pbVar1 << 0x18 | (uint)pbVar1[3];\n    }\n    else {\n      uVar2 = 0;\n    }\n    if (local_c == *(int *)PTR___stack_chk_guard_003fa248) {\n      return uVar2;\n    }\n    puVar3 = PTR___stack_chk_fail_003fa07c;\n    (*(code *)PTR___stack_chk_fail_003fa07c)();\n    uVar2 = (**(code **)(puVar3 + 0x3b7278))();\n    return uVar2;\n  }\n  uVar2 = (*(code *)PTR___assert_fail_003fa620)\n                    (PTR_UINT_003f98e4 + -0x784,PTR_LAB_003f98e0 + 0x4aac,0x1178,\n                     PTR_LAB_003f98e0 + 0x5338);\n  return uVar2;\n}\n\n" (function_definition "uint ReadBlobMSBLong(int param_1)\n\n{\n  byte *pbVar1;\n  uint uVar2;\n  undefined *puVar3;\n  int local_14;\n  undefined1 local_10 [4];\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_003fa248;\n  if (param_1 == 0) {\n    uVar2 = (*(code *)PTR___assert_fail_003fa620)\n                      (PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338);\n    return uVar2;\n  }\n  if (*(int *)(param_1 + 0x336c) == -0x54535255) {\n    local_10[0] = 0;\n    pbVar1 = (byte *)(*(code *)PTR_ReadBlobStream_003fa0b0)(param_1,4,local_10,&local_14);\n    if (local_14 == 4) {\n      uVar2 = (uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10 | (uint)*pbVar1 << 0x18 | (uint)pbVar1[3];\n    }\n    else {\n      uVar2 = 0;\n    }\n    if (local_c == *(int *)PTR___stack_chk_guard_003fa248) {\n      return uVar2;\n    }\n    puVar3 = PTR___stack_chk_fail_003fa07c;\n    (*(code *)PTR___stack_chk_fail_003fa07c)();\n    uVar2 = (**(code **)(puVar3 + 0x3b7278))();\n    return uVar2;\n  }\n  uVar2 = (*(code *)PTR___assert_fail_003fa620)\n                    (PTR_UINT_003f98e4 + -0x784,PTR_LAB_003f98e0 + 0x4aac,0x1178,\n                     PTR_LAB_003f98e0 + 0x5338);\n  return uVar2;\n}" type_identifier (function_declarator "ReadBlobMSBLong(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  byte *pbVar1;\n  uint uVar2;\n  undefined *puVar3;\n  int local_14;\n  undefined1 local_10 [4];\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_003fa248;\n  if (param_1 == 0) {\n    uVar2 = (*(code *)PTR___assert_fail_003fa620)\n                      (PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338);\n    return uVar2;\n  }\n  if (*(int *)(param_1 + 0x336c) == -0x54535255) {\n    local_10[0] = 0;\n    pbVar1 = (byte *)(*(code *)PTR_ReadBlobStream_003fa0b0)(param_1,4,local_10,&local_14);\n    if (local_14 == 4) {\n      uVar2 = (uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10 | (uint)*pbVar1 << 0x18 | (uint)pbVar1[3];\n    }\n    else {\n      uVar2 = 0;\n    }\n    if (local_c == *(int *)PTR___stack_chk_guard_003fa248) {\n      return uVar2;\n    }\n    puVar3 = PTR___stack_chk_fail_003fa07c;\n    (*(code *)PTR___stack_chk_fail_003fa07c)();\n    uVar2 = (**(code **)(puVar3 + 0x3b7278))();\n    return uVar2;\n  }\n  uVar2 = (*(code *)PTR___assert_fail_003fa620)\n                    (PTR_UINT_003f98e4 + -0x784,PTR_LAB_003f98e0 + 0x4aac,0x1178,\n                     PTR_LAB_003f98e0 + 0x5338);\n  return uVar2;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int local_14;" primitive_type identifier ;) (declaration "undefined1 local_10 [4];" type_identifier (array_declarator "local_10 [4]" identifier [ number_literal ]) ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_003fa248;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_003fa248" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_003fa248" * (cast_expression "(int *)PTR___stack_chk_guard_003fa248" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (param_1 == 0) {\n    uVar2 = (*(code *)PTR___assert_fail_003fa620)\n                      (PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338);\n    return uVar2;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar2 = (*(code *)PTR___assert_fail_003fa620)\n                      (PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338);\n    return uVar2;\n  }" { (expression_statement "uVar2 = (*(code *)PTR___assert_fail_003fa620)\n                      (PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338);" (assignment_expression "uVar2 = (*(code *)PTR___assert_fail_003fa620)\n                      (PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338)" identifier = (call_expression "(*(code *)PTR___assert_fail_003fa620)\n                      (PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338)" (parenthesized_expression "(*(code *)PTR___assert_fail_003fa620)" ( (pointer_expression "*(code *)PTR___assert_fail_003fa620" * (cast_expression "(code *)PTR___assert_fail_003fa620" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338)" ( (binary_expression "PTR_LAB_003f98e0 + 0x3da0" identifier + number_literal) , (binary_expression "PTR_LAB_003f98e0 + 0x4aac" identifier + number_literal) , number_literal , (binary_expression "PTR_LAB_003f98e0 + 0x5338" identifier + number_literal) )))) ;) (return_statement "return uVar2;" return identifier ;) })) (if_statement "if (*(int *)(param_1 + 0x336c) == -0x54535255) {\n    local_10[0] = 0;\n    pbVar1 = (byte *)(*(code *)PTR_ReadBlobStream_003fa0b0)(param_1,4,local_10,&local_14);\n    if (local_14 == 4) {\n      uVar2 = (uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10 | (uint)*pbVar1 << 0x18 | (uint)pbVar1[3];\n    }\n    else {\n      uVar2 = 0;\n    }\n    if (local_c == *(int *)PTR___stack_chk_guard_003fa248) {\n      return uVar2;\n    }\n    puVar3 = PTR___stack_chk_fail_003fa07c;\n    (*(code *)PTR___stack_chk_fail_003fa07c)();\n    uVar2 = (**(code **)(puVar3 + 0x3b7278))();\n    return uVar2;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x336c) == -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x336c) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x336c)" * (cast_expression "(int *)(param_1 + 0x336c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x336c)" ( (binary_expression "param_1 + 0x336c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    local_10[0] = 0;\n    pbVar1 = (byte *)(*(code *)PTR_ReadBlobStream_003fa0b0)(param_1,4,local_10,&local_14);\n    if (local_14 == 4) {\n      uVar2 = (uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10 | (uint)*pbVar1 << 0x18 | (uint)pbVar1[3];\n    }\n    else {\n      uVar2 = 0;\n    }\n    if (local_c == *(int *)PTR___stack_chk_guard_003fa248) {\n      return uVar2;\n    }\n    puVar3 = PTR___stack_chk_fail_003fa07c;\n    (*(code *)PTR___stack_chk_fail_003fa07c)();\n    uVar2 = (**(code **)(puVar3 + 0x3b7278))();\n    return uVar2;\n  }" { (expression_statement "local_10[0] = 0;" (assignment_expression "local_10[0] = 0" (subscript_expression "local_10[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "pbVar1 = (byte *)(*(code *)PTR_ReadBlobStream_003fa0b0)(param_1,4,local_10,&local_14);" (assignment_expression "pbVar1 = (byte *)(*(code *)PTR_ReadBlobStream_003fa0b0)(param_1,4,local_10,&local_14)" identifier = (cast_expression "(byte *)(*(code *)PTR_ReadBlobStream_003fa0b0)(param_1,4,local_10,&local_14)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_ReadBlobStream_003fa0b0)(param_1,4,local_10,&local_14)" (parenthesized_expression "(*(code *)PTR_ReadBlobStream_003fa0b0)" ( (pointer_expression "*(code *)PTR_ReadBlobStream_003fa0b0" * (cast_expression "(code *)PTR_ReadBlobStream_003fa0b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,4,local_10,&local_14)" ( identifier , number_literal , identifier , (pointer_expression "&local_14" & identifier) ))))) ;) (if_statement "if (local_14 == 4) {\n      uVar2 = (uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10 | (uint)*pbVar1 << 0x18 | (uint)pbVar1[3];\n    }\n    else {\n      uVar2 = 0;\n    }" if (parenthesized_expression "(local_14 == 4)" ( (binary_expression "local_14 == 4" identifier == number_literal) )) (compound_statement "{\n      uVar2 = (uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10 | (uint)*pbVar1 << 0x18 | (uint)pbVar1[3];\n    }" { (expression_statement "uVar2 = (uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10 | (uint)*pbVar1 << 0x18 | (uint)pbVar1[3];" (assignment_expression "uVar2 = (uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10 | (uint)*pbVar1 << 0x18 | (uint)pbVar1[3]" identifier = (binary_expression "(uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10 | (uint)*pbVar1 << 0x18 | (uint)pbVar1[3]" (binary_expression "(uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10 | (uint)*pbVar1 << 0x18" (binary_expression "(uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10" (binary_expression "(uint)pbVar1[2] << 8" (cast_expression "(uint)pbVar1[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar1[2]" identifier [ number_literal ])) << number_literal) | (binary_expression "(uint)pbVar1[1] << 0x10" (cast_expression "(uint)pbVar1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar1[1]" identifier [ number_literal ])) << number_literal)) | (binary_expression "(uint)*pbVar1 << 0x18" (binary_expression "(uint)*pbVar1" (parenthesized_expression "(uint)" ( identifier )) * identifier) << number_literal)) | (cast_expression "(uint)pbVar1[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar1[3]" identifier [ number_literal ])))) ;) }) (else_clause "else {\n      uVar2 = 0;\n    }" else (compound_statement "{\n      uVar2 = 0;\n    }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }))) (if_statement "if (local_c == *(int *)PTR___stack_chk_guard_003fa248) {\n      return uVar2;\n    }" if (parenthesized_expression "(local_c == *(int *)PTR___stack_chk_guard_003fa248)" ( (binary_expression "local_c == *(int *)PTR___stack_chk_guard_003fa248" identifier == (pointer_expression "*(int *)PTR___stack_chk_guard_003fa248" * (cast_expression "(int *)PTR___stack_chk_guard_003fa248" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n      return uVar2;\n    }" { (return_statement "return uVar2;" return identifier ;) })) (expression_statement "puVar3 = PTR___stack_chk_fail_003fa07c;" (assignment_expression "puVar3 = PTR___stack_chk_fail_003fa07c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_003fa07c)();" (call_expression "(*(code *)PTR___stack_chk_fail_003fa07c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_003fa07c)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_003fa07c" * (cast_expression "(code *)PTR___stack_chk_fail_003fa07c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "uVar2 = (**(code **)(puVar3 + 0x3b7278))();" (assignment_expression "uVar2 = (**(code **)(puVar3 + 0x3b7278))()" identifier = (call_expression "(**(code **)(puVar3 + 0x3b7278))()" (parenthesized_expression "(**(code **)(puVar3 + 0x3b7278))" ( (pointer_expression "**(code **)(puVar3 + 0x3b7278)" * (pointer_expression "*(code **)(puVar3 + 0x3b7278)" * (cast_expression "(code **)(puVar3 + 0x3b7278)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x3b7278)" ( (binary_expression "puVar3 + 0x3b7278" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "uVar2 = (*(code *)PTR___assert_fail_003fa620)\n                    (PTR_UINT_003f98e4 + -0x784,PTR_LAB_003f98e0 + 0x4aac,0x1178,\n                     PTR_LAB_003f98e0 + 0x5338);" (assignment_expression "uVar2 = (*(code *)PTR___assert_fail_003fa620)\n                    (PTR_UINT_003f98e4 + -0x784,PTR_LAB_003f98e0 + 0x4aac,0x1178,\n                     PTR_LAB_003f98e0 + 0x5338)" identifier = (call_expression "(*(code *)PTR___assert_fail_003fa620)\n                    (PTR_UINT_003f98e4 + -0x784,PTR_LAB_003f98e0 + 0x4aac,0x1178,\n                     PTR_LAB_003f98e0 + 0x5338)" (parenthesized_expression "(*(code *)PTR___assert_fail_003fa620)" ( (pointer_expression "*(code *)PTR___assert_fail_003fa620" * (cast_expression "(code *)PTR___assert_fail_003fa620" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_UINT_003f98e4 + -0x784,PTR_LAB_003f98e0 + 0x4aac,0x1178,\n                     PTR_LAB_003f98e0 + 0x5338)" ( (binary_expression "PTR_UINT_003f98e4 + -0x784" identifier + number_literal) , (binary_expression "PTR_LAB_003f98e0 + 0x4aac" identifier + number_literal) , number_literal , (binary_expression "PTR_LAB_003f98e0 + 0x5338" identifier + number_literal) )))) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Enum "GravityType": Some values do not have unique names */\n/* WARNING: Enum "DisposeType": Some values do not have unique names */\n/* WARNING: Enum "ChannelType": Some values do not have unique names */\n/* WARNING: Enum "PixelChannel": Some values do not have unique names */\n\nuint ReadBlobMSBLong(Image *image)\n\n{\n  int iVar1;\n  byte *pbVar2;\n  uint uVar3;\n  undefined *puVar4;\n  ssize_t count;\n  uchar buffer [4];\n  \n  iVar1 = *(int *)PTR___stack_chk_guard_003fa248;\n  if (image == (Image *)0x0) {\n    uVar3 = (*(code *)PTR___assert_fail_003fa620)\n                      (PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338);\n    return uVar3;\n  }\n  if (image->signature == 0xabacadab) {\n    buffer[0] = '\0';\n    pbVar2 = (byte *)(*(code *)PTR_ReadBlobStream_003fa0b0)(image,4,buffer,&count);\n    if (count == 4) {\n      uVar3 = (uint)pbVar2[2] << 8 |\n              (uint)pbVar2[1] << 0x10 | (uint)*pbVar2 << 0x18 | (uint)pbVar2[3];\n    }\n    else {\n      uVar3 = 0;\n    }\n    if (iVar1 == *(int *)PTR___stack_chk_guard_003fa248) {\n      return uVar3;\n    }\n    puVar4 = PTR___stack_chk_fail_003fa07c;\n    (*(code *)PTR___stack_chk_fail_003fa07c)();\n    uVar3 = (**(code **)(puVar4 + 0x3b7278))();\n    return uVar3;\n  }\n  uVar3 = (*(code *)PTR___assert_fail_003fa620)\n                    (PTR_UINT_003f98e4 + -0x784,PTR_LAB_003f98e0 + 0x4aac,0x1178,\n                     PTR_LAB_003f98e0 + 0x5338);\n  return uVar3;\n}\n\n" comment comment comment comment (function_definition "uint ReadBlobMSBLong(Image *image)\n\n{\n  int iVar1;\n  byte *pbVar2;\n  uint uVar3;\n  undefined *puVar4;\n  ssize_t count;\n  uchar buffer [4];\n  \n  iVar1 = *(int *)PTR___stack_chk_guard_003fa248;\n  if (image == (Image *)0x0) {\n    uVar3 = (*(code *)PTR___assert_fail_003fa620)\n                      (PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338);\n    return uVar3;\n  }\n  if (image->signature == 0xabacadab) {\n    buffer[0] = '\0';\n    pbVar2 = (byte *)(*(code *)PTR_ReadBlobStream_003fa0b0)(image,4,buffer,&count);\n    if (count == 4) {\n      uVar3 = (uint)pbVar2[2] << 8 |\n              (uint)pbVar2[1] << 0x10 | (uint)*pbVar2 << 0x18 | (uint)pbVar2[3];\n    }\n    else {\n      uVar3 = 0;\n    }\n    if (iVar1 == *(int *)PTR___stack_chk_guard_003fa248) {\n      return uVar3;\n    }\n    puVar4 = PTR___stack_chk_fail_003fa07c;\n    (*(code *)PTR___stack_chk_fail_003fa07c)();\n    uVar3 = (**(code **)(puVar4 + 0x3b7278))();\n    return uVar3;\n  }\n  uVar3 = (*(code *)PTR___assert_fail_003fa620)\n                    (PTR_UINT_003f98e4 + -0x784,PTR_LAB_003f98e0 + 0x4aac,0x1178,\n                     PTR_LAB_003f98e0 + 0x5338);\n  return uVar3;\n}" type_identifier (function_declarator "ReadBlobMSBLong(Image *image)" identifier (parameter_list "(Image *image)" ( (parameter_declaration "Image *image" type_identifier (pointer_declarator "*image" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  byte *pbVar2;\n  uint uVar3;\n  undefined *puVar4;\n  ssize_t count;\n  uchar buffer [4];\n  \n  iVar1 = *(int *)PTR___stack_chk_guard_003fa248;\n  if (image == (Image *)0x0) {\n    uVar3 = (*(code *)PTR___assert_fail_003fa620)\n                      (PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338);\n    return uVar3;\n  }\n  if (image->signature == 0xabacadab) {\n    buffer[0] = '\0';\n    pbVar2 = (byte *)(*(code *)PTR_ReadBlobStream_003fa0b0)(image,4,buffer,&count);\n    if (count == 4) {\n      uVar3 = (uint)pbVar2[2] << 8 |\n              (uint)pbVar2[1] << 0x10 | (uint)*pbVar2 << 0x18 | (uint)pbVar2[3];\n    }\n    else {\n      uVar3 = 0;\n    }\n    if (iVar1 == *(int *)PTR___stack_chk_guard_003fa248) {\n      return uVar3;\n    }\n    puVar4 = PTR___stack_chk_fail_003fa07c;\n    (*(code *)PTR___stack_chk_fail_003fa07c)();\n    uVar3 = (**(code **)(puVar4 + 0x3b7278))();\n    return uVar3;\n  }\n  uVar3 = (*(code *)PTR___assert_fail_003fa620)\n                    (PTR_UINT_003f98e4 + -0x784,PTR_LAB_003f98e0 + 0x4aac,0x1178,\n                     PTR_LAB_003f98e0 + 0x5338);\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "ssize_t count;" primitive_type identifier ;) (declaration "uchar buffer [4];" type_identifier (array_declarator "buffer [4]" identifier [ number_literal ]) ;) (expression_statement "iVar1 = *(int *)PTR___stack_chk_guard_003fa248;" (assignment_expression "iVar1 = *(int *)PTR___stack_chk_guard_003fa248" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_003fa248" * (cast_expression "(int *)PTR___stack_chk_guard_003fa248" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (image == (Image *)0x0) {\n    uVar3 = (*(code *)PTR___assert_fail_003fa620)\n                      (PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338);\n    return uVar3;\n  }" if (parenthesized_expression "(image == (Image *)0x0)" ( (binary_expression "image == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar3 = (*(code *)PTR___assert_fail_003fa620)\n                      (PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338);\n    return uVar3;\n  }" { (expression_statement "uVar3 = (*(code *)PTR___assert_fail_003fa620)\n                      (PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338);" (assignment_expression "uVar3 = (*(code *)PTR___assert_fail_003fa620)\n                      (PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338)" identifier = (call_expression "(*(code *)PTR___assert_fail_003fa620)\n                      (PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338)" (parenthesized_expression "(*(code *)PTR___assert_fail_003fa620)" ( (pointer_expression "*(code *)PTR___assert_fail_003fa620" * (cast_expression "(code *)PTR___assert_fail_003fa620" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338)" ( (binary_expression "PTR_LAB_003f98e0 + 0x3da0" identifier + number_literal) , (binary_expression "PTR_LAB_003f98e0 + 0x4aac" identifier + number_literal) , number_literal , (binary_expression "PTR_LAB_003f98e0 + 0x5338" identifier + number_literal) )))) ;) (return_statement "return uVar3;" return identifier ;) })) (if_statement "if (image->signature == 0xabacadab) {\n    buffer[0] = '\0';\n    pbVar2 = (byte *)(*(code *)PTR_ReadBlobStream_003fa0b0)(image,4,buffer,&count);\n    if (count == 4) {\n      uVar3 = (uint)pbVar2[2] << 8 |\n              (uint)pbVar2[1] << 0x10 | (uint)*pbVar2 << 0x18 | (uint)pbVar2[3];\n    }\n    else {\n      uVar3 = 0;\n    }\n    if (iVar1 == *(int *)PTR___stack_chk_guard_003fa248) {\n      return uVar3;\n    }\n    puVar4 = PTR___stack_chk_fail_003fa07c;\n    (*(code *)PTR___stack_chk_fail_003fa07c)();\n    uVar3 = (**(code **)(puVar4 + 0x3b7278))();\n    return uVar3;\n  }" if (parenthesized_expression "(image->signature == 0xabacadab)" ( (binary_expression "image->signature == 0xabacadab" (field_expression "image->signature" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    buffer[0] = '\0';\n    pbVar2 = (byte *)(*(code *)PTR_ReadBlobStream_003fa0b0)(image,4,buffer,&count);\n    if (count == 4) {\n      uVar3 = (uint)pbVar2[2] << 8 |\n              (uint)pbVar2[1] << 0x10 | (uint)*pbVar2 << 0x18 | (uint)pbVar2[3];\n    }\n    else {\n      uVar3 = 0;\n    }\n    if (iVar1 == *(int *)PTR___stack_chk_guard_003fa248) {\n      return uVar3;\n    }\n    puVar4 = PTR___stack_chk_fail_003fa07c;\n    (*(code *)PTR___stack_chk_fail_003fa07c)();\n    uVar3 = (**(code **)(puVar4 + 0x3b7278))();\n    return uVar3;\n  }" { (expression_statement "buffer[0] = '\0';" (assignment_expression "buffer[0] = '\0'" (subscript_expression "buffer[0]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pbVar2 = (byte *)(*(code *)PTR_ReadBlobStream_003fa0b0)(image,4,buffer,&count);" (assignment_expression "pbVar2 = (byte *)(*(code *)PTR_ReadBlobStream_003fa0b0)(image,4,buffer,&count)" identifier = (cast_expression "(byte *)(*(code *)PTR_ReadBlobStream_003fa0b0)(image,4,buffer,&count)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_ReadBlobStream_003fa0b0)(image,4,buffer,&count)" (parenthesized_expression "(*(code *)PTR_ReadBlobStream_003fa0b0)" ( (pointer_expression "*(code *)PTR_ReadBlobStream_003fa0b0" * (cast_expression "(code *)PTR_ReadBlobStream_003fa0b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(image,4,buffer,&count)" ( identifier , number_literal , identifier , (pointer_expression "&count" & identifier) ))))) ;) (if_statement "if (count == 4) {\n      uVar3 = (uint)pbVar2[2] << 8 |\n              (uint)pbVar2[1] << 0x10 | (uint)*pbVar2 << 0x18 | (uint)pbVar2[3];\n    }\n    else {\n      uVar3 = 0;\n    }" if (parenthesized_expression "(count == 4)" ( (binary_expression "count == 4" identifier == number_literal) )) (compound_statement "{\n      uVar3 = (uint)pbVar2[2] << 8 |\n              (uint)pbVar2[1] << 0x10 | (uint)*pbVar2 << 0x18 | (uint)pbVar2[3];\n    }" { (expression_statement "uVar3 = (uint)pbVar2[2] << 8 |\n              (uint)pbVar2[1] << 0x10 | (uint)*pbVar2 << 0x18 | (uint)pbVar2[3];" (assignment_expression "uVar3 = (uint)pbVar2[2] << 8 |\n              (uint)pbVar2[1] << 0x10 | (uint)*pbVar2 << 0x18 | (uint)pbVar2[3]" identifier = (binary_expression "(uint)pbVar2[2] << 8 |\n              (uint)pbVar2[1] << 0x10 | (uint)*pbVar2 << 0x18 | (uint)pbVar2[3]" (binary_expression "(uint)pbVar2[2] << 8 |\n              (uint)pbVar2[1] << 0x10 | (uint)*pbVar2 << 0x18" (binary_expression "(uint)pbVar2[2] << 8 |\n              (uint)pbVar2[1] << 0x10" (binary_expression "(uint)pbVar2[2] << 8" (cast_expression "(uint)pbVar2[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar2[2]" identifier [ number_literal ])) << number_literal) | (binary_expression "(uint)pbVar2[1] << 0x10" (cast_expression "(uint)pbVar2[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar2[1]" identifier [ number_literal ])) << number_literal)) | (binary_expression "(uint)*pbVar2 << 0x18" (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier) << number_literal)) | (cast_expression "(uint)pbVar2[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar2[3]" identifier [ number_literal ])))) ;) }) (else_clause "else {\n      uVar3 = 0;\n    }" else (compound_statement "{\n      uVar3 = 0;\n    }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }))) (if_statement "if (iVar1 == *(int *)PTR___stack_chk_guard_003fa248) {\n      return uVar3;\n    }" if (parenthesized_expression "(iVar1 == *(int *)PTR___stack_chk_guard_003fa248)" ( (binary_expression "iVar1 == *(int *)PTR___stack_chk_guard_003fa248" identifier == (pointer_expression "*(int *)PTR___stack_chk_guard_003fa248" * (cast_expression "(int *)PTR___stack_chk_guard_003fa248" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n      return uVar3;\n    }" { (return_statement "return uVar3;" return identifier ;) })) (expression_statement "puVar4 = PTR___stack_chk_fail_003fa07c;" (assignment_expression "puVar4 = PTR___stack_chk_fail_003fa07c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_003fa07c)();" (call_expression "(*(code *)PTR___stack_chk_fail_003fa07c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_003fa07c)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_003fa07c" * (cast_expression "(code *)PTR___stack_chk_fail_003fa07c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "uVar3 = (**(code **)(puVar4 + 0x3b7278))();" (assignment_expression "uVar3 = (**(code **)(puVar4 + 0x3b7278))()" identifier = (call_expression "(**(code **)(puVar4 + 0x3b7278))()" (parenthesized_expression "(**(code **)(puVar4 + 0x3b7278))" ( (pointer_expression "**(code **)(puVar4 + 0x3b7278)" * (pointer_expression "*(code **)(puVar4 + 0x3b7278)" * (cast_expression "(code **)(puVar4 + 0x3b7278)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x3b7278)" ( (binary_expression "puVar4 + 0x3b7278" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar3;" return identifier ;) })) (expression_statement "uVar3 = (*(code *)PTR___assert_fail_003fa620)\n                    (PTR_UINT_003f98e4 + -0x784,PTR_LAB_003f98e0 + 0x4aac,0x1178,\n                     PTR_LAB_003f98e0 + 0x5338);" (assignment_expression "uVar3 = (*(code *)PTR___assert_fail_003fa620)\n                    (PTR_UINT_003f98e4 + -0x784,PTR_LAB_003f98e0 + 0x4aac,0x1178,\n                     PTR_LAB_003f98e0 + 0x5338)" identifier = (call_expression "(*(code *)PTR___assert_fail_003fa620)\n                    (PTR_UINT_003f98e4 + -0x784,PTR_LAB_003f98e0 + 0x4aac,0x1178,\n                     PTR_LAB_003f98e0 + 0x5338)" (parenthesized_expression "(*(code *)PTR___assert_fail_003fa620)" ( (pointer_expression "*(code *)PTR___assert_fail_003fa620" * (cast_expression "(code *)PTR___assert_fail_003fa620" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_UINT_003f98e4 + -0x784,PTR_LAB_003f98e0 + 0x4aac,0x1178,\n                     PTR_LAB_003f98e0 + 0x5338)" ( (binary_expression "PTR_UINT_003f98e4 + -0x784" identifier + number_literal) , (binary_expression "PTR_LAB_003f98e0 + 0x4aac" identifier + number_literal) , number_literal , (binary_expression "PTR_LAB_003f98e0 + 0x5338" identifier + number_literal) )))) ;) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "uint ReadBlobMSBLong(int param_1)\n\n{\n  byte *pbVar1;\n  uint uVar2;\n  undefined *puVar3;\n  int local_14;\n  undefined1 local_10 [4];\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_003fa248;\n  if (param_1 == 0) {\n    uVar2 = (*(code *)PTR___assert_fail_003fa620)\n                      (PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338);\n    return uVar2;\n  }\n  if (*(int *)(param_1 + 0x336c) == -0x54535255) {\n    local_10[0] = 0;\n    pbVar1 = (byte *)(*(code *)PTR_ReadBlobStream_003fa0b0)(param_1,4,local_10,&local_14);\n    if (local_14 == 4) {\n      uVar2 = (uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10 | (uint)*pbVar1 << 0x18 | (uint)pbVar1[3];\n    }\n    else {\n      uVar2 = 0;\n    }\n    if (local_c == *(int *)PTR___stack_chk_guard_003fa248) {\n      return uVar2;\n    }\n    puVar3 = PTR___stack_chk_fail_003fa07c;\n    (*(code *)PTR___stack_chk_fail_003fa07c)();\n    uVar2 = (**(code **)(puVar3 + 0x3b7278))();\n    return uVar2;\n  }\n  uVar2 = (*(code *)PTR___assert_fail_003fa620)\n                    (PTR_UINT_003f98e4 + -0x784,PTR_LAB_003f98e0 + 0x4aac,0x1178,\n                     PTR_LAB_003f98e0 + 0x5338);\n  return uVar2;\n}\n\n" (function_definition "uint ReadBlobMSBLong(int param_1)\n\n{\n  byte *pbVar1;\n  uint uVar2;\n  undefined *puVar3;\n  int local_14;\n  undefined1 local_10 [4];\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_003fa248;\n  if (param_1 == 0) {\n    uVar2 = (*(code *)PTR___assert_fail_003fa620)\n                      (PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338);\n    return uVar2;\n  }\n  if (*(int *)(param_1 + 0x336c) == -0x54535255) {\n    local_10[0] = 0;\n    pbVar1 = (byte *)(*(code *)PTR_ReadBlobStream_003fa0b0)(param_1,4,local_10,&local_14);\n    if (local_14 == 4) {\n      uVar2 = (uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10 | (uint)*pbVar1 << 0x18 | (uint)pbVar1[3];\n    }\n    else {\n      uVar2 = 0;\n    }\n    if (local_c == *(int *)PTR___stack_chk_guard_003fa248) {\n      return uVar2;\n    }\n    puVar3 = PTR___stack_chk_fail_003fa07c;\n    (*(code *)PTR___stack_chk_fail_003fa07c)();\n    uVar2 = (**(code **)(puVar3 + 0x3b7278))();\n    return uVar2;\n  }\n  uVar2 = (*(code *)PTR___assert_fail_003fa620)\n                    (PTR_UINT_003f98e4 + -0x784,PTR_LAB_003f98e0 + 0x4aac,0x1178,\n                     PTR_LAB_003f98e0 + 0x5338);\n  return uVar2;\n}" type_identifier (function_declarator "ReadBlobMSBLong(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  byte *pbVar1;\n  uint uVar2;\n  undefined *puVar3;\n  int local_14;\n  undefined1 local_10 [4];\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_003fa248;\n  if (param_1 == 0) {\n    uVar2 = (*(code *)PTR___assert_fail_003fa620)\n                      (PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338);\n    return uVar2;\n  }\n  if (*(int *)(param_1 + 0x336c) == -0x54535255) {\n    local_10[0] = 0;\n    pbVar1 = (byte *)(*(code *)PTR_ReadBlobStream_003fa0b0)(param_1,4,local_10,&local_14);\n    if (local_14 == 4) {\n      uVar2 = (uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10 | (uint)*pbVar1 << 0x18 | (uint)pbVar1[3];\n    }\n    else {\n      uVar2 = 0;\n    }\n    if (local_c == *(int *)PTR___stack_chk_guard_003fa248) {\n      return uVar2;\n    }\n    puVar3 = PTR___stack_chk_fail_003fa07c;\n    (*(code *)PTR___stack_chk_fail_003fa07c)();\n    uVar2 = (**(code **)(puVar3 + 0x3b7278))();\n    return uVar2;\n  }\n  uVar2 = (*(code *)PTR___assert_fail_003fa620)\n                    (PTR_UINT_003f98e4 + -0x784,PTR_LAB_003f98e0 + 0x4aac,0x1178,\n                     PTR_LAB_003f98e0 + 0x5338);\n  return uVar2;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int local_14;" primitive_type identifier ;) (declaration "undefined1 local_10 [4];" type_identifier (array_declarator "local_10 [4]" identifier [ number_literal ]) ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_003fa248;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_003fa248" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_003fa248" * (cast_expression "(int *)PTR___stack_chk_guard_003fa248" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (param_1 == 0) {\n    uVar2 = (*(code *)PTR___assert_fail_003fa620)\n                      (PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338);\n    return uVar2;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar2 = (*(code *)PTR___assert_fail_003fa620)\n                      (PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338);\n    return uVar2;\n  }" { (expression_statement "uVar2 = (*(code *)PTR___assert_fail_003fa620)\n                      (PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338);" (assignment_expression "uVar2 = (*(code *)PTR___assert_fail_003fa620)\n                      (PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338)" identifier = (call_expression "(*(code *)PTR___assert_fail_003fa620)\n                      (PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338)" (parenthesized_expression "(*(code *)PTR___assert_fail_003fa620)" ( (pointer_expression "*(code *)PTR___assert_fail_003fa620" * (cast_expression "(code *)PTR___assert_fail_003fa620" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338)" ( (binary_expression "PTR_LAB_003f98e0 + 0x3da0" identifier + number_literal) , (binary_expression "PTR_LAB_003f98e0 + 0x4aac" identifier + number_literal) , number_literal , (binary_expression "PTR_LAB_003f98e0 + 0x5338" identifier + number_literal) )))) ;) (return_statement "return uVar2;" return identifier ;) })) (if_statement "if (*(int *)(param_1 + 0x336c) == -0x54535255) {\n    local_10[0] = 0;\n    pbVar1 = (byte *)(*(code *)PTR_ReadBlobStream_003fa0b0)(param_1,4,local_10,&local_14);\n    if (local_14 == 4) {\n      uVar2 = (uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10 | (uint)*pbVar1 << 0x18 | (uint)pbVar1[3];\n    }\n    else {\n      uVar2 = 0;\n    }\n    if (local_c == *(int *)PTR___stack_chk_guard_003fa248) {\n      return uVar2;\n    }\n    puVar3 = PTR___stack_chk_fail_003fa07c;\n    (*(code *)PTR___stack_chk_fail_003fa07c)();\n    uVar2 = (**(code **)(puVar3 + 0x3b7278))();\n    return uVar2;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x336c) == -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x336c) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x336c)" * (cast_expression "(int *)(param_1 + 0x336c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x336c)" ( (binary_expression "param_1 + 0x336c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    local_10[0] = 0;\n    pbVar1 = (byte *)(*(code *)PTR_ReadBlobStream_003fa0b0)(param_1,4,local_10,&local_14);\n    if (local_14 == 4) {\n      uVar2 = (uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10 | (uint)*pbVar1 << 0x18 | (uint)pbVar1[3];\n    }\n    else {\n      uVar2 = 0;\n    }\n    if (local_c == *(int *)PTR___stack_chk_guard_003fa248) {\n      return uVar2;\n    }\n    puVar3 = PTR___stack_chk_fail_003fa07c;\n    (*(code *)PTR___stack_chk_fail_003fa07c)();\n    uVar2 = (**(code **)(puVar3 + 0x3b7278))();\n    return uVar2;\n  }" { (expression_statement "local_10[0] = 0;" (assignment_expression "local_10[0] = 0" (subscript_expression "local_10[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "pbVar1 = (byte *)(*(code *)PTR_ReadBlobStream_003fa0b0)(param_1,4,local_10,&local_14);" (assignment_expression "pbVar1 = (byte *)(*(code *)PTR_ReadBlobStream_003fa0b0)(param_1,4,local_10,&local_14)" identifier = (cast_expression "(byte *)(*(code *)PTR_ReadBlobStream_003fa0b0)(param_1,4,local_10,&local_14)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_ReadBlobStream_003fa0b0)(param_1,4,local_10,&local_14)" (parenthesized_expression "(*(code *)PTR_ReadBlobStream_003fa0b0)" ( (pointer_expression "*(code *)PTR_ReadBlobStream_003fa0b0" * (cast_expression "(code *)PTR_ReadBlobStream_003fa0b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,4,local_10,&local_14)" ( identifier , number_literal , identifier , (pointer_expression "&local_14" & identifier) ))))) ;) (if_statement "if (local_14 == 4) {\n      uVar2 = (uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10 | (uint)*pbVar1 << 0x18 | (uint)pbVar1[3];\n    }\n    else {\n      uVar2 = 0;\n    }" if (parenthesized_expression "(local_14 == 4)" ( (binary_expression "local_14 == 4" identifier == number_literal) )) (compound_statement "{\n      uVar2 = (uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10 | (uint)*pbVar1 << 0x18 | (uint)pbVar1[3];\n    }" { (expression_statement "uVar2 = (uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10 | (uint)*pbVar1 << 0x18 | (uint)pbVar1[3];" (assignment_expression "uVar2 = (uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10 | (uint)*pbVar1 << 0x18 | (uint)pbVar1[3]" identifier = (binary_expression "(uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10 | (uint)*pbVar1 << 0x18 | (uint)pbVar1[3]" (binary_expression "(uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10 | (uint)*pbVar1 << 0x18" (binary_expression "(uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10" (binary_expression "(uint)pbVar1[2] << 8" (cast_expression "(uint)pbVar1[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar1[2]" identifier [ number_literal ])) << number_literal) | (binary_expression "(uint)pbVar1[1] << 0x10" (cast_expression "(uint)pbVar1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar1[1]" identifier [ number_literal ])) << number_literal)) | (binary_expression "(uint)*pbVar1 << 0x18" (binary_expression "(uint)*pbVar1" (parenthesized_expression "(uint)" ( identifier )) * identifier) << number_literal)) | (cast_expression "(uint)pbVar1[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar1[3]" identifier [ number_literal ])))) ;) }) (else_clause "else {\n      uVar2 = 0;\n    }" else (compound_statement "{\n      uVar2 = 0;\n    }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }))) (if_statement "if (local_c == *(int *)PTR___stack_chk_guard_003fa248) {\n      return uVar2;\n    }" if (parenthesized_expression "(local_c == *(int *)PTR___stack_chk_guard_003fa248)" ( (binary_expression "local_c == *(int *)PTR___stack_chk_guard_003fa248" identifier == (pointer_expression "*(int *)PTR___stack_chk_guard_003fa248" * (cast_expression "(int *)PTR___stack_chk_guard_003fa248" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n      return uVar2;\n    }" { (return_statement "return uVar2;" return identifier ;) })) (expression_statement "puVar3 = PTR___stack_chk_fail_003fa07c;" (assignment_expression "puVar3 = PTR___stack_chk_fail_003fa07c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_003fa07c)();" (call_expression "(*(code *)PTR___stack_chk_fail_003fa07c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_003fa07c)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_003fa07c" * (cast_expression "(code *)PTR___stack_chk_fail_003fa07c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "uVar2 = (**(code **)(puVar3 + 0x3b7278))();" (assignment_expression "uVar2 = (**(code **)(puVar3 + 0x3b7278))()" identifier = (call_expression "(**(code **)(puVar3 + 0x3b7278))()" (parenthesized_expression "(**(code **)(puVar3 + 0x3b7278))" ( (pointer_expression "**(code **)(puVar3 + 0x3b7278)" * (pointer_expression "*(code **)(puVar3 + 0x3b7278)" * (cast_expression "(code **)(puVar3 + 0x3b7278)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x3b7278)" ( (binary_expression "puVar3 + 0x3b7278" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "uVar2 = (*(code *)PTR___assert_fail_003fa620)\n                    (PTR_UINT_003f98e4 + -0x784,PTR_LAB_003f98e0 + 0x4aac,0x1178,\n                     PTR_LAB_003f98e0 + 0x5338);" (assignment_expression "uVar2 = (*(code *)PTR___assert_fail_003fa620)\n                    (PTR_UINT_003f98e4 + -0x784,PTR_LAB_003f98e0 + 0x4aac,0x1178,\n                     PTR_LAB_003f98e0 + 0x5338)" identifier = (call_expression "(*(code *)PTR___assert_fail_003fa620)\n                    (PTR_UINT_003f98e4 + -0x784,PTR_LAB_003f98e0 + 0x4aac,0x1178,\n                     PTR_LAB_003f98e0 + 0x5338)" (parenthesized_expression "(*(code *)PTR___assert_fail_003fa620)" ( (pointer_expression "*(code *)PTR___assert_fail_003fa620" * (cast_expression "(code *)PTR___assert_fail_003fa620" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_UINT_003f98e4 + -0x784,PTR_LAB_003f98e0 + 0x4aac,0x1178,\n                     PTR_LAB_003f98e0 + 0x5338)" ( (binary_expression "PTR_UINT_003f98e4 + -0x784" identifier + number_literal) , (binary_expression "PTR_LAB_003f98e0 + 0x4aac" identifier + number_literal) , number_literal , (binary_expression "PTR_LAB_003f98e0 + 0x5338" identifier + number_literal) )))) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) )))) ;) (return_statement return IDENT ;) })) (if_statement if (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 (subscript_expression IDENT [ LIT ]) = LIT) ;) (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 ( IDENT , LIT , IDENT , (pointer_expression & IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) << LIT) | (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) << LIT)) | (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) << LIT)) | (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( )))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) )))) ;) (return_statement return IDENT ;) })))
(function_definition "uint ReadBlobMSBLong(int param_1)\n\n{\n  byte *pbVar1;\n  uint uVar2;\n  undefined *puVar3;\n  int local_14;\n  undefined1 local_10 [4];\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_003fa248;\n  if (param_1 == 0) {\n    uVar2 = (*(code *)PTR___assert_fail_003fa620)\n                      (PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338);\n    return uVar2;\n  }\n  if (*(int *)(param_1 + 0x336c) == -0x54535255) {\n    local_10[0] = 0;\n    pbVar1 = (byte *)(*(code *)PTR_ReadBlobStream_003fa0b0)(param_1,4,local_10,&local_14);\n    if (local_14 == 4) {\n      uVar2 = (uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10 | (uint)*pbVar1 << 0x18 | (uint)pbVar1[3];\n    }\n    else {\n      uVar2 = 0;\n    }\n    if (local_c == *(int *)PTR___stack_chk_guard_003fa248) {\n      return uVar2;\n    }\n    puVar3 = PTR___stack_chk_fail_003fa07c;\n    (*(code *)PTR___stack_chk_fail_003fa07c)();\n    uVar2 = (**(code **)(puVar3 + 0x3b7278))();\n    return uVar2;\n  }\n  uVar2 = (*(code *)PTR___assert_fail_003fa620)\n                    (PTR_UINT_003f98e4 + -0x784,PTR_LAB_003f98e0 + 0x4aac,0x1178,\n                     PTR_LAB_003f98e0 + 0x5338);\n  return uVar2;\n}" (type_identifier "uint") (function_declarator "ReadBlobMSBLong(int param_1)" (identifier "ReadBlobMSBLong") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  byte *pbVar1;\n  uint uVar2;\n  undefined *puVar3;\n  int local_14;\n  undefined1 local_10 [4];\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_003fa248;\n  if (param_1 == 0) {\n    uVar2 = (*(code *)PTR___assert_fail_003fa620)\n                      (PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338);\n    return uVar2;\n  }\n  if (*(int *)(param_1 + 0x336c) == -0x54535255) {\n    local_10[0] = 0;\n    pbVar1 = (byte *)(*(code *)PTR_ReadBlobStream_003fa0b0)(param_1,4,local_10,&local_14);\n    if (local_14 == 4) {\n      uVar2 = (uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10 | (uint)*pbVar1 << 0x18 | (uint)pbVar1[3];\n    }\n    else {\n      uVar2 = 0;\n    }\n    if (local_c == *(int *)PTR___stack_chk_guard_003fa248) {\n      return uVar2;\n    }\n    puVar3 = PTR___stack_chk_fail_003fa07c;\n    (*(code *)PTR___stack_chk_fail_003fa07c)();\n    uVar2 = (**(code **)(puVar3 + 0x3b7278))();\n    return uVar2;\n  }\n  uVar2 = (*(code *)PTR___assert_fail_003fa620)\n                    (PTR_UINT_003f98e4 + -0x784,PTR_LAB_003f98e0 + 0x4aac,0x1178,\n                     PTR_LAB_003f98e0 + 0x5338);\n  return uVar2;\n}" ({ "{") (declaration "byte *pbVar1;" (type_identifier "byte") (pointer_declarator "*pbVar1" (* "*") (identifier "pbVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int local_14;" (primitive_type "int") (identifier "local_14") (; ";")) (declaration "undefined1 local_10 [4];" (type_identifier "undefined1") (array_declarator "local_10 [4]" (identifier "local_10") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "int local_c;" (primitive_type "int") (identifier "local_c") (; ";")) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_003fa248;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_003fa248" (identifier "local_c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_003fa248" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_003fa248" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_003fa248")))) (; ";")) (if_statement "if (param_1 == 0) {\n    uVar2 = (*(code *)PTR___assert_fail_003fa620)\n                      (PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338);\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = (*(code *)PTR___assert_fail_003fa620)\n                      (PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338);\n    return uVar2;\n  }" ({ "{") (expression_statement "uVar2 = (*(code *)PTR___assert_fail_003fa620)\n                      (PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338);" (assignment_expression "uVar2 = (*(code *)PTR___assert_fail_003fa620)\n                      (PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR___assert_fail_003fa620)\n                      (PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338)" (parenthesized_expression "(*(code *)PTR___assert_fail_003fa620)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_003fa620" (* "*") (cast_expression "(code *)PTR___assert_fail_003fa620" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_003fa620"))) () ")")) (argument_list "(PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,\n                       PTR_LAB_003f98e0 + 0x5338)" (( "(") (binary_expression "PTR_LAB_003f98e0 + 0x3da0" (identifier "PTR_LAB_003f98e0") (+ "+") (number_literal "0x3da0")) (, ",") (binary_expression "PTR_LAB_003f98e0 + 0x4aac" (identifier "PTR_LAB_003f98e0") (+ "+") (number_literal "0x4aac")) (, ",") (number_literal "0x1177") (, ",") (binary_expression "PTR_LAB_003f98e0 + 0x5338" (identifier "PTR_LAB_003f98e0") (+ "+") (number_literal "0x5338")) () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x336c) == -0x54535255) {\n    local_10[0] = 0;\n    pbVar1 = (byte *)(*(code *)PTR_ReadBlobStream_003fa0b0)(param_1,4,local_10,&local_14);\n    if (local_14 == 4) {\n      uVar2 = (uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10 | (uint)*pbVar1 << 0x18 | (uint)pbVar1[3];\n    }\n    else {\n      uVar2 = 0;\n    }\n    if (local_c == *(int *)PTR___stack_chk_guard_003fa248) {\n      return uVar2;\n    }\n    puVar3 = PTR___stack_chk_fail_003fa07c;\n    (*(code *)PTR___stack_chk_fail_003fa07c)();\n    uVar2 = (**(code **)(puVar3 + 0x3b7278))();\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x336c) == -0x54535255)" (( "(") (binary_expression "*(int *)(param_1 + 0x336c) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x336c)" (* "*") (cast_expression "(int *)(param_1 + 0x336c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x336c)" (( "(") (binary_expression "param_1 + 0x336c" (identifier "param_1") (+ "+") (number_literal "0x336c")) () ")")))) (== "==") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n    local_10[0] = 0;\n    pbVar1 = (byte *)(*(code *)PTR_ReadBlobStream_003fa0b0)(param_1,4,local_10,&local_14);\n    if (local_14 == 4) {\n      uVar2 = (uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10 | (uint)*pbVar1 << 0x18 | (uint)pbVar1[3];\n    }\n    else {\n      uVar2 = 0;\n    }\n    if (local_c == *(int *)PTR___stack_chk_guard_003fa248) {\n      return uVar2;\n    }\n    puVar3 = PTR___stack_chk_fail_003fa07c;\n    (*(code *)PTR___stack_chk_fail_003fa07c)();\n    uVar2 = (**(code **)(puVar3 + 0x3b7278))();\n    return uVar2;\n  }" ({ "{") (expression_statement "local_10[0] = 0;" (assignment_expression "local_10[0] = 0" (subscript_expression "local_10[0]" (identifier "local_10") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "pbVar1 = (byte *)(*(code *)PTR_ReadBlobStream_003fa0b0)(param_1,4,local_10,&local_14);" (assignment_expression "pbVar1 = (byte *)(*(code *)PTR_ReadBlobStream_003fa0b0)(param_1,4,local_10,&local_14)" (identifier "pbVar1") (= "=") (cast_expression "(byte *)(*(code *)PTR_ReadBlobStream_003fa0b0)(param_1,4,local_10,&local_14)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_ReadBlobStream_003fa0b0)(param_1,4,local_10,&local_14)" (parenthesized_expression "(*(code *)PTR_ReadBlobStream_003fa0b0)" (( "(") (pointer_expression "*(code *)PTR_ReadBlobStream_003fa0b0" (* "*") (cast_expression "(code *)PTR_ReadBlobStream_003fa0b0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_ReadBlobStream_003fa0b0"))) () ")")) (argument_list "(param_1,4,local_10,&local_14)" (( "(") (identifier "param_1") (, ",") (number_literal "4") (, ",") (identifier "local_10") (, ",") (pointer_expression "&local_14" (& "&") (identifier "local_14")) () ")"))))) (; ";")) (if_statement "if (local_14 == 4) {\n      uVar2 = (uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10 | (uint)*pbVar1 << 0x18 | (uint)pbVar1[3];\n    }\n    else {\n      uVar2 = 0;\n    }" (if "if") (parenthesized_expression "(local_14 == 4)" (( "(") (binary_expression "local_14 == 4" (identifier "local_14") (== "==") (number_literal "4")) () ")")) (compound_statement "{\n      uVar2 = (uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10 | (uint)*pbVar1 << 0x18 | (uint)pbVar1[3];\n    }" ({ "{") (expression_statement "uVar2 = (uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10 | (uint)*pbVar1 << 0x18 | (uint)pbVar1[3];" (assignment_expression "uVar2 = (uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10 | (uint)*pbVar1 << 0x18 | (uint)pbVar1[3]" (identifier "uVar2") (= "=") (binary_expression "(uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10 | (uint)*pbVar1 << 0x18 | (uint)pbVar1[3]" (binary_expression "(uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10 | (uint)*pbVar1 << 0x18" (binary_expression "(uint)pbVar1[2] << 8 |\n              (uint)pbVar1[1] << 0x10" (binary_expression "(uint)pbVar1[2] << 8" (cast_expression "(uint)pbVar1[2]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar1[2]" (identifier "pbVar1") ([ "[") (number_literal "2") (] "]"))) (<< "<<") (number_literal "8")) (| "|") (binary_expression "(uint)pbVar1[1] << 0x10" (cast_expression "(uint)pbVar1[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar1[1]" (identifier "pbVar1") ([ "[") (number_literal "1") (] "]"))) (<< "<<") (number_literal "0x10"))) (| "|") (binary_expression "(uint)*pbVar1 << 0x18" (binary_expression "(uint)*pbVar1" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar1")) (<< "<<") (number_literal "0x18"))) (| "|") (cast_expression "(uint)pbVar1[3]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar1[3]" (identifier "pbVar1") ([ "[") (number_literal "3") (] "]"))))) (; ";")) (} "}")) (else_clause "else {\n      uVar2 = 0;\n    }" (else "else") (compound_statement "{\n      uVar2 = 0;\n    }" ({ "{") (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (} "}")))) (if_statement "if (local_c == *(int *)PTR___stack_chk_guard_003fa248) {\n      return uVar2;\n    }" (if "if") (parenthesized_expression "(local_c == *(int *)PTR___stack_chk_guard_003fa248)" (( "(") (binary_expression "local_c == *(int *)PTR___stack_chk_guard_003fa248" (identifier "local_c") (== "==") (pointer_expression "*(int *)PTR___stack_chk_guard_003fa248" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_003fa248" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_003fa248")))) () ")")) (compound_statement "{\n      return uVar2;\n    }" ({ "{") (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (expression_statement "puVar3 = PTR___stack_chk_fail_003fa07c;" (assignment_expression "puVar3 = PTR___stack_chk_fail_003fa07c" (identifier "puVar3") (= "=") (identifier "PTR___stack_chk_fail_003fa07c")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_003fa07c)();" (call_expression "(*(code *)PTR___stack_chk_fail_003fa07c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_003fa07c)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_003fa07c" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_003fa07c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_003fa07c"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar2 = (**(code **)(puVar3 + 0x3b7278))();" (assignment_expression "uVar2 = (**(code **)(puVar3 + 0x3b7278))()" (identifier "uVar2") (= "=") (call_expression "(**(code **)(puVar3 + 0x3b7278))()" (parenthesized_expression "(**(code **)(puVar3 + 0x3b7278))" (( "(") (pointer_expression "**(code **)(puVar3 + 0x3b7278)" (* "*") (pointer_expression "*(code **)(puVar3 + 0x3b7278)" (* "*") (cast_expression "(code **)(puVar3 + 0x3b7278)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar3 + 0x3b7278)" (( "(") (binary_expression "puVar3 + 0x3b7278" (identifier "puVar3") (+ "+") (number_literal "0x3b7278")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (expression_statement "uVar2 = (*(code *)PTR___assert_fail_003fa620)\n                    (PTR_UINT_003f98e4 + -0x784,PTR_LAB_003f98e0 + 0x4aac,0x1178,\n                     PTR_LAB_003f98e0 + 0x5338);" (assignment_expression "uVar2 = (*(code *)PTR___assert_fail_003fa620)\n                    (PTR_UINT_003f98e4 + -0x784,PTR_LAB_003f98e0 + 0x4aac,0x1178,\n                     PTR_LAB_003f98e0 + 0x5338)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR___assert_fail_003fa620)\n                    (PTR_UINT_003f98e4 + -0x784,PTR_LAB_003f98e0 + 0x4aac,0x1178,\n                     PTR_LAB_003f98e0 + 0x5338)" (parenthesized_expression "(*(code *)PTR___assert_fail_003fa620)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_003fa620" (* "*") (cast_expression "(code *)PTR___assert_fail_003fa620" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_003fa620"))) () ")")) (argument_list "(PTR_UINT_003f98e4 + -0x784,PTR_LAB_003f98e0 + 0x4aac,0x1178,\n                     PTR_LAB_003f98e0 + 0x5338)" (( "(") (binary_expression "PTR_UINT_003f98e4 + -0x784" (identifier "PTR_UINT_003f98e4") (+ "+") (number_literal "-0x784")) (, ",") (binary_expression "PTR_LAB_003f98e0 + 0x4aac" (identifier "PTR_LAB_003f98e0") (+ "+") (number_literal "0x4aac")) (, ",") (number_literal "0x1178") (, ",") (binary_expression "PTR_LAB_003f98e0 + 0x5338" (identifier "PTR_LAB_003f98e0") (+ "+") (number_literal "0x5338")) () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (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 (identifier) (number_literal) (identifier) (pointer_expression argument: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal))) right: (binary_expression left: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)) right: (number_literal))) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (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))))))) arguments: (argument_list)))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))))

uint MASKED(int param_1)

{
  byte *pbVar1;
  uint uVar2;
  undefined *puVar3;
  int local_14;
  undefined1 local_10 [4];
  int local_c;
  
  local_c = *(int *)PTR___stack_chk_guard_003fa248;
  if (param_1 == 0) {
    uVar2 = (*(code *)PTR___assert_fail_003fa620)
                      (PTR_LAB_003f98e0 + 0x3da0,PTR_LAB_003f98e0 + 0x4aac,0x1177,
                       PTR_LAB_003f98e0 + 0x5338);
    return uVar2;
  }
  if (*(int *)(param_1 + 0x336c) == -0x54535255) {
    local_10[0] = 0;
    pbVar1 = (byte *)(*(code *)PTR_ReadBlobStream_003fa0b0)(param_1,4,local_10,&local_14);
    if (local_14 == 4) {
      uVar2 = (uint)pbVar1[2] << 8 |
              (uint)pbVar1[1] << 0x10 | (uint)*pbVar1 << 0x18 | (uint)pbVar1[3];
    }
    else {
      uVar2 = 0;
    }
    if (local_c == *(int *)PTR___stack_chk_guard_003fa248) {
      return uVar2;
    }
    puVar3 = PTR___stack_chk_fail_003fa07c;
    (*(code *)PTR___stack_chk_fail_003fa07c)();
    uVar2 = (**(code **)(puVar3 + 0x3b7278))();
    return uVar2;
  }
  uVar2 = (*(code *)PTR___assert_fail_003fa620)
                    (PTR_UINT_003f98e4 + -0x784,PTR_LAB_003f98e0 + 0x4aac,0x1178,
                     PTR_LAB_003f98e0 + 0x5338);
  return uVar2;
}

