
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

uint64 get_file_posn(WFile *f)

{
  int iVar1;
  int in_GS_OFFSET;
  __off64_t _Var2;
  uint64 uVar3;
  uint64 *ret;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  _Var2 = lseek64(f->fd,0,1);
  uVar3 = uint64_make((ulong)((ulonglong)_Var2 >> 0x20),(ulong)_Var2);
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    uVar3.hi = (ulong)ret;
    return uVar3;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 FUN_0006a910(undefined4 param_1,int *param_2)

{
  int in_GS_OFFSET;
  __off64_t _Var1;
  undefined4 local_14;
  
  _Var1 = lseek64(*param_2,0,1);
  FUN_00018c20(param_1,(int)((ulonglong)_Var1 >> 0x20),(int)_Var1);
  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {
    return param_1;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006f430();
}


PUSH ESI
PUSH EBX
CALL 0x00014970
ADD EBX,0x3f479
SUB ESP,0x14
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xc],EAX
XOR EAX,EAX
MOV ESI,dword ptr [ESP + 0x20]
PUSH 0x1
PUSH 0x0
PUSH 0x0
MOV EAX,dword ptr [ESP + 0x30]
PUSH dword ptr [EAX]
CALL 0x00014300
ADD ESP,0xc
PUSH EAX
PUSH EDX
PUSH ESI
CALL 0x00018c20
ADD ESP,0xc
MOV ECX,dword ptr [ESP + 0xc]
XOR ECX,dword ptr GS:[0x14]
JNZ 0x0006a966
ADD ESP,0x14
MOV EAX,ESI
POP EBX
POP ESI
RET 0x4
CALL 0x0006f430
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_0006a910(undefined4 param_1,int *param_2)\n\n{\n  int in_GS_OFFSET;\n  __off64_t _Var1;\n  undefined4 local_14;\n  \n  _Var1 = lseek64(*param_2,0,1);\n  FUN_00018c20(param_1,(int)((ulonglong)_Var1 >> 0x20),(int)_Var1);\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f430();\n}\n\n" comment (function_definition "undefined4 FUN_0006a910(undefined4 param_1,int *param_2)\n\n{\n  int in_GS_OFFSET;\n  __off64_t _Var1;\n  undefined4 local_14;\n  \n  _Var1 = lseek64(*param_2,0,1);\n  FUN_00018c20(param_1,(int)((ulonglong)_Var1 >> 0x20),(int)_Var1);\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f430();\n}" type_identifier (function_declarator "FUN_0006a910(undefined4 param_1,int *param_2)" identifier (parameter_list "(undefined4 param_1,int *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int in_GS_OFFSET;\n  __off64_t _Var1;\n  undefined4 local_14;\n  \n  _Var1 = lseek64(*param_2,0,1);\n  FUN_00018c20(param_1,(int)((ulonglong)_Var1 >> 0x20),(int)_Var1);\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f430();\n}" { (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "__off64_t _Var1;" type_identifier identifier ;) (declaration "undefined4 local_14;" type_identifier identifier ;) (expression_statement "_Var1 = lseek64(*param_2,0,1);" (assignment_expression "_Var1 = lseek64(*param_2,0,1)" identifier = (call_expression "lseek64(*param_2,0,1)" identifier (argument_list "(*param_2,0,1)" ( (pointer_expression "*param_2" * identifier) , number_literal , number_literal )))) ;) (expression_statement "FUN_00018c20(param_1,(int)((ulonglong)_Var1 >> 0x20),(int)_Var1);" (call_expression "FUN_00018c20(param_1,(int)((ulonglong)_Var1 >> 0x20),(int)_Var1)" identifier (argument_list "(param_1,(int)((ulonglong)_Var1 >> 0x20),(int)_Var1)" ( identifier , (cast_expression "(int)((ulonglong)_Var1 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)_Var1 >> 0x20)" ( (binary_expression "(ulonglong)_Var1 >> 0x20" (cast_expression "(ulonglong)_Var1" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) , (cast_expression "(int)_Var1" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) (if_statement "if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }" if (parenthesized_expression "(local_14 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_14 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) comment (expression_statement "FUN_0006f430();" (call_expression "FUN_0006f430()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nuint64 get_file_posn(WFile *f)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  __off64_t _Var2;\n  uint64 uVar3;\n  uint64 *ret;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  _Var2 = lseek64(f->fd,0,1);\n  uVar3 = uint64_make((ulong)((ulonglong)_Var2 >> 0x20),(ulong)_Var2);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    uVar3.hi = (ulong)ret;\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "uint64 get_file_posn(WFile *f)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  __off64_t _Var2;\n  uint64 uVar3;\n  uint64 *ret;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  _Var2 = lseek64(f->fd,0,1);\n  uVar3 = uint64_make((ulong)((ulonglong)_Var2 >> 0x20),(ulong)_Var2);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    uVar3.hi = (ulong)ret;\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" type_identifier (function_declarator "get_file_posn(WFile *f)" identifier (parameter_list "(WFile *f)" ( (parameter_declaration "WFile *f" type_identifier (pointer_declarator "*f" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  __off64_t _Var2;\n  uint64 uVar3;\n  uint64 *ret;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  _Var2 = lseek64(f->fd,0,1);\n  uVar3 = uint64_make((ulong)((ulonglong)_Var2 >> 0x20),(ulong)_Var2);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    uVar3.hi = (ulong)ret;\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "__off64_t _Var2;" type_identifier identifier ;) (declaration "uint64 uVar3;" type_identifier identifier ;) (declaration "uint64 *ret;" type_identifier (pointer_declarator "*ret" * identifier) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "_Var2 = lseek64(f->fd,0,1);" (assignment_expression "_Var2 = lseek64(f->fd,0,1)" identifier = (call_expression "lseek64(f->fd,0,1)" identifier (argument_list "(f->fd,0,1)" ( (field_expression "f->fd" identifier -> field_identifier) , number_literal , number_literal )))) ;) (expression_statement "uVar3 = uint64_make((ulong)((ulonglong)_Var2 >> 0x20),(ulong)_Var2);" (assignment_expression "uVar3 = uint64_make((ulong)((ulonglong)_Var2 >> 0x20),(ulong)_Var2)" identifier = (call_expression "uint64_make((ulong)((ulonglong)_Var2 >> 0x20),(ulong)_Var2)" identifier (argument_list "((ulong)((ulonglong)_Var2 >> 0x20),(ulong)_Var2)" ( (call_expression "(ulong)((ulonglong)_Var2 >> 0x20)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((ulonglong)_Var2 >> 0x20)" ( (binary_expression "(ulonglong)_Var2 >> 0x20" (cast_expression "(ulonglong)_Var2" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) , (cast_expression "(ulong)_Var2" ( (type_descriptor "ulong" type_identifier) ) identifier) )))) ;) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    uVar3.hi = (ulong)ret;\n    return uVar3;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    uVar3.hi = (ulong)ret;\n    return uVar3;\n  }" { (expression_statement "uVar3.hi = (ulong)ret;" (assignment_expression "uVar3.hi = (ulong)ret" (field_expression "uVar3.hi" identifier . field_identifier) = (cast_expression "(ulong)ret" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (return_statement "return uVar3;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined4 FUN_0006a910(undefined4 param_1,int *param_2)\n\n{\n  int in_GS_OFFSET;\n  __off64_t _Var1;\n  undefined4 local_14;\n  \n  _Var1 = lseek64(*param_2,0,1);\n  FUN_00018c20(param_1,(int)((ulonglong)_Var1 >> 0x20),(int)_Var1);\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }\n                    \n  FUN_0006f430();\n}\n\n" (function_definition "undefined4 FUN_0006a910(undefined4 param_1,int *param_2)\n\n{\n  int in_GS_OFFSET;\n  __off64_t _Var1;\n  undefined4 local_14;\n  \n  _Var1 = lseek64(*param_2,0,1);\n  FUN_00018c20(param_1,(int)((ulonglong)_Var1 >> 0x20),(int)_Var1);\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }\n                    \n  FUN_0006f430();\n}" type_identifier (function_declarator "FUN_0006a910(undefined4 param_1,int *param_2)" identifier (parameter_list "(undefined4 param_1,int *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int in_GS_OFFSET;\n  __off64_t _Var1;\n  undefined4 local_14;\n  \n  _Var1 = lseek64(*param_2,0,1);\n  FUN_00018c20(param_1,(int)((ulonglong)_Var1 >> 0x20),(int)_Var1);\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }\n                    \n  FUN_0006f430();\n}" { (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "__off64_t _Var1;" type_identifier identifier ;) (declaration "undefined4 local_14;" type_identifier identifier ;) (expression_statement "_Var1 = lseek64(*param_2,0,1);" (assignment_expression "_Var1 = lseek64(*param_2,0,1)" identifier = (call_expression "lseek64(*param_2,0,1)" identifier (argument_list "(*param_2,0,1)" ( (pointer_expression "*param_2" * identifier) , number_literal , number_literal )))) ;) (expression_statement "FUN_00018c20(param_1,(int)((ulonglong)_Var1 >> 0x20),(int)_Var1);" (call_expression "FUN_00018c20(param_1,(int)((ulonglong)_Var1 >> 0x20),(int)_Var1)" identifier (argument_list "(param_1,(int)((ulonglong)_Var1 >> 0x20),(int)_Var1)" ( identifier , (cast_expression "(int)((ulonglong)_Var1 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)_Var1 >> 0x20)" ( (binary_expression "(ulonglong)_Var1 >> 0x20" (cast_expression "(ulonglong)_Var1" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) , (cast_expression "(int)_Var1" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) (if_statement "if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }" if (parenthesized_expression "(local_14 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_14 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "FUN_0006f430();" (call_expression "FUN_0006f430()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , LIT , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) , (cast_expression ( (type_descriptor TYPE) ) IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined4 FUN_0006a910(undefined4 param_1,int *param_2)\n\n{\n  int in_GS_OFFSET;\n  __off64_t _Var1;\n  undefined4 local_14;\n  \n  _Var1 = lseek64(*param_2,0,1);\n  FUN_00018c20(param_1,(int)((ulonglong)_Var1 >> 0x20),(int)_Var1);\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }\n                    \n  FUN_0006f430();\n}" (type_identifier "undefined4") (function_declarator "FUN_0006a910(undefined4 param_1,int *param_2)" (identifier "FUN_0006a910") (parameter_list "(undefined4 param_1,int *param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int in_GS_OFFSET;\n  __off64_t _Var1;\n  undefined4 local_14;\n  \n  _Var1 = lseek64(*param_2,0,1);\n  FUN_00018c20(param_1,(int)((ulonglong)_Var1 >> 0x20),(int)_Var1);\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }\n                    \n  FUN_0006f430();\n}" ({ "{") (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "__off64_t _Var1;" (type_identifier "__off64_t") (identifier "_Var1") (; ";")) (declaration "undefined4 local_14;" (type_identifier "undefined4") (identifier "local_14") (; ";")) (expression_statement "_Var1 = lseek64(*param_2,0,1);" (assignment_expression "_Var1 = lseek64(*param_2,0,1)" (identifier "_Var1") (= "=") (call_expression "lseek64(*param_2,0,1)" (identifier "lseek64") (argument_list "(*param_2,0,1)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (number_literal "0") (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "FUN_00018c20(param_1,(int)((ulonglong)_Var1 >> 0x20),(int)_Var1);" (call_expression "FUN_00018c20(param_1,(int)((ulonglong)_Var1 >> 0x20),(int)_Var1)" (identifier "FUN_00018c20") (argument_list "(param_1,(int)((ulonglong)_Var1 >> 0x20),(int)_Var1)" (( "(") (identifier "param_1") (, ",") (cast_expression "(int)((ulonglong)_Var1 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)_Var1 >> 0x20)" (( "(") (binary_expression "(ulonglong)_Var1 >> 0x20" (cast_expression "(ulonglong)_Var1" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "_Var1")) (>> ">>") (number_literal "0x20")) () ")"))) (, ",") (cast_expression "(int)_Var1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "_Var1")) () ")"))) (; ";")) (if_statement "if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_1;\n  }" (if "if") (parenthesized_expression "(local_14 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_14 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_14") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return param_1;\n  }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "FUN_0006f430();" (call_expression "FUN_0006f430()" (identifier "FUN_0006f430") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

type_1 function_1(type_2 *f)

{
  int var_4;
  int var_1;
  type_3 _Var2;
  type_1 uVar3;
  type_1 *ret;
  
  var_4 = *(int *)(var_1 + 0x14);
  _Var2 = var_2(f->fd,0,1);
  uVar3 = var_3((type_5)((type_4)_Var2 >> 0x20),(type_5)_Var2);
  if (var_4 == *(int *)(var_1 + 0x14)) {
    uVar3.hi = (type_5)ret;
    return uVar3;
  }
                    /* WARNING: Subroutine does not return */
  var_5();
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (number_literal) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))) (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) (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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 MASKED(undefined4 param_1,int *param_2)

{
  int in_GS_OFFSET;
  __off64_t _Var1;
  undefined4 local_14;
  
  _Var1 = lseek64(*param_2,0,1);
  FUN_00018c20(param_1,(int)((ulonglong)_Var1 >> 0x20),(int)_Var1);
  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {
    return param_1;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006f430();
}

