
int sqlite3changeset_invert_strm
              (_func_int_void_ptr_void_ptr_int_ptr *xInput,void *pIn,
              _func_int_void_ptr_void_ptr_int *xOutput,void *pOut)

{
  long lVar1;
  int iVar2;
  long in_FS_OFFSET;
  SessionInput sInput;
  
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  sInput.bNoDiscard = 0;
  sInput.iCurrent = 0;
  sInput.iNext = 0;
  sInput._12_4_ = 0;
  sInput.aData = (u8 *)0x0;
  sInput.nData = 0;
  sInput._28_4_ = 0;
  sInput.buf.aBuf = (u8 *)0x0;
  sInput.buf.nBuf = 0;
  sInput.buf.nAlloc = 0;
  sInput.bEof = 0;
  sInput._68_4_ = 0;
  sInput.xInput = xInput;
  sInput.pIn = pIn;
  iVar2 = sessionChangesetInvert(&sInput,xOutput,pOut,(int *)0x0,(void **)0x0);
  sqlite3_free(sInput.buf.aBuf);
  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {
    return iVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



undefined4 FUN_001e7200(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4)

{
  undefined4 uVar1;
  long in_FS_OFFSET;
  undefined1 local_58 [16];
  undefined1 local_48 [16];
  undefined1 local_38 [16];
  undefined8 local_28;
  undefined8 local_20;
  undefined8 local_18;
  long local_10;
  
  local_10 = *(long *)(in_FS_OFFSET + 0x28);
  local_58 = (undefined1  [16])0x0;
  local_48 = (undefined1  [16])0x0;
  local_38 = (undefined1  [16])0x0;
  local_18 = 0;
  local_28 = param_1;
  local_20 = param_2;
  uVar1 = FUN_00161c60(local_58,param_3,param_4,0,0);
  FUN_00119e00(local_38._0_8_);
  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {
    return uVar1;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


PUSH RBX
MOV R9,RDX
PXOR XMM0,XMM0
MOV RDX,RCX
XOR R8D,R8D
XOR ECX,ECX
SUB RSP,0x50
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x48],RAX
XOR EAX,EAX
MOV RAX,RSP
MOV qword ptr [RSP + 0x30],RDI
MOV qword ptr [RSP + 0x38],RSI
MOV RDI,RAX
MOV RSI,R9
MOVAPS xmmword ptr [RSP],XMM0
MOVAPS xmmword ptr [RSP + 0x10],XMM0
MOVAPS xmmword ptr [RSP + 0x20],XMM0
MOV qword ptr [RSP + 0x40],0x0
CALL 0x00161c60
MOV RDI,qword ptr [RSP + 0x20]
MOV EBX,EAX
CALL 0x00119e00
MOV RCX,qword ptr [RSP + 0x48]
XOR RCX,qword ptr FS:[0x28]
JNZ 0x001e7277
ADD RSP,0x50
MOV EAX,EBX
POP RBX
RET
CALL 0x0010a140
(translation_unit "undefined4 FUN_001e7200(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4)\n\n{\n  undefined4 uVar1;\n  long in_FS_OFFSET;\n  undefined1 local_58 [16];\n  undefined1 local_48 [16];\n  undefined1 local_38 [16];\n  undefined8 local_28;\n  undefined8 local_20;\n  undefined8 local_18;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  local_58 = (undefined1  [16])0x0;\n  local_48 = (undefined1  [16])0x0;\n  local_38 = (undefined1  [16])0x0;\n  local_18 = 0;\n  local_28 = param_1;\n  local_20 = param_2;\n  uVar1 = FUN_00161c60(local_58,param_3,param_4,0,0);\n  FUN_00119e00(local_38._0_8_);\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "undefined4 FUN_001e7200(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4)\n\n{\n  undefined4 uVar1;\n  long in_FS_OFFSET;\n  undefined1 local_58 [16];\n  undefined1 local_48 [16];\n  undefined1 local_38 [16];\n  undefined8 local_28;\n  undefined8 local_20;\n  undefined8 local_18;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  local_58 = (undefined1  [16])0x0;\n  local_48 = (undefined1  [16])0x0;\n  local_38 = (undefined1  [16])0x0;\n  local_18 = 0;\n  local_28 = param_1;\n  local_20 = param_2;\n  uVar1 = FUN_00161c60(local_58,param_3,param_4,0,0);\n  FUN_00119e00(local_38._0_8_);\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" type_identifier (function_declarator "FUN_001e7200(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  long in_FS_OFFSET;\n  undefined1 local_58 [16];\n  undefined1 local_48 [16];\n  undefined1 local_38 [16];\n  undefined8 local_28;\n  undefined8 local_20;\n  undefined8 local_18;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  local_58 = (undefined1  [16])0x0;\n  local_48 = (undefined1  [16])0x0;\n  local_38 = (undefined1  [16])0x0;\n  local_18 = 0;\n  local_28 = param_1;\n  local_20 = param_2;\n  uVar1 = FUN_00161c60(local_58,param_3,param_4,0,0);\n  FUN_00119e00(local_38._0_8_);\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 local_58 [16];" type_identifier (array_declarator "local_58 [16]" identifier [ number_literal ]) ;) (declaration "undefined1 local_48 [16];" type_identifier (array_declarator "local_48 [16]" identifier [ number_literal ]) ;) (declaration "undefined1 local_38 [16];" type_identifier (array_declarator "local_38 [16]" identifier [ number_literal ]) ;) (declaration "undefined8 local_28;" type_identifier identifier ;) (declaration "undefined8 local_20;" type_identifier identifier ;) (declaration "undefined8 local_18;" 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 "local_58 = (undefined1  [16])0x0;" (assignment_expression "local_58 = (undefined1  [16])0x0" identifier = (cast_expression "(undefined1  [16])0x0" ( (type_descriptor "undefined1  [16]" type_identifier (abstract_array_declarator "[16]" [ number_literal ])) ) number_literal)) ;) (expression_statement "local_48 = (undefined1  [16])0x0;" (assignment_expression "local_48 = (undefined1  [16])0x0" identifier = (cast_expression "(undefined1  [16])0x0" ( (type_descriptor "undefined1  [16]" type_identifier (abstract_array_declarator "[16]" [ number_literal ])) ) number_literal)) ;) (expression_statement "local_38 = (undefined1  [16])0x0;" (assignment_expression "local_38 = (undefined1  [16])0x0" identifier = (cast_expression "(undefined1  [16])0x0" ( (type_descriptor "undefined1  [16]" type_identifier (abstract_array_declarator "[16]" [ number_literal ])) ) number_literal)) ;) (expression_statement "local_18 = 0;" (assignment_expression "local_18 = 0" identifier = number_literal) ;) (expression_statement "local_28 = param_1;" (assignment_expression "local_28 = param_1" identifier = identifier) ;) (expression_statement "local_20 = param_2;" (assignment_expression "local_20 = param_2" identifier = identifier) ;) (expression_statement "uVar1 = FUN_00161c60(local_58,param_3,param_4,0,0);" (assignment_expression "uVar1 = FUN_00161c60(local_58,param_3,param_4,0,0)" identifier = (call_expression "FUN_00161c60(local_58,param_3,param_4,0,0)" identifier (argument_list "(local_58,param_3,param_4,0,0)" ( identifier , identifier , identifier , number_literal , number_literal )))) ;) (expression_statement "FUN_00119e00(local_38._0_8_);" (call_expression "FUN_00119e00(local_38._0_8_)" identifier (argument_list "(local_38._0_8_)" ( (field_expression "local_38._0_8_" identifier . field_identifier) ))) ;) (if_statement "if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\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    return uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int sqlite3changeset_invert_strm\n              (_func_int_void_ptr_void_ptr_int_ptr *xInput,void *pIn,\n              _func_int_void_ptr_void_ptr_int *xOutput,void *pOut)\n\n{\n  long lVar1;\n  int iVar2;\n  long in_FS_OFFSET;\n  SessionInput sInput;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  sInput.bNoDiscard = 0;\n  sInput.iCurrent = 0;\n  sInput.iNext = 0;\n  sInput._12_4_ = 0;\n  sInput.aData = (u8 *)0x0;\n  sInput.nData = 0;\n  sInput._28_4_ = 0;\n  sInput.buf.aBuf = (u8 *)0x0;\n  sInput.buf.nBuf = 0;\n  sInput.buf.nAlloc = 0;\n  sInput.bEof = 0;\n  sInput._68_4_ = 0;\n  sInput.xInput = xInput;\n  sInput.pIn = pIn;\n  iVar2 = sessionChangesetInvert(&sInput,xOutput,pOut,(int *)0x0,(void **)0x0);\n  sqlite3_free(sInput.buf.aBuf);\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "int sqlite3changeset_invert_strm\n              (_func_int_void_ptr_void_ptr_int_ptr *xInput,void *pIn,\n              _func_int_void_ptr_void_ptr_int *xOutput,void *pOut)\n\n{\n  long lVar1;\n  int iVar2;\n  long in_FS_OFFSET;\n  SessionInput sInput;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  sInput.bNoDiscard = 0;\n  sInput.iCurrent = 0;\n  sInput.iNext = 0;\n  sInput._12_4_ = 0;\n  sInput.aData = (u8 *)0x0;\n  sInput.nData = 0;\n  sInput._28_4_ = 0;\n  sInput.buf.aBuf = (u8 *)0x0;\n  sInput.buf.nBuf = 0;\n  sInput.buf.nAlloc = 0;\n  sInput.bEof = 0;\n  sInput._68_4_ = 0;\n  sInput.xInput = xInput;\n  sInput.pIn = pIn;\n  iVar2 = sessionChangesetInvert(&sInput,xOutput,pOut,(int *)0x0,(void **)0x0);\n  sqlite3_free(sInput.buf.aBuf);\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (function_declarator "sqlite3changeset_invert_strm\n              (_func_int_void_ptr_void_ptr_int_ptr *xInput,void *pIn,\n              _func_int_void_ptr_void_ptr_int *xOutput,void *pOut)" identifier (parameter_list "(_func_int_void_ptr_void_ptr_int_ptr *xInput,void *pIn,\n              _func_int_void_ptr_void_ptr_int *xOutput,void *pOut)" ( (parameter_declaration "_func_int_void_ptr_void_ptr_int_ptr *xInput" type_identifier (pointer_declarator "*xInput" * identifier)) , (parameter_declaration "void *pIn" primitive_type (pointer_declarator "*pIn" * identifier)) , (parameter_declaration "_func_int_void_ptr_void_ptr_int *xOutput" type_identifier (pointer_declarator "*xOutput" * identifier)) , (parameter_declaration "void *pOut" primitive_type (pointer_declarator "*pOut" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  long in_FS_OFFSET;\n  SessionInput sInput;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  sInput.bNoDiscard = 0;\n  sInput.iCurrent = 0;\n  sInput.iNext = 0;\n  sInput._12_4_ = 0;\n  sInput.aData = (u8 *)0x0;\n  sInput.nData = 0;\n  sInput._28_4_ = 0;\n  sInput.buf.aBuf = (u8 *)0x0;\n  sInput.buf.nBuf = 0;\n  sInput.buf.nAlloc = 0;\n  sInput.bEof = 0;\n  sInput._68_4_ = 0;\n  sInput.xInput = xInput;\n  sInput.pIn = pIn;\n  iVar2 = sessionChangesetInvert(&sInput,xOutput,pOut,(int *)0x0,(void **)0x0);\n  sqlite3_free(sInput.buf.aBuf);\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "SessionInput sInput;" type_identifier identifier ;) (expression_statement "lVar1 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar1 = *(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 "sInput.bNoDiscard = 0;" (assignment_expression "sInput.bNoDiscard = 0" (field_expression "sInput.bNoDiscard" identifier . field_identifier) = number_literal) ;) (expression_statement "sInput.iCurrent = 0;" (assignment_expression "sInput.iCurrent = 0" (field_expression "sInput.iCurrent" identifier . field_identifier) = number_literal) ;) (expression_statement "sInput.iNext = 0;" (assignment_expression "sInput.iNext = 0" (field_expression "sInput.iNext" identifier . field_identifier) = number_literal) ;) (expression_statement "sInput._12_4_ = 0;" (assignment_expression "sInput._12_4_ = 0" (field_expression "sInput._12_4_" identifier . field_identifier) = number_literal) ;) (expression_statement "sInput.aData = (u8 *)0x0;" (assignment_expression "sInput.aData = (u8 *)0x0" (field_expression "sInput.aData" identifier . field_identifier) = (cast_expression "(u8 *)0x0" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "sInput.nData = 0;" (assignment_expression "sInput.nData = 0" (field_expression "sInput.nData" identifier . field_identifier) = number_literal) ;) (expression_statement "sInput._28_4_ = 0;" (assignment_expression "sInput._28_4_ = 0" (field_expression "sInput._28_4_" identifier . field_identifier) = number_literal) ;) (expression_statement "sInput.buf.aBuf = (u8 *)0x0;" (assignment_expression "sInput.buf.aBuf = (u8 *)0x0" (field_expression "sInput.buf.aBuf" (field_expression "sInput.buf" identifier . field_identifier) . field_identifier) = (cast_expression "(u8 *)0x0" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "sInput.buf.nBuf = 0;" (assignment_expression "sInput.buf.nBuf = 0" (field_expression "sInput.buf.nBuf" (field_expression "sInput.buf" identifier . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "sInput.buf.nAlloc = 0;" (assignment_expression "sInput.buf.nAlloc = 0" (field_expression "sInput.buf.nAlloc" (field_expression "sInput.buf" identifier . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "sInput.bEof = 0;" (assignment_expression "sInput.bEof = 0" (field_expression "sInput.bEof" identifier . field_identifier) = number_literal) ;) (expression_statement "sInput._68_4_ = 0;" (assignment_expression "sInput._68_4_ = 0" (field_expression "sInput._68_4_" identifier . field_identifier) = number_literal) ;) (expression_statement "sInput.xInput = xInput;" (assignment_expression "sInput.xInput = xInput" (field_expression "sInput.xInput" identifier . field_identifier) = identifier) ;) (expression_statement "sInput.pIn = pIn;" (assignment_expression "sInput.pIn = pIn" (field_expression "sInput.pIn" identifier . field_identifier) = identifier) ;) (expression_statement "iVar2 = sessionChangesetInvert(&sInput,xOutput,pOut,(int *)0x0,(void **)0x0);" (assignment_expression "iVar2 = sessionChangesetInvert(&sInput,xOutput,pOut,(int *)0x0,(void **)0x0)" identifier = (call_expression "sessionChangesetInvert(&sInput,xOutput,pOut,(int *)0x0,(void **)0x0)" identifier (argument_list "(&sInput,xOutput,pOut,(int *)0x0,(void **)0x0)" ( (pointer_expression "&sInput" & identifier) , identifier , identifier , (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (cast_expression "(void **)0x0" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) )))) ;) (expression_statement "sqlite3_free(sInput.buf.aBuf);" (call_expression "sqlite3_free(sInput.buf.aBuf)" identifier (argument_list "(sInput.buf.aBuf)" ( (field_expression "sInput.buf.aBuf" (field_expression "sInput.buf" identifier . field_identifier) . field_identifier) ))) ;) (if_statement "if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }" if (parenthesized_expression "(lVar1 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar1 == *(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    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined4 FUN_001e7200(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4)\n\n{\n  undefined4 uVar1;\n  long in_FS_OFFSET;\n  undefined1 local_58 [16];\n  undefined1 local_48 [16];\n  undefined1 local_38 [16];\n  undefined8 local_28;\n  undefined8 local_20;\n  undefined8 local_18;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  local_58 = (undefined1  [16])0x0;\n  local_48 = (undefined1  [16])0x0;\n  local_38 = (undefined1  [16])0x0;\n  local_18 = 0;\n  local_28 = param_1;\n  local_20 = param_2;\n  uVar1 = FUN_00161c60(local_58,param_3,param_4,0,0);\n  FUN_00119e00(local_38._0_8_);\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "undefined4 FUN_001e7200(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4)\n\n{\n  undefined4 uVar1;\n  long in_FS_OFFSET;\n  undefined1 local_58 [16];\n  undefined1 local_48 [16];\n  undefined1 local_38 [16];\n  undefined8 local_28;\n  undefined8 local_20;\n  undefined8 local_18;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  local_58 = (undefined1  [16])0x0;\n  local_48 = (undefined1  [16])0x0;\n  local_38 = (undefined1  [16])0x0;\n  local_18 = 0;\n  local_28 = param_1;\n  local_20 = param_2;\n  uVar1 = FUN_00161c60(local_58,param_3,param_4,0,0);\n  FUN_00119e00(local_38._0_8_);\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }\n                    \n  __stack_chk_fail();\n}" type_identifier (function_declarator "FUN_001e7200(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  long in_FS_OFFSET;\n  undefined1 local_58 [16];\n  undefined1 local_48 [16];\n  undefined1 local_38 [16];\n  undefined8 local_28;\n  undefined8 local_20;\n  undefined8 local_18;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  local_58 = (undefined1  [16])0x0;\n  local_48 = (undefined1  [16])0x0;\n  local_38 = (undefined1  [16])0x0;\n  local_18 = 0;\n  local_28 = param_1;\n  local_20 = param_2;\n  uVar1 = FUN_00161c60(local_58,param_3,param_4,0,0);\n  FUN_00119e00(local_38._0_8_);\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 local_58 [16];" type_identifier (array_declarator "local_58 [16]" identifier [ number_literal ]) ;) (declaration "undefined1 local_48 [16];" type_identifier (array_declarator "local_48 [16]" identifier [ number_literal ]) ;) (declaration "undefined1 local_38 [16];" type_identifier (array_declarator "local_38 [16]" identifier [ number_literal ]) ;) (declaration "undefined8 local_28;" type_identifier identifier ;) (declaration "undefined8 local_20;" type_identifier identifier ;) (declaration "undefined8 local_18;" 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 "local_58 = (undefined1  [16])0x0;" (assignment_expression "local_58 = (undefined1  [16])0x0" identifier = (cast_expression "(undefined1  [16])0x0" ( (type_descriptor "undefined1  [16]" type_identifier (abstract_array_declarator "[16]" [ number_literal ])) ) number_literal)) ;) (expression_statement "local_48 = (undefined1  [16])0x0;" (assignment_expression "local_48 = (undefined1  [16])0x0" identifier = (cast_expression "(undefined1  [16])0x0" ( (type_descriptor "undefined1  [16]" type_identifier (abstract_array_declarator "[16]" [ number_literal ])) ) number_literal)) ;) (expression_statement "local_38 = (undefined1  [16])0x0;" (assignment_expression "local_38 = (undefined1  [16])0x0" identifier = (cast_expression "(undefined1  [16])0x0" ( (type_descriptor "undefined1  [16]" type_identifier (abstract_array_declarator "[16]" [ number_literal ])) ) number_literal)) ;) (expression_statement "local_18 = 0;" (assignment_expression "local_18 = 0" identifier = number_literal) ;) (expression_statement "local_28 = param_1;" (assignment_expression "local_28 = param_1" identifier = identifier) ;) (expression_statement "local_20 = param_2;" (assignment_expression "local_20 = param_2" identifier = identifier) ;) (expression_statement "uVar1 = FUN_00161c60(local_58,param_3,param_4,0,0);" (assignment_expression "uVar1 = FUN_00161c60(local_58,param_3,param_4,0,0)" identifier = (call_expression "FUN_00161c60(local_58,param_3,param_4,0,0)" identifier (argument_list "(local_58,param_3,param_4,0,0)" ( identifier , identifier , identifier , number_literal , number_literal )))) ;) (expression_statement "FUN_00119e00(local_38._0_8_);" (call_expression "FUN_00119e00(local_38._0_8_)" identifier (argument_list "(local_38._0_8_)" ( (field_expression "local_38._0_8_" identifier . field_identifier) ))) ;) (if_statement "if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\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    return uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) })) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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 = (cast_expression ( (type_descriptor TYPE (abstract_array_declarator [ LIT ])) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_array_declarator [ LIT ])) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_array_declarator [ LIT ])) ) LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (field_expression IDENT . field_identifier) ))) ;) (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 { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined4 FUN_001e7200(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4)\n\n{\n  undefined4 uVar1;\n  long in_FS_OFFSET;\n  undefined1 local_58 [16];\n  undefined1 local_48 [16];\n  undefined1 local_38 [16];\n  undefined8 local_28;\n  undefined8 local_20;\n  undefined8 local_18;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  local_58 = (undefined1  [16])0x0;\n  local_48 = (undefined1  [16])0x0;\n  local_38 = (undefined1  [16])0x0;\n  local_18 = 0;\n  local_28 = param_1;\n  local_20 = param_2;\n  uVar1 = FUN_00161c60(local_58,param_3,param_4,0,0);\n  FUN_00119e00(local_38._0_8_);\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }\n                    \n  __stack_chk_fail();\n}" (type_identifier "undefined4") (function_declarator "FUN_001e7200(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4)" (identifier "FUN_001e7200") (parameter_list "(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) (, ",") (parameter_declaration "undefined8 param_4" (type_identifier "undefined8") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  long in_FS_OFFSET;\n  undefined1 local_58 [16];\n  undefined1 local_48 [16];\n  undefined1 local_38 [16];\n  undefined8 local_28;\n  undefined8 local_20;\n  undefined8 local_18;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  local_58 = (undefined1  [16])0x0;\n  local_48 = (undefined1  [16])0x0;\n  local_38 = (undefined1  [16])0x0;\n  local_18 = 0;\n  local_28 = param_1;\n  local_20 = param_2;\n  uVar1 = FUN_00161c60(local_58,param_3,param_4,0,0);\n  FUN_00119e00(local_38._0_8_);\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }\n                    \n  __stack_chk_fail();\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "undefined1 local_58 [16];" (type_identifier "undefined1") (array_declarator "local_58 [16]" (identifier "local_58") ([ "[") (number_literal "16") (] "]")) (; ";")) (declaration "undefined1 local_48 [16];" (type_identifier "undefined1") (array_declarator "local_48 [16]" (identifier "local_48") ([ "[") (number_literal "16") (] "]")) (; ";")) (declaration "undefined1 local_38 [16];" (type_identifier "undefined1") (array_declarator "local_38 [16]" (identifier "local_38") ([ "[") (number_literal "16") (] "]")) (; ";")) (declaration "undefined8 local_28;" (type_identifier "undefined8") (identifier "local_28") (; ";")) (declaration "undefined8 local_20;" (type_identifier "undefined8") (identifier "local_20") (; ";")) (declaration "undefined8 local_18;" (type_identifier "undefined8") (identifier "local_18") (; ";")) (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 "local_58 = (undefined1  [16])0x0;" (assignment_expression "local_58 = (undefined1  [16])0x0" (identifier "local_58") (= "=") (cast_expression "(undefined1  [16])0x0" (( "(") (type_descriptor "undefined1  [16]" (type_identifier "undefined1") (abstract_array_declarator "[16]" ([ "[") (number_literal "16") (] "]"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "local_48 = (undefined1  [16])0x0;" (assignment_expression "local_48 = (undefined1  [16])0x0" (identifier "local_48") (= "=") (cast_expression "(undefined1  [16])0x0" (( "(") (type_descriptor "undefined1  [16]" (type_identifier "undefined1") (abstract_array_declarator "[16]" ([ "[") (number_literal "16") (] "]"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "local_38 = (undefined1  [16])0x0;" (assignment_expression "local_38 = (undefined1  [16])0x0" (identifier "local_38") (= "=") (cast_expression "(undefined1  [16])0x0" (( "(") (type_descriptor "undefined1  [16]" (type_identifier "undefined1") (abstract_array_declarator "[16]" ([ "[") (number_literal "16") (] "]"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "local_18 = 0;" (assignment_expression "local_18 = 0" (identifier "local_18") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_28 = param_1;" (assignment_expression "local_28 = param_1" (identifier "local_28") (= "=") (identifier "param_1")) (; ";")) (expression_statement "local_20 = param_2;" (assignment_expression "local_20 = param_2" (identifier "local_20") (= "=") (identifier "param_2")) (; ";")) (expression_statement "uVar1 = FUN_00161c60(local_58,param_3,param_4,0,0);" (assignment_expression "uVar1 = FUN_00161c60(local_58,param_3,param_4,0,0)" (identifier "uVar1") (= "=") (call_expression "FUN_00161c60(local_58,param_3,param_4,0,0)" (identifier "FUN_00161c60") (argument_list "(local_58,param_3,param_4,0,0)" (( "(") (identifier "local_58") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "FUN_00119e00(local_38._0_8_);" (call_expression "FUN_00119e00(local_38._0_8_)" (identifier "FUN_00119e00") (argument_list "(local_38._0_8_)" (( "(") (field_expression "local_38._0_8_" (identifier "local_38") (. ".") (field_identifier "_0_8_")) () ")"))) (; ";")) (if_statement "if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\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    return uVar1;\n  }" ({ "{") (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

int function_1
              (type_1 *xInput,void *pIn,
              type_2 *xOutput,void *pOut)

{
  long var_4;
  int iVar2;
  long var_1;
  type_3 sInput;
  
  var_4 = *(long *)(var_1 + 0x28);
  sInput.bNoDiscard = 0;
  sInput.iCurrent = 0;
  sInput.iNext = 0;
  sInput._12_4_ = 0;
  sInput.aData = (type_4 *)0x0;
  sInput.nData = 0;
  sInput._28_4_ = 0;
  sInput.buf.aBuf = (type_4 *)0x0;
  sInput.buf.nBuf = 0;
  sInput.buf.nAlloc = 0;
  sInput.bEof = 0;
  sInput._68_4_ = 0;
  sInput.xInput = xInput;
  sInput.pIn = pIn;
  iVar2 = var_2(&sInput,xOutput,pOut,(int *)0x0,(void **)0x0);
  var_3(sInput.buf.aBuf);
  if (var_4 == *(long *)(var_1 + 0x28)) {
    return iVar2;
  }
                    /* 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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (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: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_array_declarator size: (number_literal))) value: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_array_declarator size: (number_literal))) value: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_array_declarator size: (number_literal))) value: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (number_literal) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (field_expression argument: (identifier) field: (field_identifier))))) (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 (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

undefined4 MASKED(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4)

{
  undefined4 uVar1;
  long in_FS_OFFSET;
  undefined1 local_58 [16];
  undefined1 local_48 [16];
  undefined1 local_38 [16];
  undefined8 local_28;
  undefined8 local_20;
  undefined8 local_18;
  long local_10;
  
  local_10 = *(long *)(in_FS_OFFSET + 0x28);
  local_58 = (undefined1  [16])0x0;
  local_48 = (undefined1  [16])0x0;
  local_38 = (undefined1  [16])0x0;
  local_18 = 0;
  local_28 = param_1;
  local_20 = param_2;
  uVar1 = FUN_00161c60(local_58,param_3,param_4,0,0);
  FUN_00119e00(local_38._0_8_);
  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {
    return uVar1;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

