	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dtl1_open
_dtl1_open:                             ## @dtl1_open
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	24(%rdi), %rax
	movl	(%rax), %r12d
	leaq	16(%rdi), %r15
	movq	%r15, %rdi
	callq	_spin_lock_init
	leaq	56(%r13), %rdi
	callq	_skb_queue_head_init
	movq	_RECV_WAIT_NSH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r13)
	movq	_NSHL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r13)
	movq	$0, 40(%r13)
	movq	_XMIT_WAITING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	32(%r13), %rsi
	callq	_set_bit
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_hci_alloc_dev
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, 8(%r13)
	movq	_HCI_PCCARD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	%r13, 32(%rbx)
	movq	24(%r13), %rsi
	addq	$4, %rsi
	movq	%rbx, %rdi
	callq	_SET_HCIDEV_DEV
	movq	_dtl1_hci_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_dtl1_hci_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_dtl1_hci_flush@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_dtl1_hci_send_frame@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_dtl1_hci_destruct@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_dtl1_hci_ioctl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_UART_MCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r12, %rsi
	xorl	%edi, %edi
	callq	_outb
	movq	_UART_IER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r12, %rsi
	xorl	%edi, %edi
	callq	_outb
	movq	_UART_LCR_WLEN8@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_UART_LCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r12, %rsi
	callq	_outb
	movq	_UART_MCR_DTR@GOTPCREL(%rip), %rax
	movq	_UART_MCR_RTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_UART_MCR_OUT2@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_UART_MCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r12, %rsi
	callq	_outb
	movq	24(%r13), %rax
	movl	(%rax), %edi
	movq	_UART_MSR@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_inb
	movq	_UART_MSR_RI@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, (%r13)
	movq	_UART_IER_RLSI@GOTPCREL(%rip), %rax
	movq	_UART_IER_RDI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_UART_IER_THRI@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_UART_IER@GOTPCREL(%rip), %rax
	addq	(%rax), %r12
	movq	%r12, %rsi
	callq	_outb
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	$2000, %edi                     ## imm = 0x7D0
	callq	_msleep
	movq	%rbx, %rdi
	callq	_hci_register_dev
	testq	%rax, %rax
	jns	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_BT_ERR
	movq	$0, 8(%r13)
	movq	%rbx, %rdi
	callq	_hci_free_dev
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_BT_ERR
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RECV_WAIT_NSH,4,2              ## @RECV_WAIT_NSH
	.comm	_NSHL,4,2                       ## @NSHL
	.comm	_XMIT_WAITING,4,2               ## @XMIT_WAITING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't allocate HCI device"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HCI_PCCARD,4,2                 ## @HCI_PCCARD
	.comm	_dtl1_hci_open,4,2              ## @dtl1_hci_open
	.comm	_dtl1_hci_close,4,2             ## @dtl1_hci_close
	.comm	_dtl1_hci_flush,4,2             ## @dtl1_hci_flush
	.comm	_dtl1_hci_send_frame,4,2        ## @dtl1_hci_send_frame
	.comm	_dtl1_hci_destruct,4,2          ## @dtl1_hci_destruct
	.comm	_dtl1_hci_ioctl,4,2             ## @dtl1_hci_ioctl
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_UART_MCR,8,3                   ## @UART_MCR
	.comm	_UART_IER,8,3                   ## @UART_IER
	.comm	_UART_LCR_WLEN8,4,2             ## @UART_LCR_WLEN8
	.comm	_UART_LCR,8,3                   ## @UART_LCR
	.comm	_UART_MCR_DTR,4,2               ## @UART_MCR_DTR
	.comm	_UART_MCR_RTS,4,2               ## @UART_MCR_RTS
	.comm	_UART_MCR_OUT2,4,2              ## @UART_MCR_OUT2
	.comm	_UART_MSR,8,3                   ## @UART_MSR
	.comm	_UART_MSR_RI,4,2                ## @UART_MSR_RI
	.comm	_UART_IER_RLSI,4,2              ## @UART_IER_RLSI
	.comm	_UART_IER_RDI,4,2               ## @UART_IER_RDI
	.comm	_UART_IER_THRI,4,2              ## @UART_IER_THRI
