// File: /workspace/github_c_makefile_star2_O1/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 $0x2f8, %rsp            # imm = 0x2F8
movq %rcx, %r15
movl %edx, %r12d
movl %esi, %ebx
movl %edi, %r13d
cmpb $0x0, 0x7e86(%rip)      # 0xf2e0
jne 0x74af
leaq 0x827d(%rip), %rdi      # 0xf6e0
movl $0xa0, %edx
xorl %esi, %esi
callq 0x20d0
movl %r13d, 0x82aa(%rip)     # 0xf720
movb $0x1, 0x829f(%rip)      # 0xf71c
cmpl $0x2, %ebx
movl %ebx, -0x3c(%rbp)
jne 0x74b6
movl %r13d, %edi
movq %r15, %rsi
callq 0x6789
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
testl %eax, %eax
jns 0x74be
movl %r14d, %eax
addq $0x2f8, %rsp            # imm = 0x2F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x35c0
jmp 0x745c
movl %ebx, 0x82bc(%rip)      # 0xf778
jmp 0x74fd
movl -0x3c(%rbp), %r14d
movl %r14d, 0x82af(%rip)     # 0xf778
cmpl $0x2, %r14d
jne 0x74fd
movl %r13d, %edi
callq 0x36d7
leaq -0x160(%rbp), %rcx
movl %r13d, %edi
movl %r14d, %esi
movq %r15, %rdx
callq 0x3712
testb $0x1, %al
je 0x77ba
movl -0x160(%rbp), %r14d
jmp 0x749a
movq 0x7af4(%rip), %rax      # 0xeff8
movq (%rax), %rdi
leaq 0x362d(%rip), %rsi      # 0xab3b
leaq 0x2024(%rip), %rdx      # 0x9539
xorl %eax, %eax
callq 0x2150
movl $0x7ffffeff, %eax       # imm = 0x7FFFFEFF
andl 0x8(%r15), %eax
orl $0x80000000, %eax       # imm = 0x80000000
movl %eax, 0x8(%r15)
movl %r13d, %edi
xorl %esi, %esi
movq %r15, %rdx
callq 0x21f0
testl %eax, %eax
js 0x7ecc
movl $0x4e20, %edi           # imm = 0x4E20
callq 0x22f0
xorl %edi, %edi
callq 0x20f0
leaq -0x270(%rbp), %r14
movl $0x98, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x20d0
movl $0x1, 0x88(%r14)
leaq 0x12c9(%rip), %rax      # 0x8845
movq %rax, (%r14)
movl $0xe, %edi
movq %r14, %rsi
xorl %edx, %edx
callq 0x2060
callq 0x8845
leaq -0x160(%rbp), %rsi
movl %r13d, -0x2c(%rbp)
movl %r13d, %edi
movl $0xe, %edx
callq 0x5241
testl %eax, %eax
jns 0x75ef
movl -0x2c(%rbp), %ebx
movq 0x7a3f(%rip), %r14      # 0xeff8
movq (%r14), %rdi
leaq 0x3796(%rip), %rsi      # 0xad59
leaq 0x1f6f(%rip), %rdx      # 0x9539
leaq 0x37ad(%rip), %rcx      # 0xad7e
xorl %eax, %eax
callq 0x2150
movl %ebx, %edi
leaq -0x160(%rbp), %rsi
movl $0xe, %edx
callq 0x5241
testl %eax, %eax
js 0x75b9
movl %eax, %r13d
xorl %edi, %edi
callq 0x20f0
cmpl $0xf, %r13d
jne 0x80e7
movb -0x15a(%rbp), %al
testb %al, %al
jne 0x80ef
leaq -0x160(%rbp), %r14
movb 0x7(%r14), %al
movb %al, 0x80ec(%rip)       # 0xf70e
movzwl 0x8(%r14), %eax
movw %ax, 0x80de(%rip)       # 0xf70c
movzwl 0xd(%r14), %eax
movw %ax, 0x80d0(%rip)       # 0xf70a
xorl %edi, %edi
callq 0x20f0
leaq -0x270(%rbp), %r13
movl $0x98, %edx
movq %r13, %rdi
xorl %esi, %esi
callq 0x20d0
movl $0x1, 0x88(%r13)
leaq 0x1221(%rip), %rax      # 0x888a
movq %rax, (%r13)
movl $0xe, %edi
movq %r13, %rsi
xorl %edx, %edx
callq 0x2060
callq 0x888a
movl -0x2c(%rbp), %edi
movq %r14, %rsi
movl $0xe, %edx
callq 0x5241
testl %eax, %eax
jns 0x76d5
movl -0x2c(%rbp), %ebx
movq 0x7959(%rip), %r14      # 0xeff8
movq (%r14), %rdi
leaq 0x36b0(%rip), %rsi      # 0xad59
leaq 0x1e89(%rip), %rdx      # 0x9539
leaq 0x3759(%rip), %rcx      # 0xae10
xorl %eax, %eax
callq 0x2150
movl %ebx, %edi
leaq -0x160(%rbp), %rsi
movl $0xe, %edx
callq 0x5241
testl %eax, %eax
js 0x769f
movl %eax, %r13d
xorl %edi, %edi
callq 0x20f0
cmpl $0x8, %r13d
movl -0x3c(%rbp), %r14d
jne 0x80f7
movzbl -0x15a(%rbp), %r8d
testl %r8d, %r8d
jne 0x7edc
movb -0x159(%rbp), %bl
movb %bl, 0x8005(%rip)       # 0xf70f
movzwl 0x7ff9(%rip), %eax      # 0xf70a
cmpl $0x8761, %eax           # imm = 0x8761
je 0x7761
cmpl $0x8763, %eax           # imm = 0x8763
jne 0x7f09
movb $0x3f, 0x7fea(%rip)     # 0xf714
movl $0x1, 0x7ff0(%rip)      # 0xf724
movl $0x701d, 0x7fda(%rip)   # imm = 0x701D
xorl %ecx, %ecx
leaq 0x7e99(%rip), %rax      # 0xf5e0
movl -0x2c(%rbp), %r13d
cmpl $0x16e360, 0x4(%rcx,%rax) # imm = 0x16E360
je 0x77af
addq $0x8, %rcx
cmpq $0x58, %rcx
jne 0x774b
jmp 0x77ba
movzwl 0x7fa4(%rip), %eax      # 0xf70c
cmpl $0xb, %eax
jne 0x7f4b
movb $0x4f, 0x7f9c(%rip)     # 0xf714
movl $0x1, 0x7fa2(%rip)      # 0xf724
movl $0x701d, 0x7f8c(%rip)   # imm = 0x701D
xorl %ecx, %ecx
leaq 0x7e4b(%rip), %rax      # 0xf5e0
movl -0x2c(%rbp), %r13d
cmpl $0x16e360, 0x4(%rcx,%rax) # imm = 0x16E360
je 0x77af
addq $0x8, %rcx
cmpq $0x58, %rcx
jne 0x7799
jmp 0x77ba
addq %rcx, %rax
movl (%rax), %eax
movl %eax, 0x7f5e(%rip)      # 0xf718
movl 0x7f58(%rip), %esi      # 0xf718
testl %esi, %esi
je 0x77e7
movl $0x1c200, 0x7f5e(%rip)  # imm = 0x1C200
xorl %eax, %eax
leaq 0x7e09(%rip), %rcx      # 0xf5e0
cmpl %esi, (%rcx,%rax,8)
je 0x7813
incq %rax
cmpq $0xb, %rax
jne 0x77d7
jmp 0x781d
movl $0x701d, 0x7f27(%rip)   # imm = 0x701D
xorl %eax, %eax
leaq 0x7de6(%rip), %rcx      # 0xf5e0
cmpl %r12d, 0x4(%rcx,%rax,8)
je 0x7939
incq %rax
cmpq $0xb, %rax
jne 0x77fa
jmp 0x7942
movl 0x4(%rcx,%rax,8), %eax
movl %eax, 0x7f0f(%rip)      # 0xf72c
cmpl $0x2, %r14d
jne 0x7830
movl %r13d, %edi
callq 0x5ee2
jmp 0x78d1
movq $0x0, -0x270(%rbp)
movl $0x4fc1701, -0x270(%rbp) # imm = 0x4FC1701
movl %esi, -0x26c(%rbp)
movl $0x1, %edi
callq 0x22c0
cmpb $0x0, 0x7a84(%rip)      # 0xf2e0
jne 0x8033
leaq -0x270(%rbp), %rsi
movl $0x8, %edx
movl %r13d, %edi
callq 0x2070
cmpq $0x8, %rax
jne 0x804b
cmpb $0x0, 0x7a59(%rip)      # 0xf2e0
jne 0x8055
leaq -0x160(%rbp), %rsi
movl %r13d, %edi
movl $0xe, %edx
callq 0x5241
testl %eax, %eax
js 0x805f
cmpb $0x4, -0x160(%rbp)
jne 0x78d1
cmpb $0x17, -0x15c(%rbp)
jne 0x78d1
cmpb $-0x4, -0x15b(%rbp)
jne 0x78d1
cmpb $0x0, 0x7a15(%rip)      # 0xf2e0
jne 0x8069
movl $0xc350, %edi           # imm = 0xC350
callq 0x22f0
movl 0x7e4a(%rip), %r14d     # 0xf72c
testl %r14d, %r14d
cmovel %r12d, %r14d
cmpb $0x0, 0x79f0(%rip)      # 0xf2e0
jne 0x7f79
movl %r13d, %edi
movq %r15, %rsi
movl %r14d, %edx
callq 0x412c
testl %eax, %eax
jns 0x794f
movq 0x76e9(%rip), %rax      # 0xeff8
movq (%rax), %rdi
movl 0x7e13(%rip), %r8d      # 0xf72c
leaq 0x33bb(%rip), %rsi      # 0xacdb
leaq 0x1c12(%rip), %rdx      # 0x9539
movl %r14d, %ecx
movl %r12d, %r9d
xorl %eax, %eax
callq 0x2150
jmp 0x7ed1
movl (%rcx,%rax,8), %eax
movl %eax, 0x7dd6(%rip)      # 0xf718
cmpb $0x0, 0x7997(%rip)      # 0xf2e0
jne 0x801c
cmpl $0x0, 0x7dce(%rip)      # 0xf724
movb 0x7984(%rip), %al       # 0xf2e0
je 0x7986
testb %al, %al
jne 0x7fa0
orb $-0x80, 0xb(%r15)
movl %r13d, %edi
xorl %esi, %esi
movq %r15, %rdx
callq 0x21f0
testl %eax, %eax
jns 0x7993
callq 0x3a5b
jmp 0x7ed1
testb %al, %al
jne 0x8029
andb $0x7f, 0xb(%r15)
movl $0x2710, %edi           # imm = 0x2710
callq 0x22f0
movzbl 0x7d70(%rip), %eax      # 0xf714
cmpl $0x3f, %eax
je 0x79ae
cmpl $0x4f, %eax
jne 0x79c8
xorl %r14d, %r14d
cmpb $0x0, 0x7928(%rip)      # 0xf2e0
je 0x749a
callq 0x3bf5
jmp 0x749a
movslq 0x7d75(%rip), %r14      # 0xf744
testq %r14, %r14
jle 0x79ae
cmpb $0x0, 0x7d41(%rip)      # 0xf71c
je 0x79ae
movl %r13d, -0x2c(%rbp)
movl $0x3, 0x7d09(%rip)      # 0xf6f4
movl $0xffffffff, 0x7d43(%rip) # imm = 0xFFFFFFFF
leaq -0x1(%r14), %rax
shrq $0x2, %rax
movabsq $0x4104104104104105, %rcx # imm = 0x4104104104104105
mulq %rcx
movq %rdx, %rsi
movq 0x7d44(%rip), %r15      # 0xf758
shrq $0x4, %rsi
movq %r14, %rax
shrq $0x2, %rax
mulq %rcx
shrq $0x4, %rdx
imulq $0xfc, %rdx, %rax
subq %rax, %r14
movl $0xff, %ecx
movl %esi, %r10d
andl %ecx, %r10d
movl 0x7cc7(%rip), %eax      # 0xf708
addl %esi, %eax
incl %eax
andl $0x7, %eax
movl $0x8, %r9d
subl %eax, %r9d
testl %eax, %eax
cmovel %eax, %r9d
addl %r9d, %esi
movq %rsi, -0x58(%rbp)
andl %esi, %ecx
movl %ecx, -0x40(%rbp)
movl %ecx, 0x7cc7(%rip)      # 0xf730
cmpb $0x0, 0x7870(%rip)      # 0xf2e0
movl %r10d, -0x30(%rbp)
jne 0x8096
testq %r14, %r14
movl $0xfc, %eax
cmovel %eax, %r14d
movq %r14, -0x50(%rbp)
xorl %ebx, %ebx
xorl %r12d, %r12d
movq %r15, -0x38(%rbp)
movl %r12d, %eax
andb $0x7f, %al
incb %al
testb %r12b, %r12b
movzbl %r12b, %ecx
movzbl %al, %r15d
cmovnsl %ecx, %r15d
cmpl %ebx, %r10d
jbe 0x7ab9
movl %r15d, %r13d
movl $0xfc, %r14d
jmp 0x7b0e
jne 0x7ad5
movl %r15d, %eax
orb $-0x80, %al
cmpl %ebx, -0x40(%rbp)
movzbl %r15b, %ecx
movzbl %al, %r13d
cmovnel %ecx, %r13d
movq -0x50(%rbp), %r14
jmp 0x7b0e
cmpl %ebx, -0x40(%rbp)
jbe 0x7aef
cmpb $0x0, 0x77ff(%rip)      # 0xf2e0
jne 0x7e84
xorl %r14d, %r14d
movl %r15d, %r13d
jmp 0x7b06
movl %r15d, %r13d
orb $-0x80, %r13b
cmpb $0x0, 0x77e3(%rip)      # 0xf2e0
jne 0x7e96
xorl %r14d, %r14d
movq $0x0, -0x38(%rbp)
testb %r13b, %r13b
jns 0x7b20
cmpb $0x0, 0x77c6(%rip)      # 0xf2e0
jne 0x7de9
movzbl %r13b, %ecx
movl -0x3c(%rbp), %eax
cmpl $0x2, %eax
je 0x7c61
testl %eax, %eax
jne 0x7dbe
movl %ecx, -0x44(%rbp)
movl $0x101, %edx            # imm = 0x101
leaq -0x160(%rbp), %rdi
xorl %esi, %esi
callq 0x20d0
movl $0x101, %edx            # imm = 0x101
leaq -0x270(%rbp), %rdi
xorl %esi, %esi
callq 0x20d0
movw $0x2001, -0x270(%rbp)   # imm = 0x2001
movb $-0x4, -0x26e(%rbp)
cmpb $0x0, 0x7768(%rip)      # 0xf2e0
jne 0x7df7
movq -0x38(%rbp), %rsi
testq %rsi, %rsi
je 0x7b96
movl %r14d, %edx
leaq -0x26b(%rbp), %rdi
callq 0x2180
leal 0x1(%r14), %eax
movb %al, -0x26d(%rbp)
movb %r13b, -0x26c(%rbp)
addl $0x5, %r14d
movl -0x2c(%rbp), %r13d
movl %r13d, %edi
leaq -0x270(%rbp), %rsi
movq %r14, %rdx
callq 0x2070
cmpb $0x0, 0x7718(%rip)      # 0xf2e0
jne 0x7e25
movl %r13d, %edi
leaq -0x160(%rbp), %rsi
movl $0xe, %edx
callq 0x5241
testl %eax, %eax
js 0x7e32
cmpb $0x4, -0x160(%rbp)
jne 0x7e43
cmpb $0x20, -0x15c(%rbp)
jne 0x7e43
cmpb $-0x4, -0x15b(%rbp)
jne 0x7e43
movzbl -0x159(%rbp), %r13d
movzbl -0x15a(%rbp), %r14d
cmpb $0x0, 0x76b8(%rip)      # 0xf2e0
jne 0x7e4a
testl %r14d, %r14d
jne 0x7e74
movzbl %r13b, %r8d
movzbl %r15b, %ecx
cmpl %ecx, %r8d
je 0x7dba
cmpl %ebx, 0x7ae2(%rip)      # 0xf730
movl -0x30(%rbp), %r10d
movq -0x38(%rbp), %r15
je 0x7dc2
jmp 0x7faa
movl %ecx, %ebx
movl $0x100, %edx            # imm = 0x100
leaq -0x160(%rbp), %rdi
xorl %esi, %esi
callq 0x20d0
movw $0xfc20, -0x160(%rbp)   # imm = 0xFC20
leaq 0xc49(%rip), %rax       # 0x88cf
movq %rax, -0x318(%rbp)
movl $0xe, %edi
leaq -0x318(%rbp), %rsi
xorl %edx, %edx
callq 0x2060
movl $0x2, %edi
callq 0x20f0
movl $0xfd, %edx
leaq -0x270(%rbp), %rdi
xorl %esi, %esi
callq 0x20d0
movb %r13b, -0x270(%rbp)
movq -0x38(%rbp), %r15
testq %r15, %r15
je 0x7cdf
movl %r14d, %edx
leaq -0x26f(%rbp), %rdi
movq %r15, %rsi
callq 0x2180
movl %ebx, %eax
andl $0x7f, %eax
testb %r13b, %r13b
cmovnsl %ebx, %eax
movl %eax, 0x7a44(%rip)      # 0xf734
leal 0x1(%r14), %edx
movb %dl, -0x15e(%rbp)
leaq -0x15d(%rbp), %rdi
leaq -0x270(%rbp), %rsi
callq 0x2180
addl $0x4, %r14d
leaq -0x160(%rbp), %rdi
movl %r14d, %esi
movl $0x1, %edx
callq 0x604e
movq %rax, %r14
movq 0x79d1(%rip), %rdi      # 0xf700
testq %rdi, %rdi
movl -0x2c(%rbp), %ebx
je 0x7d47
callq 0x2030
movq $0x0, 0x79b9(%rip) # 0xf700
movq %r14, 0x79b2(%rip)      # 0xf700
movq %r14, %rsi
addq $0x8, %rsi
movl 0x4(%r14), %edx
movl %ebx, %edi
callq 0x2070
cmpb $0x0, 0x7579(%rip)      # 0xf2e0
jne 0x7e39
movl 0x79c5(%rip), %eax      # 0xf738
cmpl 0x79bb(%rip), %eax      # 0xf734
leaq -0x280(%rbp), %r14
je 0x7dad
movl %ebx, %edi
movq %r14, %rsi
callq 0x625a
cmpl $-0x1, %eax
je 0x7fdc
movq %r14, %rdi
movl %eax, %esi
callq 0x62b5
movl 0x7993(%rip), %eax      # 0xf738
cmpl 0x7989(%rip), %eax      # 0xf734
jne 0x7d82
xorl %edi, %edi
callq 0x20f0
movl -0x30(%rbp), %r10d
jmp 0x7dc2
movl -0x30(%rbp), %r10d
movq -0x38(%rbp), %r15
movzbl %r13b, %eax
leaq 0xfc(%r15), %rcx
cmpl %eax, %r10d
cmovaq %rcx, %r15
incb %r12b
movzbl %r12b, %ebx
cmpb -0x58(%rbp), %bl
jbe 0x7a8f
jmp 0x7ea8
callq 0x3afd
movl -0x30(%rbp), %r10d
jmp 0x7b20
movq 0x71fa(%rip), %rax      # 0xeff8
movq (%rax), %rdi
leaq 0x31e4(%rip), %rsi      # 0xafec
leaq 0x172a(%rip), %rdx      # 0x9539
movl -0x2c(%rbp), %ecx
movl -0x44(%rbp), %r8d
movl %r14d, %r9d
xorl %eax, %eax
callq 0x2150
jmp 0x7b7e
movq %rax, %rdi
callq 0x3b54
jmp 0x7bce
callq 0x3bc9
jmp 0x7e79
callq 0x3b22
jmp 0x7d6d
callq 0x3b7f
jmp 0x7e79
movq 0x71a7(%rip), %rax      # 0xeff8
movq (%rax), %rdi
leaq 0x320c(%rip), %rsi      # 0xb067
leaq 0x16d7(%rip), %rdx      # 0x9539
movl %r13d, %ecx
movl %r14d, %r8d
xorl %eax, %eax
callq 0x2150
jmp 0x7c2e
callq 0x3ba4
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
jmp 0x7c37
movzbl %r15b, %edi
callq 0x3ad1
movl -0x30(%rbp), %r10d
jmp 0x7ae7
movzbl %r13b, %edi
callq 0x3aa5
movl -0x30(%rbp), %r10d
jmp 0x7b03
xorl %ebx, %ebx
movl $0x0, %r14d
cmpl $0x2, -0x3c(%rbp)
jne 0x8003
movl -0x2c(%rbp), %edi
callq 0x6a40
xorl %ebx, %ebx
xorl %r14d, %r14d
jmp 0x8003
callq 0x36b3
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
jmp 0x749a
movq 0x7115(%rip), %rax      # 0xeff8
movq (%rax), %rdi
leaq 0x2ed3(%rip), %rsi      # 0xadc0
leaq 0x1645(%rip), %rdx      # 0x9539
leaq 0x2f15(%rip), %rcx      # 0xae10
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x2150
jmp 0x7704
cmpl $0x8723, %eax           # imm = 0x8723
movl -0x2c(%rbp), %r13d
jne 0x74d7
movb 0x77f0(%rip), %al       # 0xf70e
cmpb $0x8, %al
sete %dl
movzwl 0x77e2(%rip), %ecx      # 0xf70c
cmpw $0xd, %cx
sete %sil
andb %dl, %sil
cmpb $0x1, %sil
jne 0x807a
movb $0x71, 0x77ce(%rip)     # 0xf714
jmp 0x80d4
cmpl $0xa, %eax
movl -0x2c(%rbp), %r13d
jne 0x74d7
cmpb $0x2, %bl
je 0x80c4
movzbl %bl, %eax
cmpl $0x3, %eax
jne 0x80cd
movb $0x2f, 0x77a0(%rip)     # 0xf714
jmp 0x80d4
movq 0x7078(%rip), %rax      # 0xeff8
movq (%rax), %rdi
leaq 0x2d3c(%rip), %rsi      # 0xacc6
leaq 0x15a8(%rip), %rdx      # 0x9539
movl %r14d, %ecx
xorl %eax, %eax
callq 0x2150
jmp 0x78f6
callq 0x3a36
jmp 0x7966
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movb $0x1, %bl
cmpb $0x0, 0x7327(%rip)      # 0xf2e0
je 0x8003
movq 0x7036(%rip), %rax      # 0xeff8
movq (%rax), %rdi
leaq 0x2ff2(%rip), %rsi      # 0xafbe
leaq 0x1566(%rip), %rdx      # 0x9539
xorl %eax, %eax
callq 0x2150
jmp 0x8003
movq 0x7015(%rip), %rax      # 0xeff8
movq (%rax), %rdi
leaq 0x3131(%rip), %rsi      # 0xb11e
leaq 0x1545(%rip), %rdx      # 0x9539
xorl %eax, %eax
callq 0x2150
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movb $0x1, %bl
movq 0x774e(%rip), %rdi      # 0xf758
callq 0x2030
testb %bl, %bl
jne 0x749a
jmp 0x79ae
movl %r12d, %edi
callq 0x3a08
jmp 0x794f
callq 0x3a80
jmp 0x798e
leaq -0x26c(%rbp), %rdi
leaq -0x270(%rbp), %rsi
callq 0x3922
jmp 0x7862
callq 0x3966
jmp 0x78d1
callq 0x398b
jmp 0x788d
callq 0x39dc
jmp 0x78d1
leaq -0x160(%rbp), %rdi
callq 0x39b0
jmp 0x78d1
cmpb $0x6, %al
sete %al
cmpw $0xb, %cx
sete %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x80dd
movb $0x5f, 0x7680(%rip)     # 0xf714
jmp 0x80d4
movq 0x6f5b(%rip), %rax      # 0xeff8
movq (%rax), %rdi
leaq 0x2e90(%rip), %rsi      # 0xaf37
leaq 0x148b(%rip), %rdx      # 0x9539
movl %r10d, %ecx
movl %r14d, %r8d
xorl %eax, %eax
callq 0x2150
movl -0x30(%rbp), %r10d
jmp 0x7a7a
movb $0x1f, 0x7649(%rip)     # 0xf714
jmp 0x80d4
movb $0x0, 0x7640(%rip)      # 0xf714
movl -0x2c(%rbp), %r13d
jmp 0x74d7
callq 0x368e
jmp 0x7ed1
movl %r13d, %edi
callq 0x35eb
movzbl %al, %edi
callq 0x3620
movl %r13d, %edi
callq 0x3659