// File: /workspace/github_c_makefile_star2_O2/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 $0xc8, %rsp
movq %rsi, %r12
movq %rdi, %rbx
movzwl 0x6dee(%rip), %edi      # 0x92a8
pushq $0x2
popq %r15
pushq $-0x16
popq %r14
testl %edi, %edi
je 0x251e
pushq $0x1
popq %rsi
pushq $0x6
popq %rdx
callq 0x2380
testl %eax, %eax
js 0x2645
movl %eax, %ebp
movzwl 0x6dc6(%rip), %eax      # 0x92a8
cmpw $0xa, %ax
pushq $0x1c
popq %rcx
cmovel %ecx, %r14d
cmpw $0x2, %ax
pushq $0x10
popq %rdx
cmovnel %r14d, %edx
testl %edx, %edx
js 0x265d
leaq 0x6da1(%rip), %rsi      # 0x92a8
movl %ebp, %edi
callq 0x22e0
testl %eax, %eax
js 0x2652
movl %ebp, 0x54(%rbx)
jmp 0x2673
movq %r12, 0x28(%rsp)
xorpd %xmm0, %xmm0
leaq 0x40(%rsp), %rdx
movapd %xmm0, (%rdx)
movapd %xmm0, 0x20(%rdx)
movapd %xmm0, 0x10(%rdx)
movabsq $0x600000001, %rax      # imm = 0x600000001
movq %rax, 0x8(%rdx)
leaq 0x80(%rsp), %r12
andq $0x0, (%r12)
movq (%rbx), %rdi
xorl %esi, %esi
movq %r12, %rcx
callq 0x2320
testl %eax, %eax
jne 0x294c
pushq $-0x1
popq %rax
movl %eax, 0x10(%rsp)
pushq $-0x2
popq %r13
pushq $0x1
popq %rbp
movq (%r12), %r12
testq %r12, %r12
je 0x285d
movq 0x18(%r12), %rax
movzwl (%rax), %ecx
orl $0x8, %ecx
cmpl $0xa, %ecx
jne 0x2606
movzwl 0x8(%rbx), %ecx
rolw $0x8, %cx
movw %cx, 0x2(%rax)
movl 0x4(%r12), %edi
movl %ebp, %esi
pushq $0x6
popq %rdx
callq 0x2380
movl %eax, %r13d
testl %eax, %eax
js 0x2609
movq 0x18(%r12), %rsi
movl 0x10(%r12), %edx
movl %r13d, %edi
callq 0x22e0
testl %eax, %eax
je 0x2612
callq 0x2070
movl %ebp, %r14d
movl %r15d, %ebp
xorl %r15d, %r15d
subl (%rax), %r15d
leaq 0x2be6(%rip), %rdi      # 0x51cb
callq 0x2280
movl %r13d, %edi
callq 0x2180
movl %r13d, 0x10(%rsp)
movl %r15d, %r13d
movl %ebp, %r15d
movl %r14d, %ebp
pushq $-0x16
popq %r14
jmp 0x2609
movl %r14d, %r13d
addq $0x28, %r12
jmp 0x2578
movl %r13d, %eax
movl %eax, 0x54(%rbx)
movq 0x18(%r12), %rsi
movl 0x10(%r12), %edx
leaq 0x6c7f(%rip), %rdi      # 0x92a8
callq 0x21e0
movq 0x80(%rsp), %rdi
callq 0x2370
xorl %r13d, %r13d
movq 0x28(%rsp), %r12
jmp 0x2667
callq 0x2070
xorl %r13d, %r13d
subl (%rax), %r13d
jmp 0x2667
callq 0x2070
xorl %r14d, %r14d
subl (%rax), %r14d
movl %ebp, %edi
callq 0x2180
movl %r14d, %r13d
testl %r13d, %r13d
js 0x2937
movl 0x54(%rbx), %ebp
movabsq $0x10000001c000000, %rax # imm = 0x10000001C000000
leaq 0x40(%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)
andw $0x0, 0x19(%rsi)
movb $0x0, 0x1b(%rsi)
pushq $0x1c
popq %rdx
movl %ebp, %edi
callq 0x4ac6
testl %eax, %eax
js 0x2937
movl 0x54(%rbx), %edi
leaq 0x40(%rsp), %rsi
pushq $0x10
popq %rdx
callq 0x4acb
testl %eax, %eax
js 0x2937
movzwl 0x4c(%rsp), %eax
rolw $0x8, %ax
movw %ax, 0xa(%rbx)
leaq 0x6c37(%rip), %rax      # 0x9328
movups 0x6bb0(%rip), %xmm0     # 0x92a8
movups %xmm0, (%rax)
movupd 0x6bb1(%rip), %xmm0     # 0x92b4
movupd %xmm0, 0xc(%rax)
movzwl (%rax), %ecx
orl $0x8, %ecx
cmpl $0xa, %ecx
jne 0x2937
movzwl 0xa(%rbx), %ecx
rolw $0x8, %cx
movw %cx, 0x2(%rax)
movq 0x70(%rbx), %rdi
movl 0x1c(%rbx), %edx
shlq $0x7, %rdx
xorl %r14d, %r14d
xorl %esi, %esi
callq 0x2160
movl 0x1c(%rbx), %eax
pushq $0x20
popq %rcx
cmpq %r14, %rax
je 0x2776
movq 0x70(%rbx), %rdx
movl %r14d, -0x20(%rdx,%rcx)
movq 0x60(%rbx), %rsi
imulq %r14, %rsi
addq 0x58(%rbx), %rsi
movq %rsi, -0x10(%rdx,%rcx)
movl 0x40(%rbx), %esi
movq %rsi, (%rdx,%rcx)
cmpl $0x1, 0xc(%rbx)
sete -0x8(%rdx,%rcx)
incq %r14
subq $-0x80, %rcx
jmp 0x273e
movl %r15d, %r13d
xorl %r15d, %r15d
xorl %edi, %edi
callq 0x33d4
xorl %r14d, %r14d
movl 0x1c(%rbx), %edi
cmpq %rdi, %r14
jae 0x27ab
movq 0x70(%rbx), %rdi
addq %r15, %rdi
callq 0x3865
testl %eax, %eax
js 0x283c
incq %r14
subq $-0x80, %r15
jmp 0x2786
callq 0x3405
callq 0x3443
pushq $0x1
popq %rbp
movl %ebp, %edi
callq 0x33d4
movl 0x1c(%rbx), %edi
callq 0x3405
callq 0x3443
pushq $0x2
popq %rdi
callq 0x33d4
leaq 0x80(%rsp), %rsi
movl %ebp, %edi
callq 0x20c0
testl %eax, %eax
js 0x291a
movl 0x10(%rbx), %r15d
pushq $0x1
popq %rdi
leaq 0x40(%rsp), %rsi
callq 0x20c0
testl %eax, %eax
js 0x2924
movl %eax, %ebp
movq %r12, 0x28(%rsp)
leaq 0x40(%rsp), %r14
addq %r15, (%r14)
leaq 0x6aae(%rip), %r15      # 0x92c8
movq %r15, %rdi
callq 0x2360
leaq 0x28(%r15), %r12
testl %ebp, %ebp
jne 0x2897
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2260
movl %eax, %ebp
jmp 0x2826
pushq $0x28
popq %r15
subq $0x1, %r14
jb 0x292c
movq 0x70(%rbx), %rax
movq (%rax,%r15), %rdi
callq 0x2350
subq $-0x80, %r15
jmp 0x2840
testl %r13d, %r13d
movl 0x10(%rsp), %eax
jns 0x2615
movq 0x80(%rsp), %rdi
callq 0x2370
movq 0x677a(%rip), %rax      # 0x8ff8
movq (%rax), %rdi
movq (%rbx), %rdx
leaq 0x2948(%rip), %rsi      # 0x51d3
xorl %eax, %eax
callq 0x21d0
jmp 0x263e
leaq 0x6a2a(%rip), %rdi      # 0x92c8
callq 0x2200
cmpl $0x6e, %ebp
sete %al
testl %ebp, %ebp
setle %cl
orb %al, %cl
je 0x2924
leaq 0x6927(%rip), %rdi      # 0x91e0
callq 0x2d7d
pushq $0x1
popq %rdi
leaq 0xb8(%rsp), %rsi
callq 0x20c0
testl %eax, %eax
movq 0x28(%rsp), %r12
js 0x291a
movq 0xb8(%rsp), %rax
movq 0xc0(%rsp), %rcx
subq 0x80(%rsp), %rax
cvtsi2sd %rax, %xmm0
subq 0x88(%rsp), %rcx
cvtsi2sd %rcx, %xmm1
mulsd 0x26ff(%rip), %xmm1     # 0x5008
addsd %xmm0, %xmm1
movsd %xmm1, 0x20(%rsp)
movsd %xmm1, 0x78(%rbx)
jmp 0x2990
callq 0x2070
cmpl $0x0, (%rax)
jle 0x2980
movq %rbx, %rdi
callq 0x2d7d
movq %rbx, %rdi
callq 0x2d75
movl %r13d, %r15d
movl %r15d, %eax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $-0x2
popq %r13
movq 0x66a1(%rip), %rcx      # 0x8ff8
movq (%rcx), %r14
movq (%rbx), %r12
movl %eax, %edi
callq 0x2140
leaq 0x2843(%rip), %rsi      # 0x51ae
movq %r14, %rdi
movq %r12, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x21d0
jmp 0x263e
movq %r12, 0x28(%rsp)
movsd 0x78(%rbx), %xmm0
movsd %xmm0, 0x20(%rsp)
movl 0x34(%rbx), %ebp
movl 0xc(%rbx), %eax
movl %eax, 0x1c(%rsp)
movl 0x1c(%rbx), %edi
pushq $0x30
popq %r13
movq %rdi, 0x10(%rsp)
movq %r13, %rsi
callq 0x21b0
testq %rax, %rax
je 0x2aea
movq %rax, %r12
movl %ebp, 0xc(%rsp)
movl 0x54(%rbx), %edi
leaq 0x80(%rsp), %rsi
pushq $0x18
popq %rdx
callq 0x4acb
testl %eax, %eax
js 0x2ac6
cmpl $0x0, 0x8c(%rsp)
jne 0x2ac6
cmpl $0x38000000, 0x90(%rsp) # imm = 0x38000000
jne 0x2ac6
movl 0x94(%rsp), %eax
bswapl %eax
cmpl 0x1c(%rbx), %eax
jne 0x2ac6
xorl %r14d, %r14d
pushq $0x38
popq %rbp
pushq $0x8
popq %r15
cmpl %eax, %r14d
jae 0x2afb
movl 0x54(%rbx), %edi
leaq 0x40(%rsp), %rsi
movl %ebp, %edx
callq 0x4a68
testl %eax, %eax
js 0x2ac6
movzwl 0x74(%rsp), %edx
rolw $0x8, %dx
movl 0x1c(%rbx), %eax
movq %r15, %rsi
xorl %ecx, %ecx
cmpq %rcx, %rax
je 0x2ac6
movq 0x70(%rbx), %rdi
cmpw %dx, (%rdi,%rsi)
je 0x2a5d
incq %rcx
subq $-0x80, %rsi
jmp 0x2a45
testl %ecx, %ecx
js 0x2ac6
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
imulq $0x30, %rcx, %rcx
movq 0x40(%rsp), %rdx
rolq $0x20, %rdx
movq %rdx, (%r12,%rcx)
movq 0x48(%rsp), %rdx
rolq $0x20, %rdx
movq %rdx, 0x8(%r12,%rcx)
movq 0x50(%rsp), %rdx
rolq $0x20, %rdx
movq %rdx, 0x10(%r12,%rcx)
movq 0x58(%rsp), %rdx
rolq $0x20, %rdx
movq %rdx, 0x18(%r12,%rcx)
movq 0x60(%rsp), %rdx
rolq $0x20, %rdx
movq %rdx, 0x20(%r12,%rcx)
movq 0x68(%rsp), %rdx
rolq $0x20, %rdx
movq %rdx, 0x28(%r12,%rcx)
incl %r14d
jmp 0x2a14
movq %r12, %rdi
callq 0x2030
movq 0x6523(%rip), %rax      # 0x8ff8
movq (%rax), %rcx
leaq 0x2730(%rip), %rdi      # 0x520f
pushq $0x1f
popq %rsi
pushq $0x1
popq %rdx
callq 0x22f0
pushq $-0xe
popq %r15
movq %rbx, %rdi
callq 0x2d75
jmp 0x2937
movl 0xc(%rsp), %r15d
testb $0xc, %r15b
je 0x2b44
leaq 0x26e1(%rip), %rdi      # 0x51ee
movsd 0x20(%rsp), %xmm0
movb $0x1, %al
callq 0x2120
xorpd %xmm0, %xmm0
movapd %xmm0, 0x40(%rsp)
movapd %xmm0, 0x50(%rsp)
movapd %xmm0, 0x60(%rsp)
testb $0x8, %r15b
je 0x2b5a
leaq 0x26c4(%rip), %rdi      # 0x5201
callq 0x401a
jmp 0x2b5a
xorpd %xmm0, %xmm0
movapd %xmm0, 0x60(%rsp)
movapd %xmm0, 0x50(%rsp)
movapd %xmm0, 0x40(%rsp)
xorl %r14d, %r14d
leaq 0x40(%rsp), %rbp
cmpq %r14, 0x10(%rsp)
je 0x2b9b
movl %r15d, %eax
movq 0x70(%rbx), %r15
addq %r13, %r15
testb $0x8, %al
je 0x2b82
movq %r15, %rdi
movl %r14d, %esi
callq 0x404f
movq %rbp, %rdi
movq %r15, %rsi
callq 0x3460
incq %r14
subq $-0x80, %r13
movl 0xc(%rsp), %r15d
jmp 0x2b62
testb $0x8, %r15b
jne 0x2bc2
xorpd %xmm0, %xmm0
movapd %xmm0, 0xa0(%rsp)
movapd %xmm0, 0x90(%rsp)
movapd %xmm0, 0x80(%rsp)
jmp 0x2c02
leaq 0x40(%rsp), %rdi
pushq $-0x1
popq %rsi
callq 0x404f
pushq $0xa
popq %rdi
callq 0x2050
xorpd %xmm0, %xmm0
movapd %xmm0, 0x80(%rsp)
movapd %xmm0, 0x90(%rsp)
movapd %xmm0, 0xa0(%rsp)
leaq 0x260b(%rip), %rdi      # 0x5208
callq 0x401a
xorl %r14d, %r14d
leaq 0x80(%rsp), %r13
movq %r12, %rbp
cmpq %r14, 0x10(%rsp)
je 0x2c3c
testb $0x8, %r15b
je 0x2c28
movq %rbp, %rdi
movl %r14d, %esi
callq 0x404f
movq %r13, %rdi
movq %rbp, %rsi
callq 0x3460
incq %r14
addq $0x30, %rbp
jmp 0x2c10
testb $0x8, %r15b
je 0x2c5a
leaq 0x80(%rsp), %rdi
pushq $-0x1
popq %rsi
callq 0x404f
pushq $0xa
popq %rdi
callq 0x2050
leaq 0x48(%rbx), %r13
xorpd %xmm0, %xmm0
movsd %xmm0, 0x38(%rsp)
pushq $0x30
popq %r15
xorl %r14d, %r14d
movq %r12, %rbp
movsd %xmm0, 0x30(%rsp)
cmpq %r14, 0x10(%rsp)
je 0x2d0c
movq 0x70(%rbx), %rdi
addq %r15, %rdi
movq %rbp, %rsi
movl 0x1c(%rsp), %edx
movsd 0x20(%rsp), %xmm0
callq 0x3fde
movapd %xmm0, %xmm1
testb $0x4, 0xc(%rsp)
je 0x2cd8
movq 0x70(%rbx), %rdi
addq %r15, %rdi
movq %rbp, %rsi
movl %r14d, %edx
movl 0x1c(%rsp), %ecx
movsd 0x20(%rsp), %xmm0
movq %r13, %r8
movsd %xmm1, 0xb0(%rsp)
callq 0x4198
movsd 0xb0(%rsp), %xmm1
movsd 0x30(%rsp), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x30(%rsp)
mulsd %xmm1, %xmm1
movsd 0x38(%rsp), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x38(%rsp)
incq %r14
subq $-0x80, %r15
addq $0x30, %rbp
jmp 0x2c78
movq %r12, %rdi
callq 0x2030
testb $0x4, 0xc(%rsp)
je 0x2d5e
leaq 0x40(%rsp), %rdi
leaq 0x80(%rsp), %rsi
pushq $-0x1
popq %rdx
movl 0x1c(%rsp), %ecx
movsd 0x20(%rsp), %xmm0
movq %r13, %r8
callq 0x4198
movsd 0x30(%rsp), %xmm0
movsd 0x38(%rsp), %xmm1
movq 0x10(%rsp), %rdi
movq %r13, %rsi
callq 0x40ca
pushq $0xa
popq %rdi
callq 0x2050
movq 0x28(%rsp), %rax
movsd 0x30(%rsp), %xmm0
movsd %xmm0, (%rax)
xorl %r15d, %r15d
jmp 0x2aee