// File: /workspace/github_c_makefile_star2_O2/mkubecek[P]nperf/server/main.c
// Function: main
int main(int argc, char *argv[])
{
	int ret;
	int sd;

	ret = parse_cmdline(argc, argv, &server_config);
	if (ret < 0)
		return 1;

	printf("port: %hu\n", server_config.port);

	ret = server_init();
	if (ret < 0)
		return 2;
	sd = setup_ctrl(&server_config);
	if (sd < 0)
		return 2;

	ret = server_loop(sd);
	if (ret < 0)
		return 3;
	if (ret > 0) /* child */
		ret = ctrl_main(sd);

	close(sd);
	return ret ? 3 : 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x3a0a(%rip), %r14      # 0x4d70
movq 0x3c6b(%rip), %r13      # 0x4fd8
leaq 0x1c99(%rip), %r15      # 0x300d
leaq 0x8(%rsp), %r12
movq 0x3db8(%rip), %rdx      # 0x5138
movl %ebp, %edi
movq %rbx, %rsi
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x1090
cmpl $0x70, %eax
jne 0x13be
movq (%r13), %rsi
movl $0xffff, %r8d           # imm = 0xFFFF
movq %r15, %rdi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0x1f06
testl %eax, %eax
js 0x13ed
movzwl 0x8(%rsp), %eax
movw %ax, 0x3d84(%rip)       # 0x5140
jmp 0x1379
cmpl $-0x1, %eax
je 0x13f2
cmpl $0x3f, %eax
jne 0x1433
movq 0x3c01(%rip), %rbx      # 0x4fd0
movq (%rbx), %rsi
leaq 0x1c44(%rip), %rdi      # 0x301d
callq 0x10d0
movq (%rbx), %rsi
leaq 0x1c53(%rip), %rdi      # 0x303b
callq 0x10d0
pushq $0x1
popq %rbp
jmp 0x1422
movzwl 0x3d47(%rip), %esi      # 0x5140
leaq 0x1c12(%rip), %rdi      # 0x3012
xorl %eax, %eax
callq 0x10b0
pushq $0xd
popq %rdi
callq 0x2031
pushq $0x2
popq %rbp
testl %eax, %eax
js 0x1422
pushq $0x11
popq %rdi
callq 0x2031
testl %eax, %eax
jns 0x1458
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x68, %eax
je 0x15ad
movq 0x3bb5(%rip), %rcx      # 0x4ff8
movq (%rcx), %rdi
leaq 0x1bd8(%rip), %rsi      # 0x3025
movl %eax, %edx
xorl %eax, %eax
callq 0x1100
jmp 0x13ed
xorps %xmm0, %xmm0
movups %xmm0, 0xc(%rsp)
andq $0x0, 0x1c(%rsp)
movw $0xa, 0x8(%rsp)
movzwl 0x3ccc(%rip), %eax      # 0x5140
rolw $0x8, %ax
movw %ax, 0xa(%rsp)
pushq $0xa
popq %rdi
pushq $0x1
popq %rsi
pushq $0x6
popq %rdx
callq 0x1230
testl %eax, %eax
jns 0x149b
leaq 0x1e4a(%rip), %r14      # 0x32e0
jmp 0x151d
movl %eax, %ebx
leaq 0x4(%rsp), %rcx
andl $0x0, (%rcx)
pushq $0x29
popq %rsi
pushq $0x1a
popq %rdx
pushq $0x4
popq %r8
movl %eax, %edi
callq 0x1070
testl %eax, %eax
jns 0x14c3
leaq 0x1e26(%rip), %r14      # 0x32e7
jmp 0x151d
leaq 0x4(%rsp), %rcx
movl $0x1, (%rcx)
pushq $0x1
popq %rsi
pushq $0x2
popq %rdx
pushq $0x4
popq %r8
movl %ebx, %edi
callq 0x1070
testl %eax, %eax
jns 0x14ec
leaq 0x1e15(%rip), %r14      # 0x32ff
jmp 0x151d
leaq 0x8(%rsp), %rsi
pushq $0x1c
popq %rdx
movl %ebx, %edi
callq 0x1140
testl %eax, %eax
jns 0x1508
leaq 0x1e12(%rip), %r14      # 0x3318
jmp 0x151d
pushq $0x10
popq %rsi
movl %ebx, %edi
callq 0x1110
testl %eax, %eax
jns 0x1536
leaq 0x1e00(%rip), %r14      # 0x331d
callq 0x1040
movl (%rax), %ebx
movq %r14, %rdi
callq 0x1160
testl %ebx, %ebx
jg 0x1422
negl %ebx
leaq 0x1dee(%rip), %r14      # 0x332b
movl %ebx, %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0x1180
testl %eax, %eax
js 0x156c
movl %eax, %ebp
callq 0x1220
testl %eax, %eax
js 0x1562
je 0x15ca
movl %ebp, %edi
callq 0x10e0
jmp 0x153d
movq %r14, %rdi
callq 0x1160
jmp 0x153d
callq 0x1040
movl (%rax), %ebp
leaq 0x1daa(%rip), %rdi      # 0x3324
callq 0x1160
testl %ebp, %ebp
jle 0x158a
pushq $0x3
jmp 0x13ef
je 0x159f
movl %ebx, %edi
callq 0x15dc
xorl %ecx, %ecx
testl %eax, %eax
setne %cl
leal (%rcx,%rcx,2), %ebp
jmp 0x15a1
xorl %ebp, %ebp
movl %ebx, %edi
callq 0x10e0
jmp 0x1422
movq 0x3a1c(%rip), %rax      # 0x4fd0
movq (%rax), %rsi
leaq 0x1a7d(%rip), %rdi      # 0x303b
callq 0x10d0
xorl %edi, %edi
callq 0x11c0
movl %ebx, %edi
callq 0x10e0
movl %ebp, %edi
callq 0x15dc
jmp 0x15c3
nop