
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

int blake2b_init_param(blake2b_state *S,blake2b_param *P)

{
  uint *puVar1;
  uint64_t *puVar2;
  uint64_t *puVar3;
  int iVar4;
  uint uVar5;
  blake2b_state *pbVar6;
  undefined4 uVar7;
  undefined4 *puVar8;
  undefined4 uVar9;
  
  *(undefined4 *)S->h = 0;
  *(undefined4 *)&S->last_node = 0;
  puVar8 = (undefined4 *)((uint)((int)S->h + 4U) & 0xfffffffc);
  uVar5 = (uint)((int)S + (0xec - (int)puVar8)) >> 2;
  for (; uVar5 != 0; uVar5 = uVar5 - 1) {
    *puVar8 = 0;
    puVar8 = puVar8 + 1;
  }
  uVar7 = 0xf3bcc908;
  uVar9 = 0x6a09e667;
  pbVar6 = S;
  puVar2 = blake2b_IV;
  while( true ) {
    puVar3 = puVar2 + 1;
    *(undefined4 *)pbVar6->h = uVar7;
    *(undefined4 *)((int)pbVar6->h + 4) = uVar9;
    if (puVar3 == (uint64_t *)&DAT_0001fce0) break;
    uVar7 = (undefined4)*puVar3;
    uVar9 = *(undefined4 *)((int)puVar2 + 0xc);
    pbVar6 = (blake2b_state *)(pbVar6->h + 1);
    puVar2 = puVar3;
  }
  iVar4 = 0;
  do {
    *(uint *)(S->h + iVar4) = (uint)S->h[iVar4] ^ *(uint *)(P->reserved + iVar4 * 8 + -0x12);
    puVar1 = (uint *)((int)S->h + iVar4 * 8 + 4);
    *puVar1 = *puVar1 ^ *(uint *)(P->reserved + iVar4 * 8 + -0xe);
    iVar4 = iVar4 + 1;
  } while (iVar4 != 8);
  S->outlen = (uint)P->digest_length;
  return 0;
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

undefined4 FUN_00018880(undefined4 *param_1,byte *param_2)

{
  undefined4 *puVar1;
  int iVar2;
  uint uVar3;
  undefined4 *puVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  
  *param_1 = 0;
  param_1[0x3a] = 0;
  puVar1 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc);
  for (uVar3 = (uint)((int)param_1 + (0xec - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2;
      uVar3 != 0; uVar3 = uVar3 - 1) {
    *puVar1 = 0;
    puVar1 = puVar1 + 1;
  }
  puVar1 = &DAT_0001fca8;
  uVar5 = 0xf3bcc908;
  uVar6 = 0x6a09e667;
  puVar4 = param_1;
  while( true ) {
    *puVar4 = uVar5;
    puVar4[1] = uVar6;
    if (puVar1 == (undefined4 *)&DAT_0001fce0) break;
    uVar5 = *puVar1;
    uVar6 = puVar1[1];
    puVar1 = puVar1 + 2;
    puVar4 = puVar4 + 2;
  }
  iVar2 = 0;
  do {
    param_1[iVar2 * 2] = param_1[iVar2 * 2] ^ *(uint *)(param_2 + iVar2 * 8);
    param_1[iVar2 * 2 + 1] = param_1[iVar2 * 2 + 1] ^ *(uint *)(param_2 + iVar2 * 8 + 4);
    iVar2 = iVar2 + 1;
  } while (iVar2 != 8);
  param_1[0x39] = (uint)*param_2;
  return 0;
}


PUSH EBP
XOR EAX,EAX
PUSH EDI
PUSH ESI
CALL 0x00019085
ADD ESI,0xc776
PUSH EBX
MOV EDX,dword ptr [ESP + 0x14]
MOV EBX,dword ptr [ESP + 0x18]
LEA EDI,[EDX + 0x4]
MOV ECX,EDX
MOV dword ptr [EDX],0x0
MOV dword ptr [EDX + 0xe8],0x0
AND EDI,0xfffffffc
SUB ECX,EDI
ADD ECX,0xec
SHR ECX,0x2
LEA EBP,[ESI + 0xfffface0]
STOSD.REP ES:EDI
LEA EAX,[ESI + 0xffffaca8]
MOV ECX,EDX
MOV ESI,0xf3bcc908
MOV EDI,0x6a09e667
JMP 0x000188e8
MOV ESI,dword ptr [EAX]
MOV EDI,dword ptr [EAX + 0x4]
ADD EAX,0x8
MOV dword ptr [ECX],ESI
ADD ECX,0x8
MOV dword ptr [ECX + -0x4],EDI
CMP EAX,EBP
JNZ 0x000188e0
XOR EAX,EAX
LEA ESI,[ESI]
LEA ESI,[ESI]
MOV ECX,dword ptr [EBX + EAX*0x8]
XOR dword ptr [EDX + EAX*0x8],ECX
MOV ECX,dword ptr [EBX + EAX*0x8 + 0x4]
XOR dword ptr [EDX + EAX*0x8 + 0x4],ECX
ADD EAX,0x1
CMP EAX,0x8
JNZ 0x00018900
MOVZX EAX,byte ptr [EBX]
MOV dword ptr [EDX + 0xe4],EAX
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nundefined4 FUN_00018880(undefined4 *param_1,byte *param_2)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  *param_1 = 0;\n  param_1[0x3a] = 0;\n  puVar1 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)param_1 + (0xec - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar1 = 0;\n    puVar1 = puVar1 + 1;\n  }\n  puVar1 = &DAT_0001fca8;\n  uVar5 = 0xf3bcc908;\n  uVar6 = 0x6a09e667;\n  puVar4 = param_1;\n  while( true ) {\n    *puVar4 = uVar5;\n    puVar4[1] = uVar6;\n    if (puVar1 == (undefined4 *)&DAT_0001fce0) break;\n    uVar5 = *puVar1;\n    uVar6 = puVar1[1];\n    puVar1 = puVar1 + 2;\n    puVar4 = puVar4 + 2;\n  }\n  iVar2 = 0;\n  do {\n    param_1[iVar2 * 2] = param_1[iVar2 * 2] ^ *(uint *)(param_2 + iVar2 * 8);\n    param_1[iVar2 * 2 + 1] = param_1[iVar2 * 2 + 1] ^ *(uint *)(param_2 + iVar2 * 8 + 4);\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 8);\n  param_1[0x39] = (uint)*param_2;\n  return 0;\n}\n\n" comment (function_definition "undefined4 FUN_00018880(undefined4 *param_1,byte *param_2)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  *param_1 = 0;\n  param_1[0x3a] = 0;\n  puVar1 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)param_1 + (0xec - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar1 = 0;\n    puVar1 = puVar1 + 1;\n  }\n  puVar1 = &DAT_0001fca8;\n  uVar5 = 0xf3bcc908;\n  uVar6 = 0x6a09e667;\n  puVar4 = param_1;\n  while( true ) {\n    *puVar4 = uVar5;\n    puVar4[1] = uVar6;\n    if (puVar1 == (undefined4 *)&DAT_0001fce0) break;\n    uVar5 = *puVar1;\n    uVar6 = puVar1[1];\n    puVar1 = puVar1 + 2;\n    puVar4 = puVar4 + 2;\n  }\n  iVar2 = 0;\n  do {\n    param_1[iVar2 * 2] = param_1[iVar2 * 2] ^ *(uint *)(param_2 + iVar2 * 8);\n    param_1[iVar2 * 2 + 1] = param_1[iVar2 * 2 + 1] ^ *(uint *)(param_2 + iVar2 * 8 + 4);\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 8);\n  param_1[0x39] = (uint)*param_2;\n  return 0;\n}" type_identifier (function_declarator "FUN_00018880(undefined4 *param_1,byte *param_2)" identifier (parameter_list "(undefined4 *param_1,byte *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  *param_1 = 0;\n  param_1[0x3a] = 0;\n  puVar1 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)param_1 + (0xec - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar1 = 0;\n    puVar1 = puVar1 + 1;\n  }\n  puVar1 = &DAT_0001fca8;\n  uVar5 = 0xf3bcc908;\n  uVar6 = 0x6a09e667;\n  puVar4 = param_1;\n  while( true ) {\n    *puVar4 = uVar5;\n    puVar4[1] = uVar6;\n    if (puVar1 == (undefined4 *)&DAT_0001fce0) break;\n    uVar5 = *puVar1;\n    uVar6 = puVar1[1];\n    puVar1 = puVar1 + 2;\n    puVar4 = puVar4 + 2;\n  }\n  iVar2 = 0;\n  do {\n    param_1[iVar2 * 2] = param_1[iVar2 * 2] ^ *(uint *)(param_2 + iVar2 * 8);\n    param_1[iVar2 * 2 + 1] = param_1[iVar2 * 2 + 1] ^ *(uint *)(param_2 + iVar2 * 8 + 4);\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 8);\n  param_1[0x39] = (uint)*param_2;\n  return 0;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[0x3a] = 0;" (assignment_expression "param_1[0x3a] = 0" (subscript_expression "param_1[0x3a]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc);" (assignment_expression "puVar1 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(param_1 + 1) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(param_1 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(param_1 + 1) & 0xfffffffc" (call_expression "(uint)(param_1 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar3 = (uint)((int)param_1 + (0xec - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar1 = 0;\n    puVar1 = puVar1 + 1;\n  }" for ( (assignment_expression "uVar3 = (uint)((int)param_1 + (0xec - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2" identifier = (binary_expression "(uint)((int)param_1 + (0xec - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2" (call_expression "(uint)((int)param_1 + (0xec - (int)((uint)(param_1 + 1) & 0xfffffffc)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)param_1 + (0xec - (int)((uint)(param_1 + 1) & 0xfffffffc)))" ( (binary_expression "(int)param_1 + (0xec - (int)((uint)(param_1 + 1) & 0xfffffffc))" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0xec - (int)((uint)(param_1 + 1) & 0xfffffffc))" ( (binary_expression "0xec - (int)((uint)(param_1 + 1) & 0xfffffffc)" number_literal - (cast_expression "(int)((uint)(param_1 + 1) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(param_1 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(param_1 + 1) & 0xfffffffc" (call_expression "(uint)(param_1 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) & number_literal) )))) ))) ))) >> number_literal)) ; (binary_expression "uVar3 != 0" identifier != number_literal) ; (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ) (compound_statement "{\n    *puVar1 = 0;\n    puVar1 = puVar1 + 1;\n  }" { (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "puVar1 = puVar1 + 1;" (assignment_expression "puVar1 = puVar1 + 1" identifier = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) })) (expression_statement "puVar1 = &DAT_0001fca8;" (assignment_expression "puVar1 = &DAT_0001fca8" identifier = (pointer_expression "&DAT_0001fca8" & identifier)) ;) (expression_statement "uVar5 = 0xf3bcc908;" (assignment_expression "uVar5 = 0xf3bcc908" identifier = number_literal) ;) (expression_statement "uVar6 = 0x6a09e667;" (assignment_expression "uVar6 = 0x6a09e667" identifier = number_literal) ;) (expression_statement "puVar4 = param_1;" (assignment_expression "puVar4 = param_1" identifier = identifier) ;) (while_statement "while( true ) {\n    *puVar4 = uVar5;\n    puVar4[1] = uVar6;\n    if (puVar1 == (undefined4 *)&DAT_0001fce0) break;\n    uVar5 = *puVar1;\n    uVar6 = puVar1[1];\n    puVar1 = puVar1 + 2;\n    puVar4 = puVar4 + 2;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    *puVar4 = uVar5;\n    puVar4[1] = uVar6;\n    if (puVar1 == (undefined4 *)&DAT_0001fce0) break;\n    uVar5 = *puVar1;\n    uVar6 = puVar1[1];\n    puVar1 = puVar1 + 2;\n    puVar4 = puVar4 + 2;\n  }" { (expression_statement "*puVar4 = uVar5;" (assignment_expression "*puVar4 = uVar5" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "puVar4[1] = uVar6;" (assignment_expression "puVar4[1] = uVar6" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (puVar1 == (undefined4 *)&DAT_0001fce0) break;" if (parenthesized_expression "(puVar1 == (undefined4 *)&DAT_0001fce0)" ( (binary_expression "puVar1 == (undefined4 *)&DAT_0001fce0" identifier == (cast_expression "(undefined4 *)&DAT_0001fce0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0001fce0" & identifier))) )) (break_statement "break;" break ;)) (expression_statement "uVar5 = *puVar1;" (assignment_expression "uVar5 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "uVar6 = puVar1[1];" (assignment_expression "uVar6 = puVar1[1]" identifier = (subscript_expression "puVar1[1]" identifier [ number_literal ])) ;) (expression_statement "puVar1 = puVar1 + 2;" (assignment_expression "puVar1 = puVar1 + 2" identifier = (binary_expression "puVar1 + 2" identifier + number_literal)) ;) (expression_statement "puVar4 = puVar4 + 2;" (assignment_expression "puVar4 = puVar4 + 2" identifier = (binary_expression "puVar4 + 2" identifier + number_literal)) ;) })) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n    param_1[iVar2 * 2] = param_1[iVar2 * 2] ^ *(uint *)(param_2 + iVar2 * 8);\n    param_1[iVar2 * 2 + 1] = param_1[iVar2 * 2 + 1] ^ *(uint *)(param_2 + iVar2 * 8 + 4);\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 8);" do (compound_statement "{\n    param_1[iVar2 * 2] = param_1[iVar2 * 2] ^ *(uint *)(param_2 + iVar2 * 8);\n    param_1[iVar2 * 2 + 1] = param_1[iVar2 * 2 + 1] ^ *(uint *)(param_2 + iVar2 * 8 + 4);\n    iVar2 = iVar2 + 1;\n  }" { (expression_statement "param_1[iVar2 * 2] = param_1[iVar2 * 2] ^ *(uint *)(param_2 + iVar2 * 8);" (assignment_expression "param_1[iVar2 * 2] = param_1[iVar2 * 2] ^ *(uint *)(param_2 + iVar2 * 8)" (subscript_expression "param_1[iVar2 * 2]" identifier [ (binary_expression "iVar2 * 2" identifier * number_literal) ]) = (binary_expression "param_1[iVar2 * 2] ^ *(uint *)(param_2 + iVar2 * 8)" (subscript_expression "param_1[iVar2 * 2]" identifier [ (binary_expression "iVar2 * 2" identifier * number_literal) ]) ^ (pointer_expression "*(uint *)(param_2 + iVar2 * 8)" * (cast_expression "(uint *)(param_2 + iVar2 * 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + iVar2 * 8)" ( (binary_expression "param_2 + iVar2 * 8" identifier + (binary_expression "iVar2 * 8" identifier * number_literal)) )))))) ;) (expression_statement "param_1[iVar2 * 2 + 1] = param_1[iVar2 * 2 + 1] ^ *(uint *)(param_2 + iVar2 * 8 + 4);" (assignment_expression "param_1[iVar2 * 2 + 1] = param_1[iVar2 * 2 + 1] ^ *(uint *)(param_2 + iVar2 * 8 + 4)" (subscript_expression "param_1[iVar2 * 2 + 1]" identifier [ (binary_expression "iVar2 * 2 + 1" (binary_expression "iVar2 * 2" identifier * number_literal) + number_literal) ]) = (binary_expression "param_1[iVar2 * 2 + 1] ^ *(uint *)(param_2 + iVar2 * 8 + 4)" (subscript_expression "param_1[iVar2 * 2 + 1]" identifier [ (binary_expression "iVar2 * 2 + 1" (binary_expression "iVar2 * 2" identifier * number_literal) + number_literal) ]) ^ (pointer_expression "*(uint *)(param_2 + iVar2 * 8 + 4)" * (cast_expression "(uint *)(param_2 + iVar2 * 8 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + iVar2 * 8 + 4)" ( (binary_expression "param_2 + iVar2 * 8 + 4" (binary_expression "param_2 + iVar2 * 8" identifier + (binary_expression "iVar2 * 8" identifier * number_literal)) + number_literal) )))))) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != 8)" ( (binary_expression "iVar2 != 8" identifier != number_literal) )) ;) (expression_statement "param_1[0x39] = (uint)*param_2;" (assignment_expression "param_1[0x39] = (uint)*param_2" (subscript_expression "param_1[0x39]" identifier [ number_literal ]) = (binary_expression "(uint)*param_2" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nint blake2b_init_param(blake2b_state *S,blake2b_param *P)\n\n{\n  uint *puVar1;\n  uint64_t *puVar2;\n  uint64_t *puVar3;\n  int iVar4;\n  uint uVar5;\n  blake2b_state *pbVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  undefined4 uVar9;\n  \n  *(undefined4 *)S->h = 0;\n  *(undefined4 *)&S->last_node = 0;\n  puVar8 = (undefined4 *)((uint)((int)S->h + 4U) & 0xfffffffc);\n  uVar5 = (uint)((int)S + (0xec - (int)puVar8)) >> 2;\n  for (; uVar5 != 0; uVar5 = uVar5 - 1) {\n    *puVar8 = 0;\n    puVar8 = puVar8 + 1;\n  }\n  uVar7 = 0xf3bcc908;\n  uVar9 = 0x6a09e667;\n  pbVar6 = S;\n  puVar2 = blake2b_IV;\n  while( true ) {\n    puVar3 = puVar2 + 1;\n    *(undefined4 *)pbVar6->h = uVar7;\n    *(undefined4 *)((int)pbVar6->h + 4) = uVar9;\n    if (puVar3 == (uint64_t *)&DAT_0001fce0) break;\n    uVar7 = (undefined4)*puVar3;\n    uVar9 = *(undefined4 *)((int)puVar2 + 0xc);\n    pbVar6 = (blake2b_state *)(pbVar6->h + 1);\n    puVar2 = puVar3;\n  }\n  iVar4 = 0;\n  do {\n    *(uint *)(S->h + iVar4) = (uint)S->h[iVar4] ^ *(uint *)(P->reserved + iVar4 * 8 + -0x12);\n    puVar1 = (uint *)((int)S->h + iVar4 * 8 + 4);\n    *puVar1 = *puVar1 ^ *(uint *)(P->reserved + iVar4 * 8 + -0xe);\n    iVar4 = iVar4 + 1;\n  } while (iVar4 != 8);\n  S->outlen = (uint)P->digest_length;\n  return 0;\n}\n\n" comment (function_definition "int blake2b_init_param(blake2b_state *S,blake2b_param *P)\n\n{\n  uint *puVar1;\n  uint64_t *puVar2;\n  uint64_t *puVar3;\n  int iVar4;\n  uint uVar5;\n  blake2b_state *pbVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  undefined4 uVar9;\n  \n  *(undefined4 *)S->h = 0;\n  *(undefined4 *)&S->last_node = 0;\n  puVar8 = (undefined4 *)((uint)((int)S->h + 4U) & 0xfffffffc);\n  uVar5 = (uint)((int)S + (0xec - (int)puVar8)) >> 2;\n  for (; uVar5 != 0; uVar5 = uVar5 - 1) {\n    *puVar8 = 0;\n    puVar8 = puVar8 + 1;\n  }\n  uVar7 = 0xf3bcc908;\n  uVar9 = 0x6a09e667;\n  pbVar6 = S;\n  puVar2 = blake2b_IV;\n  while( true ) {\n    puVar3 = puVar2 + 1;\n    *(undefined4 *)pbVar6->h = uVar7;\n    *(undefined4 *)((int)pbVar6->h + 4) = uVar9;\n    if (puVar3 == (uint64_t *)&DAT_0001fce0) break;\n    uVar7 = (undefined4)*puVar3;\n    uVar9 = *(undefined4 *)((int)puVar2 + 0xc);\n    pbVar6 = (blake2b_state *)(pbVar6->h + 1);\n    puVar2 = puVar3;\n  }\n  iVar4 = 0;\n  do {\n    *(uint *)(S->h + iVar4) = (uint)S->h[iVar4] ^ *(uint *)(P->reserved + iVar4 * 8 + -0x12);\n    puVar1 = (uint *)((int)S->h + iVar4 * 8 + 4);\n    *puVar1 = *puVar1 ^ *(uint *)(P->reserved + iVar4 * 8 + -0xe);\n    iVar4 = iVar4 + 1;\n  } while (iVar4 != 8);\n  S->outlen = (uint)P->digest_length;\n  return 0;\n}" primitive_type (function_declarator "blake2b_init_param(blake2b_state *S,blake2b_param *P)" identifier (parameter_list "(blake2b_state *S,blake2b_param *P)" ( (parameter_declaration "blake2b_state *S" type_identifier (pointer_declarator "*S" * identifier)) , (parameter_declaration "blake2b_param *P" type_identifier (pointer_declarator "*P" * identifier)) ))) (compound_statement "{\n  uint *puVar1;\n  uint64_t *puVar2;\n  uint64_t *puVar3;\n  int iVar4;\n  uint uVar5;\n  blake2b_state *pbVar6;\n  undefined4 uVar7;\n  undefined4 *puVar8;\n  undefined4 uVar9;\n  \n  *(undefined4 *)S->h = 0;\n  *(undefined4 *)&S->last_node = 0;\n  puVar8 = (undefined4 *)((uint)((int)S->h + 4U) & 0xfffffffc);\n  uVar5 = (uint)((int)S + (0xec - (int)puVar8)) >> 2;\n  for (; uVar5 != 0; uVar5 = uVar5 - 1) {\n    *puVar8 = 0;\n    puVar8 = puVar8 + 1;\n  }\n  uVar7 = 0xf3bcc908;\n  uVar9 = 0x6a09e667;\n  pbVar6 = S;\n  puVar2 = blake2b_IV;\n  while( true ) {\n    puVar3 = puVar2 + 1;\n    *(undefined4 *)pbVar6->h = uVar7;\n    *(undefined4 *)((int)pbVar6->h + 4) = uVar9;\n    if (puVar3 == (uint64_t *)&DAT_0001fce0) break;\n    uVar7 = (undefined4)*puVar3;\n    uVar9 = *(undefined4 *)((int)puVar2 + 0xc);\n    pbVar6 = (blake2b_state *)(pbVar6->h + 1);\n    puVar2 = puVar3;\n  }\n  iVar4 = 0;\n  do {\n    *(uint *)(S->h + iVar4) = (uint)S->h[iVar4] ^ *(uint *)(P->reserved + iVar4 * 8 + -0x12);\n    puVar1 = (uint *)((int)S->h + iVar4 * 8 + 4);\n    *puVar1 = *puVar1 ^ *(uint *)(P->reserved + iVar4 * 8 + -0xe);\n    iVar4 = iVar4 + 1;\n  } while (iVar4 != 8);\n  S->outlen = (uint)P->digest_length;\n  return 0;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint64_t *puVar2;" primitive_type (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint64_t *puVar3;" primitive_type (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "blake2b_state *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (expression_statement "*(undefined4 *)S->h = 0;" (assignment_expression "*(undefined4 *)S->h = 0" (pointer_expression "*(undefined4 *)S->h" * (cast_expression "(undefined4 *)S->h" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "S->h" identifier -> field_identifier))) = number_literal) ;) (expression_statement "*(undefined4 *)&S->last_node = 0;" (assignment_expression "*(undefined4 *)&S->last_node = 0" (pointer_expression "*(undefined4 *)&S->last_node" * (cast_expression "(undefined4 *)&S->last_node" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&S->last_node" & (field_expression "S->last_node" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "puVar8 = (undefined4 *)((uint)((int)S->h + 4U) & 0xfffffffc);" (assignment_expression "puVar8 = (undefined4 *)((uint)((int)S->h + 4U) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)((int)S->h + 4U) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)((int)S->h + 4U) & 0xfffffffc)" ( (binary_expression "(uint)((int)S->h + 4U) & 0xfffffffc" (call_expression "(uint)((int)S->h + 4U)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)S->h + 4U)" ( (binary_expression "(int)S->h + 4U" (cast_expression "(int)S->h" ( (type_descriptor "int" primitive_type) ) (field_expression "S->h" identifier -> field_identifier)) + number_literal) ))) & number_literal) )))) ;) (expression_statement "uVar5 = (uint)((int)S + (0xec - (int)puVar8)) >> 2;" (assignment_expression "uVar5 = (uint)((int)S + (0xec - (int)puVar8)) >> 2" identifier = (binary_expression "(uint)((int)S + (0xec - (int)puVar8)) >> 2" (call_expression "(uint)((int)S + (0xec - (int)puVar8))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)S + (0xec - (int)puVar8))" ( (binary_expression "(int)S + (0xec - (int)puVar8)" (cast_expression "(int)S" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0xec - (int)puVar8)" ( (binary_expression "0xec - (int)puVar8" number_literal - (cast_expression "(int)puVar8" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))) >> number_literal)) ;) (for_statement "for (; uVar5 != 0; uVar5 = uVar5 - 1) {\n    *puVar8 = 0;\n    puVar8 = puVar8 + 1;\n  }" for ( ; (binary_expression "uVar5 != 0" identifier != number_literal) ; (assignment_expression "uVar5 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ) (compound_statement "{\n    *puVar8 = 0;\n    puVar8 = puVar8 + 1;\n  }" { (expression_statement "*puVar8 = 0;" (assignment_expression "*puVar8 = 0" (pointer_expression "*puVar8" * identifier) = number_literal) ;) (expression_statement "puVar8 = puVar8 + 1;" (assignment_expression "puVar8 = puVar8 + 1" identifier = (binary_expression "puVar8 + 1" identifier + number_literal)) ;) })) (expression_statement "uVar7 = 0xf3bcc908;" (assignment_expression "uVar7 = 0xf3bcc908" identifier = number_literal) ;) (expression_statement "uVar9 = 0x6a09e667;" (assignment_expression "uVar9 = 0x6a09e667" identifier = number_literal) ;) (expression_statement "pbVar6 = S;" (assignment_expression "pbVar6 = S" identifier = identifier) ;) (expression_statement "puVar2 = blake2b_IV;" (assignment_expression "puVar2 = blake2b_IV" identifier = identifier) ;) (while_statement "while( true ) {\n    puVar3 = puVar2 + 1;\n    *(undefined4 *)pbVar6->h = uVar7;\n    *(undefined4 *)((int)pbVar6->h + 4) = uVar9;\n    if (puVar3 == (uint64_t *)&DAT_0001fce0) break;\n    uVar7 = (undefined4)*puVar3;\n    uVar9 = *(undefined4 *)((int)puVar2 + 0xc);\n    pbVar6 = (blake2b_state *)(pbVar6->h + 1);\n    puVar2 = puVar3;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    puVar3 = puVar2 + 1;\n    *(undefined4 *)pbVar6->h = uVar7;\n    *(undefined4 *)((int)pbVar6->h + 4) = uVar9;\n    if (puVar3 == (uint64_t *)&DAT_0001fce0) break;\n    uVar7 = (undefined4)*puVar3;\n    uVar9 = *(undefined4 *)((int)puVar2 + 0xc);\n    pbVar6 = (blake2b_state *)(pbVar6->h + 1);\n    puVar2 = puVar3;\n  }" { (expression_statement "puVar3 = puVar2 + 1;" (assignment_expression "puVar3 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)pbVar6->h = uVar7;" (assignment_expression "*(undefined4 *)pbVar6->h = uVar7" (pointer_expression "*(undefined4 *)pbVar6->h" * (cast_expression "(undefined4 *)pbVar6->h" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pbVar6->h" identifier -> field_identifier))) = identifier) ;) (expression_statement "*(undefined4 *)((int)pbVar6->h + 4) = uVar9;" (assignment_expression "*(undefined4 *)((int)pbVar6->h + 4) = uVar9" (pointer_expression "*(undefined4 *)((int)pbVar6->h + 4)" * (cast_expression "(undefined4 *)((int)pbVar6->h + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pbVar6->h + 4)" ( (binary_expression "(int)pbVar6->h + 4" (cast_expression "(int)pbVar6->h" ( (type_descriptor "int" primitive_type) ) (field_expression "pbVar6->h" identifier -> field_identifier)) + number_literal) )))) = identifier) ;) (if_statement "if (puVar3 == (uint64_t *)&DAT_0001fce0) break;" if (parenthesized_expression "(puVar3 == (uint64_t *)&DAT_0001fce0)" ( (binary_expression "puVar3 == (uint64_t *)&DAT_0001fce0" identifier == (cast_expression "(uint64_t *)&DAT_0001fce0" ( (type_descriptor "uint64_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0001fce0" & identifier))) )) (break_statement "break;" break ;)) (expression_statement "uVar7 = (undefined4)*puVar3;" (assignment_expression "uVar7 = (undefined4)*puVar3" identifier = (binary_expression "(undefined4)*puVar3" (parenthesized_expression "(undefined4)" ( identifier )) * identifier)) ;) (expression_statement "uVar9 = *(undefined4 *)((int)puVar2 + 0xc);" (assignment_expression "uVar9 = *(undefined4 *)((int)puVar2 + 0xc)" identifier = (pointer_expression "*(undefined4 *)((int)puVar2 + 0xc)" * (cast_expression "(undefined4 *)((int)puVar2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + 0xc)" ( (binary_expression "(int)puVar2 + 0xc" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "pbVar6 = (blake2b_state *)(pbVar6->h + 1);" (assignment_expression "pbVar6 = (blake2b_state *)(pbVar6->h + 1)" identifier = (cast_expression "(blake2b_state *)(pbVar6->h + 1)" ( (type_descriptor "blake2b_state *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar6->h + 1)" ( (binary_expression "pbVar6->h + 1" (field_expression "pbVar6->h" identifier -> field_identifier) + number_literal) )))) ;) (expression_statement "puVar2 = puVar3;" (assignment_expression "puVar2 = puVar3" identifier = identifier) ;) })) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n    *(uint *)(S->h + iVar4) = (uint)S->h[iVar4] ^ *(uint *)(P->reserved + iVar4 * 8 + -0x12);\n    puVar1 = (uint *)((int)S->h + iVar4 * 8 + 4);\n    *puVar1 = *puVar1 ^ *(uint *)(P->reserved + iVar4 * 8 + -0xe);\n    iVar4 = iVar4 + 1;\n  } while (iVar4 != 8);" do (compound_statement "{\n    *(uint *)(S->h + iVar4) = (uint)S->h[iVar4] ^ *(uint *)(P->reserved + iVar4 * 8 + -0x12);\n    puVar1 = (uint *)((int)S->h + iVar4 * 8 + 4);\n    *puVar1 = *puVar1 ^ *(uint *)(P->reserved + iVar4 * 8 + -0xe);\n    iVar4 = iVar4 + 1;\n  }" { (expression_statement "*(uint *)(S->h + iVar4) = (uint)S->h[iVar4] ^ *(uint *)(P->reserved + iVar4 * 8 + -0x12);" (assignment_expression "*(uint *)(S->h + iVar4) = (uint)S->h[iVar4] ^ *(uint *)(P->reserved + iVar4 * 8 + -0x12)" (pointer_expression "*(uint *)(S->h + iVar4)" * (cast_expression "(uint *)(S->h + iVar4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(S->h + iVar4)" ( (binary_expression "S->h + iVar4" (field_expression "S->h" identifier -> field_identifier) + identifier) )))) = (binary_expression "(uint)S->h[iVar4] ^ *(uint *)(P->reserved + iVar4 * 8 + -0x12)" (cast_expression "(uint)S->h[iVar4]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "S->h[iVar4]" (field_expression "S->h" identifier -> field_identifier) [ identifier ])) ^ (pointer_expression "*(uint *)(P->reserved + iVar4 * 8 + -0x12)" * (cast_expression "(uint *)(P->reserved + iVar4 * 8 + -0x12)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(P->reserved + iVar4 * 8 + -0x12)" ( (binary_expression "P->reserved + iVar4 * 8 + -0x12" (binary_expression "P->reserved + iVar4 * 8" (field_expression "P->reserved" identifier -> field_identifier) + (binary_expression "iVar4 * 8" identifier * number_literal)) + number_literal) )))))) ;) (expression_statement "puVar1 = (uint *)((int)S->h + iVar4 * 8 + 4);" (assignment_expression "puVar1 = (uint *)((int)S->h + iVar4 * 8 + 4)" identifier = (cast_expression "(uint *)((int)S->h + iVar4 * 8 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)S->h + iVar4 * 8 + 4)" ( (binary_expression "(int)S->h + iVar4 * 8 + 4" (binary_expression "(int)S->h + iVar4 * 8" (cast_expression "(int)S->h" ( (type_descriptor "int" primitive_type) ) (field_expression "S->h" identifier -> field_identifier)) + (binary_expression "iVar4 * 8" identifier * number_literal)) + number_literal) )))) ;) (expression_statement "*puVar1 = *puVar1 ^ *(uint *)(P->reserved + iVar4 * 8 + -0xe);" (assignment_expression "*puVar1 = *puVar1 ^ *(uint *)(P->reserved + iVar4 * 8 + -0xe)" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 ^ *(uint *)(P->reserved + iVar4 * 8 + -0xe)" (pointer_expression "*puVar1" * identifier) ^ (pointer_expression "*(uint *)(P->reserved + iVar4 * 8 + -0xe)" * (cast_expression "(uint *)(P->reserved + iVar4 * 8 + -0xe)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(P->reserved + iVar4 * 8 + -0xe)" ( (binary_expression "P->reserved + iVar4 * 8 + -0xe" (binary_expression "P->reserved + iVar4 * 8" (field_expression "P->reserved" identifier -> field_identifier) + (binary_expression "iVar4 * 8" identifier * number_literal)) + number_literal) )))))) ;) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar4 != 8)" ( (binary_expression "iVar4 != 8" identifier != number_literal) )) ;) (expression_statement "S->outlen = (uint)P->digest_length;" (assignment_expression "S->outlen = (uint)P->digest_length" (field_expression "S->outlen" identifier -> field_identifier) = (cast_expression "(uint)P->digest_length" ( (type_descriptor "uint" type_identifier) ) (field_expression "P->digest_length" identifier -> field_identifier))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00018880(undefined4 *param_1,byte *param_2)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  *param_1 = 0;\n  param_1[0x3a] = 0;\n  puVar1 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)param_1 + (0xec - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar1 = 0;\n    puVar1 = puVar1 + 1;\n  }\n  puVar1 = &DAT_0001fca8;\n  uVar5 = 0xf3bcc908;\n  uVar6 = 0x6a09e667;\n  puVar4 = param_1;\n  while( true ) {\n    *puVar4 = uVar5;\n    puVar4[1] = uVar6;\n    if (puVar1 == (undefined4 *)&DAT_0001fce0) break;\n    uVar5 = *puVar1;\n    uVar6 = puVar1[1];\n    puVar1 = puVar1 + 2;\n    puVar4 = puVar4 + 2;\n  }\n  iVar2 = 0;\n  do {\n    param_1[iVar2 * 2] = param_1[iVar2 * 2] ^ *(uint *)(param_2 + iVar2 * 8);\n    param_1[iVar2 * 2 + 1] = param_1[iVar2 * 2 + 1] ^ *(uint *)(param_2 + iVar2 * 8 + 4);\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 8);\n  param_1[0x39] = (uint)*param_2;\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00018880(undefined4 *param_1,byte *param_2)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  *param_1 = 0;\n  param_1[0x3a] = 0;\n  puVar1 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)param_1 + (0xec - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar1 = 0;\n    puVar1 = puVar1 + 1;\n  }\n  puVar1 = &DAT_0001fca8;\n  uVar5 = 0xf3bcc908;\n  uVar6 = 0x6a09e667;\n  puVar4 = param_1;\n  while( true ) {\n    *puVar4 = uVar5;\n    puVar4[1] = uVar6;\n    if (puVar1 == (undefined4 *)&DAT_0001fce0) break;\n    uVar5 = *puVar1;\n    uVar6 = puVar1[1];\n    puVar1 = puVar1 + 2;\n    puVar4 = puVar4 + 2;\n  }\n  iVar2 = 0;\n  do {\n    param_1[iVar2 * 2] = param_1[iVar2 * 2] ^ *(uint *)(param_2 + iVar2 * 8);\n    param_1[iVar2 * 2 + 1] = param_1[iVar2 * 2 + 1] ^ *(uint *)(param_2 + iVar2 * 8 + 4);\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 8);\n  param_1[0x39] = (uint)*param_2;\n  return 0;\n}" type_identifier (function_declarator "FUN_00018880(undefined4 *param_1,byte *param_2)" identifier (parameter_list "(undefined4 *param_1,byte *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  *param_1 = 0;\n  param_1[0x3a] = 0;\n  puVar1 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)param_1 + (0xec - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar1 = 0;\n    puVar1 = puVar1 + 1;\n  }\n  puVar1 = &DAT_0001fca8;\n  uVar5 = 0xf3bcc908;\n  uVar6 = 0x6a09e667;\n  puVar4 = param_1;\n  while( true ) {\n    *puVar4 = uVar5;\n    puVar4[1] = uVar6;\n    if (puVar1 == (undefined4 *)&DAT_0001fce0) break;\n    uVar5 = *puVar1;\n    uVar6 = puVar1[1];\n    puVar1 = puVar1 + 2;\n    puVar4 = puVar4 + 2;\n  }\n  iVar2 = 0;\n  do {\n    param_1[iVar2 * 2] = param_1[iVar2 * 2] ^ *(uint *)(param_2 + iVar2 * 8);\n    param_1[iVar2 * 2 + 1] = param_1[iVar2 * 2 + 1] ^ *(uint *)(param_2 + iVar2 * 8 + 4);\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 8);\n  param_1[0x39] = (uint)*param_2;\n  return 0;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[0x3a] = 0;" (assignment_expression "param_1[0x3a] = 0" (subscript_expression "param_1[0x3a]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc);" (assignment_expression "puVar1 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(param_1 + 1) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(param_1 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(param_1 + 1) & 0xfffffffc" (call_expression "(uint)(param_1 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar3 = (uint)((int)param_1 + (0xec - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar1 = 0;\n    puVar1 = puVar1 + 1;\n  }" for ( (assignment_expression "uVar3 = (uint)((int)param_1 + (0xec - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2" identifier = (binary_expression "(uint)((int)param_1 + (0xec - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2" (call_expression "(uint)((int)param_1 + (0xec - (int)((uint)(param_1 + 1) & 0xfffffffc)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)param_1 + (0xec - (int)((uint)(param_1 + 1) & 0xfffffffc)))" ( (binary_expression "(int)param_1 + (0xec - (int)((uint)(param_1 + 1) & 0xfffffffc))" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0xec - (int)((uint)(param_1 + 1) & 0xfffffffc))" ( (binary_expression "0xec - (int)((uint)(param_1 + 1) & 0xfffffffc)" number_literal - (cast_expression "(int)((uint)(param_1 + 1) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(param_1 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(param_1 + 1) & 0xfffffffc" (call_expression "(uint)(param_1 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) & number_literal) )))) ))) ))) >> number_literal)) ; (binary_expression "uVar3 != 0" identifier != number_literal) ; (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ) (compound_statement "{\n    *puVar1 = 0;\n    puVar1 = puVar1 + 1;\n  }" { (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "puVar1 = puVar1 + 1;" (assignment_expression "puVar1 = puVar1 + 1" identifier = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) })) (expression_statement "puVar1 = &DAT_0001fca8;" (assignment_expression "puVar1 = &DAT_0001fca8" identifier = (pointer_expression "&DAT_0001fca8" & identifier)) ;) (expression_statement "uVar5 = 0xf3bcc908;" (assignment_expression "uVar5 = 0xf3bcc908" identifier = number_literal) ;) (expression_statement "uVar6 = 0x6a09e667;" (assignment_expression "uVar6 = 0x6a09e667" identifier = number_literal) ;) (expression_statement "puVar4 = param_1;" (assignment_expression "puVar4 = param_1" identifier = identifier) ;) (while_statement "while( true ) {\n    *puVar4 = uVar5;\n    puVar4[1] = uVar6;\n    if (puVar1 == (undefined4 *)&DAT_0001fce0) break;\n    uVar5 = *puVar1;\n    uVar6 = puVar1[1];\n    puVar1 = puVar1 + 2;\n    puVar4 = puVar4 + 2;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    *puVar4 = uVar5;\n    puVar4[1] = uVar6;\n    if (puVar1 == (undefined4 *)&DAT_0001fce0) break;\n    uVar5 = *puVar1;\n    uVar6 = puVar1[1];\n    puVar1 = puVar1 + 2;\n    puVar4 = puVar4 + 2;\n  }" { (expression_statement "*puVar4 = uVar5;" (assignment_expression "*puVar4 = uVar5" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "puVar4[1] = uVar6;" (assignment_expression "puVar4[1] = uVar6" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (puVar1 == (undefined4 *)&DAT_0001fce0) break;" if (parenthesized_expression "(puVar1 == (undefined4 *)&DAT_0001fce0)" ( (binary_expression "puVar1 == (undefined4 *)&DAT_0001fce0" identifier == (cast_expression "(undefined4 *)&DAT_0001fce0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0001fce0" & identifier))) )) (break_statement "break;" break ;)) (expression_statement "uVar5 = *puVar1;" (assignment_expression "uVar5 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "uVar6 = puVar1[1];" (assignment_expression "uVar6 = puVar1[1]" identifier = (subscript_expression "puVar1[1]" identifier [ number_literal ])) ;) (expression_statement "puVar1 = puVar1 + 2;" (assignment_expression "puVar1 = puVar1 + 2" identifier = (binary_expression "puVar1 + 2" identifier + number_literal)) ;) (expression_statement "puVar4 = puVar4 + 2;" (assignment_expression "puVar4 = puVar4 + 2" identifier = (binary_expression "puVar4 + 2" identifier + number_literal)) ;) })) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n    param_1[iVar2 * 2] = param_1[iVar2 * 2] ^ *(uint *)(param_2 + iVar2 * 8);\n    param_1[iVar2 * 2 + 1] = param_1[iVar2 * 2 + 1] ^ *(uint *)(param_2 + iVar2 * 8 + 4);\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 8);" do (compound_statement "{\n    param_1[iVar2 * 2] = param_1[iVar2 * 2] ^ *(uint *)(param_2 + iVar2 * 8);\n    param_1[iVar2 * 2 + 1] = param_1[iVar2 * 2 + 1] ^ *(uint *)(param_2 + iVar2 * 8 + 4);\n    iVar2 = iVar2 + 1;\n  }" { (expression_statement "param_1[iVar2 * 2] = param_1[iVar2 * 2] ^ *(uint *)(param_2 + iVar2 * 8);" (assignment_expression "param_1[iVar2 * 2] = param_1[iVar2 * 2] ^ *(uint *)(param_2 + iVar2 * 8)" (subscript_expression "param_1[iVar2 * 2]" identifier [ (binary_expression "iVar2 * 2" identifier * number_literal) ]) = (binary_expression "param_1[iVar2 * 2] ^ *(uint *)(param_2 + iVar2 * 8)" (subscript_expression "param_1[iVar2 * 2]" identifier [ (binary_expression "iVar2 * 2" identifier * number_literal) ]) ^ (pointer_expression "*(uint *)(param_2 + iVar2 * 8)" * (cast_expression "(uint *)(param_2 + iVar2 * 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + iVar2 * 8)" ( (binary_expression "param_2 + iVar2 * 8" identifier + (binary_expression "iVar2 * 8" identifier * number_literal)) )))))) ;) (expression_statement "param_1[iVar2 * 2 + 1] = param_1[iVar2 * 2 + 1] ^ *(uint *)(param_2 + iVar2 * 8 + 4);" (assignment_expression "param_1[iVar2 * 2 + 1] = param_1[iVar2 * 2 + 1] ^ *(uint *)(param_2 + iVar2 * 8 + 4)" (subscript_expression "param_1[iVar2 * 2 + 1]" identifier [ (binary_expression "iVar2 * 2 + 1" (binary_expression "iVar2 * 2" identifier * number_literal) + number_literal) ]) = (binary_expression "param_1[iVar2 * 2 + 1] ^ *(uint *)(param_2 + iVar2 * 8 + 4)" (subscript_expression "param_1[iVar2 * 2 + 1]" identifier [ (binary_expression "iVar2 * 2 + 1" (binary_expression "iVar2 * 2" identifier * number_literal) + number_literal) ]) ^ (pointer_expression "*(uint *)(param_2 + iVar2 * 8 + 4)" * (cast_expression "(uint *)(param_2 + iVar2 * 8 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + iVar2 * 8 + 4)" ( (binary_expression "param_2 + iVar2 * 8 + 4" (binary_expression "param_2 + iVar2 * 8" identifier + (binary_expression "iVar2 * 8" identifier * number_literal)) + number_literal) )))))) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != 8)" ( (binary_expression "iVar2 != 8" identifier != number_literal) )) ;) (expression_statement "param_1[0x39] = (uint)*param_2;" (assignment_expression "param_1[0x39] = (uint)*param_2" (subscript_expression "param_1[0x39]" identifier [ number_literal ]) = (binary_expression "(uint)*param_2" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )))) ;) (for_statement for ( (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )))) ))) ))) >> LIT)) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT - LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT))) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT * LIT) ]) = (binary_expression (subscript_expression IDENT [ (binary_expression IDENT * LIT) ]) ^ (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = (binary_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) ^ (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) + LIT) )))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00018880(undefined4 *param_1,byte *param_2)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  *param_1 = 0;\n  param_1[0x3a] = 0;\n  puVar1 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)param_1 + (0xec - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar1 = 0;\n    puVar1 = puVar1 + 1;\n  }\n  puVar1 = &DAT_0001fca8;\n  uVar5 = 0xf3bcc908;\n  uVar6 = 0x6a09e667;\n  puVar4 = param_1;\n  while( true ) {\n    *puVar4 = uVar5;\n    puVar4[1] = uVar6;\n    if (puVar1 == (undefined4 *)&DAT_0001fce0) break;\n    uVar5 = *puVar1;\n    uVar6 = puVar1[1];\n    puVar1 = puVar1 + 2;\n    puVar4 = puVar4 + 2;\n  }\n  iVar2 = 0;\n  do {\n    param_1[iVar2 * 2] = param_1[iVar2 * 2] ^ *(uint *)(param_2 + iVar2 * 8);\n    param_1[iVar2 * 2 + 1] = param_1[iVar2 * 2 + 1] ^ *(uint *)(param_2 + iVar2 * 8 + 4);\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 8);\n  param_1[0x39] = (uint)*param_2;\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00018880(undefined4 *param_1,byte *param_2)" (identifier "FUN_00018880") (parameter_list "(undefined4 *param_1,byte *param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "byte *param_2" (type_identifier "byte") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  \n  *param_1 = 0;\n  param_1[0x3a] = 0;\n  puVar1 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)param_1 + (0xec - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar1 = 0;\n    puVar1 = puVar1 + 1;\n  }\n  puVar1 = &DAT_0001fca8;\n  uVar5 = 0xf3bcc908;\n  uVar6 = 0x6a09e667;\n  puVar4 = param_1;\n  while( true ) {\n    *puVar4 = uVar5;\n    puVar4[1] = uVar6;\n    if (puVar1 == (undefined4 *)&DAT_0001fce0) break;\n    uVar5 = *puVar1;\n    uVar6 = puVar1[1];\n    puVar1 = puVar1 + 2;\n    puVar4 = puVar4 + 2;\n  }\n  iVar2 = 0;\n  do {\n    param_1[iVar2 * 2] = param_1[iVar2 * 2] ^ *(uint *)(param_2 + iVar2 * 8);\n    param_1[iVar2 * 2 + 1] = param_1[iVar2 * 2 + 1] ^ *(uint *)(param_2 + iVar2 * 8 + 4);\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 8);\n  param_1[0x39] = (uint)*param_2;\n  return 0;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x3a] = 0;" (assignment_expression "param_1[0x3a] = 0" (subscript_expression "param_1[0x3a]" (identifier "param_1") ([ "[") (number_literal "0x3a") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc);" (assignment_expression "puVar1 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)((uint)(param_1 + 1) & 0xfffffffc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((uint)(param_1 + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(param_1 + 1) & 0xfffffffc" (call_expression "(uint)(param_1 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")))) (; ";")) (for_statement "for (uVar3 = (uint)((int)param_1 + (0xec - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar1 = 0;\n    puVar1 = puVar1 + 1;\n  }" (for "for") (( "(") (assignment_expression "uVar3 = (uint)((int)param_1 + (0xec - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2" (identifier "uVar3") (= "=") (binary_expression "(uint)((int)param_1 + (0xec - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2" (call_expression "(uint)((int)param_1 + (0xec - (int)((uint)(param_1 + 1) & 0xfffffffc)))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((int)param_1 + (0xec - (int)((uint)(param_1 + 1) & 0xfffffffc)))" (( "(") (binary_expression "(int)param_1 + (0xec - (int)((uint)(param_1 + 1) & 0xfffffffc))" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (parenthesized_expression "(0xec - (int)((uint)(param_1 + 1) & 0xfffffffc))" (( "(") (binary_expression "0xec - (int)((uint)(param_1 + 1) & 0xfffffffc)" (number_literal "0xec") (- "-") (cast_expression "(int)((uint)(param_1 + 1) & 0xfffffffc)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((uint)(param_1 + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(param_1 + 1) & 0xfffffffc" (call_expression "(uint)(param_1 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")))) () ")"))) () ")"))) (>> ">>") (number_literal "2"))) (; ";") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "uVar3 = uVar3 - 1" (identifier "uVar3") (= "=") (binary_expression "uVar3 - 1" (identifier "uVar3") (- "-") (number_literal "1"))) () ")") (compound_statement "{\n    *puVar1 = 0;\n    puVar1 = puVar1 + 1;\n  }" ({ "{") (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1 = puVar1 + 1;" (assignment_expression "puVar1 = puVar1 + 1" (identifier "puVar1") (= "=") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "puVar1 = &DAT_0001fca8;" (assignment_expression "puVar1 = &DAT_0001fca8" (identifier "puVar1") (= "=") (pointer_expression "&DAT_0001fca8" (& "&") (identifier "DAT_0001fca8"))) (; ";")) (expression_statement "uVar5 = 0xf3bcc908;" (assignment_expression "uVar5 = 0xf3bcc908" (identifier "uVar5") (= "=") (number_literal "0xf3bcc908")) (; ";")) (expression_statement "uVar6 = 0x6a09e667;" (assignment_expression "uVar6 = 0x6a09e667" (identifier "uVar6") (= "=") (number_literal "0x6a09e667")) (; ";")) (expression_statement "puVar4 = param_1;" (assignment_expression "puVar4 = param_1" (identifier "puVar4") (= "=") (identifier "param_1")) (; ";")) (while_statement "while( true ) {\n    *puVar4 = uVar5;\n    puVar4[1] = uVar6;\n    if (puVar1 == (undefined4 *)&DAT_0001fce0) break;\n    uVar5 = *puVar1;\n    uVar6 = puVar1[1];\n    puVar1 = puVar1 + 2;\n    puVar4 = puVar4 + 2;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    *puVar4 = uVar5;\n    puVar4[1] = uVar6;\n    if (puVar1 == (undefined4 *)&DAT_0001fce0) break;\n    uVar5 = *puVar1;\n    uVar6 = puVar1[1];\n    puVar1 = puVar1 + 2;\n    puVar4 = puVar4 + 2;\n  }" ({ "{") (expression_statement "*puVar4 = uVar5;" (assignment_expression "*puVar4 = uVar5" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (identifier "uVar5")) (; ";")) (expression_statement "puVar4[1] = uVar6;" (assignment_expression "puVar4[1] = uVar6" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar6")) (; ";")) (if_statement "if (puVar1 == (undefined4 *)&DAT_0001fce0) break;" (if "if") (parenthesized_expression "(puVar1 == (undefined4 *)&DAT_0001fce0)" (( "(") (binary_expression "puVar1 == (undefined4 *)&DAT_0001fce0" (identifier "puVar1") (== "==") (cast_expression "(undefined4 *)&DAT_0001fce0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_0001fce0" (& "&") (identifier "DAT_0001fce0")))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar5 = *puVar1;" (assignment_expression "uVar5 = *puVar1" (identifier "uVar5") (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (; ";")) (expression_statement "uVar6 = puVar1[1];" (assignment_expression "uVar6 = puVar1[1]" (identifier "uVar6") (= "=") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "puVar1 = puVar1 + 2;" (assignment_expression "puVar1 = puVar1 + 2" (identifier "puVar1") (= "=") (binary_expression "puVar1 + 2" (identifier "puVar1") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "puVar4 = puVar4 + 2;" (assignment_expression "puVar4 = puVar4 + 2" (identifier "puVar4") (= "=") (binary_expression "puVar4 + 2" (identifier "puVar4") (+ "+") (number_literal "2"))) (; ";")) (} "}"))) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    param_1[iVar2 * 2] = param_1[iVar2 * 2] ^ *(uint *)(param_2 + iVar2 * 8);\n    param_1[iVar2 * 2 + 1] = param_1[iVar2 * 2 + 1] ^ *(uint *)(param_2 + iVar2 * 8 + 4);\n    iVar2 = iVar2 + 1;\n  } while (iVar2 != 8);" (do "do") (compound_statement "{\n    param_1[iVar2 * 2] = param_1[iVar2 * 2] ^ *(uint *)(param_2 + iVar2 * 8);\n    param_1[iVar2 * 2 + 1] = param_1[iVar2 * 2 + 1] ^ *(uint *)(param_2 + iVar2 * 8 + 4);\n    iVar2 = iVar2 + 1;\n  }" ({ "{") (expression_statement "param_1[iVar2 * 2] = param_1[iVar2 * 2] ^ *(uint *)(param_2 + iVar2 * 8);" (assignment_expression "param_1[iVar2 * 2] = param_1[iVar2 * 2] ^ *(uint *)(param_2 + iVar2 * 8)" (subscript_expression "param_1[iVar2 * 2]" (identifier "param_1") ([ "[") (binary_expression "iVar2 * 2" (identifier "iVar2") (* "*") (number_literal "2")) (] "]")) (= "=") (binary_expression "param_1[iVar2 * 2] ^ *(uint *)(param_2 + iVar2 * 8)" (subscript_expression "param_1[iVar2 * 2]" (identifier "param_1") ([ "[") (binary_expression "iVar2 * 2" (identifier "iVar2") (* "*") (number_literal "2")) (] "]")) (^ "^") (pointer_expression "*(uint *)(param_2 + iVar2 * 8)" (* "*") (cast_expression "(uint *)(param_2 + iVar2 * 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + iVar2 * 8)" (( "(") (binary_expression "param_2 + iVar2 * 8" (identifier "param_2") (+ "+") (binary_expression "iVar2 * 8" (identifier "iVar2") (* "*") (number_literal "8"))) () ")")))))) (; ";")) (expression_statement "param_1[iVar2 * 2 + 1] = param_1[iVar2 * 2 + 1] ^ *(uint *)(param_2 + iVar2 * 8 + 4);" (assignment_expression "param_1[iVar2 * 2 + 1] = param_1[iVar2 * 2 + 1] ^ *(uint *)(param_2 + iVar2 * 8 + 4)" (subscript_expression "param_1[iVar2 * 2 + 1]" (identifier "param_1") ([ "[") (binary_expression "iVar2 * 2 + 1" (binary_expression "iVar2 * 2" (identifier "iVar2") (* "*") (number_literal "2")) (+ "+") (number_literal "1")) (] "]")) (= "=") (binary_expression "param_1[iVar2 * 2 + 1] ^ *(uint *)(param_2 + iVar2 * 8 + 4)" (subscript_expression "param_1[iVar2 * 2 + 1]" (identifier "param_1") ([ "[") (binary_expression "iVar2 * 2 + 1" (binary_expression "iVar2 * 2" (identifier "iVar2") (* "*") (number_literal "2")) (+ "+") (number_literal "1")) (] "]")) (^ "^") (pointer_expression "*(uint *)(param_2 + iVar2 * 8 + 4)" (* "*") (cast_expression "(uint *)(param_2 + iVar2 * 8 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + iVar2 * 8 + 4)" (( "(") (binary_expression "param_2 + iVar2 * 8 + 4" (binary_expression "param_2 + iVar2 * 8" (identifier "param_2") (+ "+") (binary_expression "iVar2 * 8" (identifier "iVar2") (* "*") (number_literal "8"))) (+ "+") (number_literal "4")) () ")")))))) (; ";")) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar2 != 8)" (( "(") (binary_expression "iVar2 != 8" (identifier "iVar2") (!= "!=") (number_literal "8")) () ")")) (; ";")) (expression_statement "param_1[0x39] = (uint)*param_2;" (assignment_expression "param_1[0x39] = (uint)*param_2" (subscript_expression "param_1[0x39]" (identifier "param_1") ([ "[") (number_literal "0x39") (] "]")) (= "=") (binary_expression "(uint)*param_2" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "param_2"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

int function_1(type_1 *S,type_2 *P)

{
  type_3 *puVar1;
  uint64_t *var_3;
  uint64_t *var_4;
  int var_5;
  type_3 var_1;
  type_1 *pbVar6;
  type_4 uVar7;
  type_4 *var_2;
  type_4 uVar9;
  
  *(type_4 *)S->h = 0;
  *(type_4 *)&S->last_node = 0;
  var_2 = (type_4 *)((type_3)((int)S->h + 4U) & 0xfffffffc);
  var_1 = (type_3)((int)S + (0xec - (int)var_2)) >> 2;
  for (; var_1 != 0; var_1 = var_1 - 1) {
    *var_2 = 0;
    var_2 = var_2 + 1;
  }
  uVar7 = 0xf3bcc908;
  uVar9 = 0x6a09e667;
  pbVar6 = S;
  var_3 = blake2b_IV;
  while( true ) {
    var_4 = var_3 + 1;
    *(type_4 *)pbVar6->h = uVar7;
    *(type_4 *)((int)pbVar6->h + 4) = uVar9;
    if (var_4 == (uint64_t *)&DAT_0001fce0) break;
    uVar7 = (type_4)*var_4;
    uVar9 = *(type_4 *)((int)var_3 + 0xc);
    pbVar6 = (type_1 *)(pbVar6->h + 1);
    var_3 = var_4;
  }
  var_5 = 0;
  do {
    *(type_3 *)(S->h + var_5) = (type_3)S->h[var_5] ^ *(type_3 *)(P->reserved + var_5 * 8 + -0x12);
    puVar1 = (type_3 *)((int)S->h + var_5 * 8 + 4);
    *puVar1 = *puVar1 ^ *(type_3 *)(P->reserved + var_5 * 8 + -0xe);
    var_5 = var_5 + 1;
  } while (var_5 != 8);
  S->outlen = (type_3)P->digest_length;
  return 0;
}


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

/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

undefined4 MASKED(undefined4 *param_1,byte *param_2)

{
  undefined4 *puVar1;
  int iVar2;
  uint uVar3;
  undefined4 *puVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  
  *param_1 = 0;
  param_1[0x3a] = 0;
  puVar1 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc);
  for (uVar3 = (uint)((int)param_1 + (0xec - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2;
      uVar3 != 0; uVar3 = uVar3 - 1) {
    *puVar1 = 0;
    puVar1 = puVar1 + 1;
  }
  puVar1 = &DAT_0001fca8;
  uVar5 = 0xf3bcc908;
  uVar6 = 0x6a09e667;
  puVar4 = param_1;
  while( true ) {
    *puVar4 = uVar5;
    puVar4[1] = uVar6;
    if (puVar1 == (undefined4 *)&DAT_0001fce0) break;
    uVar5 = *puVar1;
    uVar6 = puVar1[1];
    puVar1 = puVar1 + 2;
    puVar4 = puVar4 + 2;
  }
  iVar2 = 0;
  do {
    param_1[iVar2 * 2] = param_1[iVar2 * 2] ^ *(uint *)(param_2 + iVar2 * 8);
    param_1[iVar2 * 2 + 1] = param_1[iVar2 * 2 + 1] ^ *(uint *)(param_2 + iVar2 * 8 + 4);
    iVar2 = iVar2 + 1;
  } while (iVar2 != 8);
  param_1[0x39] = (uint)*param_2;
  return 0;
}

