// File: /workspace/github_c_makefile_star2_O0/aap[P]rx-0/misc/crt.c
// Function: threadmain
int
threadmain(int argc, char *argv[])
{
	int port = 3400;
	ARGBEGIN{
	case 'p':
		port = atoi(EARGF(usage()));
		break;
	case 's':
		winsize = atoi(EARGF(usage()));
		break;
	}ARGEND;

	serve(port, startcrt, nil);
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movl $0xd48, -0x14(%rbp)     # imm = 0xD48
movb $0x1, %al
cmpq $0x0, 0x1d04f10(%rip)   # 0x1d08350
movb %al, -0x2a(%rbp)
jne 0x345d
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, 0x1d04efd(%rip)   # 0x1d08350
cmpq $0x0, %rax
setne %al
movb %al, -0x2a(%rbp)
movb -0x2a(%rbp), %al
movq -0x10(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x10(%rbp)
movl -0x4(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x4(%rbp)
movq -0x10(%rbp), %rcx
xorl %eax, %eax
cmpq $0x0, (%rcx)
movb %al, -0x2b(%rbp)
je 0x34ac
movq -0x10(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x2d, %ecx
movb %al, -0x2b(%rbp)
jne 0x34ac
movq -0x10(%rbp), %rax
movq (%rax), %rax
movsbl 0x1(%rax), %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x2b(%rbp)
movb -0x2b(%rbp), %al
testb $0x1, %al
jne 0x34b8
jmp 0x366e
movq -0x10(%rbp), %rax
movq (%rax), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2d, %eax
jne 0x34fa
movq -0x20(%rbp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x0, %eax
jne 0x34fa
movl -0x4(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x4(%rbp)
movq -0x10(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x10(%rbp)
jmp 0x366e
movb $0x0, -0x29(%rbp)
movq -0x20(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x2c(%rbp)
je 0x352f
movq -0x20(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x20(%rbp)
movb (%rax), %al
movb %al, -0x29(%rbp)
movsbl %al, %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x2c(%rbp)
movb -0x2c(%rbp), %al
testb $0x1, %al
jne 0x353b
jmp 0x364c
movsbl -0x29(%rbp), %eax
movl %eax, -0x30(%rbp)
subl $0x70, %eax
je 0x3556
jmp 0x3549
movl -0x30(%rbp), %eax
subl $0x73, %eax
je 0x35ce
jmp 0x3647
movq -0x20(%rbp), %rax
movq %rax, -0x28(%rbp)
leaq 0x2cc0(%rip), %rax      # 0x6225
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x357f
movq -0x28(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x35c0
movq -0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x35ac
movl -0x4(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x4(%rbp)
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $0x8, %rcx
movq %rcx, -0x10(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0x40(%rbp)
jmp 0x35b6
callq 0x33f0
callq 0x2150
movq -0x40(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x35c0
movq -0x38(%rbp), %rdi
callq 0x23e0
movl %eax, -0x14(%rbp)
jmp 0x3647
movq -0x20(%rbp), %rax
movq %rax, -0x28(%rbp)
leaq 0x2c48(%rip), %rax      # 0x6225
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x35f7
movq -0x28(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x3638
movq -0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x3624
movl -0x4(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x4(%rbp)
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $0x8, %rcx
movq %rcx, -0x10(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0x50(%rbp)
jmp 0x362e
callq 0x33f0
callq 0x2150
movq -0x50(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x3638
movq -0x48(%rbp), %rdi
callq 0x23e0
movl %eax, 0x4c19(%rip)      # 0x8260
jmp 0x34fe
movq $0x0, -0x28(%rbp)
movl -0x4(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x4(%rbp)
movq -0x10(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x10(%rbp)
jmp 0x3475
movl -0x14(%rbp), %edi
leaq -0x6c8(%rip), %rsi      # 0x2fb0
xorl %eax, %eax
movl %eax, %edx
callq 0x53d0
xorl %eax, %eax
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax)