// File: /workspace/github_cpp_makefile_star2_O1/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, 0x4(%rsp)
cmpl $0x3, %edi
jl 0x36bd
movq 0x10(%r14), %rdi
callq 0x33a0
movl %eax, 0x4(%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 0x58d8
testl %eax, %eax
js 0x3ad1
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, 0xc(%rsp)
je 0x3ad6
movq 0x8(%r14), %r15
movb $0x4, 0xb(%rsp)
movq 0x68b5(%rip), %rdi      # 0x9fe0
leaq 0x6a2(%rip), %rsi       # 0x3dd4
xorl %edx, %edx
callq 0x3f5c
movq %rax, %r14
leaq 0x3954(%rip), %rsi      # 0x7097
movq %r15, %rdi
callq 0x32f0
testq %rax, %rax
je 0x3dc9
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 0x3a9b
movl $0x1, %eax
movl %ebx, %ecx
shlq %cl, %rax
movq %rax, 0x20(%rsp)
movslq 0x4(%rsp), %r15
movl %ebx, %ebp
shrl $0x6, %ebp
movl %ebx, %eax
incl %eax
movl %eax, 0x10(%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 0xc(%rsp), %ebx
je 0x3a5e
cmpl $0x23, %eax
jne 0x386f
cmpb $0x3a, 0xd1(%rsp)
je 0x3a5e
movq 0x6761(%rip), %rax      # 0x9fc0
movq (%rax), %rsi
movq %r12, %rdi
callq 0x32d0
jmp 0x3a5e
movq %r12, %rdi
movl $0x3a, %esi
callq 0x30f0
testq %rax, %rax
je 0x3a79
movq %rax, %r15
movb $0x0, (%rax)
movq %r14, %rdi
movq %r12, %rsi
callq 0x414f
movq %rax, %r13
testl %r13d, %r13d
je 0x38a6
incq %r15
jmp 0x3952
movq 0x20(%rsp), %rax
orq %rax, 0x50(%rsp,%rbp,8)
cmpl $0x0, 0x4(%rsp)
je 0x38d6
movl 0x10(%rsp), %edi
leaq 0x50(%rsp), %rsi
xorl %edx, %edx
xorl %ecx, %ecx
leaq 0x38(%rsp), %r8
callq 0x3260
testl %eax, %eax
js 0x3aaf
movq 0x18(%rsp), %rax
andq %rax, 0x50(%rsp,%rbp,8)
movl %ebx, %edi
callq 0x5aa0
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 0x6f05(%rip), %rcx      # 0xa818
orq %rdx, (%rcx,%rax,8)
movq %r12, %rdi
callq 0x3420
movq %rax, %r15
movslq %r13d, %rdx
leaq 0x6f74(%rip), %rax      # 0xa8a0
movq %r15, (%rax,%rdx,8)
movq %r14, %rdi
movq %r15, %rsi
callq 0x4323
movq %r14, %rdi
movq %r12, %rsi
callq 0x414f
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
cltq
orq %rbx, 0x50(%rsp,%rax,8)
cmpl $0x0, 0x4(%rsp)
movq %rax, 0x30(%rsp)
je 0x39a9
movl 0x10(%rsp), %edi
leaq 0x50(%rsp), %rsi
xorl %edx, %edx
xorl %ecx, %ecx
leaq 0x38(%rsp), %r8
callq 0x3260
testl %eax, %eax
movq 0x30(%rsp), %rax
js 0x3ac1
notq %rbx
andq %rbx, 0x50(%rsp,%rax,8)
movl %r13d, %edi
leaq 0x560(%rsp), %rsi
movl $0x400, %edx            # imm = 0x400
callq 0x6227
testl %eax, %eax
jg 0x3a17
movl %r13d, %edi
callq 0x3470
leaq 0x6e3f(%rip), %rax      # 0xa818
movq 0x30(%rsp), %rcx
andq %rbx, (%rax,%rcx,8)
movslq %r13d, %rbx
leaq 0x6eb4(%rip), %rax      # 0xa8a0
movq (%rax,%rbx,8), %rsi
movq %r14, %rdi
callq 0x3fcc
leaq 0x6ea1(%rip), %rax      # 0xa8a0
movq (%rax,%rbx,8), %rdi
callq 0x3300
leaq 0x6e91(%rip), %rax      # 0xa8a0
movq $0x0, (%rax,%rbx,8)
movl %r13d, %edi
leaq 0xb(%rsp), %rsi
movl $0x1, %edx
callq 0x6271
leaq 0x36e8(%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 0x3abc
movq %r12, %rdi
movl $0x481, %esi            # imm = 0x481
movq %r13, %rdx
callq 0x33b0
testq %rax, %rax
jne 0x37ec
jmp 0x3a9b
movq 0x6558(%rip), %rax      # 0x9fd8
movq (%rax), %rdi
leaq 0x3626(%rip), %rsi      # 0x70b0
movq %r12, %rdx
xorl %eax, %eax
callq 0x3370
movq 0x28(%rsp), %r15
jmp 0x3a5e
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
movb $0x3, (%rax)
movl %ebx, 0x6d2c(%rip)      # 0xa810
xorps %xmm0, %xmm0
movups %xmm0, 0x6d2a(%rip)     # 0xa818
movups %xmm0, 0x6d33(%rip)     # 0xa828
movups %xmm0, 0x6d3c(%rip)     # 0xa838
movups %xmm0, 0x6d45(%rip)     # 0xa848
movups %xmm0, 0x6d4e(%rip)     # 0xa858
movups %xmm0, 0x6d57(%rip)     # 0xa868
movups %xmm0, 0x6d60(%rip)     # 0xa878
movl $0x1, %eax
movl %ebx, %ecx
shlq %cl, %rax
movups %xmm0, 0x6d5f(%rip)     # 0xa888
leaq 0x6ce8(%rip), %rcx      # 0xa818
movl %ebx, %edx
shrl $0x6, %edx
movq %rax, 0x20(%rsp)
movq %rdx, 0x18(%rsp)
orq %rax, (%rcx,%rdx,8)
movl %ebx, %eax
movq %rax, 0x10(%rsp)
leaq 0x6d4f(%rip), %r15      # 0xa8a0
leaq 0xd0(%rsp), %rbp
movl $0x10, %ecx
leaq 0x560(%rsp), %rdx
movq %rdx, %rdi
leaq 0x6ca8(%rip), %rax      # 0xa818
movq %rax, %rsi
rep  movsq (%rsi), %es:(%rdi)
movl $0x10, %ecx
leaq 0x50(%rsp), %r8
movq %r8, %rdi
movq %rax, %rsi
rep  movsq (%rsi), %es:(%rdi)
movl 0x6c81(%rip), %edi      # 0xa810
incl %edi
movq %rdx, %rsi
xorl %edx, %edx
movq %r8, %rcx
xorl %r8d, %r8d
callq 0x3260
movl %eax, 0x4(%rsp)
testl %eax, %eax
js 0x3d80
movq 0x20(%rsp), %rax
movq 0x18(%rsp), %rcx
testq %rax, 0x560(%rsp,%rcx,8)
je 0x3c5c
decl 0x4(%rsp)
movl %ebx, %edi
callq 0x5aa0
movl %eax, %r13d
movl %eax, %edi
movq %rbp, %rsi
movl $0x400, %edx            # imm = 0x400
callq 0x6227
testl %eax, %eax
jle 0x3d92
movl %r13d, %edi
leaq 0x38(%rsp), %rsi
movl $0x1, %edx
callq 0x6271
movq %rbp, %rdi
callq 0x3420
movslq %r13d, %rcx
movq %rax, (%r15,%rcx,8)
leaq 0x3506(%rip), %rdi      # 0x7118
movq %rbp, %rsi
movq %rbp, %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 0x6bd0(%rip), %rcx      # 0xa818
orq %rdx, (%rcx,%rax,8)
cmpl %r13d, 0x6bbd(%rip)     # 0xa810
jge 0x3c5c
movl %r13d, 0x6bb4(%rip)     # 0xa810
cmpl $0x0, 0x4(%rsp)
jle 0x3b59
movq 0x10(%rsp), %r13
incq %r13
movl %r13d, %r14d
shrl $0x6, %r14d
movq 0x560(%rsp,%r14,8), %rax
movl $0x1, %r12d
movl %r13d, %ecx
shlq %cl, %r12
btq %r13, %rax
jae 0x3cd5
movl %r13d, %edi
movq %rbp, %rsi
movl $0x400, %edx            # imm = 0x400
callq 0x6227
movl %eax, %ebp
testl %eax, %eax
js 0x3d73
decl 0x4(%rsp)
testl %ebp, %ebp
jle 0x3cd9
movq (%r15,%r13,8), %rsi
xorl %ebx, %ebx
leaq 0x33b7(%rip), %rdi      # 0x7076
movl %ebp, %edx
leaq 0xd0(%rsp), %rbp
movq %rbp, %rcx
xorl %eax, %eax
callq 0x3050
jmp 0x3ce6
xorl %ebx, %ebx
jmp 0x3ce6
movl $0x1, %ebx
leaq 0xd0(%rsp), %rbp
testq %r12, 0x50(%rsp,%r14,8)
jne 0x3d49
testl %ebx, %ebx
movl 0xc(%rsp), %ebx
je 0x3d39
movl %r13d, %edi
callq 0x3470
notq %r12
leaq 0x6b11(%rip), %rax      # 0xa818
andq %r12, (%rax,%r14,8)
movq (%r15,%r13,8), %rdi
callq 0x3300
movq $0x0, (%r15,%r13,8)
movl 0x6aee(%rip), %eax      # 0xa810
cmpl %ebx, %eax
jle 0x3d39
movl %eax, %ecx
cmpq $0x0, (%r15,%rcx,8)
jne 0x3d39
decl %eax
movl %eax, 0x6ad9(%rip)      # 0xa810
jmp 0x3d22
cmpl $0x0, 0x4(%rsp)
jg 0x3c6c
jmp 0x3b59
decl 0x4(%rsp)
movq 0x6284(%rip), %rax      # 0x9fd8
movq (%rax), %rdi
movq (%r15,%r13,8), %rdx
leaq 0x331d(%rip), %rsi      # 0x707f
xorl %eax, %eax
callq 0x3370
movl $0x1, %ebx
jmp 0x3ced
movq %r13, %rdi
callq 0x3551
jmp 0x3caa
callq 0x3040
movl (%rax), %edi
cmpl $0x4, %edi
je 0x3b59
jmp 0x3d9c
callq 0x3524
jmp 0x3c5c
movq 0x6235(%rip), %rax      # 0x9fd8
movq (%rax), %rbx
callq 0x30e0
leaq 0x3266(%rip), %rsi      # 0x7018
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x3370
movl $0x1, %edi
callq 0x3310
movq %r15, %rdi
callq 0x3500
nopl (%rax)