
int32_t i2c_smbus_read_byte(int fd)

{
  uint uVar1;
  long in_FS_OFFSET;
  i2c_smbus_data data;
  long local_10;
  
  local_10 = *(long *)(in_FS_OFFSET + 0x28);
  uVar1 = i2c_smbus_access(fd,'\x01','\0',1,&data);
  if (-1 < (int)uVar1) {
    uVar1 = (uint)data.byte;
  }
  if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return uVar1;
}



ulong FUN_0011aee5(undefined8 param_1)

{
  ulong uVar1;
  long in_FS_OFFSET;
  byte local_38 [40];
  long local_10;
  
  local_10 = *(long *)(in_FS_OFFSET + 0x28);
  uVar1 = FUN_0011ae9c(param_1,1,0,1,local_38);
  if (-1 < (int)uVar1) {
    uVar1 = (ulong)local_38[0];
  }
  if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return uVar1;
}


SUB RSP,0x38
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x28],RAX
XOR EAX,EAX
MOV R8,RSP
MOV ECX,0x1
MOV EDX,0x0
MOV ESI,0x1
CALL 0x0011ae9c
TEST EAX,EAX
JS 0x0011af18
MOVZX EAX,byte ptr [RSP]
MOV RDX,qword ptr [RSP + 0x28]
XOR RDX,qword ptr FS:[0x28]
JZ 0x0011af2d
CALL 0x0010b500
ADD RSP,0x38
RET
(translation_unit "ulong FUN_0011aee5(undefined8 param_1)\n\n{\n  ulong uVar1;\n  long in_FS_OFFSET;\n  byte local_38 [40];\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar1 = FUN_0011ae9c(param_1,1,0,1,local_38);\n  if (-1 < (int)uVar1) {\n    uVar1 = (ulong)local_38[0];\n  }\n  if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return uVar1;\n}\n\n" (function_definition "ulong FUN_0011aee5(undefined8 param_1)\n\n{\n  ulong uVar1;\n  long in_FS_OFFSET;\n  byte local_38 [40];\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar1 = FUN_0011ae9c(param_1,1,0,1,local_38);\n  if (-1 < (int)uVar1) {\n    uVar1 = (ulong)local_38[0];\n  }\n  if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_0011aee5(undefined8 param_1)" identifier (parameter_list "(undefined8 param_1)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) ))) (compound_statement "{\n  ulong uVar1;\n  long in_FS_OFFSET;\n  byte local_38 [40];\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar1 = FUN_0011ae9c(param_1,1,0,1,local_38);\n  if (-1 < (int)uVar1) {\n    uVar1 = (ulong)local_38[0];\n  }\n  if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return uVar1;\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "byte local_38 [40];" type_identifier (array_declarator "local_38 [40]" identifier [ number_literal ]) ;) (declaration "long local_10;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_10 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_10 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = FUN_0011ae9c(param_1,1,0,1,local_38);" (assignment_expression "uVar1 = FUN_0011ae9c(param_1,1,0,1,local_38)" identifier = (call_expression "FUN_0011ae9c(param_1,1,0,1,local_38)" identifier (argument_list "(param_1,1,0,1,local_38)" ( identifier , number_literal , number_literal , number_literal , identifier )))) ;) (if_statement "if (-1 < (int)uVar1) {\n    uVar1 = (ulong)local_38[0];\n  }" if (parenthesized_expression "(-1 < (int)uVar1)" ( (binary_expression "-1 < (int)uVar1" number_literal < (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    uVar1 = (ulong)local_38[0];\n  }" { (expression_statement "uVar1 = (ulong)local_38[0];" (assignment_expression "uVar1 = (ulong)local_38[0]" identifier = (cast_expression "(ulong)local_38[0]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "local_38[0]" identifier [ number_literal ]))) ;) })) (if_statement "if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_10 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_10 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "int32_t i2c_smbus_read_byte(int fd)\n\n{\n  uint uVar1;\n  long in_FS_OFFSET;\n  i2c_smbus_data data;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar1 = i2c_smbus_access(fd,'\x01','\0',1,&data);\n  if (-1 < (int)uVar1) {\n    uVar1 = (uint)data.byte;\n  }\n  if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return uVar1;\n}\n\n" (function_definition "int32_t i2c_smbus_read_byte(int fd)\n\n{\n  uint uVar1;\n  long in_FS_OFFSET;\n  i2c_smbus_data data;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar1 = i2c_smbus_access(fd,'\x01','\0',1,&data);\n  if (-1 < (int)uVar1) {\n    uVar1 = (uint)data.byte;\n  }\n  if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return uVar1;\n}" primitive_type (function_declarator "i2c_smbus_read_byte(int fd)" identifier (parameter_list "(int fd)" ( (parameter_declaration "int fd" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  long in_FS_OFFSET;\n  i2c_smbus_data data;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar1 = i2c_smbus_access(fd,'\x01','\0',1,&data);\n  if (-1 < (int)uVar1) {\n    uVar1 = (uint)data.byte;\n  }\n  if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "i2c_smbus_data data;" type_identifier identifier ;) (declaration "long local_10;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_10 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_10 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = i2c_smbus_access(fd,'\x01','\0',1,&data);" (assignment_expression "uVar1 = i2c_smbus_access(fd,'\x01','\0',1,&data)" identifier = (call_expression "i2c_smbus_access(fd,'\x01','\0',1,&data)" identifier (argument_list "(fd,'\x01','\0',1,&data)" ( identifier , (char_literal "'\x01'" ' escape_sequence ') , (char_literal "'\0'" ' escape_sequence ') , number_literal , (pointer_expression "&data" & identifier) )))) ;) (if_statement "if (-1 < (int)uVar1) {\n    uVar1 = (uint)data.byte;\n  }" if (parenthesized_expression "(-1 < (int)uVar1)" ( (binary_expression "-1 < (int)uVar1" number_literal < (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    uVar1 = (uint)data.byte;\n  }" { (expression_statement "uVar1 = (uint)data.byte;" (assignment_expression "uVar1 = (uint)data.byte" identifier = (cast_expression "(uint)data.byte" ( (type_descriptor "uint" type_identifier) ) (field_expression "data.byte" identifier . field_identifier))) ;) })) (if_statement "if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_10 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_10 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "ulong FUN_0011aee5(undefined8 param_1)\n\n{\n  ulong uVar1;\n  long in_FS_OFFSET;\n  byte local_38 [40];\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar1 = FUN_0011ae9c(param_1,1,0,1,local_38);\n  if (-1 < (int)uVar1) {\n    uVar1 = (ulong)local_38[0];\n  }\n  if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return uVar1;\n}\n\n" (function_definition "ulong FUN_0011aee5(undefined8 param_1)\n\n{\n  ulong uVar1;\n  long in_FS_OFFSET;\n  byte local_38 [40];\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar1 = FUN_0011ae9c(param_1,1,0,1,local_38);\n  if (-1 < (int)uVar1) {\n    uVar1 = (ulong)local_38[0];\n  }\n  if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_0011aee5(undefined8 param_1)" identifier (parameter_list "(undefined8 param_1)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) ))) (compound_statement "{\n  ulong uVar1;\n  long in_FS_OFFSET;\n  byte local_38 [40];\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar1 = FUN_0011ae9c(param_1,1,0,1,local_38);\n  if (-1 < (int)uVar1) {\n    uVar1 = (ulong)local_38[0];\n  }\n  if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return uVar1;\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "byte local_38 [40];" type_identifier (array_declarator "local_38 [40]" identifier [ number_literal ]) ;) (declaration "long local_10;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_10 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_10 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = FUN_0011ae9c(param_1,1,0,1,local_38);" (assignment_expression "uVar1 = FUN_0011ae9c(param_1,1,0,1,local_38)" identifier = (call_expression "FUN_0011ae9c(param_1,1,0,1,local_38)" identifier (argument_list "(param_1,1,0,1,local_38)" ( identifier , number_literal , number_literal , number_literal , identifier )))) ;) (if_statement "if (-1 < (int)uVar1) {\n    uVar1 = (ulong)local_38[0];\n  }" if (parenthesized_expression "(-1 < (int)uVar1)" ( (binary_expression "-1 < (int)uVar1" number_literal < (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    uVar1 = (ulong)local_38[0];\n  }" { (expression_statement "uVar1 = (ulong)local_38[0];" (assignment_expression "uVar1 = (ulong)local_38[0]" identifier = (cast_expression "(ulong)local_38[0]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "local_38[0]" identifier [ number_literal ]))) ;) })) (if_statement "if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_10 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_10 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    __stack_chk_fail();\n  }" { (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , LIT , LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "ulong FUN_0011aee5(undefined8 param_1)\n\n{\n  ulong uVar1;\n  long in_FS_OFFSET;\n  byte local_38 [40];\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar1 = FUN_0011ae9c(param_1,1,0,1,local_38);\n  if (-1 < (int)uVar1) {\n    uVar1 = (ulong)local_38[0];\n  }\n  if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return uVar1;\n}" (type_identifier "ulong") (function_declarator "FUN_0011aee5(undefined8 param_1)" (identifier "FUN_0011aee5") (parameter_list "(undefined8 param_1)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) () ")"))) (compound_statement "{\n  ulong uVar1;\n  long in_FS_OFFSET;\n  byte local_38 [40];\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar1 = FUN_0011ae9c(param_1,1,0,1,local_38);\n  if (-1 < (int)uVar1) {\n    uVar1 = (ulong)local_38[0];\n  }\n  if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return uVar1;\n}" ({ "{") (declaration "ulong uVar1;" (type_identifier "ulong") (identifier "uVar1") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "byte local_38 [40];" (type_identifier "byte") (array_declarator "local_38 [40]" (identifier "local_38") ([ "[") (number_literal "40") (] "]")) (; ";")) (declaration "long local_10;" (sized_type_specifier "long" (long "long")) (identifier "local_10") (; ";")) (expression_statement "local_10 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_10 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_10") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "uVar1 = FUN_0011ae9c(param_1,1,0,1,local_38);" (assignment_expression "uVar1 = FUN_0011ae9c(param_1,1,0,1,local_38)" (identifier "uVar1") (= "=") (call_expression "FUN_0011ae9c(param_1,1,0,1,local_38)" (identifier "FUN_0011ae9c") (argument_list "(param_1,1,0,1,local_38)" (( "(") (identifier "param_1") (, ",") (number_literal "1") (, ",") (number_literal "0") (, ",") (number_literal "1") (, ",") (identifier "local_38") () ")")))) (; ";")) (if_statement "if (-1 < (int)uVar1) {\n    uVar1 = (ulong)local_38[0];\n  }" (if "if") (parenthesized_expression "(-1 < (int)uVar1)" (( "(") (binary_expression "-1 < (int)uVar1" (number_literal "-1") (< "<") (cast_expression "(int)uVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar1"))) () ")")) (compound_statement "{\n    uVar1 = (ulong)local_38[0];\n  }" ({ "{") (expression_statement "uVar1 = (ulong)local_38[0];" (assignment_expression "uVar1 = (ulong)local_38[0]" (identifier "uVar1") (= "=") (cast_expression "(ulong)local_38[0]" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")))) (; ";")) (} "}"))) (if_statement "if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" (if "if") (parenthesized_expression "(local_10 != *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_10 != *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_10") (!= "!=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n                    \n    __stack_chk_fail();\n  }" ({ "{") (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

int32_t function_1(int fd)

{
  type_1 uVar1;
  long var_1;
  type_2 data;
  long var_3;
  
  var_3 = *(long *)(var_1 + 0x28);
  uVar1 = var_2(fd,'\x01','\0',1,&data);
  if (-1 < (int)uVar1) {
    uVar1 = (type_1)data.byte;
  }
  if (var_3 != *(long *)(var_1 + 0x28)) {
                    /* WARNING: Subroutine does not return */
    var_4();
  }
  return uVar1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal) (number_literal) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (return_statement (identifier)))))

ulong MASKED(undefined8 param_1)

{
  ulong uVar1;
  long in_FS_OFFSET;
  byte local_38 [40];
  long local_10;
  
  local_10 = *(long *)(in_FS_OFFSET + 0x28);
  uVar1 = FUN_0011ae9c(param_1,1,0,1,local_38);
  if (-1 < (int)uVar1) {
    uVar1 = (ulong)local_38[0];
  }
  if (local_10 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return uVar1;
}

