// File: /workspace/github_cpp_makefile_star2_O1/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 0x5a48
movq (%r12), %rdi
callq 0x32d0
leaq 0x58(%rsp), %rdi
movq %rax, %rsi
callq 0x5a48
leaq 0x2cce(%rip), %rsi      # 0x7441
leaq 0x58(%rsp), %rdi
callq 0x6210
leaq 0x58(%rsp), %r12
leaq 0x90(%rsp), %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0x4be2
testb %al, %al
jne 0x478a
leaq 0x8(%rsp), %rdx
movb $0x0, (%rdx)
leaq 0x28(%rsp), %rdi
leaq 0x7(%rsp), %rcx
movq %r15, %rsi
callq 0x5d80
testq %r14, %r14
je 0x492b
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 0x5de0
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 0x5dfe
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 0x5e92
xorps %xmm0, %xmm0
cvtsi2sd %rbx, %xmm0
xorps %xmm1, %xmm1
cvtsi2sd %rbp, %xmm1
movsd 0x27b1(%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 0x2741(%rip), %xmm1     # 0x7038
addsd %xmm0, %xmm1
subsd 0x18(%rsp), %xmm1
movsd 0x50(%rsp), %xmm0
addsd %xmm1, %xmm0
decq %r14
jne 0x47d4
movq 0x20(%rsp), %xmm1
movq %xmm1, %rax
movq %xmm0, %rcx
movq 0x40(%rsp), %rbx
jmp 0x492f
xorl %eax, %eax
xorl %ecx, %ecx
xchgq %rax, 0x8(%rbx)
xchgq %rcx, (%rbx)
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x494d
movq 0x38(%rsp), %rsi
subq %rdi, %rsi
callq 0x32c0
leaq 0x58(%rsp), %rdi
callq 0x5b4a
leaq 0x90(%rsp), %rdi
callq 0x5b4a
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x497f
jmp 0x497f
movq %rax, %rbx
jmp 0x49a8
movq %rax, %rbx
jmp 0x499e
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x499e
movq 0x38(%rsp), %rsi
subq %rdi, %rsi
callq 0x32c0
leaq 0x58(%rsp), %rdi
callq 0x5b4a
leaq 0x90(%rsp), %rdi
callq 0x5b4a
movq %rbx, %rdi
callq 0x34c0