
int _tweak_uncrypt(uchar *C,uchar *P,uchar *T,symmetric_xts *xts)

{
  int iVar1;
  
  *(ulong *)P = *(ulong *)C ^ *(ulong *)T;
  *(ulong *)(P + 8) = *(ulong *)(C + 8) ^ *(ulong *)(T + 8);
  iVar1 = (**(code **)(PTR_cipher_descriptor_001dded0 + (long)xts->cipher * 0xc0 + 0x30))(P,P);
  *(ulong *)P = *(ulong *)P ^ *(ulong *)T;
  *(ulong *)(P + 8) = *(ulong *)(P + 8) ^ *(ulong *)(T + 8);
  xts_mult_x(T);
  return iVar1;
}



undefined4 FUN_0016c410(ulong *param_1,ulong *param_2,ulong *param_3,long param_4)

{
  undefined4 uVar1;
  
  *param_2 = *param_1 ^ *param_3;
  param_2[1] = param_1[1] ^ param_3[1];
  uVar1 = (**(code **)(PTR_cipher_descriptor_001dded0 +
                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30))(param_2,param_2);
  *param_2 = *param_2 ^ *param_3;
  param_2[1] = param_2[1] ^ param_3[1];
  xts_mult_x(param_3);
  return uVar1;
}


