
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void * sha1_finish_ctx(sha1_ctx *ctx,void *resbuf)

{
  uint uVar1;
  uint uVar2;
  void *pvVar3;
  sha1_uint32 sVar4;
  uint uVar5;
  
  uVar1 = ctx->buflen;
  sVar4 = ctx->total[1];
  uVar5 = ctx->total[0];
  uVar2 = uVar1 + ctx->total[0];
  ctx->total[0] = uVar2;
  if (CARRY4(uVar1,uVar5)) {
    sVar4 = sVar4 + 1;
    ctx->total[1] = sVar4;
  }
  uVar5 = sVar4 << 3;
  ctx->buffer[(-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e] =
       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |
       (uVar5 | uVar2 >> 0x1d) << 0x18;
  ctx->buffer[(-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f] =
       uVar2 * 8 >> 0x18 | (uVar2 & 0x1fe0) << 0xb | uVar2 * 0x8000000 | uVar2 * 8 >> 8 & 0xff00;
  memcpy((void *)((int)ctx->buffer + uVar1),fillbuf,
         ((-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78) - uVar1);
  sha1_process_block(ctx->buffer,(-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x80,ctx);
  pvVar3 = sha1_read_ctx(ctx,resbuf);
  return pvVar3;
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void FUN_001e0ae0(int param_1)

{
  uint uVar1;
  uint uVar2;
  int iVar3;
  uint uVar4;
  
  uVar1 = *(uint *)(param_1 + 0x1c);
  iVar3 = *(int *)(param_1 + 0x18);
  uVar4 = *(uint *)(param_1 + 0x14);
  uVar2 = uVar1 + *(uint *)(param_1 + 0x14);
  *(uint *)(param_1 + 0x14) = uVar2;
  if (CARRY4(uVar1,uVar4)) {
    iVar3 = iVar3 + 1;
    *(int *)(param_1 + 0x18) = iVar3;
  }
  uVar4 = iVar3 << 3;
  *(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e) * 4) =
       uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 |
       (uVar4 | uVar2 >> 0x1d) << 0x18;
  *(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f) * 4) =
       uVar2 * 8 >> 0x18 | (uVar2 & 0x1fe0) << 0xb | uVar2 * 0x8000000 | uVar2 * 8 >> 8 & 0xff00;
  memcpy((void *)(param_1 + 0x20 + uVar1),&UNK_002a24e0,
         ((-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78) - uVar1);
  FUN_001df990(param_1 + 0x20,(-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x80,param_1);
  FUN_001df960();
  return;
}


CALL 0x000559e6
ADD EAX,0x1ae51b
PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x30]
MOV dword ptr [ESP],EAX
MOV EAX,dword ptr [ESP + 0x34]
MOV EDX,dword ptr [ESI + 0x1c]
MOV ECX,dword ptr [ESI + 0x18]
MOV dword ptr [ESP + 0xc],EAX
CMP EDX,0x38
SBB EAX,EAX
AND EAX,0xffffffc0
SUB EAX,-0x80
CMP EDX,0x38
MOV dword ptr [ESP + 0x8],EAX
SBB EAX,EAX
AND EAX,0xffffffc0
ADD EAX,0x78
CMP EDX,0x38
SBB EBX,EBX
MOV dword ptr [ESP + 0x4],EAX
MOV EAX,EDX
AND EBX,0xfffffff0
ADD EBX,0x1f
CMP EDX,0x38
SBB EDI,EDI
AND EDI,0xfffffff0
ADD EDI,0x1e
ADD EAX,dword ptr [ESI + 0x14]
MOV dword ptr [ESI + 0x14],EAX
JNC 0x001e0b4a
ADD ECX,0x1
MOV dword ptr [ESI + 0x18],ECX
MOV EBP,EAX
SHL ECX,0x3
SUB ESP,0x4
SHR EBP,0x1d
OR ECX,EBP
MOV EBP,EAX
BSWAP ECX
MOV dword ptr [ESI + EDI*0x4 + 0x20],ECX
LEA ECX,[EAX*0x8 + 0x0]
SHL EBP,0xb
MOV EDI,ECX
AND EBP,0xff0000
SHR ECX,0x8
SHR EDI,0x18
SHL EAX,0x1b
OR EDI,EBP
OR EDI,EAX
MOV EAX,ECX
AND EAX,0xff00
OR EDI,EAX
MOV dword ptr [ESI + EBX*0x4 + 0x20],EDI
MOV EBX,dword ptr [ESP + 0x8]
LEA EDI,[ESI + 0x20]
LEA EAX,[EDI + EDX*0x1]
SUB EBX,EDX
PUSH EBX
MOV EBX,dword ptr [ESP + 0x8]
LEA EDX,[EBX + 0xfff134e0]
PUSH EDX
PUSH EAX
CALL 0x000295c0
ADD ESP,0xc
PUSH ESI
PUSH dword ptr [ESP + 0x10]
PUSH EDI
CALL 0x001df990
MOV EAX,dword ptr [ESP + 0x1c]
MOV dword ptr [ESP + 0x40],ESI
MOV dword ptr [ESP + 0x44],EAX
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
JMP 0x001df960
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nvoid FUN_001e0ae0(int param_1)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  \n  uVar1 = *(uint *)(param_1 + 0x1c);\n  iVar3 = *(int *)(param_1 + 0x18);\n  uVar4 = *(uint *)(param_1 + 0x14);\n  uVar2 = uVar1 + *(uint *)(param_1 + 0x14);\n  *(uint *)(param_1 + 0x14) = uVar2;\n  if (CARRY4(uVar1,uVar4)) {\n    iVar3 = iVar3 + 1;\n    *(int *)(param_1 + 0x18) = iVar3;\n  }\n  uVar4 = iVar3 << 3;\n  *(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e) * 4) =\n       uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 |\n       (uVar4 | uVar2 >> 0x1d) << 0x18;\n  *(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f) * 4) =\n       uVar2 * 8 >> 0x18 | (uVar2 & 0x1fe0) << 0xb | uVar2 * 0x8000000 | uVar2 * 8 >> 8 & 0xff00;\n  memcpy((void *)(param_1 + 0x20 + uVar1),&UNK_002a24e0,\n         ((-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78) - uVar1);\n  FUN_001df990(param_1 + 0x20,(-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x80,param_1);\n  FUN_001df960();\n  return;\n}\n\n" comment (function_definition "void FUN_001e0ae0(int param_1)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  \n  uVar1 = *(uint *)(param_1 + 0x1c);\n  iVar3 = *(int *)(param_1 + 0x18);\n  uVar4 = *(uint *)(param_1 + 0x14);\n  uVar2 = uVar1 + *(uint *)(param_1 + 0x14);\n  *(uint *)(param_1 + 0x14) = uVar2;\n  if (CARRY4(uVar1,uVar4)) {\n    iVar3 = iVar3 + 1;\n    *(int *)(param_1 + 0x18) = iVar3;\n  }\n  uVar4 = iVar3 << 3;\n  *(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e) * 4) =\n       uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 |\n       (uVar4 | uVar2 >> 0x1d) << 0x18;\n  *(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f) * 4) =\n       uVar2 * 8 >> 0x18 | (uVar2 & 0x1fe0) << 0xb | uVar2 * 0x8000000 | uVar2 * 8 >> 8 & 0xff00;\n  memcpy((void *)(param_1 + 0x20 + uVar1),&UNK_002a24e0,\n         ((-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78) - uVar1);\n  FUN_001df990(param_1 + 0x20,(-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x80,param_1);\n  FUN_001df960();\n  return;\n}" primitive_type (function_declarator "FUN_001e0ae0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  \n  uVar1 = *(uint *)(param_1 + 0x1c);\n  iVar3 = *(int *)(param_1 + 0x18);\n  uVar4 = *(uint *)(param_1 + 0x14);\n  uVar2 = uVar1 + *(uint *)(param_1 + 0x14);\n  *(uint *)(param_1 + 0x14) = uVar2;\n  if (CARRY4(uVar1,uVar4)) {\n    iVar3 = iVar3 + 1;\n    *(int *)(param_1 + 0x18) = iVar3;\n  }\n  uVar4 = iVar3 << 3;\n  *(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e) * 4) =\n       uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 |\n       (uVar4 | uVar2 >> 0x1d) << 0x18;\n  *(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f) * 4) =\n       uVar2 * 8 >> 0x18 | (uVar2 & 0x1fe0) << 0xb | uVar2 * 0x8000000 | uVar2 * 8 >> 8 & 0xff00;\n  memcpy((void *)(param_1 + 0x20 + uVar1),&UNK_002a24e0,\n         ((-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78) - uVar1);\n  FUN_001df990(param_1 + 0x20,(-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x80,param_1);\n  FUN_001df960();\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "uVar1 = *(uint *)(param_1 + 0x1c);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0x1c)" identifier = (pointer_expression "*(uint *)(param_1 + 0x1c)" * (cast_expression "(uint *)(param_1 + 0x1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x18)" identifier = (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = *(uint *)(param_1 + 0x14);" (assignment_expression "uVar4 = *(uint *)(param_1 + 0x14)" identifier = (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = uVar1 + *(uint *)(param_1 + 0x14);" (assignment_expression "uVar2 = uVar1 + *(uint *)(param_1 + 0x14)" identifier = (binary_expression "uVar1 + *(uint *)(param_1 + 0x14)" identifier + (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))))) ;) (expression_statement "*(uint *)(param_1 + 0x14) = uVar2;" (assignment_expression "*(uint *)(param_1 + 0x14) = uVar2" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) (if_statement "if (CARRY4(uVar1,uVar4)) {\n    iVar3 = iVar3 + 1;\n    *(int *)(param_1 + 0x18) = iVar3;\n  }" if (parenthesized_expression "(CARRY4(uVar1,uVar4))" ( (call_expression "CARRY4(uVar1,uVar4)" identifier (argument_list "(uVar1,uVar4)" ( identifier , identifier ))) )) (compound_statement "{\n    iVar3 = iVar3 + 1;\n    *(int *)(param_1 + 0x18) = iVar3;\n  }" { (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x18) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x18) = iVar3" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "uVar4 = iVar3 << 3;" (assignment_expression "uVar4 = iVar3 << 3" identifier = (binary_expression "iVar3 << 3" identifier << number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e) * 4) =\n       uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 |\n       (uVar4 | uVar2 >> 0x1d) << 0x18;" (assignment_expression "*(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e) * 4) =\n       uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 |\n       (uVar4 | uVar2 >> 0x1d) << 0x18" (pointer_expression "*(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e) * 4)" * (cast_expression "(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e) * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e) * 4)" ( (binary_expression "param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e) * 4" (binary_expression "param_1 + 0x20" identifier + number_literal) + (binary_expression "((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e) * 4" (parenthesized_expression "((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e)" ( (binary_expression "(-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e" (parenthesized_expression "(-(uint)(uVar1 < 0x38) & 0xfffffff0)" ( (binary_expression "-(uint)(uVar1 < 0x38) & 0xfffffff0" (unary_expression "-(uint)(uVar1 < 0x38)" - (call_expression "(uint)(uVar1 < 0x38)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < 0x38)" ( (binary_expression "uVar1 < 0x38" identifier < number_literal) )))) & number_literal) )) + number_literal) )) * number_literal)) )))) = (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 |\n       (uVar4 | uVar2 >> 0x1d) << 0x18" (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8" (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8" (binary_expression "uVar4 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar4 & 0xff0000) >> 8" (parenthesized_expression "(uVar4 & 0xff0000)" ( (binary_expression "uVar4 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar4 & 0xff00) << 8" (parenthesized_expression "(uVar4 & 0xff00)" ( (binary_expression "uVar4 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "(uVar4 | uVar2 >> 0x1d) << 0x18" (parenthesized_expression "(uVar4 | uVar2 >> 0x1d)" ( (binary_expression "uVar4 | uVar2 >> 0x1d" identifier | (binary_expression "uVar2 >> 0x1d" identifier >> number_literal)) )) << number_literal))) ;) (expression_statement "*(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f) * 4) =\n       uVar2 * 8 >> 0x18 | (uVar2 & 0x1fe0) << 0xb | uVar2 * 0x8000000 | uVar2 * 8 >> 8 & 0xff00;" (assignment_expression "*(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f) * 4) =\n       uVar2 * 8 >> 0x18 | (uVar2 & 0x1fe0) << 0xb | uVar2 * 0x8000000 | uVar2 * 8 >> 8 & 0xff00" (pointer_expression "*(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f) * 4)" * (cast_expression "(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f) * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f) * 4)" ( (binary_expression "param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f) * 4" (binary_expression "param_1 + 0x20" identifier + number_literal) + (binary_expression "((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f) * 4" (parenthesized_expression "((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f)" ( (binary_expression "(-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f" (parenthesized_expression "(-(uint)(uVar1 < 0x38) & 0xfffffff0)" ( (binary_expression "-(uint)(uVar1 < 0x38) & 0xfffffff0" (unary_expression "-(uint)(uVar1 < 0x38)" - (call_expression "(uint)(uVar1 < 0x38)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < 0x38)" ( (binary_expression "uVar1 < 0x38" identifier < number_literal) )))) & number_literal) )) + number_literal) )) * number_literal)) )))) = (binary_expression "uVar2 * 8 >> 0x18 | (uVar2 & 0x1fe0) << 0xb | uVar2 * 0x8000000 | uVar2 * 8 >> 8 & 0xff00" (binary_expression "uVar2 * 8 >> 0x18 | (uVar2 & 0x1fe0) << 0xb | uVar2 * 0x8000000" (binary_expression "uVar2 * 8 >> 0x18 | (uVar2 & 0x1fe0) << 0xb" (binary_expression "uVar2 * 8 >> 0x18" (binary_expression "uVar2 * 8" identifier * number_literal) >> number_literal) | (binary_expression "(uVar2 & 0x1fe0) << 0xb" (parenthesized_expression "(uVar2 & 0x1fe0)" ( (binary_expression "uVar2 & 0x1fe0" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar2 * 0x8000000" identifier * number_literal)) | (binary_expression "uVar2 * 8 >> 8 & 0xff00" (binary_expression "uVar2 * 8 >> 8" (binary_expression "uVar2 * 8" identifier * number_literal) >> number_literal) & number_literal))) ;) (expression_statement "memcpy((void *)(param_1 + 0x20 + uVar1),&UNK_002a24e0,\n         ((-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78) - uVar1);" (call_expression "memcpy((void *)(param_1 + 0x20 + uVar1),&UNK_002a24e0,\n         ((-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78) - uVar1)" identifier (argument_list "((void *)(param_1 + 0x20 + uVar1),&UNK_002a24e0,\n         ((-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78) - uVar1)" ( (cast_expression "(void *)(param_1 + 0x20 + uVar1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20 + uVar1)" ( (binary_expression "param_1 + 0x20 + uVar1" (binary_expression "param_1 + 0x20" identifier + number_literal) + identifier) ))) , (pointer_expression "&UNK_002a24e0" & identifier) , (binary_expression "((-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78) - uVar1" (parenthesized_expression "((-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78)" ( (binary_expression "(-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78" (parenthesized_expression "(-(uint)(uVar1 < 0x38) & 0xffffffc0)" ( (binary_expression "-(uint)(uVar1 < 0x38) & 0xffffffc0" (unary_expression "-(uint)(uVar1 < 0x38)" - (call_expression "(uint)(uVar1 < 0x38)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < 0x38)" ( (binary_expression "uVar1 < 0x38" identifier < number_literal) )))) & number_literal) )) + number_literal) )) - identifier) ))) ;) (expression_statement "FUN_001df990(param_1 + 0x20,(-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x80,param_1);" (call_expression "FUN_001df990(param_1 + 0x20,(-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x80,param_1)" identifier (argument_list "(param_1 + 0x20,(-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x80,param_1)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) , (binary_expression "(-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x80" (parenthesized_expression "(-(uint)(uVar1 < 0x38) & 0xffffffc0)" ( (binary_expression "-(uint)(uVar1 < 0x38) & 0xffffffc0" (unary_expression "-(uint)(uVar1 < 0x38)" - (call_expression "(uint)(uVar1 < 0x38)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < 0x38)" ( (binary_expression "uVar1 < 0x38" identifier < number_literal) )))) & number_literal) )) + number_literal) , identifier ))) ;) (expression_statement "FUN_001df960();" (call_expression "FUN_001df960()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nvoid * sha1_finish_ctx(sha1_ctx *ctx,void *resbuf)\n\n{\n  uint uVar1;\n  uint uVar2;\n  void *pvVar3;\n  sha1_uint32 sVar4;\n  uint uVar5;\n  \n  uVar1 = ctx->buflen;\n  sVar4 = ctx->total[1];\n  uVar5 = ctx->total[0];\n  uVar2 = uVar1 + ctx->total[0];\n  ctx->total[0] = uVar2;\n  if (CARRY4(uVar1,uVar5)) {\n    sVar4 = sVar4 + 1;\n    ctx->total[1] = sVar4;\n  }\n  uVar5 = sVar4 << 3;\n  ctx->buffer[(-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e] =\n       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n       (uVar5 | uVar2 >> 0x1d) << 0x18;\n  ctx->buffer[(-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f] =\n       uVar2 * 8 >> 0x18 | (uVar2 & 0x1fe0) << 0xb | uVar2 * 0x8000000 | uVar2 * 8 >> 8 & 0xff00;\n  memcpy((void *)((int)ctx->buffer + uVar1),fillbuf,\n         ((-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78) - uVar1);\n  sha1_process_block(ctx->buffer,(-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x80,ctx);\n  pvVar3 = sha1_read_ctx(ctx,resbuf);\n  return pvVar3;\n}\n\n" comment (function_definition "void * sha1_finish_ctx(sha1_ctx *ctx,void *resbuf)\n\n{\n  uint uVar1;\n  uint uVar2;\n  void *pvVar3;\n  sha1_uint32 sVar4;\n  uint uVar5;\n  \n  uVar1 = ctx->buflen;\n  sVar4 = ctx->total[1];\n  uVar5 = ctx->total[0];\n  uVar2 = uVar1 + ctx->total[0];\n  ctx->total[0] = uVar2;\n  if (CARRY4(uVar1,uVar5)) {\n    sVar4 = sVar4 + 1;\n    ctx->total[1] = sVar4;\n  }\n  uVar5 = sVar4 << 3;\n  ctx->buffer[(-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e] =\n       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n       (uVar5 | uVar2 >> 0x1d) << 0x18;\n  ctx->buffer[(-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f] =\n       uVar2 * 8 >> 0x18 | (uVar2 & 0x1fe0) << 0xb | uVar2 * 0x8000000 | uVar2 * 8 >> 8 & 0xff00;\n  memcpy((void *)((int)ctx->buffer + uVar1),fillbuf,\n         ((-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78) - uVar1);\n  sha1_process_block(ctx->buffer,(-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x80,ctx);\n  pvVar3 = sha1_read_ctx(ctx,resbuf);\n  return pvVar3;\n}" primitive_type (pointer_declarator "* sha1_finish_ctx(sha1_ctx *ctx,void *resbuf)" * (function_declarator "sha1_finish_ctx(sha1_ctx *ctx,void *resbuf)" identifier (parameter_list "(sha1_ctx *ctx,void *resbuf)" ( (parameter_declaration "sha1_ctx *ctx" type_identifier (pointer_declarator "*ctx" * identifier)) , (parameter_declaration "void *resbuf" primitive_type (pointer_declarator "*resbuf" * identifier)) )))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  void *pvVar3;\n  sha1_uint32 sVar4;\n  uint uVar5;\n  \n  uVar1 = ctx->buflen;\n  sVar4 = ctx->total[1];\n  uVar5 = ctx->total[0];\n  uVar2 = uVar1 + ctx->total[0];\n  ctx->total[0] = uVar2;\n  if (CARRY4(uVar1,uVar5)) {\n    sVar4 = sVar4 + 1;\n    ctx->total[1] = sVar4;\n  }\n  uVar5 = sVar4 << 3;\n  ctx->buffer[(-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e] =\n       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n       (uVar5 | uVar2 >> 0x1d) << 0x18;\n  ctx->buffer[(-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f] =\n       uVar2 * 8 >> 0x18 | (uVar2 & 0x1fe0) << 0xb | uVar2 * 0x8000000 | uVar2 * 8 >> 8 & 0xff00;\n  memcpy((void *)((int)ctx->buffer + uVar1),fillbuf,\n         ((-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78) - uVar1);\n  sha1_process_block(ctx->buffer,(-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x80,ctx);\n  pvVar3 = sha1_read_ctx(ctx,resbuf);\n  return pvVar3;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "sha1_uint32 sVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (expression_statement "uVar1 = ctx->buflen;" (assignment_expression "uVar1 = ctx->buflen" identifier = (field_expression "ctx->buflen" identifier -> field_identifier)) ;) (expression_statement "sVar4 = ctx->total[1];" (assignment_expression "sVar4 = ctx->total[1]" identifier = (subscript_expression "ctx->total[1]" (field_expression "ctx->total" identifier -> field_identifier) [ number_literal ])) ;) (expression_statement "uVar5 = ctx->total[0];" (assignment_expression "uVar5 = ctx->total[0]" identifier = (subscript_expression "ctx->total[0]" (field_expression "ctx->total" identifier -> field_identifier) [ number_literal ])) ;) (expression_statement "uVar2 = uVar1 + ctx->total[0];" (assignment_expression "uVar2 = uVar1 + ctx->total[0]" identifier = (binary_expression "uVar1 + ctx->total[0]" identifier + (subscript_expression "ctx->total[0]" (field_expression "ctx->total" identifier -> field_identifier) [ number_literal ]))) ;) (expression_statement "ctx->total[0] = uVar2;" (assignment_expression "ctx->total[0] = uVar2" (subscript_expression "ctx->total[0]" (field_expression "ctx->total" identifier -> field_identifier) [ number_literal ]) = identifier) ;) (if_statement "if (CARRY4(uVar1,uVar5)) {\n    sVar4 = sVar4 + 1;\n    ctx->total[1] = sVar4;\n  }" if (parenthesized_expression "(CARRY4(uVar1,uVar5))" ( (call_expression "CARRY4(uVar1,uVar5)" identifier (argument_list "(uVar1,uVar5)" ( identifier , identifier ))) )) (compound_statement "{\n    sVar4 = sVar4 + 1;\n    ctx->total[1] = sVar4;\n  }" { (expression_statement "sVar4 = sVar4 + 1;" (assignment_expression "sVar4 = sVar4 + 1" identifier = (binary_expression "sVar4 + 1" identifier + number_literal)) ;) (expression_statement "ctx->total[1] = sVar4;" (assignment_expression "ctx->total[1] = sVar4" (subscript_expression "ctx->total[1]" (field_expression "ctx->total" identifier -> field_identifier) [ number_literal ]) = identifier) ;) })) (expression_statement "uVar5 = sVar4 << 3;" (assignment_expression "uVar5 = sVar4 << 3" identifier = (binary_expression "sVar4 << 3" identifier << number_literal)) ;) (expression_statement "ctx->buffer[(-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e] =\n       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n       (uVar5 | uVar2 >> 0x1d) << 0x18;" (assignment_expression "ctx->buffer[(-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e] =\n       uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n       (uVar5 | uVar2 >> 0x1d) << 0x18" (subscript_expression "ctx->buffer[(-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e]" (field_expression "ctx->buffer" identifier -> field_identifier) [ (binary_expression "(-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e" (parenthesized_expression "(-(uint)(uVar1 < 0x38) & 0xfffffff0)" ( (binary_expression "-(uint)(uVar1 < 0x38) & 0xfffffff0" (unary_expression "-(uint)(uVar1 < 0x38)" - (call_expression "(uint)(uVar1 < 0x38)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < 0x38)" ( (binary_expression "uVar1 < 0x38" identifier < number_literal) )))) & number_literal) )) + number_literal) ]) = (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 |\n       (uVar5 | uVar2 >> 0x1d) << 0x18" (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8" (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8" (binary_expression "uVar5 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar5 & 0xff0000) >> 8" (parenthesized_expression "(uVar5 & 0xff0000)" ( (binary_expression "uVar5 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar5 & 0xff00) << 8" (parenthesized_expression "(uVar5 & 0xff00)" ( (binary_expression "uVar5 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "(uVar5 | uVar2 >> 0x1d) << 0x18" (parenthesized_expression "(uVar5 | uVar2 >> 0x1d)" ( (binary_expression "uVar5 | uVar2 >> 0x1d" identifier | (binary_expression "uVar2 >> 0x1d" identifier >> number_literal)) )) << number_literal))) ;) (expression_statement "ctx->buffer[(-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f] =\n       uVar2 * 8 >> 0x18 | (uVar2 & 0x1fe0) << 0xb | uVar2 * 0x8000000 | uVar2 * 8 >> 8 & 0xff00;" (assignment_expression "ctx->buffer[(-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f] =\n       uVar2 * 8 >> 0x18 | (uVar2 & 0x1fe0) << 0xb | uVar2 * 0x8000000 | uVar2 * 8 >> 8 & 0xff00" (subscript_expression "ctx->buffer[(-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f]" (field_expression "ctx->buffer" identifier -> field_identifier) [ (binary_expression "(-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f" (parenthesized_expression "(-(uint)(uVar1 < 0x38) & 0xfffffff0)" ( (binary_expression "-(uint)(uVar1 < 0x38) & 0xfffffff0" (unary_expression "-(uint)(uVar1 < 0x38)" - (call_expression "(uint)(uVar1 < 0x38)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < 0x38)" ( (binary_expression "uVar1 < 0x38" identifier < number_literal) )))) & number_literal) )) + number_literal) ]) = (binary_expression "uVar2 * 8 >> 0x18 | (uVar2 & 0x1fe0) << 0xb | uVar2 * 0x8000000 | uVar2 * 8 >> 8 & 0xff00" (binary_expression "uVar2 * 8 >> 0x18 | (uVar2 & 0x1fe0) << 0xb | uVar2 * 0x8000000" (binary_expression "uVar2 * 8 >> 0x18 | (uVar2 & 0x1fe0) << 0xb" (binary_expression "uVar2 * 8 >> 0x18" (binary_expression "uVar2 * 8" identifier * number_literal) >> number_literal) | (binary_expression "(uVar2 & 0x1fe0) << 0xb" (parenthesized_expression "(uVar2 & 0x1fe0)" ( (binary_expression "uVar2 & 0x1fe0" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar2 * 0x8000000" identifier * number_literal)) | (binary_expression "uVar2 * 8 >> 8 & 0xff00" (binary_expression "uVar2 * 8 >> 8" (binary_expression "uVar2 * 8" identifier * number_literal) >> number_literal) & number_literal))) ;) (expression_statement "memcpy((void *)((int)ctx->buffer + uVar1),fillbuf,\n         ((-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78) - uVar1);" (call_expression "memcpy((void *)((int)ctx->buffer + uVar1),fillbuf,\n         ((-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78) - uVar1)" identifier (argument_list "((void *)((int)ctx->buffer + uVar1),fillbuf,\n         ((-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78) - uVar1)" ( (cast_expression "(void *)((int)ctx->buffer + uVar1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx->buffer + uVar1)" ( (binary_expression "(int)ctx->buffer + uVar1" (cast_expression "(int)ctx->buffer" ( (type_descriptor "int" primitive_type) ) (field_expression "ctx->buffer" identifier -> field_identifier)) + identifier) ))) , identifier , (binary_expression "((-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78) - uVar1" (parenthesized_expression "((-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78)" ( (binary_expression "(-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78" (parenthesized_expression "(-(uint)(uVar1 < 0x38) & 0xffffffc0)" ( (binary_expression "-(uint)(uVar1 < 0x38) & 0xffffffc0" (unary_expression "-(uint)(uVar1 < 0x38)" - (call_expression "(uint)(uVar1 < 0x38)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < 0x38)" ( (binary_expression "uVar1 < 0x38" identifier < number_literal) )))) & number_literal) )) + number_literal) )) - identifier) ))) ;) (expression_statement "sha1_process_block(ctx->buffer,(-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x80,ctx);" (call_expression "sha1_process_block(ctx->buffer,(-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x80,ctx)" identifier (argument_list "(ctx->buffer,(-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x80,ctx)" ( (field_expression "ctx->buffer" identifier -> field_identifier) , (binary_expression "(-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x80" (parenthesized_expression "(-(uint)(uVar1 < 0x38) & 0xffffffc0)" ( (binary_expression "-(uint)(uVar1 < 0x38) & 0xffffffc0" (unary_expression "-(uint)(uVar1 < 0x38)" - (call_expression "(uint)(uVar1 < 0x38)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < 0x38)" ( (binary_expression "uVar1 < 0x38" identifier < number_literal) )))) & number_literal) )) + number_literal) , identifier ))) ;) (expression_statement "pvVar3 = sha1_read_ctx(ctx,resbuf);" (assignment_expression "pvVar3 = sha1_read_ctx(ctx,resbuf)" identifier = (call_expression "sha1_read_ctx(ctx,resbuf)" identifier (argument_list "(ctx,resbuf)" ( identifier , identifier )))) ;) (return_statement "return pvVar3;" return identifier ;) })))
(translation_unit "void FUN_001e0ae0(int param_1)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  \n  uVar1 = *(uint *)(param_1 + 0x1c);\n  iVar3 = *(int *)(param_1 + 0x18);\n  uVar4 = *(uint *)(param_1 + 0x14);\n  uVar2 = uVar1 + *(uint *)(param_1 + 0x14);\n  *(uint *)(param_1 + 0x14) = uVar2;\n  if (CARRY4(uVar1,uVar4)) {\n    iVar3 = iVar3 + 1;\n    *(int *)(param_1 + 0x18) = iVar3;\n  }\n  uVar4 = iVar3 << 3;\n  *(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e) * 4) =\n       uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 |\n       (uVar4 | uVar2 >> 0x1d) << 0x18;\n  *(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f) * 4) =\n       uVar2 * 8 >> 0x18 | (uVar2 & 0x1fe0) << 0xb | uVar2 * 0x8000000 | uVar2 * 8 >> 8 & 0xff00;\n  memcpy((void *)(param_1 + 0x20 + uVar1),&UNK_002a24e0,\n         ((-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78) - uVar1);\n  FUN_001df990(param_1 + 0x20,(-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x80,param_1);\n  FUN_001df960();\n  return;\n}\n\n" (function_definition "void FUN_001e0ae0(int param_1)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  \n  uVar1 = *(uint *)(param_1 + 0x1c);\n  iVar3 = *(int *)(param_1 + 0x18);\n  uVar4 = *(uint *)(param_1 + 0x14);\n  uVar2 = uVar1 + *(uint *)(param_1 + 0x14);\n  *(uint *)(param_1 + 0x14) = uVar2;\n  if (CARRY4(uVar1,uVar4)) {\n    iVar3 = iVar3 + 1;\n    *(int *)(param_1 + 0x18) = iVar3;\n  }\n  uVar4 = iVar3 << 3;\n  *(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e) * 4) =\n       uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 |\n       (uVar4 | uVar2 >> 0x1d) << 0x18;\n  *(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f) * 4) =\n       uVar2 * 8 >> 0x18 | (uVar2 & 0x1fe0) << 0xb | uVar2 * 0x8000000 | uVar2 * 8 >> 8 & 0xff00;\n  memcpy((void *)(param_1 + 0x20 + uVar1),&UNK_002a24e0,\n         ((-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78) - uVar1);\n  FUN_001df990(param_1 + 0x20,(-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x80,param_1);\n  FUN_001df960();\n  return;\n}" primitive_type (function_declarator "FUN_001e0ae0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  \n  uVar1 = *(uint *)(param_1 + 0x1c);\n  iVar3 = *(int *)(param_1 + 0x18);\n  uVar4 = *(uint *)(param_1 + 0x14);\n  uVar2 = uVar1 + *(uint *)(param_1 + 0x14);\n  *(uint *)(param_1 + 0x14) = uVar2;\n  if (CARRY4(uVar1,uVar4)) {\n    iVar3 = iVar3 + 1;\n    *(int *)(param_1 + 0x18) = iVar3;\n  }\n  uVar4 = iVar3 << 3;\n  *(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e) * 4) =\n       uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 |\n       (uVar4 | uVar2 >> 0x1d) << 0x18;\n  *(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f) * 4) =\n       uVar2 * 8 >> 0x18 | (uVar2 & 0x1fe0) << 0xb | uVar2 * 0x8000000 | uVar2 * 8 >> 8 & 0xff00;\n  memcpy((void *)(param_1 + 0x20 + uVar1),&UNK_002a24e0,\n         ((-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78) - uVar1);\n  FUN_001df990(param_1 + 0x20,(-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x80,param_1);\n  FUN_001df960();\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "uVar1 = *(uint *)(param_1 + 0x1c);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0x1c)" identifier = (pointer_expression "*(uint *)(param_1 + 0x1c)" * (cast_expression "(uint *)(param_1 + 0x1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x18)" identifier = (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = *(uint *)(param_1 + 0x14);" (assignment_expression "uVar4 = *(uint *)(param_1 + 0x14)" identifier = (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = uVar1 + *(uint *)(param_1 + 0x14);" (assignment_expression "uVar2 = uVar1 + *(uint *)(param_1 + 0x14)" identifier = (binary_expression "uVar1 + *(uint *)(param_1 + 0x14)" identifier + (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))))) ;) (expression_statement "*(uint *)(param_1 + 0x14) = uVar2;" (assignment_expression "*(uint *)(param_1 + 0x14) = uVar2" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) (if_statement "if (CARRY4(uVar1,uVar4)) {\n    iVar3 = iVar3 + 1;\n    *(int *)(param_1 + 0x18) = iVar3;\n  }" if (parenthesized_expression "(CARRY4(uVar1,uVar4))" ( (call_expression "CARRY4(uVar1,uVar4)" identifier (argument_list "(uVar1,uVar4)" ( identifier , identifier ))) )) (compound_statement "{\n    iVar3 = iVar3 + 1;\n    *(int *)(param_1 + 0x18) = iVar3;\n  }" { (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x18) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x18) = iVar3" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "uVar4 = iVar3 << 3;" (assignment_expression "uVar4 = iVar3 << 3" identifier = (binary_expression "iVar3 << 3" identifier << number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e) * 4) =\n       uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 |\n       (uVar4 | uVar2 >> 0x1d) << 0x18;" (assignment_expression "*(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e) * 4) =\n       uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 |\n       (uVar4 | uVar2 >> 0x1d) << 0x18" (pointer_expression "*(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e) * 4)" * (cast_expression "(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e) * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e) * 4)" ( (binary_expression "param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e) * 4" (binary_expression "param_1 + 0x20" identifier + number_literal) + (binary_expression "((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e) * 4" (parenthesized_expression "((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e)" ( (binary_expression "(-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e" (parenthesized_expression "(-(uint)(uVar1 < 0x38) & 0xfffffff0)" ( (binary_expression "-(uint)(uVar1 < 0x38) & 0xfffffff0" (unary_expression "-(uint)(uVar1 < 0x38)" - (call_expression "(uint)(uVar1 < 0x38)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < 0x38)" ( (binary_expression "uVar1 < 0x38" identifier < number_literal) )))) & number_literal) )) + number_literal) )) * number_literal)) )))) = (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 |\n       (uVar4 | uVar2 >> 0x1d) << 0x18" (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8" (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8" (binary_expression "uVar4 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar4 & 0xff0000) >> 8" (parenthesized_expression "(uVar4 & 0xff0000)" ( (binary_expression "uVar4 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar4 & 0xff00) << 8" (parenthesized_expression "(uVar4 & 0xff00)" ( (binary_expression "uVar4 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "(uVar4 | uVar2 >> 0x1d) << 0x18" (parenthesized_expression "(uVar4 | uVar2 >> 0x1d)" ( (binary_expression "uVar4 | uVar2 >> 0x1d" identifier | (binary_expression "uVar2 >> 0x1d" identifier >> number_literal)) )) << number_literal))) ;) (expression_statement "*(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f) * 4) =\n       uVar2 * 8 >> 0x18 | (uVar2 & 0x1fe0) << 0xb | uVar2 * 0x8000000 | uVar2 * 8 >> 8 & 0xff00;" (assignment_expression "*(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f) * 4) =\n       uVar2 * 8 >> 0x18 | (uVar2 & 0x1fe0) << 0xb | uVar2 * 0x8000000 | uVar2 * 8 >> 8 & 0xff00" (pointer_expression "*(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f) * 4)" * (cast_expression "(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f) * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f) * 4)" ( (binary_expression "param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f) * 4" (binary_expression "param_1 + 0x20" identifier + number_literal) + (binary_expression "((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f) * 4" (parenthesized_expression "((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f)" ( (binary_expression "(-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f" (parenthesized_expression "(-(uint)(uVar1 < 0x38) & 0xfffffff0)" ( (binary_expression "-(uint)(uVar1 < 0x38) & 0xfffffff0" (unary_expression "-(uint)(uVar1 < 0x38)" - (call_expression "(uint)(uVar1 < 0x38)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < 0x38)" ( (binary_expression "uVar1 < 0x38" identifier < number_literal) )))) & number_literal) )) + number_literal) )) * number_literal)) )))) = (binary_expression "uVar2 * 8 >> 0x18 | (uVar2 & 0x1fe0) << 0xb | uVar2 * 0x8000000 | uVar2 * 8 >> 8 & 0xff00" (binary_expression "uVar2 * 8 >> 0x18 | (uVar2 & 0x1fe0) << 0xb | uVar2 * 0x8000000" (binary_expression "uVar2 * 8 >> 0x18 | (uVar2 & 0x1fe0) << 0xb" (binary_expression "uVar2 * 8 >> 0x18" (binary_expression "uVar2 * 8" identifier * number_literal) >> number_literal) | (binary_expression "(uVar2 & 0x1fe0) << 0xb" (parenthesized_expression "(uVar2 & 0x1fe0)" ( (binary_expression "uVar2 & 0x1fe0" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar2 * 0x8000000" identifier * number_literal)) | (binary_expression "uVar2 * 8 >> 8 & 0xff00" (binary_expression "uVar2 * 8 >> 8" (binary_expression "uVar2 * 8" identifier * number_literal) >> number_literal) & number_literal))) ;) (expression_statement "memcpy((void *)(param_1 + 0x20 + uVar1),&UNK_002a24e0,\n         ((-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78) - uVar1);" (call_expression "memcpy((void *)(param_1 + 0x20 + uVar1),&UNK_002a24e0,\n         ((-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78) - uVar1)" identifier (argument_list "((void *)(param_1 + 0x20 + uVar1),&UNK_002a24e0,\n         ((-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78) - uVar1)" ( (cast_expression "(void *)(param_1 + 0x20 + uVar1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20 + uVar1)" ( (binary_expression "param_1 + 0x20 + uVar1" (binary_expression "param_1 + 0x20" identifier + number_literal) + identifier) ))) , (pointer_expression "&UNK_002a24e0" & identifier) , (binary_expression "((-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78) - uVar1" (parenthesized_expression "((-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78)" ( (binary_expression "(-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78" (parenthesized_expression "(-(uint)(uVar1 < 0x38) & 0xffffffc0)" ( (binary_expression "-(uint)(uVar1 < 0x38) & 0xffffffc0" (unary_expression "-(uint)(uVar1 < 0x38)" - (call_expression "(uint)(uVar1 < 0x38)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < 0x38)" ( (binary_expression "uVar1 < 0x38" identifier < number_literal) )))) & number_literal) )) + number_literal) )) - identifier) ))) ;) (expression_statement "FUN_001df990(param_1 + 0x20,(-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x80,param_1);" (call_expression "FUN_001df990(param_1 + 0x20,(-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x80,param_1)" identifier (argument_list "(param_1 + 0x20,(-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x80,param_1)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) , (binary_expression "(-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x80" (parenthesized_expression "(-(uint)(uVar1 < 0x38) & 0xffffffc0)" ( (binary_expression "-(uint)(uVar1 < 0x38) & 0xffffffc0" (unary_expression "-(uint)(uVar1 < 0x38)" - (call_expression "(uint)(uVar1 < 0x38)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < 0x38)" ( (binary_expression "uVar1 < 0x38" identifier < number_literal) )))) & number_literal) )) + number_literal) , identifier ))) ;) (expression_statement "FUN_001df960();" (call_expression "FUN_001df960()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (call_expression IDENT (argument_list ( IDENT , IDENT ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT << LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (unary_expression - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < LIT) )))) & LIT) )) + LIT) )) * LIT)) )))) = (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT | (binary_expression IDENT >> LIT)) )) << LIT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (unary_expression - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < LIT) )))) & LIT) )) + LIT) )) * LIT)) )))) = (binary_expression (binary_expression (binary_expression (binary_expression (binary_expression IDENT * LIT) >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT * LIT)) | (binary_expression (binary_expression (binary_expression IDENT * LIT) >> LIT) & LIT))) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) ))) , (pointer_expression & IDENT) , (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (unary_expression - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < LIT) )))) & LIT) )) + LIT) )) - IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (binary_expression (parenthesized_expression ( (binary_expression (unary_expression - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < LIT) )))) & LIT) )) + LIT) , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void FUN_001e0ae0(int param_1)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  \n  uVar1 = *(uint *)(param_1 + 0x1c);\n  iVar3 = *(int *)(param_1 + 0x18);\n  uVar4 = *(uint *)(param_1 + 0x14);\n  uVar2 = uVar1 + *(uint *)(param_1 + 0x14);\n  *(uint *)(param_1 + 0x14) = uVar2;\n  if (CARRY4(uVar1,uVar4)) {\n    iVar3 = iVar3 + 1;\n    *(int *)(param_1 + 0x18) = iVar3;\n  }\n  uVar4 = iVar3 << 3;\n  *(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e) * 4) =\n       uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 |\n       (uVar4 | uVar2 >> 0x1d) << 0x18;\n  *(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f) * 4) =\n       uVar2 * 8 >> 0x18 | (uVar2 & 0x1fe0) << 0xb | uVar2 * 0x8000000 | uVar2 * 8 >> 8 & 0xff00;\n  memcpy((void *)(param_1 + 0x20 + uVar1),&UNK_002a24e0,\n         ((-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78) - uVar1);\n  FUN_001df990(param_1 + 0x20,(-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x80,param_1);\n  FUN_001df960();\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001e0ae0(int param_1)" (identifier "FUN_001e0ae0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  \n  uVar1 = *(uint *)(param_1 + 0x1c);\n  iVar3 = *(int *)(param_1 + 0x18);\n  uVar4 = *(uint *)(param_1 + 0x14);\n  uVar2 = uVar1 + *(uint *)(param_1 + 0x14);\n  *(uint *)(param_1 + 0x14) = uVar2;\n  if (CARRY4(uVar1,uVar4)) {\n    iVar3 = iVar3 + 1;\n    *(int *)(param_1 + 0x18) = iVar3;\n  }\n  uVar4 = iVar3 << 3;\n  *(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e) * 4) =\n       uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 |\n       (uVar4 | uVar2 >> 0x1d) << 0x18;\n  *(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f) * 4) =\n       uVar2 * 8 >> 0x18 | (uVar2 & 0x1fe0) << 0xb | uVar2 * 0x8000000 | uVar2 * 8 >> 8 & 0xff00;\n  memcpy((void *)(param_1 + 0x20 + uVar1),&UNK_002a24e0,\n         ((-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78) - uVar1);\n  FUN_001df990(param_1 + 0x20,(-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x80,param_1);\n  FUN_001df960();\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (expression_statement "uVar1 = *(uint *)(param_1 + 0x1c);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0x1c)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(param_1 + 0x1c)" (* "*") (cast_expression "(uint *)(param_1 + 0x1c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "iVar3 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x18)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "uVar4 = *(uint *)(param_1 + 0x14);" (assignment_expression "uVar4 = *(uint *)(param_1 + 0x14)" (identifier "uVar4") (= "=") (pointer_expression "*(uint *)(param_1 + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "uVar2 = uVar1 + *(uint *)(param_1 + 0x14);" (assignment_expression "uVar2 = uVar1 + *(uint *)(param_1 + 0x14)" (identifier "uVar2") (= "=") (binary_expression "uVar1 + *(uint *)(param_1 + 0x14)" (identifier "uVar1") (+ "+") (pointer_expression "*(uint *)(param_1 + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x14) = uVar2;" (assignment_expression "*(uint *)(param_1 + 0x14) = uVar2" (pointer_expression "*(uint *)(param_1 + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (if_statement "if (CARRY4(uVar1,uVar4)) {\n    iVar3 = iVar3 + 1;\n    *(int *)(param_1 + 0x18) = iVar3;\n  }" (if "if") (parenthesized_expression "(CARRY4(uVar1,uVar4))" (( "(") (call_expression "CARRY4(uVar1,uVar4)" (identifier "CARRY4") (argument_list "(uVar1,uVar4)" (( "(") (identifier "uVar1") (, ",") (identifier "uVar4") () ")"))) () ")")) (compound_statement "{\n    iVar3 = iVar3 + 1;\n    *(int *)(param_1 + 0x18) = iVar3;\n  }" ({ "{") (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x18) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x18) = iVar3" (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (} "}"))) (expression_statement "uVar4 = iVar3 << 3;" (assignment_expression "uVar4 = iVar3 << 3" (identifier "uVar4") (= "=") (binary_expression "iVar3 << 3" (identifier "iVar3") (<< "<<") (number_literal "3"))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e) * 4) =\n       uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 |\n       (uVar4 | uVar2 >> 0x1d) << 0x18;" (assignment_expression "*(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e) * 4) =\n       uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 |\n       (uVar4 | uVar2 >> 0x1d) << 0x18" (pointer_expression "*(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e) * 4)" (* "*") (cast_expression "(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e) * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e) * 4)" (( "(") (binary_expression "param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e) * 4" (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) (+ "+") (binary_expression "((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e) * 4" (parenthesized_expression "((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e)" (( "(") (binary_expression "(-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e" (parenthesized_expression "(-(uint)(uVar1 < 0x38) & 0xfffffff0)" (( "(") (binary_expression "-(uint)(uVar1 < 0x38) & 0xfffffff0" (unary_expression "-(uint)(uVar1 < 0x38)" (- "-") (call_expression "(uint)(uVar1 < 0x38)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar1 < 0x38)" (( "(") (binary_expression "uVar1 < 0x38" (identifier "uVar1") (< "<") (number_literal "0x38")) () ")")))) (& "&") (number_literal "0xfffffff0")) () ")")) (+ "+") (number_literal "0x1e")) () ")")) (* "*") (number_literal "4"))) () ")")))) (= "=") (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 |\n       (uVar4 | uVar2 >> 0x1d) << 0x18" (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8" (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8" (binary_expression "uVar4 >> 0x18" (identifier "uVar4") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar4 & 0xff0000) >> 8" (parenthesized_expression "(uVar4 & 0xff0000)" (( "(") (binary_expression "uVar4 & 0xff0000" (identifier "uVar4") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar4 & 0xff00) << 8" (parenthesized_expression "(uVar4 & 0xff00)" (( "(") (binary_expression "uVar4 & 0xff00" (identifier "uVar4") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "(uVar4 | uVar2 >> 0x1d) << 0x18" (parenthesized_expression "(uVar4 | uVar2 >> 0x1d)" (( "(") (binary_expression "uVar4 | uVar2 >> 0x1d" (identifier "uVar4") (| "|") (binary_expression "uVar2 >> 0x1d" (identifier "uVar2") (>> ">>") (number_literal "0x1d"))) () ")")) (<< "<<") (number_literal "0x18")))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f) * 4) =\n       uVar2 * 8 >> 0x18 | (uVar2 & 0x1fe0) << 0xb | uVar2 * 0x8000000 | uVar2 * 8 >> 8 & 0xff00;" (assignment_expression "*(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f) * 4) =\n       uVar2 * 8 >> 0x18 | (uVar2 & 0x1fe0) << 0xb | uVar2 * 0x8000000 | uVar2 * 8 >> 8 & 0xff00" (pointer_expression "*(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f) * 4)" (* "*") (cast_expression "(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f) * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f) * 4)" (( "(") (binary_expression "param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f) * 4" (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) (+ "+") (binary_expression "((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f) * 4" (parenthesized_expression "((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f)" (( "(") (binary_expression "(-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f" (parenthesized_expression "(-(uint)(uVar1 < 0x38) & 0xfffffff0)" (( "(") (binary_expression "-(uint)(uVar1 < 0x38) & 0xfffffff0" (unary_expression "-(uint)(uVar1 < 0x38)" (- "-") (call_expression "(uint)(uVar1 < 0x38)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar1 < 0x38)" (( "(") (binary_expression "uVar1 < 0x38" (identifier "uVar1") (< "<") (number_literal "0x38")) () ")")))) (& "&") (number_literal "0xfffffff0")) () ")")) (+ "+") (number_literal "0x1f")) () ")")) (* "*") (number_literal "4"))) () ")")))) (= "=") (binary_expression "uVar2 * 8 >> 0x18 | (uVar2 & 0x1fe0) << 0xb | uVar2 * 0x8000000 | uVar2 * 8 >> 8 & 0xff00" (binary_expression "uVar2 * 8 >> 0x18 | (uVar2 & 0x1fe0) << 0xb | uVar2 * 0x8000000" (binary_expression "uVar2 * 8 >> 0x18 | (uVar2 & 0x1fe0) << 0xb" (binary_expression "uVar2 * 8 >> 0x18" (binary_expression "uVar2 * 8" (identifier "uVar2") (* "*") (number_literal "8")) (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar2 & 0x1fe0) << 0xb" (parenthesized_expression "(uVar2 & 0x1fe0)" (( "(") (binary_expression "uVar2 & 0x1fe0" (identifier "uVar2") (& "&") (number_literal "0x1fe0")) () ")")) (<< "<<") (number_literal "0xb"))) (| "|") (binary_expression "uVar2 * 0x8000000" (identifier "uVar2") (* "*") (number_literal "0x8000000"))) (| "|") (binary_expression "uVar2 * 8 >> 8 & 0xff00" (binary_expression "uVar2 * 8 >> 8" (binary_expression "uVar2 * 8" (identifier "uVar2") (* "*") (number_literal "8")) (>> ">>") (number_literal "8")) (& "&") (number_literal "0xff00")))) (; ";")) (expression_statement "memcpy((void *)(param_1 + 0x20 + uVar1),&UNK_002a24e0,\n         ((-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78) - uVar1);" (call_expression "memcpy((void *)(param_1 + 0x20 + uVar1),&UNK_002a24e0,\n         ((-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78) - uVar1)" (identifier "memcpy") (argument_list "((void *)(param_1 + 0x20 + uVar1),&UNK_002a24e0,\n         ((-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78) - uVar1)" (( "(") (cast_expression "(void *)(param_1 + 0x20 + uVar1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20 + uVar1)" (( "(") (binary_expression "param_1 + 0x20 + uVar1" (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) (+ "+") (identifier "uVar1")) () ")"))) (, ",") (pointer_expression "&UNK_002a24e0" (& "&") (identifier "UNK_002a24e0")) (, ",") (binary_expression "((-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78) - uVar1" (parenthesized_expression "((-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78)" (( "(") (binary_expression "(-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78" (parenthesized_expression "(-(uint)(uVar1 < 0x38) & 0xffffffc0)" (( "(") (binary_expression "-(uint)(uVar1 < 0x38) & 0xffffffc0" (unary_expression "-(uint)(uVar1 < 0x38)" (- "-") (call_expression "(uint)(uVar1 < 0x38)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar1 < 0x38)" (( "(") (binary_expression "uVar1 < 0x38" (identifier "uVar1") (< "<") (number_literal "0x38")) () ")")))) (& "&") (number_literal "0xffffffc0")) () ")")) (+ "+") (number_literal "0x78")) () ")")) (- "-") (identifier "uVar1")) () ")"))) (; ";")) (expression_statement "FUN_001df990(param_1 + 0x20,(-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x80,param_1);" (call_expression "FUN_001df990(param_1 + 0x20,(-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x80,param_1)" (identifier "FUN_001df990") (argument_list "(param_1 + 0x20,(-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x80,param_1)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) (, ",") (binary_expression "(-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x80" (parenthesized_expression "(-(uint)(uVar1 < 0x38) & 0xffffffc0)" (( "(") (binary_expression "-(uint)(uVar1 < 0x38) & 0xffffffc0" (unary_expression "-(uint)(uVar1 < 0x38)" (- "-") (call_expression "(uint)(uVar1 < 0x38)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar1 < 0x38)" (( "(") (binary_expression "uVar1 < 0x38" (identifier "uVar1") (< "<") (number_literal "0x38")) () ")")))) (& "&") (number_literal "0xffffffc0")) () ")")) (+ "+") (number_literal "0x80")) (, ",") (identifier "param_1") () ")"))) (; ";")) (expression_statement "FUN_001df960();" (call_expression "FUN_001df960()" (identifier "FUN_001df960") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void * function_1(type_1 *ctx,void *resbuf)

{
  type_2 var_1;
  type_2 var_5;
  void *pvVar3;
  type_3 var_3;
  type_2 var_4;
  
  var_1 = ctx->buflen;
  var_3 = ctx->total[1];
  var_4 = ctx->total[0];
  var_5 = var_1 + ctx->total[0];
  ctx->total[0] = var_5;
  if (var_2(var_1,var_4)) {
    var_3 = var_3 + 1;
    ctx->total[1] = var_3;
  }
  var_4 = var_3 << 3;
  ctx->buffer[(-(type_2)(var_1 < 0x38) & 0xfffffff0) + 0x1e] =
       var_4 >> 0x18 | (var_4 & 0xff0000) >> 8 | (var_4 & 0xff00) << 8 |
       (var_4 | var_5 >> 0x1d) << 0x18;
  ctx->buffer[(-(type_2)(var_1 < 0x38) & 0xfffffff0) + 0x1f] =
       var_5 * 8 >> 0x18 | (var_5 & 0x1fe0) << 0xb | var_5 * 0x8000000 | var_5 * 8 >> 8 & 0xff00;
  var_6((void *)((int)ctx->buffer + var_1),fillbuf,
         ((-(type_2)(var_1 < 0x38) & 0xffffffc0) + 0x78) - var_1);
  var_7(ctx->buffer,(-(type_2)(var_1 < 0x38) & 0xffffffc0) + 0x80,ctx);
  pvVar3 = var_8(ctx,resbuf);
  return pvVar3;
}


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

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void MASKED(int param_1)

{
  uint uVar1;
  uint uVar2;
  int iVar3;
  uint uVar4;
  
  uVar1 = *(uint *)(param_1 + 0x1c);
  iVar3 = *(int *)(param_1 + 0x18);
  uVar4 = *(uint *)(param_1 + 0x14);
  uVar2 = uVar1 + *(uint *)(param_1 + 0x14);
  *(uint *)(param_1 + 0x14) = uVar2;
  if (CARRY4(uVar1,uVar4)) {
    iVar3 = iVar3 + 1;
    *(int *)(param_1 + 0x18) = iVar3;
  }
  uVar4 = iVar3 << 3;
  *(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1e) * 4) =
       uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 |
       (uVar4 | uVar2 >> 0x1d) << 0x18;
  *(uint *)(param_1 + 0x20 + ((-(uint)(uVar1 < 0x38) & 0xfffffff0) + 0x1f) * 4) =
       uVar2 * 8 >> 0x18 | (uVar2 & 0x1fe0) << 0xb | uVar2 * 0x8000000 | uVar2 * 8 >> 8 & 0xff00;
  memcpy((void *)(param_1 + 0x20 + uVar1),&UNK_002a24e0,
         ((-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x78) - uVar1);
  FUN_001df990(param_1 + 0x20,(-(uint)(uVar1 < 0x38) & 0xffffffc0) + 0x80,param_1);
  FUN_001df960();
  return;
}

