
int CRYPTO_gcm128_aad_loop(void *args)

{
  undefined8 uVar1;
  undefined8 uVar2;
  int iVar3;
  
                    /* WARNING: Load size is inaccurate */
  uVar1 = *(undefined8 *)(*args + 0x10);
  uVar2 = *(undefined8 *)(*args + 0x2f8);
  iVar3 = run;
  if (run != 0) {
    iVar3 = 0;
    do {
      CRYPTO_gcm128_aad(uVar2,uVar1,(long)lengths[testnum]);
      iVar3 = iVar3 + 1;
      if (iVar3 == 0x7fffffff) {
        return 0x7fffffff;
      }
    } while (run != 0);
  }
  return iVar3;
}



int FUN_0016b4b6(long *param_1)

{
  undefined8 uVar1;
  undefined8 uVar2;
  int iVar3;
  
  uVar1 = *(undefined8 *)(*param_1 + 0x10);
  uVar2 = *(undefined8 *)(*param_1 + 0x2f8);
  iVar3 = DAT_001b92f4;
  if (DAT_001b92f4 != 0) {
    iVar3 = 0;
    do {
      CRYPTO_gcm128_aad(uVar2,uVar1,(long)*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4));
      iVar3 = iVar3 + 1;
      if (iVar3 == 0x7fffffff) {
        return 0x7fffffff;
      }
    } while (DAT_001b92f4 != 0);
  }
  return iVar3;
}


