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

int __regparm3 validate_timespec(timespec *timespec)

{
  uint uVar1;
  bool bVar2;
  int *piVar3;
  char cVar4;
  uint uVar5;
  
  uVar5 = timespec->tv_nsec;
  if ((uVar5 + 0xc0000002 < 2) || (uVar5 < 1000000000)) {
    uVar1 = timespec[1].tv_nsec;
    if ((uVar1 + 0xc0000002 < 2) || (uVar1 < 1000000000)) {
      bVar2 = uVar5 + 0xc0000002 < 2;
      if (bVar2) {
        timespec->tv_sec = 0;
      }
      cVar4 = bVar2 && uVar5 == 0x3ffffffe;
      uVar5 = (uint)bVar2;
      if (uVar1 + 0xc0000002 < 2) {
        timespec[1].tv_sec = 0;
        uVar5 = 1;
        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);
      }
      return (cVar4 == '\x01') + uVar5;
    }
  }
  piVar3 = __errno_location();
  *piVar3 = 0x16;
  return -1;
}



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

int __regparm3 FUN_00021f30(undefined4 *param_1)

{
  uint uVar1;
  bool bVar2;
  int *piVar3;
  char cVar4;
  uint uVar5;
  
  uVar5 = param_1[1];
  if ((uVar5 + 0xc0000002 < 2) || (uVar5 < 1000000000)) {
    uVar1 = param_1[3];
    if ((uVar1 + 0xc0000002 < 2) || (uVar1 < 1000000000)) {
      bVar2 = uVar5 + 0xc0000002 < 2;
      if (bVar2) {
        *param_1 = 0;
      }
      cVar4 = bVar2 && uVar5 == 0x3ffffffe;
      uVar5 = (uint)bVar2;
      if (uVar1 + 0xc0000002 < 2) {
        param_1[2] = 0;
        uVar5 = 1;
        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);
      }
      return (cVar4 == '\x01') + uVar5;
    }
  }
  piVar3 = __errno_location();
  *piVar3 = 0x16;
  return -1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000132d0
