// File: /workspace/github_cpp_makefile_star2_O3/ctz[P]openssl-bench/bench.cc
// Function: test_bulk_one(Timings&, Context&, Context&, unsigned long, unsigned long)
static void test_bulk_one(Timings &timings_out, Context &server_ctx,
                          Context &client_ctx, const size_t rounds,
                          const size_t plaintext_size) {
  Conn server(server_ctx.open());
  Conn client(client_ctx.open());

  do_handshake(client, server);

  std::vector<uint8_t> plaintext(plaintext_size, 0);
  double time_send = 0;
  double time_recv = 0;

  for (size_t i = 0; i < rounds; i++) {
    double t = get_time();
    server.write(&plaintext[0], plaintext.size());
    time_send += get_time() - t;

    server.transfer_to(client);
    t = get_time();
    client.read(&plaintext[0], plaintext.size());
    time_recv += get_time() - t;
  }

  timings_out.server.store(time_send);
  timings_out.client.store(time_recv);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %r8, %r15
movq %rcx, %r14
movq %rdx, %r12
movq %rdi, %rbx
movq (%rsi), %rdi
callq 0x32d0
leaq 0x90(%rsp), %rdi
movq %rax, %rsi
callq 0x5a14
movq (%r12), %rdi
callq 0x32d0
leaq 0x58(%rsp), %rdi
movq %rax, %rsi
callq 0x5a14
leaq 0x2ca2(%rip), %rsi      # 0x7441
leaq 0x58(%rsp), %rdi
callq 0x620c
leaq 0x58(%rsp), %r12
leaq 0x90(%rsp), %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0x4c0e
testb %al, %al
jne 0x47b6
leaq 0x8(%rsp), %rdx
movb $0x0, (%rdx)
leaq 0x28(%rsp), %rdi
leaq 0x7(%rsp), %rcx
movq %r15, %rsi
callq 0x5d4a
testq %r14, %r14
je 0x4957
movq %rbx, 0x40(%rsp)
xorpd %xmm0, %xmm0
leaq 0x8(%rsp), %r15
xorpd %xmm1, %xmm1
movsd %xmm1, 0x20(%rsp)
movsd %xmm0, 0x50(%rsp)
movq %r15, %rdi
xorl %esi, %esi
callq 0x3470
movq 0x8(%rsp), %rbp
movq 0x10(%rsp), %rbx
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
subq %rsi, %rdx
leaq 0x90(%rsp), %rdi
callq 0x5daa
movq %r15, %rdi
xorl %esi, %esi
callq 0x3470
xorps %xmm0, %xmm0
cvtsi2sdq 0x8(%rsp), %xmm0
movsd %xmm0, 0x48(%rsp)
xorps %xmm0, %xmm0
cvtsi2sdq 0x10(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
leaq 0x90(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x5dc8
movq %r15, %rdi
xorl %esi, %esi
callq 0x3470
movq 0x8(%rsp), %r12
movq 0x10(%rsp), %r13
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
subq %rsi, %rdx
leaq 0x58(%rsp), %rdi
callq 0x5e7e
xorps %xmm0, %xmm0
cvtsi2sd %rbx, %xmm0
xorps %xmm1, %xmm1
cvtsi2sd %rbp, %xmm1
movsd 0x2785(%rip), %xmm3     # 0x7038
divsd %xmm3, %xmm0
addsd %xmm0, %xmm1
movsd 0x18(%rsp), %xmm2
divsd %xmm3, %xmm2
addsd 0x48(%rsp), %xmm2
subsd %xmm1, %xmm2
movsd 0x20(%rsp), %xmm0
addsd %xmm2, %xmm0
movsd %xmm0, 0x20(%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %r13, %xmm0
divsd %xmm3, %xmm0
xorps %xmm1, %xmm1
cvtsi2sd %r12, %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x18(%rsp)
movq %r15, %rdi
xorl %esi, %esi
callq 0x3470
xorps %xmm0, %xmm0
cvtsi2sdq 0x8(%rsp), %xmm0
xorps %xmm1, %xmm1
cvtsi2sdq 0x10(%rsp), %xmm1
divsd 0x2715(%rip), %xmm1     # 0x7038
addsd %xmm0, %xmm1
subsd 0x18(%rsp), %xmm1
movsd 0x50(%rsp), %xmm0
addsd %xmm1, %xmm0
decq %r14
jne 0x4800
movq 0x20(%rsp), %xmm1
movq %xmm1, %rax
movq %xmm0, %rcx
movq 0x40(%rsp), %rbx
jmp 0x495b
xorl %eax, %eax
xorl %ecx, %ecx
xchgq %rax, 0x8(%rbx)
xchgq %rcx, (%rbx)
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x4979
movq 0x38(%rsp), %rsi
subq %rdi, %rsi
callq 0x32c0
leaq 0x58(%rsp), %rdi
callq 0x5b16
leaq 0x90(%rsp), %rdi
callq 0x5b16
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x49ab
jmp 0x49ab
movq %rax, %rbx
jmp 0x49d4
movq %rax, %rbx
jmp 0x49ca
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x49ca
movq 0x38(%rsp), %rsi
subq %rdi, %rsi
callq 0x32c0
leaq 0x58(%rsp), %rdi
callq 0x5b16
leaq 0x90(%rsp), %rdi
callq 0x5b16
movq %rbx, %rdi
callq 0x34c0