PUSH R12
PUSH RBP
MOV RBP,RDX
MOV RDX,RCX
PUSH RBX
MOV RAX,qword ptr [RDI]
MOV RBX,RSI
XOR RAX,qword ptr [RBP]
MOV qword ptr [RSI],RAX
MOV RCX,qword ptr [RDI + 0x8]
MOV RDI,RBX
XOR RCX,qword ptr [RBP + 0x8]
MOV qword ptr [RSI + 0x8],RCX
MOVSXD RSI,dword ptr [RDX + 0x2140]
LEA R12,[RSI + RSI*0x2]
MOV RSI,RBX
SHL R12,0x6
ADD R12,qword ptr [0x001dded0]
CALL qword ptr [R12 + 0x30]
MOV RDX,qword ptr [RBP]
XOR qword ptr [RBX],RDX
MOV RDI,qword ptr [RBP + 0x8]
XOR qword ptr [RBX + 0x8],RDI
MOV R12D,EAX
MOV RDI,RBP
CALL 0x00113b00
MOV EAX,R12D
POP RBX
POP RBP
POP R12
RET
(translation_unit "undefined4 FUN_0016c410(ulong *param_1,ulong *param_2,ulong *param_3,long param_4)\n\n{\n  undefined4 uVar1;\n  \n  *param_2 = *param_1 ^ *param_3;\n  param_2[1] = param_1[1] ^ param_3[1];\n  uVar1 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30))(param_2,param_2);\n  *param_2 = *param_2 ^ *param_3;\n  param_2[1] = param_2[1] ^ param_3[1];\n  xts_mult_x(param_3);\n  return uVar1;\n}\n\n" (function_definition "undefined4 FUN_0016c410(ulong *param_1,ulong *param_2,ulong *param_3,long param_4)\n\n{\n  undefined4 uVar1;\n  \n  *param_2 = *param_1 ^ *param_3;\n  param_2[1] = param_1[1] ^ param_3[1];\n  uVar1 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30))(param_2,param_2);\n  *param_2 = *param_2 ^ *param_3;\n  param_2[1] = param_2[1] ^ param_3[1];\n  xts_mult_x(param_3);\n  return uVar1;\n}" type_identifier (function_declarator "FUN_0016c410(ulong *param_1,ulong *param_2,ulong *param_3,long param_4)" identifier (parameter_list "(ulong *param_1,ulong *param_2,ulong *param_3,long param_4)" ( (parameter_declaration "ulong *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "ulong *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "ulong *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "long param_4" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  *param_2 = *param_1 ^ *param_3;\n  param_2[1] = param_1[1] ^ param_3[1];\n  uVar1 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30))(param_2,param_2);\n  *param_2 = *param_2 ^ *param_3;\n  param_2[1] = param_2[1] ^ param_3[1];\n  xts_mult_x(param_3);\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "*param_2 = *param_1 ^ *param_3;" (assignment_expression "*param_2 = *param_1 ^ *param_3" (pointer_expression "*param_2" * identifier) = (binary_expression "*param_1 ^ *param_3" (pointer_expression "*param_1" * identifier) ^ (pointer_expression "*param_3" * identifier))) ;) (expression_statement "param_2[1] = param_1[1] ^ param_3[1];" (assignment_expression "param_2[1] = param_1[1] ^ param_3[1]" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "param_1[1] ^ param_3[1]" (subscript_expression "param_1[1]" identifier [ number_literal ]) ^ (subscript_expression "param_3[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar1 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30))(param_2,param_2);" (assignment_expression "uVar1 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30))(param_2,param_2)" identifier = (call_expression "(**(code **)(PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30))(param_2,param_2)" (parenthesized_expression "(**(code **)(PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30))" ( (pointer_expression "**(code **)(PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30)" * (pointer_expression "*(code **)(PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30)" * (cast_expression "(code **)(PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30)" ( (binary_expression "PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30" (binary_expression "PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0" identifier + (binary_expression "(long)*(int *)(param_4 + 0x2140) * 0xc0" (cast_expression "(long)*(int *)(param_4 + 0x2140)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)(param_4 + 0x2140)" * (cast_expression "(int *)(param_4 + 0x2140)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x2140)" ( (binary_expression "param_4 + 0x2140" identifier + number_literal) ))))) * number_literal)) + number_literal) ))))) )) (argument_list "(param_2,param_2)" ( identifier , identifier )))) ;) (expression_statement "*param_2 = *param_2 ^ *param_3;" (assignment_expression "*param_2 = *param_2 ^ *param_3" (pointer_expression "*param_2" * identifier) = (binary_expression "*param_2 ^ *param_3" (pointer_expression "*param_2" * identifier) ^ (pointer_expression "*param_3" * identifier))) ;) (expression_statement "param_2[1] = param_2[1] ^ param_3[1];" (assignment_expression "param_2[1] = param_2[1] ^ param_3[1]" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "param_2[1] ^ param_3[1]" (subscript_expression "param_2[1]" identifier [ number_literal ]) ^ (subscript_expression "param_3[1]" identifier [ number_literal ]))) ;) (expression_statement "xts_mult_x(param_3);" (call_expression "xts_mult_x(param_3)" identifier (argument_list "(param_3)" ( identifier ))) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "int _tweak_uncrypt(uchar *C,uchar *P,uchar *T,symmetric_xts *xts)\n\n{\n  int iVar1;\n  \n  *(ulong *)P = *(ulong *)C ^ *(ulong *)T;\n  *(ulong *)(P + 8) = *(ulong *)(C + 8) ^ *(ulong *)(T + 8);\n  iVar1 = (**(code **)(PTR_cipher_descriptor_001dded0 + (long)xts->cipher * 0xc0 + 0x30))(P,P);\n  *(ulong *)P = *(ulong *)P ^ *(ulong *)T;\n  *(ulong *)(P + 8) = *(ulong *)(P + 8) ^ *(ulong *)(T + 8);\n  xts_mult_x(T);\n  return iVar1;\n}\n\n" (function_definition "int _tweak_uncrypt(uchar *C,uchar *P,uchar *T,symmetric_xts *xts)\n\n{\n  int iVar1;\n  \n  *(ulong *)P = *(ulong *)C ^ *(ulong *)T;\n  *(ulong *)(P + 8) = *(ulong *)(C + 8) ^ *(ulong *)(T + 8);\n  iVar1 = (**(code **)(PTR_cipher_descriptor_001dded0 + (long)xts->cipher * 0xc0 + 0x30))(P,P);\n  *(ulong *)P = *(ulong *)P ^ *(ulong *)T;\n  *(ulong *)(P + 8) = *(ulong *)(P + 8) ^ *(ulong *)(T + 8);\n  xts_mult_x(T);\n  return iVar1;\n}" primitive_type (function_declarator "_tweak_uncrypt(uchar *C,uchar *P,uchar *T,symmetric_xts *xts)" identifier (parameter_list "(uchar *C,uchar *P,uchar *T,symmetric_xts *xts)" ( (parameter_declaration "uchar *C" type_identifier (pointer_declarator "*C" * identifier)) , (parameter_declaration "uchar *P" type_identifier (pointer_declarator "*P" * identifier)) , (parameter_declaration "uchar *T" type_identifier (pointer_declarator "*T" * identifier)) , (parameter_declaration "symmetric_xts *xts" type_identifier (pointer_declarator "*xts" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  *(ulong *)P = *(ulong *)C ^ *(ulong *)T;\n  *(ulong *)(P + 8) = *(ulong *)(C + 8) ^ *(ulong *)(T + 8);\n  iVar1 = (**(code **)(PTR_cipher_descriptor_001dded0 + (long)xts->cipher * 0xc0 + 0x30))(P,P);\n  *(ulong *)P = *(ulong *)P ^ *(ulong *)T;\n  *(ulong *)(P + 8) = *(ulong *)(P + 8) ^ *(ulong *)(T + 8);\n  xts_mult_x(T);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "*(ulong *)P = *(ulong *)C ^ *(ulong *)T;" (assignment_expression "*(ulong *)P = *(ulong *)C ^ *(ulong *)T" (pointer_expression "*(ulong *)P" * (cast_expression "(ulong *)P" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "*(ulong *)C ^ *(ulong *)T" (pointer_expression "*(ulong *)C" * (cast_expression "(ulong *)C" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ^ (pointer_expression "*(ulong *)T" * (cast_expression "(ulong *)T" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)))) ;) (expression_statement "*(ulong *)(P + 8) = *(ulong *)(C + 8) ^ *(ulong *)(T + 8);" (assignment_expression "*(ulong *)(P + 8) = *(ulong *)(C + 8) ^ *(ulong *)(T + 8)" (pointer_expression "*(ulong *)(P + 8)" * (cast_expression "(ulong *)(P + 8)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(P + 8)" ( (binary_expression "P + 8" identifier + number_literal) )))) = (binary_expression "*(ulong *)(C + 8) ^ *(ulong *)(T + 8)" (pointer_expression "*(ulong *)(C + 8)" * (cast_expression "(ulong *)(C + 8)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(C + 8)" ( (binary_expression "C + 8" identifier + number_literal) )))) ^ (pointer_expression "*(ulong *)(T + 8)" * (cast_expression "(ulong *)(T + 8)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(T + 8)" ( (binary_expression "T + 8" identifier + number_literal) )))))) ;) (expression_statement "iVar1 = (**(code **)(PTR_cipher_descriptor_001dded0 + (long)xts->cipher * 0xc0 + 0x30))(P,P);" (assignment_expression "iVar1 = (**(code **)(PTR_cipher_descriptor_001dded0 + (long)xts->cipher * 0xc0 + 0x30))(P,P)" identifier = (call_expression "(**(code **)(PTR_cipher_descriptor_001dded0 + (long)xts->cipher * 0xc0 + 0x30))(P,P)" (parenthesized_expression "(**(code **)(PTR_cipher_descriptor_001dded0 + (long)xts->cipher * 0xc0 + 0x30))" ( (pointer_expression "**(code **)(PTR_cipher_descriptor_001dded0 + (long)xts->cipher * 0xc0 + 0x30)" * (pointer_expression "*(code **)(PTR_cipher_descriptor_001dded0 + (long)xts->cipher * 0xc0 + 0x30)" * (cast_expression "(code **)(PTR_cipher_descriptor_001dded0 + (long)xts->cipher * 0xc0 + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_cipher_descriptor_001dded0 + (long)xts->cipher * 0xc0 + 0x30)" ( (binary_expression "PTR_cipher_descriptor_001dded0 + (long)xts->cipher * 0xc0 + 0x30" (binary_expression "PTR_cipher_descriptor_001dded0 + (long)xts->cipher * 0xc0" identifier + (binary_expression "(long)xts->cipher * 0xc0" (cast_expression "(long)xts->cipher" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "xts->cipher" identifier -> field_identifier)) * number_literal)) + number_literal) ))))) )) (argument_list "(P,P)" ( identifier , identifier )))) ;) (expression_statement "*(ulong *)P = *(ulong *)P ^ *(ulong *)T;" (assignment_expression "*(ulong *)P = *(ulong *)P ^ *(ulong *)T" (pointer_expression "*(ulong *)P" * (cast_expression "(ulong *)P" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "*(ulong *)P ^ *(ulong *)T" (pointer_expression "*(ulong *)P" * (cast_expression "(ulong *)P" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ^ (pointer_expression "*(ulong *)T" * (cast_expression "(ulong *)T" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)))) ;) (expression_statement "*(ulong *)(P + 8) = *(ulong *)(P + 8) ^ *(ulong *)(T + 8);" (assignment_expression "*(ulong *)(P + 8) = *(ulong *)(P + 8) ^ *(ulong *)(T + 8)" (pointer_expression "*(ulong *)(P + 8)" * (cast_expression "(ulong *)(P + 8)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(P + 8)" ( (binary_expression "P + 8" identifier + number_literal) )))) = (binary_expression "*(ulong *)(P + 8) ^ *(ulong *)(T + 8)" (pointer_expression "*(ulong *)(P + 8)" * (cast_expression "(ulong *)(P + 8)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(P + 8)" ( (binary_expression "P + 8" identifier + number_literal) )))) ^ (pointer_expression "*(ulong *)(T + 8)" * (cast_expression "(ulong *)(T + 8)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(T + 8)" ( (binary_expression "T + 8" identifier + number_literal) )))))) ;) (expression_statement "xts_mult_x(T);" (call_expression "xts_mult_x(T)" identifier (argument_list "(T)" ( identifier ))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "undefined4 FUN_0016c410(ulong *param_1,ulong *param_2,ulong *param_3,long param_4)\n\n{\n  undefined4 uVar1;\n  \n  *param_2 = *param_1 ^ *param_3;\n  param_2[1] = param_1[1] ^ param_3[1];\n  uVar1 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30))(param_2,param_2);\n  *param_2 = *param_2 ^ *param_3;\n  param_2[1] = param_2[1] ^ param_3[1];\n  xts_mult_x(param_3);\n  return uVar1;\n}\n\n" (function_definition "undefined4 FUN_0016c410(ulong *param_1,ulong *param_2,ulong *param_3,long param_4)\n\n{\n  undefined4 uVar1;\n  \n  *param_2 = *param_1 ^ *param_3;\n  param_2[1] = param_1[1] ^ param_3[1];\n  uVar1 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30))(param_2,param_2);\n  *param_2 = *param_2 ^ *param_3;\n  param_2[1] = param_2[1] ^ param_3[1];\n  xts_mult_x(param_3);\n  return uVar1;\n}" type_identifier (function_declarator "FUN_0016c410(ulong *param_1,ulong *param_2,ulong *param_3,long param_4)" identifier (parameter_list "(ulong *param_1,ulong *param_2,ulong *param_3,long param_4)" ( (parameter_declaration "ulong *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "ulong *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "ulong *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "long param_4" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  *param_2 = *param_1 ^ *param_3;\n  param_2[1] = param_1[1] ^ param_3[1];\n  uVar1 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30))(param_2,param_2);\n  *param_2 = *param_2 ^ *param_3;\n  param_2[1] = param_2[1] ^ param_3[1];\n  xts_mult_x(param_3);\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "*param_2 = *param_1 ^ *param_3;" (assignment_expression "*param_2 = *param_1 ^ *param_3" (pointer_expression "*param_2" * identifier) = (binary_expression "*param_1 ^ *param_3" (pointer_expression "*param_1" * identifier) ^ (pointer_expression "*param_3" * identifier))) ;) (expression_statement "param_2[1] = param_1[1] ^ param_3[1];" (assignment_expression "param_2[1] = param_1[1] ^ param_3[1]" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "param_1[1] ^ param_3[1]" (subscript_expression "param_1[1]" identifier [ number_literal ]) ^ (subscript_expression "param_3[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar1 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30))(param_2,param_2);" (assignment_expression "uVar1 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30))(param_2,param_2)" identifier = (call_expression "(**(code **)(PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30))(param_2,param_2)" (parenthesized_expression "(**(code **)(PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30))" ( (pointer_expression "**(code **)(PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30)" * (pointer_expression "*(code **)(PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30)" * (cast_expression "(code **)(PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30)" ( (binary_expression "PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30" (binary_expression "PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0" identifier + (binary_expression "(long)*(int *)(param_4 + 0x2140) * 0xc0" (cast_expression "(long)*(int *)(param_4 + 0x2140)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)(param_4 + 0x2140)" * (cast_expression "(int *)(param_4 + 0x2140)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x2140)" ( (binary_expression "param_4 + 0x2140" identifier + number_literal) ))))) * number_literal)) + number_literal) ))))) )) (argument_list "(param_2,param_2)" ( identifier , identifier )))) ;) (expression_statement "*param_2 = *param_2 ^ *param_3;" (assignment_expression "*param_2 = *param_2 ^ *param_3" (pointer_expression "*param_2" * identifier) = (binary_expression "*param_2 ^ *param_3" (pointer_expression "*param_2" * identifier) ^ (pointer_expression "*param_3" * identifier))) ;) (expression_statement "param_2[1] = param_2[1] ^ param_3[1];" (assignment_expression "param_2[1] = param_2[1] ^ param_3[1]" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "param_2[1] ^ param_3[1]" (subscript_expression "param_2[1]" identifier [ number_literal ]) ^ (subscript_expression "param_3[1]" identifier [ number_literal ]))) ;) (expression_statement "xts_mult_x(param_3);" (call_expression "xts_mult_x(param_3)" identifier (argument_list "(param_3)" ( identifier ))) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) ^ (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) ^ (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) * LIT)) + LIT) ))))) )) (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) ^ (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) ^ (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_0016c410(ulong *param_1,ulong *param_2,ulong *param_3,long param_4)\n\n{\n  undefined4 uVar1;\n  \n  *param_2 = *param_1 ^ *param_3;\n  param_2[1] = param_1[1] ^ param_3[1];\n  uVar1 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30))(param_2,param_2);\n  *param_2 = *param_2 ^ *param_3;\n  param_2[1] = param_2[1] ^ param_3[1];\n  xts_mult_x(param_3);\n  return uVar1;\n}" (type_identifier "undefined4") (function_declarator "FUN_0016c410(ulong *param_1,ulong *param_2,ulong *param_3,long param_4)" (identifier "FUN_0016c410") (parameter_list "(ulong *param_1,ulong *param_2,ulong *param_3,long param_4)" (( "(") (parameter_declaration "ulong *param_1" (type_identifier "ulong") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "ulong *param_2" (type_identifier "ulong") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "ulong *param_3" (type_identifier "ulong") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "long param_4" (sized_type_specifier "long" (long "long")) (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  *param_2 = *param_1 ^ *param_3;\n  param_2[1] = param_1[1] ^ param_3[1];\n  uVar1 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30))(param_2,param_2);\n  *param_2 = *param_2 ^ *param_3;\n  param_2[1] = param_2[1] ^ param_3[1];\n  xts_mult_x(param_3);\n  return uVar1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (expression_statement "*param_2 = *param_1 ^ *param_3;" (assignment_expression "*param_2 = *param_1 ^ *param_3" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "*param_1 ^ *param_3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (^ "^") (pointer_expression "*param_3" (* "*") (identifier "param_3")))) (; ";")) (expression_statement "param_2[1] = param_1[1] ^ param_3[1];" (assignment_expression "param_2[1] = param_1[1] ^ param_3[1]" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "param_1[1] ^ param_3[1]" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (^ "^") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "uVar1 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30))(param_2,param_2);" (assignment_expression "uVar1 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30))(param_2,param_2)" (identifier "uVar1") (= "=") (call_expression "(**(code **)(PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30))(param_2,param_2)" (parenthesized_expression "(**(code **)(PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30))" (( "(") (pointer_expression "**(code **)(PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30)" (* "*") (pointer_expression "*(code **)(PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30)" (* "*") (cast_expression "(code **)(PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30)" (( "(") (binary_expression "PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30" (binary_expression "PTR_cipher_descriptor_001dded0 +\n                      (long)*(int *)(param_4 + 0x2140) * 0xc0" (identifier "PTR_cipher_descriptor_001dded0") (+ "+") (binary_expression "(long)*(int *)(param_4 + 0x2140) * 0xc0" (cast_expression "(long)*(int *)(param_4 + 0x2140)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (pointer_expression "*(int *)(param_4 + 0x2140)" (* "*") (cast_expression "(int *)(param_4 + 0x2140)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0x2140)" (( "(") (binary_expression "param_4 + 0x2140" (identifier "param_4") (+ "+") (number_literal "0x2140")) () ")"))))) (* "*") (number_literal "0xc0"))) (+ "+") (number_literal "0x30")) () ")"))))) () ")")) (argument_list "(param_2,param_2)" (( "(") (identifier "param_2") (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "*param_2 = *param_2 ^ *param_3;" (assignment_expression "*param_2 = *param_2 ^ *param_3" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "*param_2 ^ *param_3" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (^ "^") (pointer_expression "*param_3" (* "*") (identifier "param_3")))) (; ";")) (expression_statement "param_2[1] = param_2[1] ^ param_3[1];" (assignment_expression "param_2[1] = param_2[1] ^ param_3[1]" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "param_2[1] ^ param_3[1]" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (^ "^") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "xts_mult_x(param_3);" (call_expression "xts_mult_x(param_3)" (identifier "xts_mult_x") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")"))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

int function_1(type_1 *var_2,type_1 *var_1,type_1 *var_3,type_2 *xts)

{
  int iVar1;
  
  *(type_3 *)var_1 = *(type_3 *)var_2 ^ *(type_3 *)var_3;
  *(type_3 *)(var_1 + 8) = *(type_3 *)(var_2 + 8) ^ *(type_3 *)(var_3 + 8);
  iVar1 = (**(type_4 **)(var_4 + (long)xts->cipher * 0xc0 + 0x30))(var_1,var_1);
  *(type_3 *)var_1 = *(type_3 *)var_1 ^ *(type_3 *)var_3;
  *(type_3 *)(var_1 + 8) = *(type_3 *)(var_1 + 8) ^ *(type_3 *)(var_3 + 8);
  var_5(var_3);
  return iVar1;
}


(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))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (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: (number_literal)))))) right: (number_literal))) right: (number_literal))))))) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (identifier)))))

undefined4 MASKED(ulong *param_1,ulong *param_2,ulong *param_3,long param_4)

{
  undefined4 uVar1;
  
  *param_2 = *param_1 ^ *param_3;
  param_2[1] = param_1[1] ^ param_3[1];
  uVar1 = (**(code **)(PTR_cipher_descriptor_001dded0 +
                      (long)*(int *)(param_4 + 0x2140) * 0xc0 + 0x30))(param_2,param_2);
  *param_2 = *param_2 ^ *param_3;
  param_2[1] = param_2[1] ^ param_3[1];
  xts_mult_x(param_3);
  return uVar1;
}

