// File: /workspace/github_c_makefile_star2_O2/seuscq[P]rtk_hciattach/hciattach_rtk.c
// Function: rtk_init
int rtk_init(int fd, int proto, int speed, struct termios *ti)
{
	struct sigaction sa;
	int retlen;
	RS_DBG("Realtek hciattach version %s \n", RTK_VERSION);

	memset(&rtk_hw_cfg, 0, sizeof(rtk_hw_cfg));
	rtk_hw_cfg.serial_fd = fd;
	rtk_hw_cfg.dl_fw_flag = 1;

	/* h4 will do nothing for init */
	if (proto == HCI_UART_3WIRE) {
		if (rtk_init_h5(fd, ti) < 0)
			return -1;;
	}

	return rtk_config(fd, proto, speed, ti);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x308, %rsp            # imm = 0x308
movq %rcx, %r12
movl %edx, %r13d
movl %esi, %r15d
movl %edi, %ebx
cmpb $0x0, 0x6294(%rip)      # 0xc2e0
jne 0x609f
leaq 0x668b(%rip), %rdi      # 0xc6e0
movl $0xa0, %edx
xorl %esi, %esi
callq 0x20d0
movl %ebx, 0x66b9(%rip)      # 0xc720
movb $0x1, 0x66ae(%rip)      # 0xc71c
pushq $-0x1
popq %r14
cmpl $0x2, %r15d
jne 0x60c7
movl %ebx, %edi
movq %r12, %rsi
callq 0x4e16
testl %eax, %eax
jns 0x61bb
movl %r14d, %eax
addq $0x308, %rsp            # imm = 0x308
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x5f52(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x2f14(%rip), %rsi      # 0x8fc4
leaq 0x2482(%rip), %rdx      # 0x8539
leaq 0x2f2a(%rip), %rcx      # 0x8fe8
xorl %eax, %eax
callq 0x2150
jmp 0x604e
movl %r15d, 0x66aa(%rip)     # 0xc778
movq 0x5f23(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x3a5c(%rip), %rsi      # 0x9b3b
leaq 0x2453(%rip), %rdx      # 0x8539
xorl %eax, %eax
callq 0x2150
movl $0x7ffffeff, %eax       # imm = 0x7FFFFEFF
andl 0x8(%r12), %eax
orl $0x80000000, %eax       # imm = 0x80000000
movl %eax, 0x8(%r12)
movl %ebx, %edi
xorl %esi, %esi
movq %r12, %rdx
callq 0x21f0
testl %eax, %eax
js 0x6d58
movl %r13d, -0x30(%rbp)
movl %r15d, -0x3c(%rbp)
movl $0x4e20, %edi           # imm = 0x4E20
callq 0x22f0
xorl %edi, %edi
callq 0x20f0
leaq -0x168(%rbp), %r14
movl $0x90, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x20d0
movl $0x1, 0x80(%r14)
leaq 0x1914(%rip), %rax      # 0x7a6a
movq %rax, -0x8(%r14)
pushq $0xe
popq %r14
leaq -0x170(%rbp), %rsi
movl %r14d, %edi
xorl %edx, %edx
callq 0x2060
callq 0x7a6a
leaq -0x280(%rbp), %rsi
movl %ebx, %edi
movq %rsi, %r15
movl %r14d, %edx
callq 0x35e6
testl %eax, %eax
jns 0x633d
movq 0x5e61(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x3bb8(%rip), %rsi      # 0x9d59
leaq 0x2391(%rip), %rdx      # 0x8539
leaq 0x3bcf(%rip), %rcx      # 0x9d7e
xorl %eax, %eax
callq 0x2150
movq %r15, %rsi
jmp 0x617b
movl %r13d, -0x30(%rbp)
movl $0x2, 0x65af(%rip)      # 0xc778
movq 0x5e28(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x3956(%rip), %rsi      # 0x9b30
leaq 0x2358(%rip), %rdx      # 0x8539
xorl %eax, %eax
callq 0x2150
movl %ebx, %edi
callq 0x5752
movl %ebx, %edi
callq 0x5570
movzwl 0x650d(%rip), %eax      # 0xc70a
movl %r15d, -0x3c(%rbp)
movq 0x5df0(%rip), %r13      # 0xbff8
movq (%r13), %rdi
movzwl %ax, %ecx
leaq 0x3573(%rip), %rsi      # 0x9789
leaq 0x231c(%rip), %r14      # 0x8539
movq %r14, %rdx
xorl %eax, %eax
callq 0x2150
movq (%r13), %rdi
movzbl 0x64dd(%rip), %ecx      # 0xc70f
leaq 0x394b(%rip), %rsi      # 0x9b84
movq %r14, %rdx
xorl %eax, %eax
callq 0x2150
cmpw $0x8703, 0x64be(%rip)   # imm = 0x8703
jne 0x6255
movl %ebx, %edi
callq 0x53b2
leaq 0x6484(%rip), %r14      # 0xc6e0
movq %r14, %rdi
callq 0x335a
movq %rax, 0x6505(%rip)      # 0xc770
movq (%r13), %rdi
movq 0x20(%rax), %rcx
leaq 0x391b(%rip), %rsi      # 0x9b95
leaq 0x22b8(%rip), %r15      # 0x8539
movq %r15, %rdx
xorl %eax, %eax
callq 0x2150
movq (%r13), %rdi
movq 0x64da(%rip), %rax      # 0xc770
movq 0x10(%rax), %rcx
movq 0x18(%rax), %r8
leaq 0x38fd(%rip), %rsi      # 0x9ba2
movq %r15, %rdx
xorl %eax, %eax
callq 0x2150
leaq 0x649a(%rip), %rsi      # 0xc750
leaq 0x645b(%rip), %rdx      # 0xc718
movq %r14, %rdi
callq 0x3e30
movl %eax, 0x6475(%rip)      # 0xc740
testl %eax, %eax
jns 0x62ef
movq (%r13), %rdi
leaq 0x38e6(%rip), %rsi      # 0x9bc0
leaq 0x2258(%rip), %rdx      # 0x8539
xorl %eax, %eax
callq 0x2150
andl $0x0, 0x6451(%rip)      # 0xc740
leaq 0x63ea(%rip), %rdi      # 0xc6e0
leaq 0x644b(%rip), %rsi      # 0xc748
callq 0x5213
movl %eax, 0x6434(%rip)      # 0xc73c
testl %eax, %eax
movl -0x3c(%rbp), %r15d
pushq $-0x1
popq %r14
jns 0x64a5
movq (%r13), %rdi
leaq 0x38d7(%rip), %rsi      # 0x9bfa
leaq 0x220f(%rip), %rdx      # 0x8539
xorl %eax, %eax
callq 0x2150
andl $0x0, 0x6404(%rip)      # 0xc73c
jmp 0x608a
movl %eax, %r13d
xorl %edi, %edi
callq 0x20f0
cmpl $0xf, %r13d
jne 0x707c
movzbl -0x27a(%rbp), %r8d
testl %r8d, %r8d
jne 0x70a0
leaq -0x280(%rbp), %r14
movb 0x7(%r14), %al
movb %al, 0x639b(%rip)       # 0xc70e
movzwl 0x8(%r14), %eax
movw %ax, 0x638d(%rip)       # 0xc70c
movzwl 0xd(%r14), %eax
movw %ax, 0x637f(%rip)       # 0xc70a
xorl %edi, %edi
callq 0x20f0
leaq -0x168(%rbp), %r15
movl $0x90, %edx
movq %r15, %rdi
xorl %esi, %esi
callq 0x20d0
movl $0x1, 0x80(%r15)
leaq 0x1721(%rip), %rax      # 0x7adb
movq %rax, -0x8(%r15)
pushq $0xe
popq %r13
leaq -0x170(%rbp), %rsi
movl %r13d, %edi
xorl %edx, %edx
callq 0x2060
callq 0x7adb
movl %ebx, %edi
movq %r14, %rsi
movl %r13d, %edx
callq 0x35e6
testl %eax, %eax
jns 0x6411
movq 0x5c08(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x395f(%rip), %rsi      # 0x9d59
leaq 0x2138(%rip), %rdx      # 0x8539
leaq 0x3a08(%rip), %rcx      # 0x9e10
xorl %eax, %eax
callq 0x2150
jmp 0x63d8
movl %eax, %r15d
xorl %edi, %edi
callq 0x20f0
cmpl $0x8, %r15d
jne 0x70c1
movzbl -0x27a(%rbp), %r8d
testl %r8d, %r8d
jne 0x6d6e
movb -0x279(%rbp), %r14b
movl -0x3c(%rbp), %r15d
movb %r14b, 0x62c7(%rip)     # 0xc70f
movzwl 0x62bb(%rip), %eax      # 0xc70a
cmpl $0x8761, %eax           # imm = 0x8761
je 0x64dd
movb $0x3f, %cl
cmpl $0x8763, %eax           # imm = 0x8763
je 0x64ef
cmpl $0x8723, %eax           # imm = 0x8723
jne 0x61fd
movb 0x6296(%rip), %al       # 0xc70e
cmpb $0x8, %al
sete %dl
movzwl 0x6288(%rip), %ecx      # 0xc70c
cmpw $0xd, %cx
sete %sil
andb %dl, %sil
cmpb $0x1, %sil
jne 0x6fd4
movb $0x71, 0x6274(%rip)     # 0xc714
jmp 0x6fee
movl %r15d, %esi
callq 0x5c47
movl 0x6291(%rip), %ecx      # 0xc744
movq (%r13), %rdi
cmpl $0xa001, %ecx           # imm = 0xA001
jl 0x66ac
leaq 0x3751(%rip), %rsi      # 0x9c1b
leaq 0x2068(%rip), %rdx      # 0x8539
xorl %eax, %eax
callq 0x2150
jmp 0x608a
movzwl 0x6228(%rip), %edx      # 0xc70c
movb $0x4f, %cl
cmpl $0xb, %edx
jne 0x6dc0
movb %cl, 0x621f(%rip)       # 0xc714
movl $0x1, 0x6225(%rip)      # 0xc724
movl $0x16e360, %edi         # imm = 0x16E360
callq 0x7a2d
movl 0x6208(%rip), %r14d     # 0xc718
testl %r14d, %r14d
je 0x655e
movl $0x1c200, 0x620d(%rip)  # imm = 0x1C200
xorl %ecx, %ecx
leaq 0x60b8(%rip), %rax      # 0xc5e0
movl -0x30(%rbp), %r13d
cmpq $0xb, %rcx
je 0x6549
leaq 0x1(%rcx), %rdx
cmpl %r14d, (%rax,%rcx,8)
movq %rdx, %rcx
jne 0x652c
movl -0x4(%rax,%rdx,8), %eax
movl %eax, 0x61e3(%rip)      # 0xc72c
cmpl $0x2, %r15d
jne 0x6589
movl %ebx, %edi
movl %r14d, %esi
callq 0x4589
jmp 0x6619
movl -0x30(%rbp), %r14d
movl %r14d, %edi
callq 0x7a2d
cmpb $0x0, 0x5d6f(%rip)      # 0xc2e0
jne 0x6e98
cmpl $0x0, 0x61a6(%rip)      # 0xc724
jne 0x666e
jmp 0x6744
movq $0x4fc1701, -0x170(%rbp) # imm = 0x4FC1701
movl %r14d, -0x16c(%rbp)
pushq $0x1
popq %rdi
callq 0x22c0
cmpb $0x0, 0x5d36(%rip)      # 0xc2e0
jne 0x6ec6
leaq -0x170(%rbp), %rsi
pushq $0x8
popq %rdx
movl %ebx, %edi
callq 0x2070
cmpq $0x8, %rax
jne 0x6f12
cmpb $0x0, 0x5d0e(%rip)      # 0xc2e0
jne 0x6f36
leaq -0x280(%rbp), %rsi
pushq $0xe
popq %rdx
movl %ebx, %edi
callq 0x35e6
testl %eax, %eax
js 0x6f5a
cmpb $0x4, -0x280(%rbp)
jne 0x6619
cmpb $0x17, -0x27c(%rbp)
jne 0x6619
cmpb $-0x4, -0x27b(%rbp)
jne 0x6619
cmpb $0x0, 0x5ccd(%rip)      # 0xc2e0
jne 0x6f85
movl $0xc350, %edi           # imm = 0xC350
callq 0x22f0
movl 0x6102(%rip), %r14d     # 0xc72c
testl %r14d, %r14d
cmovel %r13d, %r14d
cmpb $0x0, 0x5ca8(%rip)      # 0xc2e0
jne 0x6df0
movl %ebx, %edi
movq %r12, %rsi
movl %r14d, %edx
callq 0x23fc
testl %eax, %eax
js 0x6e17
movb 0x5c87(%rip), %al       # 0xc2e0
cmpl $0x0, 0x60c4(%rip)      # 0xc724
je 0x673c
testb %al, %al
jne 0x6e74
orb $-0x80, 0xb(%r12)
movl %ebx, %edi
xorl %esi, %esi
movq %r12, %rdx
callq 0x21f0
testl %eax, %eax
jns 0x674a
movq 0x5969(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x24ae(%rip), %rsi      # 0x8b47
leaq 0x1e99(%rip), %rdx      # 0x8539
xorl %eax, %eax
callq 0x2150
jmp 0x6e6b
leaq 0x35a1(%rip), %rsi      # 0x9c54
leaq 0x1e7f(%rip), %rdx      # 0x8539
xorl %eax, %eax
callq 0x2150
cmpb $0x71, 0x604c(%rip)     # 0xc714
jne 0x6509
cmpl $0x0, 0x60a3(%rip)      # 0xc778
jne 0x6509
cmpw $0x0, 0x6045(%rip)      # 0xc728
je 0x6509
movl 0x8(%r12), %eax
movl %eax, %ecx
orl $0x100, %ecx            # imm = 0x100
movl %ecx, 0x8(%r12)
orl $0x300, %eax            # imm = 0x300
andl $0xfffffdff, %ecx       # imm = 0xFFFFFDFF
cmpl $0x10000, 0x6018(%rip)  # imm = 0x10000
cmovbl %eax, %ecx
movl %ecx, 0x8(%r12)
movl %ebx, %edi
xorl %esi, %esi
movq %r12, %rdx
callq 0x21f0
testl %eax, %eax
jns 0x6509
movq (%r13), %rdi
leaq 0x353d(%rip), %rsi      # 0x9c74
jmp 0x64ca
testb %al, %al
jne 0x6fb0
andb $0x7f, 0xb(%r12)
movl $0x2710, %edi           # imm = 0x2710
callq 0x22f0
movzbl 0x5fb9(%rip), %eax      # 0xc714
cmpl $0x3f, %eax
je 0x6765
cmpl $0x4f, %eax
jne 0x6795
xorl %r14d, %r14d
cmpb $0x0, 0x5b71(%rip)      # 0xc2e0
je 0x608a
movq 0x587c(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x35b8(%rip), %rsi      # 0x9d3e
leaq 0x1dac(%rip), %rdx      # 0x8539
xorl %r14d, %r14d
jmp 0x64d1
movl 0x5fa9(%rip), %ecx      # 0xc744
testl %ecx, %ecx
jle 0x6765
cmpb $0x0, 0x5f76(%rip)      # 0xc71c
je 0x6765
movl %r15d, -0x3c(%rbp)
movl $0x3, 0x5f3e(%rip)      # 0xc6f4
orl $-0x1, 0x5f7b(%rip)     # 0xc738
movq 0x5f94(%rip), %rdi      # 0xc758
leal -0x1(%rcx), %eax
movl $0xfc, %r15d
xorl %edx, %edx
divl %r15d
movl %eax, %esi
movl %ecx, %eax
xorl %edx, %edx
divl %r15d
movl %edx, %r14d
movl $0xff, %edx
movl %esi, %ecx
andl %edx, %ecx
movl 0x5f1b(%rip), %eax      # 0xc708
addl %esi, %eax
incl %eax
andl $0x7, %eax
pushq $0x8
popq %r9
subl %eax, %r9d
testl %eax, %eax
cmovel %eax, %r9d
addl %r9d, %esi
movq %rsi, -0x68(%rbp)
andl %esi, %edx
movl %edx, -0x4c(%rbp)
movl %edx, 0x5f1d(%rip)      # 0xc730
cmpb $0x0, 0x5ac6(%rip)      # 0xc2e0
movl %ecx, -0x38(%rbp)
jne 0x6ff7
testl %r14d, %r14d
cmovnel %r14d, %r15d
movl %r15d, -0x5c(%rbp)
leaq -0x16f(%rbp), %rsi
leaq -0x290(%rbp), %r15
xorl %edx, %edx
cmpb -0x68(%rbp), %dl
ja 0x6d3e
movzbl %dl, %r9d
movl %edx, %eax
andb $0x7f, %al
incb %al
testb %dl, %dl
movzbl %al, %r14d
cmovnsl %r9d, %r14d
movl $0xfc, %r12d
movzbl %r14b, %r13d
cmpl %r9d, %ecx
ja 0x68cf
jne 0x6883
orb $-0x80, %r14b
cmpl %ecx, -0x4c(%rbp)
movzbl %r14b, %r14d
cmovnel %r13d, %r14d
movl -0x5c(%rbp), %eax
movl %eax, %r12d
jmp 0x68cf
cmpl %r9d, -0x4c(%rbp)
jbe 0x68b9
cmpb $0x0, 0x5a50(%rip)      # 0xc2e0
je 0x68ca
movq 0x575f(%rip), %rax      # 0xbff8
movq (%rax), %rdi
xorl %r12d, %r12d
leaq 0x36c7(%rip), %rsi      # 0x9f6d
movq %rdx, -0x30(%rbp)
leaq 0x1c88(%rip), %rdx      # 0x8539
movl %r13d, %ecx
jmp 0x6d1c
orb $-0x80, %r14b
cmpb $0x0, 0x5a1c(%rip)      # 0xc2e0
jne 0x6cf9
xorl %r12d, %r12d
xorl %edi, %edi
testb %r14b, %r14b
jns 0x68e1
cmpb $0x0, 0x5a05(%rip)      # 0xc2e0
jne 0x6bd2
movzbl %r14b, %r8d
movl %r12d, %r10d
movl -0x3c(%rbp), %eax
cmpl $0x2, %eax
je 0x6a34
testl %eax, %eax
jne 0x6bbd
movq %r10, -0x58(%rbp)
movl %r8d, -0x40(%rbp)
movl %r9d, -0x34(%rbp)
movl %r13d, -0x48(%rbp)
movq %rdi, %r13
movq %rdx, -0x30(%rbp)
movl $0x101, %edx            # imm = 0x101
leaq -0x280(%rbp), %rdi
xorl %esi, %esi
callq 0x20d0
movl $0x101, %edx            # imm = 0x101
leaq -0x170(%rbp), %rdi
xorl %esi, %esi
callq 0x20d0
movw $0x2001, -0x170(%rbp)   # imm = 0x2001
movb $-0x4, -0x16e(%rbp)
cmpb $0x0, 0x5990(%rip)      # 0xc2e0
jne 0x6c18
testq %r13, %r13
je 0x696e
movq %r13, %rsi
leaq -0x16b(%rbp), %rdi
movq -0x58(%rbp), %rdx
callq 0x2180
leal 0x1(%r12), %eax
movb %al, -0x16d(%rbp)
movb %r14b, -0x16c(%rbp)
addl $0x5, %r12d
movl %ebx, %edi
leaq -0x170(%rbp), %rsi
movq %r12, %rdx
callq 0x2070
cmpb $0x0, 0x5944(%rip)      # 0xc2e0
jne 0x6c45
movl %ebx, %edi
leaq -0x280(%rbp), %rsi
pushq $0xe
popq %rdx
callq 0x35e6
testl %eax, %eax
js 0x6c6c
cmpb $0x4, -0x280(%rbp)
jne 0x6c94
cmpb $0x20, -0x27c(%rbp)
jne 0x6c94
cmpb $-0x4, -0x27b(%rbp)
jne 0x6c94
movzbl -0x279(%rbp), %r14d
movzbl -0x27a(%rbp), %r12d
cmpb $0x0, 0x58e7(%rip)      # 0xc2e0
jne 0x6ca7
testl %r12d, %r12d
jne 0x6cd1
movzbl %r14b, %r8d
movl -0x48(%rbp), %r9d
cmpl %r9d, %r8d
je 0x6bac
movl -0x34(%rbp), %eax
cmpl %eax, 0x5d0e(%rip)      # 0xc730
movl -0x38(%rbp), %ecx
movq -0x30(%rbp), %rdx
je 0x6bb3
jmp 0x6e45
movq %r10, -0x58(%rbp)
movl %r8d, -0x40(%rbp)
movq %rdx, -0x30(%rbp)
movl $0x100, %edx            # imm = 0x100
movq %rsi, %r13
movq %rdi, -0x48(%rbp)
leaq -0x280(%rbp), %rdi
xorl %esi, %esi
callq 0x20d0
movw $0xfc20, -0x280(%rbp)   # imm = 0xFC20
leaq 0x10e2(%rip), %rax      # 0x7b4c
movq %rax, -0x328(%rbp)
pushq $0xe
popq %rdi
leaq -0x328(%rbp), %rsi
xorl %edx, %edx
callq 0x2060
pushq $0x2
popq %rdi
callq 0x20f0
movl $0xfc, %edx
movq %r13, %rdi
movq -0x48(%rbp), %r13
xorl %esi, %esi
callq 0x20d0
movb %r14b, -0x170(%rbp)
testq %r13, %r13
je 0x6abc
leaq -0x16f(%rbp), %rdi
movq %r13, %rsi
movq -0x58(%rbp), %rdx
callq 0x2180
movl -0x40(%rbp), %ecx
movl %ecx, %eax
andl $0x7f, %eax
testb %r14b, %r14b
cmovnsl %ecx, %eax
movl %eax, 0x5c64(%rip)      # 0xc734
leal 0x1(%r12), %edx
movb %dl, -0x27e(%rbp)
leaq -0x27d(%rbp), %rdi
leaq -0x170(%rbp), %rsi
callq 0x2180
addl $0x4, %r12d
leaq -0x280(%rbp), %rdi
movl %r12d, %esi
pushq $0x1
popq %rdx
callq 0x47a2
movq %rax, %r14
movq 0x5bf2(%rip), %rdi      # 0xc700
callq 0x2030
movq %r14, 0x5be6(%rip)      # 0xc700
movl 0x4(%r14), %edx
addq $0x8, %r14
movl %ebx, %edi
movq %r14, %rsi
callq 0x2070
cmpb $0x0, 0x57ad(%rip)      # 0xc2e0
je 0x6b80
movq 0x54bc(%rip), %rax      # 0xbff8
movq (%rax), %rdi
movl 0x5bef(%rip), %ecx      # 0xc734
movl 0x5bec(%rip), %r8d      # 0xc738
leaq 0x3599(%rip), %rsi      # 0xa0ec
leaq 0x19df(%rip), %rdx      # 0x8539
xorl %eax, %eax
callq 0x2150
jmp 0x6b80
movl %ebx, %edi
movq %r15, %rsi
callq 0x4948
cmpl $-0x1, %eax
je 0x6d9c
movq %r15, %rdi
movl %eax, %esi
callq 0x498d
movl 0x5bb2(%rip), %eax      # 0xc738
cmpl 0x5ba8(%rip), %eax      # 0xc734
jne 0x6b63
xorl %edi, %edi
callq 0x20f0
movl -0x38(%rbp), %ecx
movq -0x30(%rbp), %rdx
movq %r13, %rdi
leaq -0x16f(%rbp), %rsi
movl -0x40(%rbp), %r8d
jmp 0x6bbd
movl -0x38(%rbp), %ecx
movq -0x30(%rbp), %rdx
movq %r13, %rdi
leaq -0x16f(%rbp), %rsi
leaq 0xfc(%rdi), %rax
cmpl %r8d, %ecx
cmovaq %rax, %rdi
incb %dl
jmp 0x683e
movq %rdi, -0x48(%rbp)
movq 0x541b(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x33bd(%rip), %rsi      # 0x9fa4
movq %rdx, -0x30(%rbp)
leaq 0x1947(%rip), %rdx      # 0x8539
xorl %eax, %eax
movl %r9d, -0x34(%rbp)
callq 0x2150
movl -0x34(%rbp), %r9d
movq -0x48(%rbp), %rdi
movq -0x30(%rbp), %rdx
leaq -0x16f(%rbp), %rsi
movl -0x38(%rbp), %ecx
jmp 0x68e1
movq 0x53d9(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x33c3(%rip), %rsi      # 0x9fec
leaq 0x1909(%rip), %rdx      # 0x8539
movl %ebx, %ecx
movl -0x40(%rbp), %r8d
movl %r12d, %r9d
xorl %eax, %eax
callq 0x2150
jmp 0x6956
movq 0x53ac(%rip), %rcx      # 0xbff8
movq (%rcx), %rdi
movzwl %ax, %ecx
leaq 0x33b0(%rip), %rsi      # 0xa009
leaq 0x18d9(%rip), %rdx      # 0x8539
xorl %eax, %eax
callq 0x2150
jmp 0x69a2
movq 0x5385(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x33b0(%rip), %rsi      # 0xa02d
leaq 0x18b5(%rip), %rdx      # 0x8539
leaq 0x33c6(%rip), %rcx      # 0xa051
xorl %eax, %eax
callq 0x2150
jmp 0x6cf0
movq 0x535d(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x3418(%rip), %rsi      # 0xa0bd
jmp 0x6ce2
movq 0x534a(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x33af(%rip), %rsi      # 0xa067
leaq 0x187a(%rip), %rdx      # 0x8539
movl %r14d, %ecx
movl %r12d, %r8d
xorl %eax, %eax
callq 0x2150
jmp 0x69ff
movq 0x5320(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x33af(%rip), %rsi      # 0xa091
leaq 0x1850(%rip), %rdx      # 0x8539
xorl %eax, %eax
callq 0x2150
pushq $-0x1
popq %r14
jmp 0x6a08
movq 0x52f8(%rip), %rax      # 0xbff8
movq (%rax), %rdi
movzbl %r14b, %ecx
xorl %r12d, %r12d
leaq 0x327b(%rip), %rsi      # 0x9f8c
movq %rdx, -0x30(%rbp)
leaq 0x181d(%rip), %rdx      # 0x8539
xorl %eax, %eax
movl %r9d, -0x34(%rbp)
callq 0x2150
movl -0x34(%rbp), %r9d
movq -0x30(%rbp), %rdx
leaq -0x16f(%rbp), %rsi
movl -0x38(%rbp), %ecx
jmp 0x68cd
movq %rdx, -0x30(%rbp)
cmpl $0x2, -0x3c(%rbp)
jne 0x6e52
movl %ebx, %edi
callq 0x51e2
jmp 0x6e52
movq 0x5299(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x2ddd(%rip), %rsi      # 0x9b46
jmp 0x64ca
movq 0x5283(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x3041(%rip), %rsi      # 0x9dc0
leaq 0x17b3(%rip), %rdx      # 0x8539
leaq 0x3083(%rip), %rcx      # 0x9e10
xorl %r14d, %r14d
xorl %eax, %eax
callq 0x2150
jmp 0x643d
movq 0x5255(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x3371(%rip), %rsi      # 0xa11e
leaq 0x1785(%rip), %rdx      # 0x8539
xorl %eax, %eax
callq 0x2150
jmp 0x6e52
movw $0x8761, %ax            # imm = 0x8761
cmpl $0xa, %edx
jne 0x61fd
cmpb $0x2, %r14b
je 0x7027
movzbl %r14b, %ecx
cmpl $0x3, %ecx
jne 0x7033
movb $0x2f, 0x5929(%rip)     # 0xc714
jmp 0x61fd
movq 0x5201(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x2ec5(%rip), %rsi      # 0x9cc6
leaq 0x1731(%rip), %rdx      # 0x8539
movl %r14d, %ecx
xorl %eax, %eax
callq 0x2150
jmp 0x663e
movq 0x51da(%rip), %rax      # 0xbff8
movq (%rax), %rdi
movl 0x5904(%rip), %r8d      # 0xc72c
leaq 0x2eac(%rip), %rsi      # 0x9cdb
leaq 0x1703(%rip), %rdx      # 0x8539
movl %r14d, %ecx
movl %r13d, %r9d
xorl %eax, %eax
callq 0x2150
jmp 0x6e6b
cmpb $0x0, 0x5494(%rip)      # 0xc2e0
jne 0x7055
movq 0x58ff(%rip), %rdi      # 0xc758
callq 0x2030
movq -0x30(%rbp), %rax
cmpb -0x68(%rbp), %al
ja 0x6765
pushq $-0x1
popq %r14
jmp 0x608a
movq 0x517d(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x2e80(%rip), %rsi      # 0x9d05
leaq 0x16ad(%rip), %rdx      # 0x8539
xorl %eax, %eax
callq 0x2150
jmp 0x666e
movq 0x5159(%rip), %rax      # 0xbff8
movq (%rax), %rdi
movl 0x586f(%rip), %r8d      # 0xc718
leaq 0x2de9(%rip), %rsi      # 0x9c99
leaq 0x1682(%rip), %rdx      # 0x8539
movl %r14d, %ecx
xorl %eax, %eax
callq 0x2150
jmp 0x6653
movl %r14d, %eax
shrl $0x18, %eax
movl %r14d, %r9d
shrl $0x10, %r9d
movl %r14d, %r8d
shrl $0x8, %r8d
movq 0x5117(%rip), %rcx      # 0xbff8
movq (%rcx), %rdi
movl $0xff, %ecx
andl %ecx, %r14d
andl %ecx, %r8d
andl %ecx, %r9d
movl %eax, (%rsp)
leaq 0x1bd6(%rip), %rsi      # 0x8ad2
leaq 0x1636(%rip), %rdx      # 0x8539
movl %r14d, %ecx
xorl %eax, %eax
callq 0x2150
jmp 0x65b0
movq 0x50df(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x2f2f(%rip), %rsi      # 0x9e52
leaq 0x160f(%rip), %rdx      # 0x8539
xorl %eax, %eax
callq 0x2150
jmp 0x6619
movq 0x50bb(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x2f4d(%rip), %rsi      # 0x9e94
leaq 0x15eb(%rip), %rdx      # 0x8539
xorl %eax, %eax
callq 0x2150
jmp 0x65d8
movq 0x5097(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x2f53(%rip), %rsi      # 0x9ebe
leaq 0x15c7(%rip), %rdx      # 0x8539
leaq 0x2f6d(%rip), %rcx      # 0x9ee6
xorl %eax, %eax
callq 0x2150
jmp 0x6619
movq 0x506c(%rip), %rax      # 0xbff8
movq (%rax), %rdi
movzbl -0x27a(%rbp), %ecx
leaq 0x2f64(%rip), %rsi      # 0x9f01
leaq 0x1595(%rip), %rdx      # 0x8539
xorl %eax, %eax
callq 0x2150
jmp 0x6619
movq 0x5041(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x2d60(%rip), %rsi      # 0x9d21
leaq 0x1571(%rip), %rdx      # 0x8539
xorl %eax, %eax
callq 0x2150
jmp 0x6744
cmpb $0x6, %al
sete %al
cmpw $0xb, %cx
sete %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x703f
movb $0x5f, 0x5726(%rip)     # 0xc714
movw $0x8723, %ax            # imm = 0x8723
jmp 0x61fd
movq 0x4ffa(%rip), %rax      # 0xbff8
movq %rdi, %r12
movq (%rax), %rdi
leaq 0x2f2c(%rip), %rsi      # 0x9f37
leaq 0x1527(%rip), %rdx      # 0x8539
movl %r14d, %r8d
xorl %eax, %eax
callq 0x2150
movq %r12, %rdi
movl -0x38(%rbp), %ecx
jmp 0x6823
movb $0x1f, 0x56e6(%rip)     # 0xc714
jmp 0x61fd
movb $0x0, 0x56da(%rip)      # 0xc714
jmp 0x61fd
movq 0x4fb2(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x2b18(%rip), %rsi      # 0x9b68
jmp 0x6699
movq 0x4f9c(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x2f58(%rip), %rsi      # 0x9fbe
leaq 0x14cc(%rip), %rdx      # 0x8539
movl %r9d, %ecx
xorl %eax, %eax
callq 0x2150
jmp 0x6e52
movq 0x4f75(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x2d03(%rip), %rsi      # 0x9d90
leaq 0x14a5(%rip), %rdx      # 0x8539
leaq 0x2ce3(%rip), %rcx      # 0x9d7e
movl %r13d, %r8d
jmp 0x70e3
movq 0x4f51(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x2d0f(%rip), %rsi      # 0x9dc0
leaq 0x1481(%rip), %rdx      # 0x8539
leaq 0x2cbf(%rip), %rcx      # 0x9d7e
jmp 0x70e3
movq 0x4f30(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x2cbe(%rip), %rsi      # 0x9d90
leaq 0x1460(%rip), %rdx      # 0x8539
leaq 0x2d30(%rip), %rcx      # 0x9e10
movl %r15d, %r8d
xorl %eax, %eax
callq 0x2150
pushq $0x1
popq %rdi
callq 0x2290