PUSH R12
PUSH RBP
PUSH RBX
MOV RAX,qword ptr [RDI]
MOV RBP,qword ptr [RAX + 0x10]
MOV R12,qword ptr [RAX + 0x2f8]
MOV EBX,dword ptr [0x001b92f4]
TEST EBX,EBX
JZ 0x0016b508
MOV EBX,0x0
MOV EDX,dword ptr [0x001b8a08]
MOV RAX,qword ptr [0x001b69d8]
MOVSXD RDX,dword ptr [RAX + RDX*0x4]
MOV RSI,RBP
MOV RDI,R12
CALL 0x0012fd90
ADD EBX,0x1
MOV EAX,dword ptr [0x001b92f4]
CMP EBX,0x7fffffff
JZ 0x0016b508
TEST EAX,EAX
JNZ 0x0016b4d7
MOV EAX,EBX
POP RBX
POP RBP
POP R12
RET
(translation_unit "int FUN_0016b4b6(long *param_1)\n\n{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  int iVar3;\n  \n  uVar1 = *(undefined8 *)(*param_1 + 0x10);\n  uVar2 = *(undefined8 *)(*param_1 + 0x2f8);\n  iVar3 = DAT_001b92f4;\n  if (DAT_001b92f4 != 0) {\n    iVar3 = 0;\n    do {\n      CRYPTO_gcm128_aad(uVar2,uVar1,(long)*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4));\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0x7fffffff) {\n        return 0x7fffffff;\n      }\n    } while (DAT_001b92f4 != 0);\n  }\n  return iVar3;\n}\n\n" (function_definition "int FUN_0016b4b6(long *param_1)\n\n{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  int iVar3;\n  \n  uVar1 = *(undefined8 *)(*param_1 + 0x10);\n  uVar2 = *(undefined8 *)(*param_1 + 0x2f8);\n  iVar3 = DAT_001b92f4;\n  if (DAT_001b92f4 != 0) {\n    iVar3 = 0;\n    do {\n      CRYPTO_gcm128_aad(uVar2,uVar1,(long)*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4));\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0x7fffffff) {\n        return 0x7fffffff;\n      }\n    } while (DAT_001b92f4 != 0);\n  }\n  return iVar3;\n}" primitive_type (function_declarator "FUN_0016b4b6(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  int iVar3;\n  \n  uVar1 = *(undefined8 *)(*param_1 + 0x10);\n  uVar2 = *(undefined8 *)(*param_1 + 0x2f8);\n  iVar3 = DAT_001b92f4;\n  if (DAT_001b92f4 != 0) {\n    iVar3 = 0;\n    do {\n      CRYPTO_gcm128_aad(uVar2,uVar1,(long)*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4));\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0x7fffffff) {\n        return 0x7fffffff;\n      }\n    } while (DAT_001b92f4 != 0);\n  }\n  return iVar3;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "uVar1 = *(undefined8 *)(*param_1 + 0x10);" (assignment_expression "uVar1 = *(undefined8 *)(*param_1 + 0x10)" identifier = (pointer_expression "*(undefined8 *)(*param_1 + 0x10)" * (cast_expression "(undefined8 *)(*param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x10)" ( (binary_expression "*param_1 + 0x10" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined8 *)(*param_1 + 0x2f8);" (assignment_expression "uVar2 = *(undefined8 *)(*param_1 + 0x2f8)" identifier = (pointer_expression "*(undefined8 *)(*param_1 + 0x2f8)" * (cast_expression "(undefined8 *)(*param_1 + 0x2f8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x2f8)" ( (binary_expression "*param_1 + 0x2f8" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (expression_statement "iVar3 = DAT_001b92f4;" (assignment_expression "iVar3 = DAT_001b92f4" identifier = identifier) ;) (if_statement "if (DAT_001b92f4 != 0) {\n    iVar3 = 0;\n    do {\n      CRYPTO_gcm128_aad(uVar2,uVar1,(long)*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4));\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0x7fffffff) {\n        return 0x7fffffff;\n      }\n    } while (DAT_001b92f4 != 0);\n  }" if (parenthesized_expression "(DAT_001b92f4 != 0)" ( (binary_expression "DAT_001b92f4 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = 0;\n    do {\n      CRYPTO_gcm128_aad(uVar2,uVar1,(long)*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4));\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0x7fffffff) {\n        return 0x7fffffff;\n      }\n    } while (DAT_001b92f4 != 0);\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      CRYPTO_gcm128_aad(uVar2,uVar1,(long)*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4));\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0x7fffffff) {\n        return 0x7fffffff;\n      }\n    } while (DAT_001b92f4 != 0);" do (compound_statement "{\n      CRYPTO_gcm128_aad(uVar2,uVar1,(long)*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4));\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0x7fffffff) {\n        return 0x7fffffff;\n      }\n    }" { (expression_statement "CRYPTO_gcm128_aad(uVar2,uVar1,(long)*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4));" (call_expression "CRYPTO_gcm128_aad(uVar2,uVar1,(long)*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4))" identifier (argument_list "(uVar2,uVar1,(long)*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4))" ( identifier , identifier , (cast_expression "(long)*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4)" * (cast_expression "(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4)" ( (binary_expression "PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4" identifier + (binary_expression "(ulong)DAT_001b8a08 * 4" (cast_expression "(ulong)DAT_001b8a08" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) ))))) ))) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (if_statement "if (iVar3 == 0x7fffffff) {\n        return 0x7fffffff;\n      }" if (parenthesized_expression "(iVar3 == 0x7fffffff)" ( (binary_expression "iVar3 == 0x7fffffff" identifier == number_literal) )) (compound_statement "{\n        return 0x7fffffff;\n      }" { (return_statement "return 0x7fffffff;" return number_literal ;) })) }) while (parenthesized_expression "(DAT_001b92f4 != 0)" ( (binary_expression "DAT_001b92f4 != 0" identifier != number_literal) )) ;) })) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "int CRYPTO_gcm128_aad_loop(void *args)\n\n{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  int iVar3;\n  \n                    /* WARNING: Load size is inaccurate */\n  uVar1 = *(undefined8 *)(*args + 0x10);\n  uVar2 = *(undefined8 *)(*args + 0x2f8);\n  iVar3 = run;\n  if (run != 0) {\n    iVar3 = 0;\n    do {\n      CRYPTO_gcm128_aad(uVar2,uVar1,(long)lengths[testnum]);\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0x7fffffff) {\n        return 0x7fffffff;\n      }\n    } while (run != 0);\n  }\n  return iVar3;\n}\n\n" (function_definition "int CRYPTO_gcm128_aad_loop(void *args)\n\n{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  int iVar3;\n  \n                    /* WARNING: Load size is inaccurate */\n  uVar1 = *(undefined8 *)(*args + 0x10);\n  uVar2 = *(undefined8 *)(*args + 0x2f8);\n  iVar3 = run;\n  if (run != 0) {\n    iVar3 = 0;\n    do {\n      CRYPTO_gcm128_aad(uVar2,uVar1,(long)lengths[testnum]);\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0x7fffffff) {\n        return 0x7fffffff;\n      }\n    } while (run != 0);\n  }\n  return iVar3;\n}" primitive_type (function_declarator "CRYPTO_gcm128_aad_loop(void *args)" identifier (parameter_list "(void *args)" ( (parameter_declaration "void *args" primitive_type (pointer_declarator "*args" * identifier)) ))) (compound_statement "{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  int iVar3;\n  \n                    /* WARNING: Load size is inaccurate */\n  uVar1 = *(undefined8 *)(*args + 0x10);\n  uVar2 = *(undefined8 *)(*args + 0x2f8);\n  iVar3 = run;\n  if (run != 0) {\n    iVar3 = 0;\n    do {\n      CRYPTO_gcm128_aad(uVar2,uVar1,(long)lengths[testnum]);\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0x7fffffff) {\n        return 0x7fffffff;\n      }\n    } while (run != 0);\n  }\n  return iVar3;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) comment (expression_statement "uVar1 = *(undefined8 *)(*args + 0x10);" (assignment_expression "uVar1 = *(undefined8 *)(*args + 0x10)" identifier = (pointer_expression "*(undefined8 *)(*args + 0x10)" * (cast_expression "(undefined8 *)(*args + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*args + 0x10)" ( (binary_expression "*args + 0x10" (pointer_expression "*args" * identifier) + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined8 *)(*args + 0x2f8);" (assignment_expression "uVar2 = *(undefined8 *)(*args + 0x2f8)" identifier = (pointer_expression "*(undefined8 *)(*args + 0x2f8)" * (cast_expression "(undefined8 *)(*args + 0x2f8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*args + 0x2f8)" ( (binary_expression "*args + 0x2f8" (pointer_expression "*args" * identifier) + number_literal) ))))) ;) (expression_statement "iVar3 = run;" (assignment_expression "iVar3 = run" identifier = identifier) ;) (if_statement "if (run != 0) {\n    iVar3 = 0;\n    do {\n      CRYPTO_gcm128_aad(uVar2,uVar1,(long)lengths[testnum]);\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0x7fffffff) {\n        return 0x7fffffff;\n      }\n    } while (run != 0);\n  }" if (parenthesized_expression "(run != 0)" ( (binary_expression "run != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = 0;\n    do {\n      CRYPTO_gcm128_aad(uVar2,uVar1,(long)lengths[testnum]);\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0x7fffffff) {\n        return 0x7fffffff;\n      }\n    } while (run != 0);\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      CRYPTO_gcm128_aad(uVar2,uVar1,(long)lengths[testnum]);\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0x7fffffff) {\n        return 0x7fffffff;\n      }\n    } while (run != 0);" do (compound_statement "{\n      CRYPTO_gcm128_aad(uVar2,uVar1,(long)lengths[testnum]);\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0x7fffffff) {\n        return 0x7fffffff;\n      }\n    }" { (expression_statement "CRYPTO_gcm128_aad(uVar2,uVar1,(long)lengths[testnum]);" (call_expression "CRYPTO_gcm128_aad(uVar2,uVar1,(long)lengths[testnum])" identifier (argument_list "(uVar2,uVar1,(long)lengths[testnum])" ( identifier , identifier , (cast_expression "(long)lengths[testnum]" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (subscript_expression "lengths[testnum]" identifier [ identifier ])) ))) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (if_statement "if (iVar3 == 0x7fffffff) {\n        return 0x7fffffff;\n      }" if (parenthesized_expression "(iVar3 == 0x7fffffff)" ( (binary_expression "iVar3 == 0x7fffffff" identifier == number_literal) )) (compound_statement "{\n        return 0x7fffffff;\n      }" { (return_statement "return 0x7fffffff;" return number_literal ;) })) }) while (parenthesized_expression "(run != 0)" ( (binary_expression "run != 0" identifier != number_literal) )) ;) })) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "int FUN_0016b4b6(long *param_1)\n\n{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  int iVar3;\n  \n  uVar1 = *(undefined8 *)(*param_1 + 0x10);\n  uVar2 = *(undefined8 *)(*param_1 + 0x2f8);\n  iVar3 = DAT_001b92f4;\n  if (DAT_001b92f4 != 0) {\n    iVar3 = 0;\n    do {\n      CRYPTO_gcm128_aad(uVar2,uVar1,(long)*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4));\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0x7fffffff) {\n        return 0x7fffffff;\n      }\n    } while (DAT_001b92f4 != 0);\n  }\n  return iVar3;\n}\n\n" (function_definition "int FUN_0016b4b6(long *param_1)\n\n{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  int iVar3;\n  \n  uVar1 = *(undefined8 *)(*param_1 + 0x10);\n  uVar2 = *(undefined8 *)(*param_1 + 0x2f8);\n  iVar3 = DAT_001b92f4;\n  if (DAT_001b92f4 != 0) {\n    iVar3 = 0;\n    do {\n      CRYPTO_gcm128_aad(uVar2,uVar1,(long)*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4));\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0x7fffffff) {\n        return 0x7fffffff;\n      }\n    } while (DAT_001b92f4 != 0);\n  }\n  return iVar3;\n}" primitive_type (function_declarator "FUN_0016b4b6(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  int iVar3;\n  \n  uVar1 = *(undefined8 *)(*param_1 + 0x10);\n  uVar2 = *(undefined8 *)(*param_1 + 0x2f8);\n  iVar3 = DAT_001b92f4;\n  if (DAT_001b92f4 != 0) {\n    iVar3 = 0;\n    do {\n      CRYPTO_gcm128_aad(uVar2,uVar1,(long)*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4));\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0x7fffffff) {\n        return 0x7fffffff;\n      }\n    } while (DAT_001b92f4 != 0);\n  }\n  return iVar3;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "uVar1 = *(undefined8 *)(*param_1 + 0x10);" (assignment_expression "uVar1 = *(undefined8 *)(*param_1 + 0x10)" identifier = (pointer_expression "*(undefined8 *)(*param_1 + 0x10)" * (cast_expression "(undefined8 *)(*param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x10)" ( (binary_expression "*param_1 + 0x10" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined8 *)(*param_1 + 0x2f8);" (assignment_expression "uVar2 = *(undefined8 *)(*param_1 + 0x2f8)" identifier = (pointer_expression "*(undefined8 *)(*param_1 + 0x2f8)" * (cast_expression "(undefined8 *)(*param_1 + 0x2f8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x2f8)" ( (binary_expression "*param_1 + 0x2f8" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (expression_statement "iVar3 = DAT_001b92f4;" (assignment_expression "iVar3 = DAT_001b92f4" identifier = identifier) ;) (if_statement "if (DAT_001b92f4 != 0) {\n    iVar3 = 0;\n    do {\n      CRYPTO_gcm128_aad(uVar2,uVar1,(long)*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4));\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0x7fffffff) {\n        return 0x7fffffff;\n      }\n    } while (DAT_001b92f4 != 0);\n  }" if (parenthesized_expression "(DAT_001b92f4 != 0)" ( (binary_expression "DAT_001b92f4 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = 0;\n    do {\n      CRYPTO_gcm128_aad(uVar2,uVar1,(long)*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4));\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0x7fffffff) {\n        return 0x7fffffff;\n      }\n    } while (DAT_001b92f4 != 0);\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      CRYPTO_gcm128_aad(uVar2,uVar1,(long)*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4));\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0x7fffffff) {\n        return 0x7fffffff;\n      }\n    } while (DAT_001b92f4 != 0);" do (compound_statement "{\n      CRYPTO_gcm128_aad(uVar2,uVar1,(long)*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4));\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0x7fffffff) {\n        return 0x7fffffff;\n      }\n    }" { (expression_statement "CRYPTO_gcm128_aad(uVar2,uVar1,(long)*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4));" (call_expression "CRYPTO_gcm128_aad(uVar2,uVar1,(long)*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4))" identifier (argument_list "(uVar2,uVar1,(long)*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4))" ( identifier , identifier , (cast_expression "(long)*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4)" * (cast_expression "(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4)" ( (binary_expression "PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4" identifier + (binary_expression "(ulong)DAT_001b8a08 * 4" (cast_expression "(ulong)DAT_001b8a08" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) ))))) ))) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (if_statement "if (iVar3 == 0x7fffffff) {\n        return 0x7fffffff;\n      }" if (parenthesized_expression "(iVar3 == 0x7fffffff)" ( (binary_expression "iVar3 == 0x7fffffff" identifier == number_literal) )) (compound_statement "{\n        return 0x7fffffff;\n      }" { (return_statement "return 0x7fffffff;" return number_literal ;) })) }) while (parenthesized_expression "(DAT_001b92f4 != 0)" ( (binary_expression "DAT_001b92f4 != 0" identifier != number_literal) )) ;) })) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) ))))) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_0016b4b6(long *param_1)\n\n{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  int iVar3;\n  \n  uVar1 = *(undefined8 *)(*param_1 + 0x10);\n  uVar2 = *(undefined8 *)(*param_1 + 0x2f8);\n  iVar3 = DAT_001b92f4;\n  if (DAT_001b92f4 != 0) {\n    iVar3 = 0;\n    do {\n      CRYPTO_gcm128_aad(uVar2,uVar1,(long)*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4));\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0x7fffffff) {\n        return 0x7fffffff;\n      }\n    } while (DAT_001b92f4 != 0);\n  }\n  return iVar3;\n}" (primitive_type "int") (function_declarator "FUN_0016b4b6(long *param_1)" (identifier "FUN_0016b4b6") (parameter_list "(long *param_1)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  int iVar3;\n  \n  uVar1 = *(undefined8 *)(*param_1 + 0x10);\n  uVar2 = *(undefined8 *)(*param_1 + 0x2f8);\n  iVar3 = DAT_001b92f4;\n  if (DAT_001b92f4 != 0) {\n    iVar3 = 0;\n    do {\n      CRYPTO_gcm128_aad(uVar2,uVar1,(long)*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4));\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0x7fffffff) {\n        return 0x7fffffff;\n      }\n    } while (DAT_001b92f4 != 0);\n  }\n  return iVar3;\n}" ({ "{") (declaration "undefined8 uVar1;" (type_identifier "undefined8") (identifier "uVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "uVar1 = *(undefined8 *)(*param_1 + 0x10);" (assignment_expression "uVar1 = *(undefined8 *)(*param_1 + 0x10)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined8 *)(*param_1 + 0x10)" (* "*") (cast_expression "(undefined8 *)(*param_1 + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x10)" (( "(") (binary_expression "*param_1 + 0x10" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "uVar2 = *(undefined8 *)(*param_1 + 0x2f8);" (assignment_expression "uVar2 = *(undefined8 *)(*param_1 + 0x2f8)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined8 *)(*param_1 + 0x2f8)" (* "*") (cast_expression "(undefined8 *)(*param_1 + 0x2f8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x2f8)" (( "(") (binary_expression "*param_1 + 0x2f8" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x2f8")) () ")"))))) (; ";")) (expression_statement "iVar3 = DAT_001b92f4;" (assignment_expression "iVar3 = DAT_001b92f4" (identifier "iVar3") (= "=") (identifier "DAT_001b92f4")) (; ";")) (if_statement "if (DAT_001b92f4 != 0) {\n    iVar3 = 0;\n    do {\n      CRYPTO_gcm128_aad(uVar2,uVar1,(long)*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4));\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0x7fffffff) {\n        return 0x7fffffff;\n      }\n    } while (DAT_001b92f4 != 0);\n  }" (if "if") (parenthesized_expression "(DAT_001b92f4 != 0)" (( "(") (binary_expression "DAT_001b92f4 != 0" (identifier "DAT_001b92f4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar3 = 0;\n    do {\n      CRYPTO_gcm128_aad(uVar2,uVar1,(long)*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4));\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0x7fffffff) {\n        return 0x7fffffff;\n      }\n    } while (DAT_001b92f4 != 0);\n  }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      CRYPTO_gcm128_aad(uVar2,uVar1,(long)*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4));\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0x7fffffff) {\n        return 0x7fffffff;\n      }\n    } while (DAT_001b92f4 != 0);" (do "do") (compound_statement "{\n      CRYPTO_gcm128_aad(uVar2,uVar1,(long)*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4));\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0x7fffffff) {\n        return 0x7fffffff;\n      }\n    }" ({ "{") (expression_statement "CRYPTO_gcm128_aad(uVar2,uVar1,(long)*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4));" (call_expression "CRYPTO_gcm128_aad(uVar2,uVar1,(long)*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4))" (identifier "CRYPTO_gcm128_aad") (argument_list "(uVar2,uVar1,(long)*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4))" (( "(") (identifier "uVar2") (, ",") (identifier "uVar1") (, ",") (cast_expression "(long)*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (pointer_expression "*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4)" (* "*") (cast_expression "(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4)" (( "(") (binary_expression "PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4" (identifier "PTR_DAT_001b69d8") (+ "+") (binary_expression "(ulong)DAT_001b8a08 * 4" (cast_expression "(ulong)DAT_001b8a08" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "DAT_001b8a08")) (* "*") (number_literal "4"))) () ")"))))) () ")"))) (; ";")) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar3 == 0x7fffffff) {\n        return 0x7fffffff;\n      }" (if "if") (parenthesized_expression "(iVar3 == 0x7fffffff)" (( "(") (binary_expression "iVar3 == 0x7fffffff" (identifier "iVar3") (== "==") (number_literal "0x7fffffff")) () ")")) (compound_statement "{\n        return 0x7fffffff;\n      }" ({ "{") (return_statement "return 0x7fffffff;" (return "return") (number_literal "0x7fffffff") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(DAT_001b92f4 != 0)" (( "(") (binary_expression "DAT_001b92f4 != 0" (identifier "DAT_001b92f4") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}")))

int function_1(void *args)

{
  type_1 uVar1;
  type_1 uVar2;
  int var_3;
  
                    /* WARNING: Load size is inaccurate */
  uVar1 = *(type_1 *)(*args + 0x10);
  uVar2 = *(type_1 *)(*args + 0x2f8);
  var_3 = var_1;
  if (var_1 != 0) {
    var_3 = 0;
    do {
      var_2(uVar2,uVar1,(long)lengths[testnum]);
      var_3 = var_3 + 1;
      if (var_3 == 0x7fffffff) {
        return 0x7fffffff;
      }
    } while (var_1 != 0);
  }
  return var_3;
}


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

int MASKED(long *param_1)

{
  undefined8 uVar1;
  undefined8 uVar2;
  int iVar3;
  
  uVar1 = *(undefined8 *)(*param_1 + 0x10);
  uVar2 = *(undefined8 *)(*param_1 + 0x2f8);
  iVar3 = DAT_001b92f4;
  if (DAT_001b92f4 != 0) {
    iVar3 = 0;
    do {
      CRYPTO_gcm128_aad(uVar2,uVar1,(long)*(int *)(PTR_DAT_001b69d8 + (ulong)DAT_001b8a08 * 4));
      iVar3 = iVar3 + 1;
      if (iVar3 == 0x7fffffff) {
        return 0x7fffffff;
      }
    } while (DAT_001b92f4 != 0);
  }
  return iVar3;
}

