// File: /workspace/github_c_makefile_star2_O1/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 $0xb8, %rsp
movq %rsi, %r12
movq %rdi, %rbx
movzwl 0x6c3e(%rip), %edi      # 0x9278
testl %edi, %edi
je 0x26a7
movl $0x1, %esi
movl $0x6, %edx
callq 0x2380
testl %eax, %eax
js 0x278d
movl %eax, %ebp
movzwl 0x6c1a(%rip), %eax      # 0x9278
cmpw $0xa, %ax
movl $0x1c, %ecx
movl $0xffffffea, %edx       # imm = 0xFFFFFFEA
cmovel %ecx, %edx
cmpw $0x2, %ax
movl $0x10, %r15d
cmovnel %edx, %r15d
testl %r15d, %r15d
js 0x27e7
leaq 0x6beb(%rip), %rsi      # 0x9278
movl %ebp, %edi
movl %r15d, %edx
callq 0x22e0
testl %eax, %eax
js 0x27dc
movl %ebp, 0x54(%rbx)
jmp 0x27d7
xorpd %xmm0, %xmm0
leaq 0x60(%rsp), %rdx
movapd %xmm0, (%rdx)
movapd %xmm0, 0x20(%rdx)
movapd %xmm0, 0x10(%rdx)
movabsq $0x600000001, %rax      # imm = 0x600000001
movq %rax, 0x8(%rdx)
leaq 0x30(%rsp), %rcx
movq $0x0, (%rcx)
movq (%rbx), %rdi
xorl %esi, %esi
callq 0x2320
testl %eax, %eax
jne 0x2ca6
movq 0x30(%rsp), %r14
testq %r14, %r14
je 0x27a2
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq 0x18(%r14), %rax
movzwl (%rax), %ecx
orl $0x8, %ecx
cmpl $0xa, %ecx
jne 0x271f
movzwl 0x8(%rbx), %ecx
rolw $0x8, %cx
movw %cx, 0x2(%rax)
xorl %eax, %eax
xorl %r15d, %r15d
jmp 0x2727
movl $0xffffffea, %r15d      # imm = 0xFFFFFFEA
movb $0x1, %al
testb %al, %al
jne 0x277e
movl 0x4(%r14), %edi
movl $0x1, %esi
movl $0x6, %edx
callq 0x2380
movl %eax, %r15d
testl %eax, %eax
js 0x277e
movq 0x18(%r14), %rsi
movl 0x10(%r14), %edx
movl %r15d, %edi
callq 0x22e0
testl %eax, %eax
je 0x279a
callq 0x2070
xorl %r13d, %r13d
subl (%rax), %r13d
leaq 0x2a60(%rip), %rdi      # 0x51cb
callq 0x2280
movl %r15d, %edi
callq 0x2180
movl %r15d, %ebp
movl %r13d, %r15d
movq 0x28(%r14), %r14
testq %r14, %r14
jne 0x26fd
jmp 0x27ad
callq 0x2070
xorl %r15d, %r15d
subl (%rax), %r15d
jmp 0x27ee
movl %r15d, %ebp
xorl %r15d, %r15d
jmp 0x27ad
movl $0xfffffffe, %r15d      # imm = 0xFFFFFFFE
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testl %r15d, %r15d
js 0x2cbb
movl %ebp, 0x54(%rbx)
movq 0x18(%r14), %rsi
movl 0x10(%r14), %edx
leaq 0x6ab0(%rip), %rdi      # 0x9278
callq 0x21e0
movq 0x30(%rsp), %rdi
callq 0x2370
xorl %r15d, %r15d
jmp 0x27ee
callq 0x2070
xorl %r15d, %r15d
subl (%rax), %r15d
movl %ebp, %edi
callq 0x2180
movl $0x2, %ebp
testl %r15d, %r15d
js 0x2fd0
movabsq $0x10000001c000000, %rax # imm = 0x10000001C000000
leaq 0x60(%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 0x54(%rbx), %edi
movl $0x1c, %edx
callq 0x4da2
testl %eax, %eax
js 0x2fd0
movl 0x54(%rbx), %edi
leaq 0x60(%rsp), %rsi
movl $0x10, %edx
callq 0x4da7
testl %eax, %eax
js 0x2fd0
movzwl 0x6c(%rsp), %eax
rolw $0x8, %ax
movw %ax, 0xa(%rbx)
leaq 0x6a78(%rip), %rax      # 0x92f8
movups 0x69f1(%rip), %xmm0     # 0x9278
movups %xmm0, (%rax)
movupd 0x69f2(%rip), %xmm0     # 0x9284
movupd %xmm0, 0xc(%rax)
movzwl (%rax), %ecx
orl $0x8, %ecx
cmpl $0xa, %ecx
jne 0x2fd0
movq %r12, 0xa0(%rsp)
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 0x2910
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 0x28f2
leaq 0x6981(%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
movl 0x1c(%rbx), %r13d
testl %r13d, %r13d
je 0x296d
xorl %ebp, %ebp
xorl %r14d, %r14d
movq 0x70(%rbx), %rdi
addq %rbp, %rdi
callq 0x3ab4
testl %eax, %eax
js 0x2c69
incq %r14
movl 0x1c(%rbx), %r13d
subq $-0x80, %rbp
cmpq %r13, %r14
jb 0x2949
movq %r15, %rdi
callq 0x2360
cmpl %r13d, 0x58(%r15)
jae 0x2988
movq %r12, %rdi
movq %r15, %rsi
callq 0x20d0
jmp 0x2975
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 0x29e6
movq %r12, %rdi
movq %r15, %rsi
callq 0x20d0
jmp 0x29d3
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 0x30(%rsp), %rsi
movl $0x1, %edi
callq 0x20c0
testl %eax, %eax
js 0x2b03
movl 0x10(%rbx), %r15d
leaq 0x60(%rsp), %rsi
movl $0x1, %edi
callq 0x20c0
movl %eax, %r14d
testl %eax, %eax
js 0x2aab
addq %r15, 0x60(%rsp)
leaq 0x6835(%rip), %r15      # 0x9298
movq %r15, %rdi
callq 0x2360
testl %r14d, %r14d
jne 0x2a8e
leaq 0x28(%r15), %r12
leaq 0x60(%rsp), %r13
movq %r12, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x2260
testl %eax, %eax
je 0x2a79
movl %eax, %r14d
leaq 0x6803(%rip), %rdi      # 0x9298
callq 0x2200
movl %r14d, %eax
negl %eax
xorl %ecx, %ecx
cmpl $0x6e, %r14d
cmovnel %eax, %ecx
movl %ecx, %r14d
testl %r14d, %r14d
js 0x2b0e
leaq 0x6729(%rip), %rdi      # 0x91e0
callq 0x2fe4
leaq 0x60(%rsp), %rsi
movl $0x1, %edi
callq 0x20c0
testl %eax, %eax
js 0x2b03
movq 0x60(%rsp), %rax
movq 0x68(%rsp), %rcx
subq 0x30(%rsp), %rax
cvtsi2sd %rax, %xmm0
subq 0x38(%rsp), %rcx
cvtsi2sd %rcx, %xmm1
mulsd 0x2513(%rip), %xmm1     # 0x5008
addsd %xmm0, %xmm1
movsd %xmm1, 0x78(%rbx)
xorl %r14d, %r14d
jmp 0x2b0e
callq 0x2070
xorl %r14d, %r14d
subl (%rax), %r14d
testl %r14d, %r14d
js 0x2c8c
movl 0x34(%rbx), %r13d
movl 0xc(%rbx), %eax
movl %eax, 0x14(%rsp)
movl 0x1c(%rbx), %edi
movsd 0x78(%rbx), %xmm0
movsd %xmm0, 0x20(%rsp)
movl $0x30, %esi
movq %rdi, 0x8(%rsp)
callq 0x21b0
testq %rax, %rax
je 0x2cd5
movq %rax, %rbp
movl 0x54(%rbx), %edi
leaq 0x30(%rsp), %rsi
movl $0x18, %edx
callq 0x4da7
testl %eax, %eax
js 0x2ccd
cmpl $0x0, 0x3c(%rsp)
jne 0x2ccd
cmpl $0x38000000, 0x40(%rsp) # imm = 0x38000000
jne 0x2ccd
movl 0x44(%rsp), %ecx
bswapl %ecx
movl 0x1c(%rbx), %eax
cmpl %eax, %ecx
jne 0x2ccd
testl %eax, %eax
je 0x2cd7
xorl %r12d, %r12d
leaq 0x60(%rsp), %r14
movl 0x54(%rbx), %edi
movq %r14, %rsi
movl $0x38, %edx
callq 0x4d41
testl %eax, %eax
js 0x2ccd
movl 0x1c(%rbx), %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
testq %rax, %rax
je 0x2bef
movzwl 0x94(%rsp), %edx
rolw $0x8, %dx
movq 0x70(%rbx), %rsi
addq $0x8, %rsi
xorl %edi, %edi
cmpw %dx, (%rsi)
je 0x2bed
incq %rdi
subq $-0x80, %rsi
cmpq %rdi, %rax
jne 0x2bda
jmp 0x2bef
movl %edi, %ecx
testl %ecx, %ecx
js 0x2ccd
movl %ecx, %ecx
leaq (%rcx,%rcx,2), %rcx
movq 0x60(%rsp), %rdx
rolq $0x20, %rdx
shlq $0x4, %rcx
movq 0x68(%rsp), %rsi
rolq $0x20, %rsi
movq %rdx, (%rbp,%rcx)
movq 0x70(%rsp), %rdx
rolq $0x20, %rdx
movq %rsi, 0x8(%rbp,%rcx)
movq 0x78(%rsp), %rsi
rolq $0x20, %rsi
movq %rdx, 0x10(%rbp,%rcx)
movq 0x80(%rsp), %rdx
rolq $0x20, %rdx
movq %rsi, 0x18(%rbp,%rcx)
movq 0x88(%rsp), %rsi
rolq $0x20, %rsi
movq %rdx, 0x20(%rbp,%rcx)
movq %rsi, 0x28(%rbp,%rcx)
incl %r12d
cmpl %eax, %r12d
jb 0x2b9f
jmp 0x2cd7
testq %r14, %r14
je 0x2c94
movl $0x28, %r15d
movq 0x70(%rbx), %rax
movq (%rax,%r15), %rdi
callq 0x2350
subq $-0x80, %r15
decq %r14
jne 0x2c74
jmp 0x2c94
movq %rbx, %rdi
callq 0x2fe4
movl 0x54(%rbx), %edi
callq 0x2180
movl $0x2, %ebp
jmp 0x2fd0
movq %rbx, %rdi
movl %eax, %esi
callq 0x23b0
movl $0xfffffffe, %r15d      # imm = 0xFFFFFFFE
jmp 0x27ee
leaq 0x30(%rsp), %rdi
movq %rbx, %rsi
callq 0x23e7
jmp 0x27ee
movq %rbp, %rdi
callq 0x2410
xorl %ebp, %ebp
testq %rbp, %rbp
je 0x2db9
testb $0xc, %r13b
je 0x2cfa
leaq 0x2501(%rip), %rdi      # 0x51ee
movsd 0x20(%rsp), %xmm0
movb $0x1, %al
callq 0x2120
xorpd %xmm0, %xmm0
movapd %xmm0, 0x80(%rsp)
movapd %xmm0, 0x70(%rsp)
movapd %xmm0, 0x60(%rsp)
testb $0x8, %r13b
je 0x2d25
leaq 0x24e1(%rip), %rdi      # 0x5201
callq 0x428b
cmpq $0x0, 0x8(%rsp)
je 0x2d9b
movl $0x30, %r15d
xorl %r14d, %r14d
movq 0x70(%rbx), %r12
testb $0x8, %r13b
je 0x2d4c
leaq (%r12,%r15), %rdi
movl %r14d, %esi
callq 0x42c2
movq (%r12,%r15), %rax
addq %rax, 0x60(%rsp)
movq 0x8(%r12,%r15), %rax
addq %rax, 0x68(%rsp)
movq 0x10(%r12,%r15), %rax
addq %rax, 0x70(%rsp)
movq 0x18(%r12,%r15), %rax
addq %rax, 0x78(%rsp)
movq 0x20(%r12,%r15), %rax
addq %rax, 0x80(%rsp)
movq 0x28(%r12,%r15), %rax
addq %rax, 0x88(%rsp)
incq %r14
subq $-0x80, %r15
cmpq %r14, 0x8(%rsp)
jne 0x2d36
testb $0x8, %r13b
jne 0x2dc3
xorpd %xmm0, %xmm0
movapd %xmm0, 0x50(%rsp)
movapd %xmm0, 0x40(%rsp)
movapd %xmm0, 0x30(%rsp)
jmp 0x2dfe
movl $0xfffffff2, %ebp       # imm = 0xFFFFFFF2
jmp 0x2fc8
leaq 0x60(%rsp), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x42c2
movl $0xa, %edi
callq 0x2050
xorpd %xmm0, %xmm0
movapd %xmm0, 0x30(%rsp)
movapd %xmm0, 0x40(%rsp)
movapd %xmm0, 0x50(%rsp)
leaq 0x240f(%rip), %rdi      # 0x5208
callq 0x428b
cmpq $0x0, 0x8(%rsp)
je 0x2e66
xorl %r14d, %r14d
movq %rbp, %r12
testb $0x8, %r13b
je 0x2e1d
movq %r12, %rdi
movl %r14d, %esi
callq 0x42c2
movq (%r12), %rax
addq %rax, 0x30(%rsp)
movq 0x8(%r12), %rax
addq %rax, 0x38(%rsp)
movq 0x10(%r12), %rax
addq %rax, 0x40(%rsp)
movq 0x18(%r12), %rax
addq %rax, 0x48(%rsp)
movq 0x20(%r12), %rax
addq %rax, 0x50(%rsp)
movq 0x28(%r12), %rax
addq %rax, 0x58(%rsp)
incq %r14
addq $0x30, %r12
cmpq %r14, 0x8(%rsp)
jne 0x2e0c
testb $0x8, %r13b
je 0x2e85
leaq 0x30(%rsp), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x42c2
movl $0xa, %edi
callq 0x2050
cmpq $0x0, 0x8(%rsp)
je 0x2f4e
leaq 0x48(%rbx), %rax
movq %rax, 0xa8(%rsp)
xorpd %xmm0, %xmm0
movsd %xmm0, 0x18(%rsp)
movl $0x30, %r15d
xorl %r14d, %r14d
movq %rbp, %r12
movsd %xmm0, 0x28(%rsp)
movq 0x70(%rbx), %rdi
addq %r15, %rdi
movq %r12, %rsi
movl 0x14(%rsp), %edx
movsd 0x20(%rsp), %xmm0
callq 0x424f
movapd %xmm0, %xmm1
testb $0x4, %r13b
je 0x2f12
movq 0x70(%rbx), %rdi
addq %r15, %rdi
movq %r12, %rsi
movl %r14d, %edx
movl 0x14(%rsp), %ecx
movsd 0x20(%rsp), %xmm0
movq 0xa8(%rsp), %r8
movsd %xmm1, 0xb0(%rsp)
callq 0x4414
movsd 0xb0(%rsp), %xmm1
movsd 0x18(%rsp), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x18(%rsp)
mulsd %xmm1, %xmm1
movsd 0x28(%rsp), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x28(%rsp)
incq %r14
subq $-0x80, %r15
addq $0x30, %r12
cmpq %r14, 0x8(%rsp)
jne 0x2eb9
jmp 0x2f5e
xorpd %xmm0, %xmm0
movsd %xmm0, 0x28(%rsp)
movsd %xmm0, 0x18(%rsp)
movq %rbp, %rdi
callq 0x2030
testb $0x4, %r13b
je 0x2fb4
leaq 0x48(%rbx), %r14
leaq 0x60(%rsp), %rdi
leaq 0x30(%rsp), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl 0x14(%rsp), %ecx
movsd 0x20(%rsp), %xmm0
movq %r14, %r8
callq 0x4414
movsd 0x18(%rsp), %xmm0
movsd 0x28(%rsp), %xmm1
movq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x434d
movl $0xa, %edi
callq 0x2050
movq 0xa0(%rsp), %rax
movsd 0x18(%rsp), %xmm0
movsd %xmm0, (%rax)
xorl %ebp, %ebp
movl 0x54(%rbx), %edi
callq 0x2180
movl %ebp, %eax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq