// File: /workspace/github_cpp_makefile_star2_O3/ctSkennerton[P]fxtract/util/concurs.c
// Function: main
int
main(int argc, char **argv)
{
    int		timeout = argc > 2 ? atoi(argv[2]) : 0;
    char *const	env_port = getenv("CONCUR_PORT");
    int		port     = env_port ? atoi(env_port) : CONCUR_PORT;
    int		skt	 = sock_bind("", port);

    if (skt < 0) {
	perror("concurs");
	exit(1);
    }

    setvbuf(stdout, NULL, _IOLBF, 0);
    if (argc == 1) record(skt); 
    else play(skt, argv[1], timeout);

    return    0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x968, %rsp            # imm = 0x968
movq %rsi, %r14
movl %edi, %r15d
movl $0x0, 0x8(%rsp)
cmpl $0x3, %edi
jl 0x36bd
movq 0x10(%r14), %rdi
callq 0x33a0
movl %eax, 0x8(%rsp)
leaq 0x3940(%rip), %rdi      # 0x7004
callq 0x3320
testq %rax, %rax
je 0x36da
movq %rax, %rdi
callq 0x33a0
movl %eax, %esi
jmp 0x36df
movl $0x14b9, %esi           # imm = 0x14B9
leaq 0x3a49(%rip), %rdi      # 0x712f
callq 0x58ac
testl %eax, %eax
js 0x3af8
movl %eax, %ebx
movq 0x68c4(%rip), %rax      # 0x9fc0
movq (%rax), %rdi
xorl %esi, %esi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x3030
cmpl $0x1, %r15d
movl %ebx, 0x4(%rsp)
je 0x3afd
movq 0x8(%r14), %r15
movb $0x4, 0x3(%rsp)
movq 0x68b5(%rip), %rdi      # 0x9fe0
leaq 0x6a6(%rip), %rsi       # 0x3dd8
xorl %edx, %edx
callq 0x3f60
movq %rax, %r14
leaq 0x3954(%rip), %rsi      # 0x7097
movq %r15, %rdi
callq 0x32f0
testq %rax, %rax
je 0x3dce
movq %rax, %r13
xorps %xmm0, %xmm0
movaps %xmm0, 0xc0(%rsp)
movaps %xmm0, 0xb0(%rsp)
movaps %xmm0, 0xa0(%rsp)
movaps %xmm0, 0x90(%rsp)
movaps %xmm0, 0x80(%rsp)
movaps %xmm0, 0x70(%rsp)
movaps %xmm0, 0x60(%rsp)
movaps %xmm0, 0x50(%rsp)
leaq 0xd0(%rsp), %r12
movq %r12, %rdi
movl $0x481, %esi            # imm = 0x481
movq %rax, %rdx
callq 0x33b0
testq %rax, %rax
je 0x3ac2
movl $0x1, %eax
movl %ebx, %ecx
shlq %cl, %rax
movq %rax, 0x20(%rsp)
movslq 0x8(%rsp), %r15
movl %ebx, %ebp
shrl $0x6, %ebp
movl %ebx, %eax
incl %eax
movl %eax, 0x14(%rsp)
movq $-0x2, %rax
rolq %cl, %rax
movq %rax, 0x18(%rsp)
movq %r13, 0x48(%rsp)
movq %r15, 0x28(%rsp)
movq %r15, 0x38(%rsp)
movq $0x0, 0x40(%rsp)
movq %r12, %rdi
callq 0x3100
testq %rax, %rax
jle 0x3831
leaq (%rsp,%rax), %rbx
addq $0xd0, %rbx
callq 0x32a0
movq (%rax), %rcx
movsbq -0x1(%rbx), %rdx
testb $0x20, 0x1(%rcx,%rdx,2)
je 0x3831
decq %rbx
movb $0x0, (%rbx)
cmpq %r12, %rbx
ja 0x3817
movzbl 0xd0(%rsp), %eax
testl %eax, %eax
movl 0x4(%rsp), %ebx
je 0x3a85
cmpl $0x23, %eax
jne 0x386f
cmpb $0x3a, 0xd1(%rsp)
je 0x3a85
movq 0x6761(%rip), %rax      # 0x9fc0
movq (%rax), %rsi
movq %r12, %rdi
callq 0x32d0
jmp 0x3a85
movq %r12, %rdi
movl $0x3a, %esi
callq 0x30f0
testq %rax, %rax
je 0x3aa0
movq %rax, %r15
movb $0x0, (%rax)
movq %r14, %rdi
movq %r12, %rsi
callq 0x413f
movq %rax, %r13
testl %r13d, %r13d
je 0x38a6
incq %r15
jmp 0x395c
movq 0x50(%rsp,%rbp,8), %rax
orq 0x20(%rsp), %rax
movq %rax, 0x50(%rsp,%rbp,8)
cmpl $0x0, 0x8(%rsp)
je 0x38e0
movl 0x14(%rsp), %edi
leaq 0x50(%rsp), %rsi
xorl %edx, %edx
xorl %ecx, %ecx
leaq 0x38(%rsp), %r8
callq 0x3260
testl %eax, %eax
js 0x3ad6
movq 0x50(%rsp,%rbp,8), %rax
andq 0x18(%rsp), %rax
movq %rax, 0x50(%rsp,%rbp,8)
movl %ebx, %edi
callq 0x5a7f
movl %eax, %r13d
leal 0x3f(%r13), %eax
testl %r13d, %r13d
cmovnsl %r13d, %eax
movl %eax, %edx
andl $-0x40, %edx
movl %r13d, %ecx
subl %edx, %ecx
movl $0x1, %edx
shlq %cl, %rdx
sarl $0x6, %eax
cltq
leaq 0x6efb(%rip), %rcx      # 0xa818
orq %rdx, (%rcx,%rax,8)
movq %r12, %rdi
callq 0x3420
movq %rax, %r15
movslq %r13d, %rdx
leaq 0x6f6a(%rip), %rax      # 0xa8a0
movq %r15, (%rax,%rdx,8)
movq %r14, %rdi
movq %r15, %rsi
callq 0x4314
movq %r14, %rdi
movq %r12, %rsi
callq 0x413f
movq %rax, %r13
testl %r13d, %r13d
je 0x38a6
leal 0x3f(%r13), %eax
testl %r13d, %r13d
cmovnsl %r13d, %eax
movl %eax, %edx
andl $-0x40, %edx
movl %r13d, %ecx
subl %edx, %ecx
movl $0x1, %ebx
shlq %cl, %rbx
sarl $0x6, %eax
movslq %eax, %rdx
movq 0x50(%rsp,%rdx,8), %rax
btsq %rcx, %rax
movq %rax, 0x50(%rsp,%rdx,8)
cmpl $0x0, 0x8(%rsp)
leaq 0x560(%rsp), %rcx
movq %rdx, 0x30(%rsp)
je 0x39d2
movl 0x14(%rsp), %edi
leaq 0x50(%rsp), %rsi
xorl %edx, %edx
xorl %ecx, %ecx
leaq 0x38(%rsp), %r8
callq 0x3260
testl %eax, %eax
js 0x3ae8
movq 0x30(%rsp), %rdx
movq 0x50(%rsp,%rdx,8), %rax
leaq 0x560(%rsp), %rcx
notq %rbx
andq %rbx, %rax
movq %rax, 0x50(%rsp,%rdx,8)
movl %r13d, %edi
movq %rcx, %rsi
movl $0x400, %edx            # imm = 0x400
callq 0x6208
testl %eax, %eax
jg 0x3a3e
movl %r13d, %edi
callq 0x3470
leaq 0x6e18(%rip), %rax      # 0xa818
movq 0x30(%rsp), %rcx
andq %rbx, (%rax,%rcx,8)
movslq %r13d, %rbx
leaq 0x6e8d(%rip), %rax      # 0xa8a0
movq (%rax,%rbx,8), %rsi
movq %r14, %rdi
callq 0x3fc7
leaq 0x6e7a(%rip), %rax      # 0xa8a0
movq (%rax,%rbx,8), %rdi
callq 0x3300
leaq 0x6e6a(%rip), %rax      # 0xa8a0
movq $0x0, (%rax,%rbx,8)
movl %r13d, %edi
leaq 0x3(%rsp), %rsi
movl $0x1, %edx
callq 0x6252
leaq 0x36c1(%rip), %rdi      # 0x7118
movq %r12, %rsi
leaq 0x560(%rsp), %rbx
movq %rbx, %rdx
xorl %eax, %eax
callq 0x3050
movq %r15, %rdi
movq %rbx, %rsi
callq 0x3488
testl %eax, %eax
movq 0x48(%rsp), %r13
movq 0x28(%rsp), %r15
jne 0x3ae3
movq %r12, %rdi
movl $0x481, %esi            # imm = 0x481
movq %r13, %rdx
callq 0x33b0
testq %rax, %rax
jne 0x37ec
jmp 0x3ac2
movq 0x6531(%rip), %rax      # 0x9fd8
movq (%rax), %rdi
leaq 0x35ff(%rip), %rsi      # 0x70b0
movq %r12, %rdx
xorl %eax, %eax
callq 0x3370
movq 0x28(%rsp), %r15
jmp 0x3a85
xorl %eax, %eax
addq $0x968, %rsp            # imm = 0x968
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xd0(%rsp), %rdi
callq 0x3490
callq 0x34db
leaq 0xd0(%rsp), %rdi
movq %r15, %rsi
callq 0x34b4
callq 0x357d
leaq 0x38(%rsp), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x6d0c(%rip)     # 0xa818
movups %xmm0, 0x6d15(%rip)     # 0xa828
movups %xmm0, 0x6d1e(%rip)     # 0xa838
movups %xmm0, 0x6d27(%rip)     # 0xa848
movups %xmm0, 0x6d30(%rip)     # 0xa858
movups %xmm0, 0x6d39(%rip)     # 0xa868
movups %xmm0, 0x6d42(%rip)     # 0xa878
movups %xmm0, 0x6d4b(%rip)     # 0xa888
leaq 0x6cd4(%rip), %rdx      # 0xa818
movl $0x1, %esi
movl %ebx, %ecx
shlq %cl, %rsi
movl %ebx, %ecx
shrl $0x6, %ecx
movq %rsi, 0x8(%rsp)
movq %rcx, 0x20(%rsp)
orq %rsi, (%rdx,%rcx,8)
movb $0x3, (%rax)
movl %ebx, 0x6ca6(%rip)      # 0xa810
movl %ebx, %eax
movq %rax, 0x18(%rsp)
leaq 0x6d28(%rip), %rbp      # 0xa8a0
movl %ebx, %eax
movl $0x10, %ecx
leaq 0x560(%rsp), %r8
movq %r8, %rdi
leaq 0x6c87(%rip), %rdx      # 0xa818
movq %rdx, %rsi
rep  movsq (%rsi), %es:(%rdi)
movl $0x10, %ecx
leaq 0x50(%rsp), %r9
movq %r9, %rdi
movq %rdx, %rsi
rep  movsq (%rsi), %es:(%rdi)
incl %eax
movl %eax, %edi
movq %r8, %rsi
xorl %edx, %edx
movq %r9, %rcx
xorl %r8d, %r8d
callq 0x3260
testl %eax, %eax
leaq 0xd0(%rsp), %r14
js 0x3d80
movl %eax, %r12d
movq 0x8(%rsp), %rax
movq 0x20(%rsp), %rcx
testq %rax, 0x560(%rsp,%rcx,8)
je 0x3c80
decl %r12d
movl %ebx, %edi
callq 0x5a7f
movl %eax, %r13d
movl %eax, %edi
movq %r14, %rsi
movl $0x400, %edx            # imm = 0x400
callq 0x6208
testl %eax, %eax
jle 0x3d97
movl %r13d, %edi
leaq 0x38(%rsp), %rsi
movl $0x1, %edx
callq 0x6252
movq %r14, %rdi
callq 0x3420
movslq %r13d, %rcx
movq %rax, (%rbp,%rcx,8)
leaq 0x34e2(%rip), %rdi      # 0x7118
movq %r14, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0x3050
leal 0x3f(%r13), %eax
testl %r13d, %r13d
cmovnsl %r13d, %eax
movl %eax, %edx
andl $-0x40, %edx
movl %r13d, %ecx
subl %edx, %ecx
movl $0x1, %edx
shlq %cl, %rdx
sarl $0x6, %eax
cltq
leaq 0x6bac(%rip), %rcx      # 0xa818
orq %rdx, (%rcx,%rax,8)
cmpl %r13d, 0x6b99(%rip)     # 0xa810
jge 0x3c80
movl %r13d, 0x6b90(%rip)     # 0xa810
testl %r12d, %r12d
jle 0x3d8c
movq 0x18(%rsp), %r13
incq %r13
movl %r13d, %r15d
movl $0x1, %r14d
movl %r13d, %ecx
shlq %cl, %r14
shrl $0x6, %r15d
movq 0x560(%rsp,%r15,8), %rax
movb $0x1, %bl
btq %r13, %rax
jae 0x3cfb
decl %r12d
movl %r13d, %edi
leaq 0xd0(%rsp), %rsi
movl $0x400, %edx            # imm = 0x400
callq 0x6208
testl %eax, %eax
js 0x3cf1
je 0x3cf9
movq (%rbp,%r13,8), %rsi
leaq 0x3398(%rip), %rdi      # 0x7076
movl %eax, %edx
leaq 0xd0(%rsp), %rcx
xorl %eax, %eax
callq 0x3050
jmp 0x3cfb
movq %r13, %rdi
callq 0x3551
xorl %ebx, %ebx
testq %r14, 0x50(%rsp,%r15,8)
jne 0x3d15
testb %bl, %bl
movl 0x4(%rsp), %ebx
je 0x3d39
testl %r12d, %r12d
jg 0x3c8e
jmp 0x3d8c
decl %r12d
movq 0x62b9(%rip), %rax      # 0x9fd8
movq (%rax), %rdi
movq (%rbp,%r13,8), %rdx
leaq 0x3351(%rip), %rsi      # 0x707f
xorl %eax, %eax
callq 0x3370
movl 0x4(%rsp), %ebx
movl %r13d, %edi
callq 0x3470
notq %r14
leaq 0x6acd(%rip), %rax      # 0xa818
andq %r14, (%rax,%r15,8)
movq (%rbp,%r13,8), %rdi
callq 0x3300
movq $0x0, (%rbp,%r13,8)
movl 0x6aa8(%rip), %eax      # 0xa810
cmpl %ebx, %eax
jle 0x3d0a
movl %eax, %ecx
cmpq $0x0, (%rbp,%rcx,8)
jne 0x3d0a
decl %eax
movl %eax, 0x6a92(%rip)      # 0xa810
jmp 0x3d68
callq 0x3040
movl (%rax), %edi
cmpl $0x4, %edi
jne 0x3da1
movl 0x6a7e(%rip), %eax      # 0xa810
jmp 0x3b7a
callq 0x3524
jmp 0x3c80
movq 0x6230(%rip), %rax      # 0x9fd8
movq (%rax), %rbx
callq 0x30e0
leaq 0x3261(%rip), %rsi      # 0x7018
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x3370
movl $0x1, %edi
callq 0x3310
movq %r15, %rdi
callq 0x3500
nop