ADD EBX,0x170c7
SUB ESP,0xc
MOV EBP,dword ptr [EAX + 0x4]
LEA ESI,[EBP + 0xc0000002]
CMP ESI,0x1
JBE 0x00021f58
CMP EBP,0x3b9ac9ff
JA 0x00021fc0
MOV EDX,dword ptr [EAX + 0xc]
LEA EDI,[EDX + 0xc0000002]
CMP EDI,0x1
JBE 0x00021f6e
CMP EDX,0x3b9ac9ff
JA 0x00021fc0
XOR ECX,ECX
XOR EBX,EBX
CMP ESI,0x1
JA 0x00021f8d
MOV dword ptr [EAX],0x0
XOR ECX,ECX
CMP EBP,0x3ffffffe
MOV EBX,0x1
SETZ CL
CMP EDI,0x1
JA 0x00021fab
MOV dword ptr [EAX + 0x8],0x0
XOR EAX,EAX
CMP EDX,0x3ffffffe
MOV EBX,0x1
SETZ AL
ADD ECX,EAX
XOR EAX,EAX
CMP ECX,0x1
SETZ AL
ADD EAX,EBX
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x000125a0
MOV dword ptr [EAX],0x16
MOV EAX,0xffffffff
JMP 0x00021fb5
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_00021f30(undefined4 *param_1)\n\n{\n  uint uVar1;\n  bool bVar2;\n  int *piVar3;\n  char cVar4;\n  uint uVar5;\n  \n  uVar5 = param_1[1];\n  if ((uVar5 + 0xc0000002 < 2) || (uVar5 < 1000000000)) {\n    uVar1 = param_1[3];\n    if ((uVar1 + 0xc0000002 < 2) || (uVar1 < 1000000000)) {\n      bVar2 = uVar5 + 0xc0000002 < 2;\n      if (bVar2) {\n        *param_1 = 0;\n      }\n      cVar4 = bVar2 && uVar5 == 0x3ffffffe;\n      uVar5 = (uint)bVar2;\n      if (uVar1 + 0xc0000002 < 2) {\n        param_1[2] = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }\n      return (cVar4 == '\x01') + uVar5;\n    }\n  }\n  piVar3 = __errno_location();\n  *piVar3 = 0x16;\n  return -1;\n}\n\n" comment (function_definition "int __regparm3 FUN_00021f30(undefined4 *param_1)\n\n{\n  uint uVar1;\n  bool bVar2;\n  int *piVar3;\n  char cVar4;\n  uint uVar5;\n  \n  uVar5 = param_1[1];\n  if ((uVar5 + 0xc0000002 < 2) || (uVar5 < 1000000000)) {\n    uVar1 = param_1[3];\n    if ((uVar1 + 0xc0000002 < 2) || (uVar1 < 1000000000)) {\n      bVar2 = uVar5 + 0xc0000002 < 2;\n      if (bVar2) {\n        *param_1 = 0;\n      }\n      cVar4 = bVar2 && uVar5 == 0x3ffffffe;\n      uVar5 = (uint)bVar2;\n      if (uVar1 + 0xc0000002 < 2) {\n        param_1[2] = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }\n      return (cVar4 == '\x01') + uVar5;\n    }\n  }\n  piVar3 = __errno_location();\n  *piVar3 = 0x16;\n  return -1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00021f30(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  bool bVar2;\n  int *piVar3;\n  char cVar4;\n  uint uVar5;\n  \n  uVar5 = param_1[1];\n  if ((uVar5 + 0xc0000002 < 2) || (uVar5 < 1000000000)) {\n    uVar1 = param_1[3];\n    if ((uVar1 + 0xc0000002 < 2) || (uVar1 < 1000000000)) {\n      bVar2 = uVar5 + 0xc0000002 < 2;\n      if (bVar2) {\n        *param_1 = 0;\n      }\n      cVar4 = bVar2 && uVar5 == 0x3ffffffe;\n      uVar5 = (uint)bVar2;\n      if (uVar1 + 0xc0000002 < 2) {\n        param_1[2] = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }\n      return (cVar4 == '\x01') + uVar5;\n    }\n  }\n  piVar3 = __errno_location();\n  *piVar3 = 0x16;\n  return -1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (expression_statement "uVar5 = param_1[1];" (assignment_expression "uVar5 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if ((uVar5 + 0xc0000002 < 2) || (uVar5 < 1000000000)) {\n    uVar1 = param_1[3];\n    if ((uVar1 + 0xc0000002 < 2) || (uVar1 < 1000000000)) {\n      bVar2 = uVar5 + 0xc0000002 < 2;\n      if (bVar2) {\n        *param_1 = 0;\n      }\n      cVar4 = bVar2 && uVar5 == 0x3ffffffe;\n      uVar5 = (uint)bVar2;\n      if (uVar1 + 0xc0000002 < 2) {\n        param_1[2] = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }\n      return (cVar4 == '\x01') + uVar5;\n    }\n  }" if (parenthesized_expression "((uVar5 + 0xc0000002 < 2) || (uVar5 < 1000000000))" ( (binary_expression "(uVar5 + 0xc0000002 < 2) || (uVar5 < 1000000000)" (parenthesized_expression "(uVar5 + 0xc0000002 < 2)" ( (binary_expression "uVar5 + 0xc0000002 < 2" (binary_expression "uVar5 + 0xc0000002" identifier + number_literal) < number_literal) )) || (parenthesized_expression "(uVar5 < 1000000000)" ( (binary_expression "uVar5 < 1000000000" identifier < number_literal) ))) )) (compound_statement "{\n    uVar1 = param_1[3];\n    if ((uVar1 + 0xc0000002 < 2) || (uVar1 < 1000000000)) {\n      bVar2 = uVar5 + 0xc0000002 < 2;\n      if (bVar2) {\n        *param_1 = 0;\n      }\n      cVar4 = bVar2 && uVar5 == 0x3ffffffe;\n      uVar5 = (uint)bVar2;\n      if (uVar1 + 0xc0000002 < 2) {\n        param_1[2] = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }\n      return (cVar4 == '\x01') + uVar5;\n    }\n  }" { (expression_statement "uVar1 = param_1[3];" (assignment_expression "uVar1 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (if_statement "if ((uVar1 + 0xc0000002 < 2) || (uVar1 < 1000000000)) {\n      bVar2 = uVar5 + 0xc0000002 < 2;\n      if (bVar2) {\n        *param_1 = 0;\n      }\n      cVar4 = bVar2 && uVar5 == 0x3ffffffe;\n      uVar5 = (uint)bVar2;\n      if (uVar1 + 0xc0000002 < 2) {\n        param_1[2] = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }\n      return (cVar4 == '\x01') + uVar5;\n    }" if (parenthesized_expression "((uVar1 + 0xc0000002 < 2) || (uVar1 < 1000000000))" ( (binary_expression "(uVar1 + 0xc0000002 < 2) || (uVar1 < 1000000000)" (parenthesized_expression "(uVar1 + 0xc0000002 < 2)" ( (binary_expression "uVar1 + 0xc0000002 < 2" (binary_expression "uVar1 + 0xc0000002" identifier + number_literal) < number_literal) )) || (parenthesized_expression "(uVar1 < 1000000000)" ( (binary_expression "uVar1 < 1000000000" identifier < number_literal) ))) )) (compound_statement "{\n      bVar2 = uVar5 + 0xc0000002 < 2;\n      if (bVar2) {\n        *param_1 = 0;\n      }\n      cVar4 = bVar2 && uVar5 == 0x3ffffffe;\n      uVar5 = (uint)bVar2;\n      if (uVar1 + 0xc0000002 < 2) {\n        param_1[2] = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }\n      return (cVar4 == '\x01') + uVar5;\n    }" { (expression_statement "bVar2 = uVar5 + 0xc0000002 < 2;" (assignment_expression "bVar2 = uVar5 + 0xc0000002 < 2" identifier = (binary_expression "uVar5 + 0xc0000002 < 2" (binary_expression "uVar5 + 0xc0000002" identifier + number_literal) < number_literal)) ;) (if_statement "if (bVar2) {\n        *param_1 = 0;\n      }" if (parenthesized_expression "(bVar2)" ( identifier )) (compound_statement "{\n        *param_1 = 0;\n      }" { (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) })) (expression_statement "cVar4 = bVar2 && uVar5 == 0x3ffffffe;" (assignment_expression "cVar4 = bVar2 && uVar5 == 0x3ffffffe" identifier = (binary_expression "bVar2 && uVar5 == 0x3ffffffe" identifier && (binary_expression "uVar5 == 0x3ffffffe" identifier == number_literal))) ;) (expression_statement "uVar5 = (uint)bVar2;" (assignment_expression "uVar5 = (uint)bVar2" identifier = (cast_expression "(uint)bVar2" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if (uVar1 + 0xc0000002 < 2) {\n        param_1[2] = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }" if (parenthesized_expression "(uVar1 + 0xc0000002 < 2)" ( (binary_expression "uVar1 + 0xc0000002 < 2" (binary_expression "uVar1 + 0xc0000002" identifier + number_literal) < number_literal) )) (compound_statement "{\n        param_1[2] = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }" { (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" identifier = number_literal) ;) (expression_statement "cVar4 = cVar4 + (uVar1 == 0x3ffffffe);" (assignment_expression "cVar4 = cVar4 + (uVar1 == 0x3ffffffe)" identifier = (binary_expression "cVar4 + (uVar1 == 0x3ffffffe)" identifier + (parenthesized_expression "(uVar1 == 0x3ffffffe)" ( (binary_expression "uVar1 == 0x3ffffffe" identifier == number_literal) )))) ;) })) (return_statement "return (cVar4 == '\x01') + uVar5;" return (binary_expression "(cVar4 == '\x01') + uVar5" (parenthesized_expression "(cVar4 == '\x01')" ( (binary_expression "cVar4 == '\x01'" identifier == (char_literal "'\x01'" ' escape_sequence ')) )) + identifier) ;) })) })) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "*piVar3 = 0x16;" (assignment_expression "*piVar3 = 0x16" (pointer_expression "*piVar3" * identifier) = number_literal) ;) (return_statement "return -1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 validate_timespec(timespec *timespec)\n\n{\n  uint uVar1;\n  bool bVar2;\n  int *piVar3;\n  char cVar4;\n  uint uVar5;\n  \n  uVar5 = timespec->tv_nsec;\n  if ((uVar5 + 0xc0000002 < 2) || (uVar5 < 1000000000)) {\n    uVar1 = timespec[1].tv_nsec;\n    if ((uVar1 + 0xc0000002 < 2) || (uVar1 < 1000000000)) {\n      bVar2 = uVar5 + 0xc0000002 < 2;\n      if (bVar2) {\n        timespec->tv_sec = 0;\n      }\n      cVar4 = bVar2 && uVar5 == 0x3ffffffe;\n      uVar5 = (uint)bVar2;\n      if (uVar1 + 0xc0000002 < 2) {\n        timespec[1].tv_sec = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }\n      return (cVar4 == '\x01') + uVar5;\n    }\n  }\n  piVar3 = __errno_location();\n  *piVar3 = 0x16;\n  return -1;\n}\n\n" comment (function_definition "int __regparm3 validate_timespec(timespec *timespec)\n\n{\n  uint uVar1;\n  bool bVar2;\n  int *piVar3;\n  char cVar4;\n  uint uVar5;\n  \n  uVar5 = timespec->tv_nsec;\n  if ((uVar5 + 0xc0000002 < 2) || (uVar5 < 1000000000)) {\n    uVar1 = timespec[1].tv_nsec;\n    if ((uVar1 + 0xc0000002 < 2) || (uVar1 < 1000000000)) {\n      bVar2 = uVar5 + 0xc0000002 < 2;\n      if (bVar2) {\n        timespec->tv_sec = 0;\n      }\n      cVar4 = bVar2 && uVar5 == 0x3ffffffe;\n      uVar5 = (uint)bVar2;\n      if (uVar1 + 0xc0000002 < 2) {\n        timespec[1].tv_sec = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }\n      return (cVar4 == '\x01') + uVar5;\n    }\n  }\n  piVar3 = __errno_location();\n  *piVar3 = 0x16;\n  return -1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "validate_timespec(timespec *timespec)" identifier (parameter_list "(timespec *timespec)" ( (parameter_declaration "timespec *timespec" type_identifier (pointer_declarator "*timespec" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  bool bVar2;\n  int *piVar3;\n  char cVar4;\n  uint uVar5;\n  \n  uVar5 = timespec->tv_nsec;\n  if ((uVar5 + 0xc0000002 < 2) || (uVar5 < 1000000000)) {\n    uVar1 = timespec[1].tv_nsec;\n    if ((uVar1 + 0xc0000002 < 2) || (uVar1 < 1000000000)) {\n      bVar2 = uVar5 + 0xc0000002 < 2;\n      if (bVar2) {\n        timespec->tv_sec = 0;\n      }\n      cVar4 = bVar2 && uVar5 == 0x3ffffffe;\n      uVar5 = (uint)bVar2;\n      if (uVar1 + 0xc0000002 < 2) {\n        timespec[1].tv_sec = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }\n      return (cVar4 == '\x01') + uVar5;\n    }\n  }\n  piVar3 = __errno_location();\n  *piVar3 = 0x16;\n  return -1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (expression_statement "uVar5 = timespec->tv_nsec;" (assignment_expression "uVar5 = timespec->tv_nsec" identifier = (field_expression "timespec->tv_nsec" identifier -> field_identifier)) ;) (if_statement "if ((uVar5 + 0xc0000002 < 2) || (uVar5 < 1000000000)) {\n    uVar1 = timespec[1].tv_nsec;\n    if ((uVar1 + 0xc0000002 < 2) || (uVar1 < 1000000000)) {\n      bVar2 = uVar5 + 0xc0000002 < 2;\n      if (bVar2) {\n        timespec->tv_sec = 0;\n      }\n      cVar4 = bVar2 && uVar5 == 0x3ffffffe;\n      uVar5 = (uint)bVar2;\n      if (uVar1 + 0xc0000002 < 2) {\n        timespec[1].tv_sec = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }\n      return (cVar4 == '\x01') + uVar5;\n    }\n  }" if (parenthesized_expression "((uVar5 + 0xc0000002 < 2) || (uVar5 < 1000000000))" ( (binary_expression "(uVar5 + 0xc0000002 < 2) || (uVar5 < 1000000000)" (parenthesized_expression "(uVar5 + 0xc0000002 < 2)" ( (binary_expression "uVar5 + 0xc0000002 < 2" (binary_expression "uVar5 + 0xc0000002" identifier + number_literal) < number_literal) )) || (parenthesized_expression "(uVar5 < 1000000000)" ( (binary_expression "uVar5 < 1000000000" identifier < number_literal) ))) )) (compound_statement "{\n    uVar1 = timespec[1].tv_nsec;\n    if ((uVar1 + 0xc0000002 < 2) || (uVar1 < 1000000000)) {\n      bVar2 = uVar5 + 0xc0000002 < 2;\n      if (bVar2) {\n        timespec->tv_sec = 0;\n      }\n      cVar4 = bVar2 && uVar5 == 0x3ffffffe;\n      uVar5 = (uint)bVar2;\n      if (uVar1 + 0xc0000002 < 2) {\n        timespec[1].tv_sec = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }\n      return (cVar4 == '\x01') + uVar5;\n    }\n  }" { (expression_statement "uVar1 = timespec[1].tv_nsec;" (assignment_expression "uVar1 = timespec[1].tv_nsec" identifier = (field_expression "timespec[1].tv_nsec" (subscript_expression "timespec[1]" identifier [ number_literal ]) . field_identifier)) ;) (if_statement "if ((uVar1 + 0xc0000002 < 2) || (uVar1 < 1000000000)) {\n      bVar2 = uVar5 + 0xc0000002 < 2;\n      if (bVar2) {\n        timespec->tv_sec = 0;\n      }\n      cVar4 = bVar2 && uVar5 == 0x3ffffffe;\n      uVar5 = (uint)bVar2;\n      if (uVar1 + 0xc0000002 < 2) {\n        timespec[1].tv_sec = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }\n      return (cVar4 == '\x01') + uVar5;\n    }" if (parenthesized_expression "((uVar1 + 0xc0000002 < 2) || (uVar1 < 1000000000))" ( (binary_expression "(uVar1 + 0xc0000002 < 2) || (uVar1 < 1000000000)" (parenthesized_expression "(uVar1 + 0xc0000002 < 2)" ( (binary_expression "uVar1 + 0xc0000002 < 2" (binary_expression "uVar1 + 0xc0000002" identifier + number_literal) < number_literal) )) || (parenthesized_expression "(uVar1 < 1000000000)" ( (binary_expression "uVar1 < 1000000000" identifier < number_literal) ))) )) (compound_statement "{\n      bVar2 = uVar5 + 0xc0000002 < 2;\n      if (bVar2) {\n        timespec->tv_sec = 0;\n      }\n      cVar4 = bVar2 && uVar5 == 0x3ffffffe;\n      uVar5 = (uint)bVar2;\n      if (uVar1 + 0xc0000002 < 2) {\n        timespec[1].tv_sec = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }\n      return (cVar4 == '\x01') + uVar5;\n    }" { (expression_statement "bVar2 = uVar5 + 0xc0000002 < 2;" (assignment_expression "bVar2 = uVar5 + 0xc0000002 < 2" identifier = (binary_expression "uVar5 + 0xc0000002 < 2" (binary_expression "uVar5 + 0xc0000002" identifier + number_literal) < number_literal)) ;) (if_statement "if (bVar2) {\n        timespec->tv_sec = 0;\n      }" if (parenthesized_expression "(bVar2)" ( identifier )) (compound_statement "{\n        timespec->tv_sec = 0;\n      }" { (expression_statement "timespec->tv_sec = 0;" (assignment_expression "timespec->tv_sec = 0" (field_expression "timespec->tv_sec" identifier -> field_identifier) = number_literal) ;) })) (expression_statement "cVar4 = bVar2 && uVar5 == 0x3ffffffe;" (assignment_expression "cVar4 = bVar2 && uVar5 == 0x3ffffffe" identifier = (binary_expression "bVar2 && uVar5 == 0x3ffffffe" identifier && (binary_expression "uVar5 == 0x3ffffffe" identifier == number_literal))) ;) (expression_statement "uVar5 = (uint)bVar2;" (assignment_expression "uVar5 = (uint)bVar2" identifier = (cast_expression "(uint)bVar2" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if (uVar1 + 0xc0000002 < 2) {\n        timespec[1].tv_sec = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }" if (parenthesized_expression "(uVar1 + 0xc0000002 < 2)" ( (binary_expression "uVar1 + 0xc0000002 < 2" (binary_expression "uVar1 + 0xc0000002" identifier + number_literal) < number_literal) )) (compound_statement "{\n        timespec[1].tv_sec = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }" { (expression_statement "timespec[1].tv_sec = 0;" (assignment_expression "timespec[1].tv_sec = 0" (field_expression "timespec[1].tv_sec" (subscript_expression "timespec[1]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" identifier = number_literal) ;) (expression_statement "cVar4 = cVar4 + (uVar1 == 0x3ffffffe);" (assignment_expression "cVar4 = cVar4 + (uVar1 == 0x3ffffffe)" identifier = (binary_expression "cVar4 + (uVar1 == 0x3ffffffe)" identifier + (parenthesized_expression "(uVar1 == 0x3ffffffe)" ( (binary_expression "uVar1 == 0x3ffffffe" identifier == number_literal) )))) ;) })) (return_statement "return (cVar4 == '\x01') + uVar5;" return (binary_expression "(cVar4 == '\x01') + uVar5" (parenthesized_expression "(cVar4 == '\x01')" ( (binary_expression "cVar4 == '\x01'" identifier == (char_literal "'\x01'" ' escape_sequence ')) )) + identifier) ;) })) })) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "*piVar3 = 0x16;" (assignment_expression "*piVar3 = 0x16" (pointer_expression "*piVar3" * identifier) = number_literal) ;) (return_statement "return -1;" return number_literal ;) })))
(translation_unit "int __regparm3 FUN_00021f30(undefined4 *param_1)\n\n{\n  uint uVar1;\n  bool bVar2;\n  int *piVar3;\n  char cVar4;\n  uint uVar5;\n  \n  uVar5 = param_1[1];\n  if ((uVar5 + 0xc0000002 < 2) || (uVar5 < 1000000000)) {\n    uVar1 = param_1[3];\n    if ((uVar1 + 0xc0000002 < 2) || (uVar1 < 1000000000)) {\n      bVar2 = uVar5 + 0xc0000002 < 2;\n      if (bVar2) {\n        *param_1 = 0;\n      }\n      cVar4 = bVar2 && uVar5 == 0x3ffffffe;\n      uVar5 = (uint)bVar2;\n      if (uVar1 + 0xc0000002 < 2) {\n        param_1[2] = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }\n      return (cVar4 == '\x01') + uVar5;\n    }\n  }\n  piVar3 = __errno_location();\n  *piVar3 = 0x16;\n  return -1;\n}\n\n" (function_definition "int __regparm3 FUN_00021f30(undefined4 *param_1)\n\n{\n  uint uVar1;\n  bool bVar2;\n  int *piVar3;\n  char cVar4;\n  uint uVar5;\n  \n  uVar5 = param_1[1];\n  if ((uVar5 + 0xc0000002 < 2) || (uVar5 < 1000000000)) {\n    uVar1 = param_1[3];\n    if ((uVar1 + 0xc0000002 < 2) || (uVar1 < 1000000000)) {\n      bVar2 = uVar5 + 0xc0000002 < 2;\n      if (bVar2) {\n        *param_1 = 0;\n      }\n      cVar4 = bVar2 && uVar5 == 0x3ffffffe;\n      uVar5 = (uint)bVar2;\n      if (uVar1 + 0xc0000002 < 2) {\n        param_1[2] = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }\n      return (cVar4 == '\x01') + uVar5;\n    }\n  }\n  piVar3 = __errno_location();\n  *piVar3 = 0x16;\n  return -1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00021f30(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  bool bVar2;\n  int *piVar3;\n  char cVar4;\n  uint uVar5;\n  \n  uVar5 = param_1[1];\n  if ((uVar5 + 0xc0000002 < 2) || (uVar5 < 1000000000)) {\n    uVar1 = param_1[3];\n    if ((uVar1 + 0xc0000002 < 2) || (uVar1 < 1000000000)) {\n      bVar2 = uVar5 + 0xc0000002 < 2;\n      if (bVar2) {\n        *param_1 = 0;\n      }\n      cVar4 = bVar2 && uVar5 == 0x3ffffffe;\n      uVar5 = (uint)bVar2;\n      if (uVar1 + 0xc0000002 < 2) {\n        param_1[2] = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }\n      return (cVar4 == '\x01') + uVar5;\n    }\n  }\n  piVar3 = __errno_location();\n  *piVar3 = 0x16;\n  return -1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (expression_statement "uVar5 = param_1[1];" (assignment_expression "uVar5 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if ((uVar5 + 0xc0000002 < 2) || (uVar5 < 1000000000)) {\n    uVar1 = param_1[3];\n    if ((uVar1 + 0xc0000002 < 2) || (uVar1 < 1000000000)) {\n      bVar2 = uVar5 + 0xc0000002 < 2;\n      if (bVar2) {\n        *param_1 = 0;\n      }\n      cVar4 = bVar2 && uVar5 == 0x3ffffffe;\n      uVar5 = (uint)bVar2;\n      if (uVar1 + 0xc0000002 < 2) {\n        param_1[2] = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }\n      return (cVar4 == '\x01') + uVar5;\n    }\n  }" if (parenthesized_expression "((uVar5 + 0xc0000002 < 2) || (uVar5 < 1000000000))" ( (binary_expression "(uVar5 + 0xc0000002 < 2) || (uVar5 < 1000000000)" (parenthesized_expression "(uVar5 + 0xc0000002 < 2)" ( (binary_expression "uVar5 + 0xc0000002 < 2" (binary_expression "uVar5 + 0xc0000002" identifier + number_literal) < number_literal) )) || (parenthesized_expression "(uVar5 < 1000000000)" ( (binary_expression "uVar5 < 1000000000" identifier < number_literal) ))) )) (compound_statement "{\n    uVar1 = param_1[3];\n    if ((uVar1 + 0xc0000002 < 2) || (uVar1 < 1000000000)) {\n      bVar2 = uVar5 + 0xc0000002 < 2;\n      if (bVar2) {\n        *param_1 = 0;\n      }\n      cVar4 = bVar2 && uVar5 == 0x3ffffffe;\n      uVar5 = (uint)bVar2;\n      if (uVar1 + 0xc0000002 < 2) {\n        param_1[2] = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }\n      return (cVar4 == '\x01') + uVar5;\n    }\n  }" { (expression_statement "uVar1 = param_1[3];" (assignment_expression "uVar1 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (if_statement "if ((uVar1 + 0xc0000002 < 2) || (uVar1 < 1000000000)) {\n      bVar2 = uVar5 + 0xc0000002 < 2;\n      if (bVar2) {\n        *param_1 = 0;\n      }\n      cVar4 = bVar2 && uVar5 == 0x3ffffffe;\n      uVar5 = (uint)bVar2;\n      if (uVar1 + 0xc0000002 < 2) {\n        param_1[2] = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }\n      return (cVar4 == '\x01') + uVar5;\n    }" if (parenthesized_expression "((uVar1 + 0xc0000002 < 2) || (uVar1 < 1000000000))" ( (binary_expression "(uVar1 + 0xc0000002 < 2) || (uVar1 < 1000000000)" (parenthesized_expression "(uVar1 + 0xc0000002 < 2)" ( (binary_expression "uVar1 + 0xc0000002 < 2" (binary_expression "uVar1 + 0xc0000002" identifier + number_literal) < number_literal) )) || (parenthesized_expression "(uVar1 < 1000000000)" ( (binary_expression "uVar1 < 1000000000" identifier < number_literal) ))) )) (compound_statement "{\n      bVar2 = uVar5 + 0xc0000002 < 2;\n      if (bVar2) {\n        *param_1 = 0;\n      }\n      cVar4 = bVar2 && uVar5 == 0x3ffffffe;\n      uVar5 = (uint)bVar2;\n      if (uVar1 + 0xc0000002 < 2) {\n        param_1[2] = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }\n      return (cVar4 == '\x01') + uVar5;\n    }" { (expression_statement "bVar2 = uVar5 + 0xc0000002 < 2;" (assignment_expression "bVar2 = uVar5 + 0xc0000002 < 2" identifier = (binary_expression "uVar5 + 0xc0000002 < 2" (binary_expression "uVar5 + 0xc0000002" identifier + number_literal) < number_literal)) ;) (if_statement "if (bVar2) {\n        *param_1 = 0;\n      }" if (parenthesized_expression "(bVar2)" ( identifier )) (compound_statement "{\n        *param_1 = 0;\n      }" { (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) })) (expression_statement "cVar4 = bVar2 && uVar5 == 0x3ffffffe;" (assignment_expression "cVar4 = bVar2 && uVar5 == 0x3ffffffe" identifier = (binary_expression "bVar2 && uVar5 == 0x3ffffffe" identifier && (binary_expression "uVar5 == 0x3ffffffe" identifier == number_literal))) ;) (expression_statement "uVar5 = (uint)bVar2;" (assignment_expression "uVar5 = (uint)bVar2" identifier = (cast_expression "(uint)bVar2" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if (uVar1 + 0xc0000002 < 2) {\n        param_1[2] = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }" if (parenthesized_expression "(uVar1 + 0xc0000002 < 2)" ( (binary_expression "uVar1 + 0xc0000002 < 2" (binary_expression "uVar1 + 0xc0000002" identifier + number_literal) < number_literal) )) (compound_statement "{\n        param_1[2] = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }" { (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" identifier = number_literal) ;) (expression_statement "cVar4 = cVar4 + (uVar1 == 0x3ffffffe);" (assignment_expression "cVar4 = cVar4 + (uVar1 == 0x3ffffffe)" identifier = (binary_expression "cVar4 + (uVar1 == 0x3ffffffe)" identifier + (parenthesized_expression "(uVar1 == 0x3ffffffe)" ( (binary_expression "uVar1 == 0x3ffffffe" identifier == number_literal) )))) ;) })) (return_statement "return (cVar4 == '\x01') + uVar5;" return (binary_expression "(cVar4 == '\x01') + uVar5" (parenthesized_expression "(cVar4 == '\x01')" ( (binary_expression "cVar4 == '\x01'" identifier == (char_literal "'\x01'" ' escape_sequence ')) )) + identifier) ;) })) })) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "*piVar3 = 0x16;" (assignment_expression "*piVar3 = 0x16" (pointer_expression "*piVar3" * identifier) = number_literal) ;) (return_statement "return -1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) < LIT) )) || (parenthesized_expression ( (binary_expression IDENT < LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) < LIT) )) || (parenthesized_expression ( (binary_expression IDENT < LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) < LIT)) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT && (binary_expression IDENT == LIT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression IDENT == LIT) )))) ;) })) (return_statement return (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) + IDENT) ;) })) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })))
(function_definition "int __regparm3 FUN_00021f30(undefined4 *param_1)\n\n{\n  uint uVar1;\n  bool bVar2;\n  int *piVar3;\n  char cVar4;\n  uint uVar5;\n  \n  uVar5 = param_1[1];\n  if ((uVar5 + 0xc0000002 < 2) || (uVar5 < 1000000000)) {\n    uVar1 = param_1[3];\n    if ((uVar1 + 0xc0000002 < 2) || (uVar1 < 1000000000)) {\n      bVar2 = uVar5 + 0xc0000002 < 2;\n      if (bVar2) {\n        *param_1 = 0;\n      }\n      cVar4 = bVar2 && uVar5 == 0x3ffffffe;\n      uVar5 = (uint)bVar2;\n      if (uVar1 + 0xc0000002 < 2) {\n        param_1[2] = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }\n      return (cVar4 == '\x01') + uVar5;\n    }\n  }\n  piVar3 = __errno_location();\n  *piVar3 = 0x16;\n  return -1;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00021f30(undefined4 *param_1)" (identifier "FUN_00021f30") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  bool bVar2;\n  int *piVar3;\n  char cVar4;\n  uint uVar5;\n  \n  uVar5 = param_1[1];\n  if ((uVar5 + 0xc0000002 < 2) || (uVar5 < 1000000000)) {\n    uVar1 = param_1[3];\n    if ((uVar1 + 0xc0000002 < 2) || (uVar1 < 1000000000)) {\n      bVar2 = uVar5 + 0xc0000002 < 2;\n      if (bVar2) {\n        *param_1 = 0;\n      }\n      cVar4 = bVar2 && uVar5 == 0x3ffffffe;\n      uVar5 = (uint)bVar2;\n      if (uVar1 + 0xc0000002 < 2) {\n        param_1[2] = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }\n      return (cVar4 == '\x01') + uVar5;\n    }\n  }\n  piVar3 = __errno_location();\n  *piVar3 = 0x16;\n  return -1;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "bool bVar2;" (primitive_type "bool") (identifier "bVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "char cVar4;" (primitive_type "char") (identifier "cVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (expression_statement "uVar5 = param_1[1];" (assignment_expression "uVar5 = param_1[1]" (identifier "uVar5") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if ((uVar5 + 0xc0000002 < 2) || (uVar5 < 1000000000)) {\n    uVar1 = param_1[3];\n    if ((uVar1 + 0xc0000002 < 2) || (uVar1 < 1000000000)) {\n      bVar2 = uVar5 + 0xc0000002 < 2;\n      if (bVar2) {\n        *param_1 = 0;\n      }\n      cVar4 = bVar2 && uVar5 == 0x3ffffffe;\n      uVar5 = (uint)bVar2;\n      if (uVar1 + 0xc0000002 < 2) {\n        param_1[2] = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }\n      return (cVar4 == '\x01') + uVar5;\n    }\n  }" (if "if") (parenthesized_expression "((uVar5 + 0xc0000002 < 2) || (uVar5 < 1000000000))" (( "(") (binary_expression "(uVar5 + 0xc0000002 < 2) || (uVar5 < 1000000000)" (parenthesized_expression "(uVar5 + 0xc0000002 < 2)" (( "(") (binary_expression "uVar5 + 0xc0000002 < 2" (binary_expression "uVar5 + 0xc0000002" (identifier "uVar5") (+ "+") (number_literal "0xc0000002")) (< "<") (number_literal "2")) () ")")) (|| "||") (parenthesized_expression "(uVar5 < 1000000000)" (( "(") (binary_expression "uVar5 < 1000000000" (identifier "uVar5") (< "<") (number_literal "1000000000")) () ")"))) () ")")) (compound_statement "{\n    uVar1 = param_1[3];\n    if ((uVar1 + 0xc0000002 < 2) || (uVar1 < 1000000000)) {\n      bVar2 = uVar5 + 0xc0000002 < 2;\n      if (bVar2) {\n        *param_1 = 0;\n      }\n      cVar4 = bVar2 && uVar5 == 0x3ffffffe;\n      uVar5 = (uint)bVar2;\n      if (uVar1 + 0xc0000002 < 2) {\n        param_1[2] = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }\n      return (cVar4 == '\x01') + uVar5;\n    }\n  }" ({ "{") (expression_statement "uVar1 = param_1[3];" (assignment_expression "uVar1 = param_1[3]" (identifier "uVar1") (= "=") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (if_statement "if ((uVar1 + 0xc0000002 < 2) || (uVar1 < 1000000000)) {\n      bVar2 = uVar5 + 0xc0000002 < 2;\n      if (bVar2) {\n        *param_1 = 0;\n      }\n      cVar4 = bVar2 && uVar5 == 0x3ffffffe;\n      uVar5 = (uint)bVar2;\n      if (uVar1 + 0xc0000002 < 2) {\n        param_1[2] = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }\n      return (cVar4 == '\x01') + uVar5;\n    }" (if "if") (parenthesized_expression "((uVar1 + 0xc0000002 < 2) || (uVar1 < 1000000000))" (( "(") (binary_expression "(uVar1 + 0xc0000002 < 2) || (uVar1 < 1000000000)" (parenthesized_expression "(uVar1 + 0xc0000002 < 2)" (( "(") (binary_expression "uVar1 + 0xc0000002 < 2" (binary_expression "uVar1 + 0xc0000002" (identifier "uVar1") (+ "+") (number_literal "0xc0000002")) (< "<") (number_literal "2")) () ")")) (|| "||") (parenthesized_expression "(uVar1 < 1000000000)" (( "(") (binary_expression "uVar1 < 1000000000" (identifier "uVar1") (< "<") (number_literal "1000000000")) () ")"))) () ")")) (compound_statement "{\n      bVar2 = uVar5 + 0xc0000002 < 2;\n      if (bVar2) {\n        *param_1 = 0;\n      }\n      cVar4 = bVar2 && uVar5 == 0x3ffffffe;\n      uVar5 = (uint)bVar2;\n      if (uVar1 + 0xc0000002 < 2) {\n        param_1[2] = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }\n      return (cVar4 == '\x01') + uVar5;\n    }" ({ "{") (expression_statement "bVar2 = uVar5 + 0xc0000002 < 2;" (assignment_expression "bVar2 = uVar5 + 0xc0000002 < 2" (identifier "bVar2") (= "=") (binary_expression "uVar5 + 0xc0000002 < 2" (binary_expression "uVar5 + 0xc0000002" (identifier "uVar5") (+ "+") (number_literal "0xc0000002")) (< "<") (number_literal "2"))) (; ";")) (if_statement "if (bVar2) {\n        *param_1 = 0;\n      }" (if "if") (parenthesized_expression "(bVar2)" (( "(") (identifier "bVar2") () ")")) (compound_statement "{\n        *param_1 = 0;\n      }" ({ "{") (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "cVar4 = bVar2 && uVar5 == 0x3ffffffe;" (assignment_expression "cVar4 = bVar2 && uVar5 == 0x3ffffffe" (identifier "cVar4") (= "=") (binary_expression "bVar2 && uVar5 == 0x3ffffffe" (identifier "bVar2") (&& "&&") (binary_expression "uVar5 == 0x3ffffffe" (identifier "uVar5") (== "==") (number_literal "0x3ffffffe")))) (; ";")) (expression_statement "uVar5 = (uint)bVar2;" (assignment_expression "uVar5 = (uint)bVar2" (identifier "uVar5") (= "=") (cast_expression "(uint)bVar2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar2"))) (; ";")) (if_statement "if (uVar1 + 0xc0000002 < 2) {\n        param_1[2] = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }" (if "if") (parenthesized_expression "(uVar1 + 0xc0000002 < 2)" (( "(") (binary_expression "uVar1 + 0xc0000002 < 2" (binary_expression "uVar1 + 0xc0000002" (identifier "uVar1") (+ "+") (number_literal "0xc0000002")) (< "<") (number_literal "2")) () ")")) (compound_statement "{\n        param_1[2] = 0;\n        uVar5 = 1;\n        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);\n      }" ({ "{") (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" (identifier "uVar5") (= "=") (number_literal "1")) (; ";")) (expression_statement "cVar4 = cVar4 + (uVar1 == 0x3ffffffe);" (assignment_expression "cVar4 = cVar4 + (uVar1 == 0x3ffffffe)" (identifier "cVar4") (= "=") (binary_expression "cVar4 + (uVar1 == 0x3ffffffe)" (identifier "cVar4") (+ "+") (parenthesized_expression "(uVar1 == 0x3ffffffe)" (( "(") (binary_expression "uVar1 == 0x3ffffffe" (identifier "uVar1") (== "==") (number_literal "0x3ffffffe")) () ")")))) (; ";")) (} "}"))) (return_statement "return (cVar4 == '\x01') + uVar5;" (return "return") (binary_expression "(cVar4 == '\x01') + uVar5" (parenthesized_expression "(cVar4 == '\x01')" (( "(") (binary_expression "cVar4 == '\x01'" (identifier "cVar4") (== "==") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) () ")")) (+ "+") (identifier "uVar5")) (; ";")) (} "}"))) (} "}"))) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" (identifier "piVar3") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*piVar3 = 0x16;" (assignment_expression "*piVar3 = 0x16" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (number_literal "0x16")) (; ";")) (return_statement "return -1;" (return "return") (number_literal "-1") (; ";")) (} "}")))

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

int __regparm3 function_1(type_1 *type_1)

{
  type_2 var_2;
  bool var_3;
  int *piVar3;
  char var_4;
  type_2 var_1;
  
  var_1 = type_1->tv_nsec;
  if ((var_1 + 0xc0000002 < 2) || (var_1 < 1000000000)) {
    var_2 = type_1[1].tv_nsec;
    if ((var_2 + 0xc0000002 < 2) || (var_2 < 1000000000)) {
      var_3 = var_1 + 0xc0000002 < 2;
      if (var_3) {
        type_1->tv_sec = 0;
      }
      var_4 = var_3 && var_1 == 0x3ffffffe;
      var_1 = (type_2)var_3;
      if (var_2 + 0xc0000002 < 2) {
        type_1[1].tv_sec = 0;
        var_1 = 1;
        var_4 = var_4 + (var_2 == 0x3ffffffe);
      }
      return (var_4 == '\x01') + var_1;
    }
  }
  piVar3 = var_5();
  *piVar3 = 0x16;
  return -1;
}


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

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

int __regparm3 MASKED(undefined4 *param_1)

{
  uint uVar1;
  bool bVar2;
  int *piVar3;
  char cVar4;
  uint uVar5;
  
  uVar5 = param_1[1];
  if ((uVar5 + 0xc0000002 < 2) || (uVar5 < 1000000000)) {
    uVar1 = param_1[3];
    if ((uVar1 + 0xc0000002 < 2) || (uVar1 < 1000000000)) {
      bVar2 = uVar5 + 0xc0000002 < 2;
      if (bVar2) {
        *param_1 = 0;
      }
      cVar4 = bVar2 && uVar5 == 0x3ffffffe;
      uVar5 = (uint)bVar2;
      if (uVar1 + 0xc0000002 < 2) {
        param_1[2] = 0;
        uVar5 = 1;
        cVar4 = cVar4 + (uVar1 == 0x3ffffffe);
      }
      return (cVar4 == '\x01') + uVar5;
    }
  }
  piVar3 = __errno_location();
  *piVar3 = 0x16;
  return -1;
}