L_.str.1:                               ## @.str.1
	.asciz	"Can't register HCI device"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_dtl1_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dtl1_open
_dtl1_open:                             ; @dtl1_open
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldr	w22, [x8]
	add	x20, x0, #16
	mov	x0, x20
	bl	_spin_lock_init
	add	x0, x19, #56
	bl	_skb_queue_head_init
Lloh0:
	adrp	x8, _RECV_WAIT_NSH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RECV_WAIT_NSH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _NSHL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NSHL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #48]
	str	xzr, [x19, #40]
Lloh6:
	adrp	x8, _XMIT_WAITING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XMIT_WAITING@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, x19, #32
	bl	_set_bit
	bl	_hci_alloc_dev
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
Lloh9:
	adrp	x8, _HCI_PCCARD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HCI_PCCARD@GOTPAGEOFF]
	str	x0, [x19, #8]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x0, #40]
	str	x19, [x0, #32]
	ldr	x8, [x19, #24]
	add	x1, x8, #4
	bl	_SET_HCIDEV_DEV
Lloh12:
	adrp	x8, _dtl1_hci_open@GOTPAGE
Lloh13:
	ldr	x8, [x8, _dtl1_hci_open@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x21, #24]
Lloh15:
	adrp	x8, _dtl1_hci_close@GOTPAGE
Lloh16:
	ldr	x8, [x8, _dtl1_hci_close@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _dtl1_hci_flush@GOTPAGE
Lloh19:
	ldr	x9, [x9, _dtl1_hci_flush@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #16]
Lloh21:
	adrp	x8, _dtl1_hci_send_frame@GOTPAGE
Lloh22:
	ldr	x8, [x8, _dtl1_hci_send_frame@GOTPAGEOFF]
Lloh23:
	adrp	x9, _dtl1_hci_destruct@GOTPAGE
Lloh24:
	ldr	x9, [x9, _dtl1_hci_destruct@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #8]
Lloh27:
	adrp	x8, _dtl1_hci_ioctl@GOTPAGE
Lloh28:
	ldr	x8, [x8, _dtl1_hci_ioctl@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _THIS_MODULE@GOTPAGE
Lloh31:
	ldr	x9, [x9, _THIS_MODULE@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	stp	w9, w8, [x21]
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh33:
	adrp	x23, _UART_MCR@GOTPAGE
Lloh34:
	ldr	x23, [x23, _UART_MCR@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x1, x8, x22
	mov	w0, #0
	bl	_outb
Lloh35:
	adrp	x24, _UART_IER@GOTPAGE
Lloh36:
	ldr	x24, [x24, _UART_IER@GOTPAGEOFF]
	ldr	x8, [x24]
	add	x1, x8, x22
	mov	w0, #0
	bl	_outb
Lloh37:
	adrp	x8, _UART_LCR_WLEN8@GOTPAGE
Lloh38:
	ldr	x8, [x8, _UART_LCR_WLEN8@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
Lloh40:
	adrp	x8, _UART_LCR@GOTPAGE
Lloh41:
	ldr	x8, [x8, _UART_LCR@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
	add	x1, x8, x22
	bl	_outb
Lloh43:
	adrp	x8, _UART_MCR_DTR@GOTPAGE
Lloh44:
	ldr	x8, [x8, _UART_MCR_DTR@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
Lloh46:
	adrp	x9, _UART_MCR_RTS@GOTPAGE
Lloh47:
	ldr	x9, [x9, _UART_MCR_RTS@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh49:
	adrp	x9, _UART_MCR_OUT2@GOTPAGE
Lloh50:
	ldr	x9, [x9, _UART_MCR_OUT2@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	x8, [x23]
	add	x1, x8, x22
	bl	_outb
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
Lloh52:
	adrp	x9, _UART_MSR@GOTPAGE
Lloh53:
	ldr	x9, [x9, _UART_MSR@GOTPAGEOFF]
Lloh54:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inb
Lloh55:
	adrp	x8, _UART_MSR_RI@GOTPAGE
Lloh56:
	ldr	x8, [x8, _UART_MSR_RI@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh58:
	adrp	x9, _UART_IER_RLSI@GOTPAGE
Lloh59:
	ldr	x9, [x9, _UART_IER_RLSI@GOTPAGEOFF]
	str	w8, [x19]
Lloh60:
	ldr	w8, [x9]
Lloh61:
	adrp	x9, _UART_IER_RDI@GOTPAGE
Lloh62:
	ldr	x9, [x9, _UART_IER_RDI@GOTPAGEOFF]
Lloh63:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh64:
	adrp	x9, _UART_IER_THRI@GOTPAGE
Lloh65:
	ldr	x9, [x9, _UART_IER_THRI@GOTPAGEOFF]
Lloh66:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	x8, [x24]
	add	x1, x8, x22
	bl	_outb
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	w0, #2000
	bl	_msleep
	mov	x0, x21
	bl	_hci_register_dev
	mov	x8, x0
	mov	w0, #0
	tbz	x8, #63, LBB0_5
; %bb.2:
Lloh67:
	adrp	x0, l_.str.1@PAGE
Lloh68:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BT_ERR
	str	xzr, [x19, #8]
	mov	x0, x21
	bl	_hci_free_dev
Lloh69:
	adrp	x8, _ENODEV@GOTPAGE
Lloh70:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh71:
	adrp	x0, l_.str@PAGE
Lloh72:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BT_ERR
Lloh73:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh74:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh25
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpAdd	Lloh71, Lloh72
	.cfi_endproc
                                        ; -- End function
	.comm	_RECV_WAIT_NSH,4,2              ; @RECV_WAIT_NSH
	.comm	_NSHL,4,2                       ; @NSHL
	.comm	_XMIT_WAITING,4,2               ; @XMIT_WAITING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't allocate HCI device"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HCI_PCCARD,4,2                 ; @HCI_PCCARD
	.comm	_dtl1_hci_open,4,2              ; @dtl1_hci_open
	.comm	_dtl1_hci_close,4,2             ; @dtl1_hci_close
	.comm	_dtl1_hci_flush,4,2             ; @dtl1_hci_flush
	.comm	_dtl1_hci_send_frame,4,2        ; @dtl1_hci_send_frame
	.comm	_dtl1_hci_destruct,4,2          ; @dtl1_hci_destruct
	.comm	_dtl1_hci_ioctl,4,2             ; @dtl1_hci_ioctl
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_UART_MCR,8,3                   ; @UART_MCR
	.comm	_UART_IER,8,3                   ; @UART_IER
	.comm	_UART_LCR_WLEN8,4,2             ; @UART_LCR_WLEN8
	.comm	_UART_LCR,8,3                   ; @UART_LCR
	.comm	_UART_MCR_DTR,4,2               ; @UART_MCR_DTR
	.comm	_UART_MCR_RTS,4,2               ; @UART_MCR_RTS
	.comm	_UART_MCR_OUT2,4,2              ; @UART_MCR_OUT2
	.comm	_UART_MSR,8,3                   ; @UART_MSR
	.comm	_UART_MSR_RI,4,2                ; @UART_MSR_RI
	.comm	_UART_IER_RLSI,4,2              ; @UART_IER_RLSI
	.comm	_UART_IER_RDI,4,2               ; @UART_IER_RDI
	.comm	_UART_IER_THRI,4,2              ; @UART_IER_THRI
l_.str.1:                               ; @.str.1
	.asciz	"Can't register HCI device"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_dtl1_open
.subsections_via_symbols
