// File: /workspace/github_c_makefile_star2_O3/mkubecek[P]nperf/client/main.c
// Function: one_iteration
int one_iteration(struct client_config *config, double *iter_result)
{
	int ret;

	ret = ctrl_initialize(config);
	if (ret < 0)
		goto err;
	ret = prepare_buffers(config);
	if (ret < 0)
		goto err_close;
	ret = start_workers(config);
	if (ret < 0)
		goto err_close;
	ret = connect_workers(config);
	if (ret < 0)
		goto err_workers;
	ret = run_test(config);
	if (ret < 0)
		goto err_workers;

	ret = collect_stats(config, iter_result);
	ctrl_close(config);
	return ret;

err_workers:
	kill_workers(config);
err_close:
	ctrl_close(config);
err:
	return 2;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rsi, %r13
movq %rdi, %rbx
movzwl 0x6c9e(%rip), %edi      # 0x9278
testl %edi, %edi
je 0x2644
movl $0x1, %esi
movl $0x6, %edx
callq 0x2380
testl %eax, %eax
js 0x2755
movl %eax, %r15d
movzwl 0x6c79(%rip), %eax      # 0x9278
cmpw $0xa, %ax
movl $0x1c, %ecx
movl $0xffffffea, %ebp       # imm = 0xFFFFFFEA
cmovel %ecx, %ebp
cmpw $0x2, %ax
movl $0x10, %edx
cmovnel %ebp, %edx
testl %edx, %edx
js 0x2769
leaq 0x6c4d(%rip), %rsi      # 0x9278
movl %r15d, %edi
callq 0x22e0
testl %eax, %eax
js 0x2760
movl %r15d, 0x54(%rbx)
jmp 0x277d
xorpd %xmm0, %xmm0
leaq 0x70(%rsp), %rdx
movapd %xmm0, (%rdx)
movapd %xmm0, 0x20(%rdx)
movapd %xmm0, 0x10(%rdx)
movabsq $0x600000001, %rax      # imm = 0x600000001
movq %rax, 0x8(%rdx)
leaq 0x40(%rsp), %rcx
movq $0x0, (%rcx)
movq (%rbx), %rdi
xorl %esi, %esi
callq 0x2320
testl %eax, %eax
jne 0x2b08
movq 0x40(%rsp), %r12
xorl %edi, %edi
testq %r12, %r12
je 0x2b1c
leaq 0x2b75(%rip), %r15      # 0x5213
movq 0x18(%r12), %rax
movzwl (%rax), %ecx
orl $0x8, %ecx
cmpl $0xa, %ecx
jne 0x2712
movzwl 0x8(%rbx), %ecx
rolw $0x8, %cx
movw %cx, 0x2(%rax)
movl 0x4(%r12), %edi
movl $0x1, %esi
movl $0x6, %edx
callq 0x2380
movl %eax, %ebp
testl %eax, %eax
js 0x2706
movq 0x18(%r12), %rsi
movl 0x10(%r12), %edx
movl %ebp, %edi
callq 0x22e0
testl %eax, %eax
je 0x272b
callq 0x2070
xorl %r14d, %r14d
subl (%rax), %r14d
movq %r15, %rdi
callq 0x2280
movl %ebp, %edi
callq 0x2180
movl %r14d, %ebp
movq 0x28(%r12), %r12
testq %r12, %r12
jne 0x269e
jmp 0x2721
movq 0x28(%r12), %r12
testq %r12, %r12
jne 0x269e
movl $0xffffffea, %ebp       # imm = 0xFFFFFFEA
movq 0x40(%rsp), %rdi
jmp 0x2b21
movq 0x40(%rsp), %r14
movl %ebp, 0x54(%rbx)
movq 0x18(%r12), %rsi
movl 0x10(%r12), %edx
leaq 0x6b34(%rip), %rdi      # 0x9278
callq 0x21e0
movq %r14, %rdi
callq 0x2370
xorl %ebp, %ebp
jmp 0x2771
callq 0x2070
xorl %ebp, %ebp
subl (%rax), %ebp
jmp 0x2771
callq 0x2070
xorl %ebp, %ebp
subl (%rax), %ebp
movl %r15d, %edi
callq 0x2180
testl %ebp, %ebp
js 0x2aef
movl 0x54(%rbx), %r15d
movabsq $0x10000001c000000, %rax # imm = 0x10000001C000000
leaq 0x70(%rsp), %rsi
movq %rax, (%rsi)
movl $0x1000000, 0x8(%rsi)   # imm = 0x1000000
movl 0xc(%rbx), %eax
bswapl %eax
movl %eax, 0xc(%rsi)
movl 0x1c(%rbx), %eax
bswapl %eax
movl %eax, 0x10(%rsi)
movl 0x40(%rbx), %eax
bswapl %eax
movl %eax, 0x14(%rsi)
movb 0x44(%rbx), %al
movb %al, 0x18(%rsi)
movw $0x0, 0x19(%rsi)
movb $0x0, 0x1b(%rsi)
movl %r15d, %edi
movl $0x1c, %edx
callq 0x4ef5
movl $0x2, %ebp
testl %eax, %eax
js 0x2af4
movl 0x54(%rbx), %edi
leaq 0x70(%rsp), %rsi
movl $0x10, %edx
callq 0x4efa
testl %eax, %eax
js 0x2af4
movzwl 0x7c(%rsp), %eax
rolw $0x8, %ax
movw %ax, 0xa(%rbx)
leaq 0x6af2(%rip), %rax      # 0x92f8
movups 0x6a6b(%rip), %xmm0     # 0x9278
movups %xmm0, (%rax)
movupd 0x6a6c(%rip), %xmm0     # 0x9284
movupd %xmm0, 0xc(%rax)
movzwl (%rax), %ecx
orl $0x8, %ecx
cmpl $0xa, %ecx
jne 0x2af4
movzwl 0xa(%rbx), %ecx
rolw $0x8, %cx
movw %cx, 0x2(%rax)
movq 0x70(%rbx), %rdi
movl 0x1c(%rbx), %edx
shlq $0x7, %rdx
xorl %esi, %esi
callq 0x2160
movl 0x1c(%rbx), %eax
testq %rax, %rax
je 0x288e
movq 0x70(%rbx), %rcx
movq 0x58(%rbx), %rdx
movq 0x60(%rbx), %rsi
cmpl $0x1, 0xc(%rbx)
movl 0x40(%rbx), %edi
sete %r8b
addq $0x20, %rcx
xorl %r9d, %r9d
movl %r9d, -0x20(%rcx)
movq %rdx, -0x10(%rcx)
movq %rdi, (%rcx)
movb %r8b, -0x8(%rcx)
incq %r9
addq %rsi, %rdx
subq $-0x80, %rcx
cmpq %r9, %rax
jne 0x2870
leaq 0x6a03(%rip), %r15      # 0x9298
movq %r15, %rdi
callq 0x2360
movl $0x0, 0x5c(%r15)
leaq 0x28(%r15), %r12
movq %r12, %rdi
callq 0x2080
movq %r15, %rdi
callq 0x2200
cmpl $0x0, 0x1c(%rbx)
je 0x2913
movq %r13, 0x38(%rsp)
xorl %r13d, %r13d
xorl %r14d, %r14d
movq 0x70(%rbx), %rdi
addq %r13, %rdi
callq 0x3bf6
testl %eax, %eax
js 0x2ab2
incq %r14
movl 0x1c(%rbx), %ebp
subq $-0x80, %r13
cmpq %rbp, %r14
jb 0x28ca
movq %r15, %rdi
callq 0x2360
cmpl %ebp, 0x58(%r15)
movq 0x38(%rsp), %r13
jae 0x291f
movq %r12, %rdi
movq %r15, %rsi
callq 0x20d0
cmpl %ebp, 0x58(%r15)
jb 0x2900
jmp 0x291f
leaq 0x697e(%rip), %rdi      # 0x9298
callq 0x2360
movq %r15, %rdi
callq 0x2200
movq %r15, %rdi
callq 0x2360
movl $0x0, 0x58(%r15)
movq %r15, %rdi
callq 0x2200
movq %r15, %rdi
callq 0x2360
movl $0x1, 0x5c(%r15)
movq %r12, %rdi
callq 0x2080
movq %r15, %rdi
callq 0x2200
movl 0x1c(%rbx), %ebp
movq %r15, %rdi
callq 0x2360
cmpl %ebp, 0x58(%r15)
jae 0x297d
movq %r12, %rdi
movq %r15, %rsi
callq 0x20d0
jmp 0x296a
movq %r15, %rdi
callq 0x2200
movq %r15, %rdi
callq 0x2360
movl $0x0, 0x58(%r15)
movq %r15, %rdi
callq 0x2200
movq %r15, %rdi
callq 0x2360
movl $0x2, 0x5c(%r15)
movq %r12, %rdi
callq 0x2080
movq %r15, %rdi
callq 0x2200
leaq 0x40(%rsp), %rsi
movl $0x1, %edi
callq 0x20c0
testl %eax, %eax
js 0x2ad5
movl 0x10(%rbx), %r15d
leaq 0x70(%rsp), %rsi
movl $0x1, %edi
callq 0x20c0
testl %eax, %eax
js 0x2adf
movl %eax, %r14d
addq %r15, 0x70(%rsp)
leaq 0x689a(%rip), %r15      # 0x9298
movq %r15, %rdi
callq 0x2360
testl %r14d, %r14d
jne 0x2a2f
movq %r13, %rbp
leaq 0x28(%r15), %r12
leaq 0x70(%rsp), %r13
movq %r12, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x2260
testl %eax, %eax
je 0x2a17
movl %eax, %r14d
movq %rbp, %r13
leaq 0x6862(%rip), %rdi      # 0x9298
callq 0x2200
cmpl $0x6e, %r14d
sete %al
testl %r14d, %r14d
setle %cl
orb %al, %cl
je 0x2adf
leaq 0x6789(%rip), %rdi      # 0x91e0
callq 0x3017
leaq 0xc8(%rsp), %rsi
movl $0x1, %edi
callq 0x20c0
testl %eax, %eax
js 0x2ad5
movq 0xc8(%rsp), %rax
movq 0xd0(%rsp), %rcx
subq 0x40(%rsp), %rax
cvtsi2sd %rax, %xmm0
subq 0x48(%rsp), %rcx
cvtsi2sd %rcx, %xmm1
mulsd 0x256a(%rip), %xmm1     # 0x5008
addsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movsd %xmm1, 0x78(%rbx)
jmp 0x2b51
testq %r14, %r14
je 0x2ae7
movl $0x28, %r15d
movq 0x70(%rbx), %rax
movq (%rax,%r15), %rdi
callq 0x2350
subq $-0x80, %r15
decq %r14
jne 0x2abd
jmp 0x2ae7
callq 0x2070
cmpl $0x0, (%rax)
jle 0x2b46
movq %rbx, %rdi
callq 0x3017
movl 0x54(%rbx), %edi
callq 0x2180
movl $0x2, %ebp
movl %ebp, %eax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movl %eax, %esi
callq 0x23b0
movl $0xfffffffe, %ebp       # imm = 0xFFFFFFFE
jmp 0x2771
movl $0xfffffffe, %ebp       # imm = 0xFFFFFFFE
callq 0x2370
movq 0x64cb(%rip), %rax      # 0x8ff8
movq (%rax), %rdi
movq (%rbx), %rdx
leaq 0x26e1(%rip), %rsi      # 0x521b
xorl %eax, %eax
callq 0x21d0
jmp 0x2771
movsd 0x78(%rbx), %xmm0
movsd %xmm0, 0x8(%rsp)
movl 0x34(%rbx), %ebp
movl 0xc(%rbx), %eax
movl %eax, 0x4(%rsp)
movl 0x1c(%rbx), %r15d
movl $0x30, %esi
movq %r15, %rdi
callq 0x21b0
testq %rax, %rax
je 0x2cf7
movq %rax, %r14
movq %r13, 0x38(%rsp)
movl 0x54(%rbx), %edi
leaq 0x40(%rsp), %rsi
movl $0x18, %edx
callq 0x4efa
testl %eax, %eax
js 0x2cef
cmpl $0x0, 0x4c(%rsp)
jne 0x2cef
cmpl $0x38000000, 0x50(%rsp) # imm = 0x38000000
jne 0x2cef
movl 0x54(%rsp), %eax
movl %eax, %ecx
bswapl %ecx
cmpl 0x1c(%rbx), %ecx
jne 0x2cef
testl %eax, %eax
je 0x2ca2
xorl %r12d, %r12d
leaq 0x70(%rsp), %r13
movl 0x54(%rbx), %edi
movq %r13, %rsi
movl $0x38, %edx
callq 0x4e94
testl %eax, %eax
js 0x2cef
movl 0x1c(%rbx), %eax
testq %rax, %rax
je 0x2cef
movzwl 0xa4(%rsp), %edx
rolw $0x8, %dx
movq 0x70(%rbx), %rsi
addq $0x8, %rsi
xorl %ecx, %ecx
cmpw %dx, (%rsi)
je 0x2c21
incq %rcx
subq $-0x80, %rsi
cmpq %rcx, %rax
jne 0x2c0b
jmp 0x2cef
testl %ecx, %ecx
js 0x2cef
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
leaq (%rcx,%rcx,2), %rcx
movq 0x70(%rsp), %rdx
rolq $0x20, %rdx
shlq $0x4, %rcx
movq 0x78(%rsp), %rsi
rolq $0x20, %rsi
movq %rdx, (%r14,%rcx)
movq 0x80(%rsp), %rdx
rolq $0x20, %rdx
movq %rsi, 0x8(%r14,%rcx)
movq 0x88(%rsp), %rsi
rolq $0x20, %rsi
movq %rdx, 0x10(%r14,%rcx)
movq 0x90(%rsp), %rdx
rolq $0x20, %rdx
movq %rsi, 0x18(%r14,%rcx)
movq 0x98(%rsp), %rsi
rolq $0x20, %rsi
movq %rdx, 0x20(%r14,%rcx)
movq %rsi, 0x28(%r14,%rcx)
incl %r12d
cmpl %eax, %r12d
jb 0x2bd1
testb $0xc, %bpl
movl %ebp, (%rsp)
je 0x2d01
leaq 0x2584(%rip), %rdi      # 0x5236
movsd 0x8(%rsp), %xmm0
movb $0x1, %al
callq 0x2120
xorpd %xmm0, %xmm0
movapd %xmm0, 0x70(%rsp)
movapd %xmm0, 0x80(%rsp)
movapd %xmm0, 0x90(%rsp)
testb $0x8, %bpl
je 0x2d1d
leaq 0x2561(%rip), %rdi      # 0x5249
callq 0x4403
jmp 0x2d1d
movq %r14, %rdi
callq 0x23e7
movl $0xfffffff2, %ebp       # imm = 0xFFFFFFF2
jmp 0x300a
xorpd %xmm0, %xmm0
movapd %xmm0, 0x90(%rsp)
movapd %xmm0, 0x80(%rsp)
movapd %xmm0, 0x70(%rsp)
testq %r15, %r15
je 0x2dc6
xorpd %xmm1, %xmm1
movl $0x30, %r13d
xorl %r12d, %r12d
pxor %xmm2, %xmm2
pxor %xmm3, %xmm3
movq 0x70(%rbx), %rbp
testb $0x8, (%rsp)
je 0x2d7d
movq %rbp, %rdi
addq %r13, %rdi
movl %r12d, %esi
movapd %xmm1, 0x10(%rsp)
movdqa %xmm2, 0x20(%rsp)
movdqa %xmm3, 0xb0(%rsp)
callq 0x443a
movdqa 0xb0(%rsp), %xmm3
movdqa 0x20(%rsp), %xmm2
movapd 0x10(%rsp), %xmm1
movdqu (%rbp,%r13), %xmm0
paddq %xmm0, %xmm1
movdqa %xmm1, 0x70(%rsp)
movdqu 0x10(%rbp,%r13), %xmm0
paddq %xmm0, %xmm2
movdqa %xmm2, 0x80(%rsp)
movdqu 0x20(%rbp,%r13), %xmm0
paddq %xmm0, %xmm3
movdqa %xmm3, 0x90(%rsp)
incq %r12
subq $-0x80, %r13
cmpq %r12, %r15
jne 0x2d3b
movl (%rsp), %ebp
testb $0x8, %bpl
jne 0x2de7
xorpd %xmm0, %xmm0
movapd %xmm0, 0x60(%rsp)
movapd %xmm0, 0x50(%rsp)
movapd %xmm0, 0x40(%rsp)
jmp 0x2e22
leaq 0x70(%rsp), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x443a
movl $0xa, %edi
callq 0x2050
xorpd %xmm0, %xmm0
movapd %xmm0, 0x40(%rsp)
movapd %xmm0, 0x50(%rsp)
movapd %xmm0, 0x60(%rsp)
leaq 0x2433(%rip), %rdi      # 0x5250
callq 0x4403
testq %r15, %r15
je 0x2eb4
xorpd %xmm1, %xmm1
xorl %r12d, %r12d
movq %r14, %r13
pxor %xmm2, %xmm2
pxor %xmm3, %xmm3
testb $0x8, %bpl
je 0x2e78
movq %r13, %rdi
movl %r12d, %esi
movapd %xmm1, 0x10(%rsp)
movdqa %xmm2, 0x20(%rsp)
movdqa %xmm3, 0xb0(%rsp)
callq 0x443a
movdqa 0xb0(%rsp), %xmm3
movdqa 0x20(%rsp), %xmm2
movapd 0x10(%rsp), %xmm1
movdqu (%r13), %xmm0
paddq %xmm0, %xmm1
movdqa %xmm1, 0x40(%rsp)
movdqu 0x10(%r13), %xmm0
paddq %xmm0, %xmm2
movdqa %xmm2, 0x50(%rsp)
movdqu 0x20(%r13), %xmm0
paddq %xmm0, %xmm3
movdqa %xmm3, 0x60(%rsp)
incq %r12
addq $0x30, %r13
cmpq %r12, %r15
jne 0x2e3d
testb $0x8, %bpl
je 0x2ed3
leaq 0x40(%rsp), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x443a
movl $0xa, %edi
callq 0x2050
testq %r15, %r15
je 0x2f95
leaq 0x48(%rbx), %rax
movq %rax, 0xc0(%rsp)
xorpd %xmm0, %xmm0
movsd %xmm0, 0x10(%rsp)
movl $0x30, %r13d
xorl %ebp, %ebp
movq %r14, %r12
movsd %xmm0, 0x20(%rsp)
movq 0x70(%rbx), %rdi
addq %r13, %rdi
movq %r12, %rsi
movl 0x4(%rsp), %edx
movsd 0x8(%rsp), %xmm0
callq 0x43c7
movapd %xmm0, %xmm1
testb $0x4, (%rsp)
je 0x2f5b
movq 0x70(%rbx), %rdi
addq %r13, %rdi
movq %r12, %rsi
movl %ebp, %edx
movl 0x4(%rsp), %ecx
movsd 0x8(%rsp), %xmm0
movq 0xc0(%rsp), %r8
movsd %xmm1, 0xb0(%rsp)
callq 0x4596
movsd 0xb0(%rsp), %xmm1
movsd 0x10(%rsp), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x10(%rsp)
mulsd %xmm1, %xmm1
movsd 0x20(%rsp), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x20(%rsp)
incq %rbp
subq $-0x80, %r13
addq $0x30, %r12
cmpq %rbp, %r15
jne 0x2f03
jmp 0x2fa5
xorpd %xmm0, %xmm0
movsd %xmm0, 0x20(%rsp)
movsd %xmm0, 0x10(%rsp)
movq %r14, %rdi
callq 0x2030
testb $0x4, (%rsp)
je 0x2ff9
leaq 0x48(%rbx), %r14
leaq 0x70(%rsp), %rdi
leaq 0x40(%rsp), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl 0x4(%rsp), %ecx
movsd 0x8(%rsp), %xmm0
movq %r14, %r8
callq 0x4596
movsd 0x10(%rsp), %xmm0
movsd 0x20(%rsp), %xmm1
movl %r15d, %edi
movq %r14, %rsi
callq 0x44c5
movl $0xa, %edi
callq 0x2050
movq 0x38(%rsp), %rax
movsd 0x10(%rsp), %xmm0
movsd %xmm0, (%rax)
xorl %ebp, %ebp
movl 0x54(%rbx), %edi
callq 0x2180
jmp 0x2af4