	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bluecard_open
_bluecard_open:                         ## @bluecard_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	32(%rdi), %rax
	movl	4(%rax), %r13d
	addq	$80, %rdi
	callq	_spin_lock_init
	leaq	64(%r14), %rdi
	callq	_init_timer
	movq	_bluecard_activity_led_timeout@GOTPCREL(%rip), %rax
	movq	%rax, 72(%r14)
	movq	%r14, 64(%r14)
	leaq	16(%r14), %r12
	movq	%r12, %rdi
	callq	_skb_queue_head_init
	movq	_RECV_WAIT_PACKET_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r14)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_hci_alloc_dev
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, 8(%r14)
	movq	_HCI_PCCARD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	movq	%r14, 32(%r15)
	movq	32(%r14), %rsi
	movq	%r15, %rdi
	callq	_SET_HCIDEV_DEV
	movq	_bluecard_hci_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	_bluecard_hci_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	_bluecard_hci_flush@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_bluecard_hci_send_frame@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	_bluecard_hci_destruct@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_bluecard_hci_ioctl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	leal	48(%r13), %r12d
	movl	%r12d, %edi
	callq	_inb
	movq	%r13, %rbx
	movl	%eax, %r13d
	movzbl	%al, %eax
	andl	$15, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$2, %eax
	je	LBB0_3
## %bb.4:
	testb	$16, %r13b
	jne	LBB0_5
LBB0_6:
	testb	$32, %r13b
	je	LBB0_8
LBB0_7:
	movq	_CARD_HAS_ACTIVITY_LED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%r14), %rsi
	callq	_set_bit
LBB0_8:
	movq	_REG_CONTROL_BT_RESET@GOTPCREL(%rip), %rax
	movq	_REG_CONTROL_CARD_RESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movl	%edi, (%r14)
	movq	_REG_CONTROL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	addl	%ebx, %esi
	callq	_outb
	movl	$128, %edi
	movl	%r12d, %esi
	callq	_outb
	movl	$10, %edi
	callq	_msleep
	xorl	%edi, %edi
	movl	%r12d, %esi
	callq	_outb
	movq	_REG_CONTROL_BT_ON@GOTPCREL(%rip), %rax
	movq	_REG_CONTROL_BT_RES_PU@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movl	%edi, (%r14)
	movl	(%r13), %esi
	addl	%ebx, %esi
	callq	_outb
	movq	_REG_INTERRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	movl	$255, %edi
	callq	_outb
	movq	_REG_CONTROL_INTERRUPT@GOTPCREL(%rip), %rax
	movl	(%r14), %edi
	orl	(%rax), %edi
	movl	%edi, (%r14)
	movq	%r13, %r12
	movl	(%r13), %esi
	addl	%ebx, %esi
	callq	_outb
	cmpl	$3, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_10
## %bb.9:
	movq	_REG_CONTROL_RTS@GOTPCREL(%rip), %r13
	movl	(%r14), %edi
	orl	(%r13), %edi
	movl	%edi, (%r14)
	movl	(%r12), %esi
	addl	%ebx, %esi
	callq	_outb
	movl	(%r14), %edi
	orl	$3, %edi
	movl	%edi, (%r14)
	movl	(%r12), %esi
	addl	%ebx, %esi
	callq	_outb
	movl	(%r13), %edi
	notl	%edi
	andl	(%r14), %edi
	movl	%edi, (%r14)
	movl	(%r12), %esi
	addl	%ebx, %esi
	callq	_outb
	movq	_XMIT_BUF_ONE_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%r14), %r12
	movq	%r12, %rsi
	callq	_set_bit
	movq	_XMIT_BUF_TWO_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_set_bit
	movq	_XMIT_SENDING_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_set_bit
LBB0_10:
	movq	_REG_COMMAND_RX_BUF_ONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_REG_COMMAND@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	addl	%ebx, %esi
	callq	_outb
	movq	_REG_COMMAND_RX_BUF_TWO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	addl	%ebx, %esi
	callq	_outb
	movq	_CARD_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%r14), %rsi
	callq	_set_bit
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_queue_purge
	movq	_RTS_LEVEL_SHIFT_BITS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$15, %edi
	shll	%cl, %edi
	orl	$1, %edi
	movq	_REG_RX_CONTROL@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	movl	%ebx, %esi
	callq	_outb
	movl	$1250, %edi                     ## imm = 0x4E2
	callq	_msleep
	movq	%r15, %rdi
	callq	_hci_register_dev
	testq	%rax, %rax
	movl	$0, %ebx
	jns	LBB0_13
## %bb.11:
	leaq	L_.str.1(%rip), %rdi
	callq	_BT_ERR
	movq	$0, 8(%r14)
	movq	%r15, %rdi
	callq	_hci_free_dev
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_BT_ERR
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_12:
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_CARD_HAS_PCCARD_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%r14), %rsi
	callq	_set_bit
	testb	$16, %r13b
	je	LBB0_6
LBB0_5:
	movq	_CARD_HAS_POWER_LED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%r14), %rsi
	callq	_set_bit
	testb	$32, %r13b
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_bluecard_activity_led_timeout,4,2 ## @bluecard_activity_led_timeout
	.comm	_RECV_WAIT_PACKET_TYPE,4,2      ## @RECV_WAIT_PACKET_TYPE
	.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	_bluecard_hci_open,4,2          ## @bluecard_hci_open
	.comm	_bluecard_hci_close,4,2         ## @bluecard_hci_close
	.comm	_bluecard_hci_flush,4,2         ## @bluecard_hci_flush
	.comm	_bluecard_hci_send_frame,4,2    ## @bluecard_hci_send_frame
	.comm	_bluecard_hci_destruct,4,2      ## @bluecard_hci_destruct
	.comm	_bluecard_hci_ioctl,4,2         ## @bluecard_hci_ioctl
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_CARD_HAS_PCCARD_ID,4,2         ## @CARD_HAS_PCCARD_ID
	.comm	_CARD_HAS_POWER_LED,4,2         ## @CARD_HAS_POWER_LED
	.comm	_CARD_HAS_ACTIVITY_LED,4,2      ## @CARD_HAS_ACTIVITY_LED
	.comm	_REG_CONTROL_BT_RESET,4,2       ## @REG_CONTROL_BT_RESET
	.comm	_REG_CONTROL_CARD_RESET,4,2     ## @REG_CONTROL_CARD_RESET
	.comm	_REG_CONTROL,4,2                ## @REG_CONTROL
	.comm	_REG_CONTROL_BT_ON,4,2          ## @REG_CONTROL_BT_ON
	.comm	_REG_CONTROL_BT_RES_PU,4,2      ## @REG_CONTROL_BT_RES_PU
	.comm	_REG_INTERRUPT,4,2              ## @REG_INTERRUPT
	.comm	_REG_CONTROL_INTERRUPT,4,2      ## @REG_CONTROL_INTERRUPT
	.comm	_REG_CONTROL_RTS,4,2            ## @REG_CONTROL_RTS
	.comm	_XMIT_BUF_ONE_READY,4,2         ## @XMIT_BUF_ONE_READY
	.comm	_XMIT_BUF_TWO_READY,4,2         ## @XMIT_BUF_TWO_READY
	.comm	_XMIT_SENDING_READY,4,2         ## @XMIT_SENDING_READY
	.comm	_REG_COMMAND_RX_BUF_ONE,4,2     ## @REG_COMMAND_RX_BUF_ONE
	.comm	_REG_COMMAND,4,2                ## @REG_COMMAND
	.comm	_REG_COMMAND_RX_BUF_TWO,4,2     ## @REG_COMMAND_RX_BUF_TWO
	.comm	_CARD_READY,4,2                 ## @CARD_READY
	.comm	_RTS_LEVEL_SHIFT_BITS,4,2       ## @RTS_LEVEL_SHIFT_BITS
	.comm	_REG_RX_CONTROL,4,2             ## @REG_RX_CONTROL
L_.str.1:                               ## @.str.1
	.asciz	"Can't register HCI device"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bluecard_open
_bluecard_open:                         ; @bluecard_open
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x8, [x0, #32]
	ldr	w24, [x8, #4]
	add	x0, x0, #80
	bl	_spin_lock_init
	add	x0, x19, #64
	bl	_init_timer
Lloh0:
	adrp	x8, _bluecard_activity_led_timeout@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bluecard_activity_led_timeout@GOTPAGEOFF]
	stp	x19, x8, [x19, #64]
	add	x21, x19, #16
	mov	x0, x21
	bl	_skb_queue_head_init
Lloh2:
	adrp	x8, _RECV_WAIT_PACKET_TYPE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RECV_WAIT_PACKET_TYPE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #56]
	stp	xzr, xzr, [x19, #40]
	bl	_hci_alloc_dev
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x0
	str	x0, [x19, #8]
Lloh5:
	adrp	x8, _HCI_PCCARD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HCI_PCCARD@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x0, #40]
	str	x19, [x0, #32]
	ldr	x1, [x19, #32]
	bl	_SET_HCIDEV_DEV
Lloh8:
	adrp	x8, _bluecard_hci_open@GOTPAGE
Lloh9:
	ldr	x8, [x8, _bluecard_hci_open@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _bluecard_hci_close@GOTPAGE
Lloh12:
	ldr	x9, [x9, _bluecard_hci_close@GOTPAGEOFF]
	str	w8, [x20, #24]
Lloh13:
	ldr	w8, [x9]
Lloh14:
	adrp	x9, _bluecard_hci_flush@GOTPAGE
Lloh15:
	ldr	x9, [x9, _bluecard_hci_flush@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #16]
Lloh17:
	adrp	x8, _bluecard_hci_send_frame@GOTPAGE
Lloh18:
	ldr	x8, [x8, _bluecard_hci_send_frame@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _bluecard_hci_destruct@GOTPAGE
Lloh21:
	ldr	x9, [x9, _bluecard_hci_destruct@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
Lloh23:
	adrp	x8, _bluecard_hci_ioctl@GOTPAGE
Lloh24:
	ldr	x8, [x8, _bluecard_hci_ioctl@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _THIS_MODULE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _THIS_MODULE@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	stp	w9, w8, [x20]
	add	w22, w24, #48
	mov	x0, x22
	bl	_inb
	mov	x23, x0
	and	w25, w0, #0xf
	cmp	w25, #2
	b.eq	LBB0_10
; %bb.2:
	tbnz	w23, #4, LBB0_11
LBB0_3:
	tbz	w23, #5, LBB0_5
LBB0_4:
Lloh29:
	adrp	x8, _CARD_HAS_ACTIVITY_LED@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CARD_HAS_ACTIVITY_LED@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	add	x1, x19, #20
	bl	_set_bit
LBB0_5:
Lloh32:
	adrp	x8, _REG_CONTROL_BT_RESET@GOTPAGE
Lloh33:
	ldr	x8, [x8, _REG_CONTROL_BT_RESET@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _REG_CONTROL_CARD_RESET@GOTPAGE
Lloh36:
	ldr	x9, [x9, _REG_CONTROL_CARD_RESET@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	orr	w0, w9, w8
	str	w0, [x19]
Lloh38:
	adrp	x23, _REG_CONTROL@GOTPAGE
Lloh39:
	ldr	x23, [x23, _REG_CONTROL@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w1, w8, w24
	bl	_outb
	mov	w0, #128
	mov	x1, x22
	bl	_outb
	mov	w0, #10
	bl	_msleep
	mov	w0, #0
	mov	x1, x22
	bl	_outb
Lloh40:
	adrp	x8, _REG_CONTROL_BT_ON@GOTPAGE
Lloh41:
	ldr	x8, [x8, _REG_CONTROL_BT_ON@GOTPAGEOFF]
Lloh42:
	adrp	x9, _REG_CONTROL_BT_RES_PU@GOTPAGE
Lloh43:
	ldr	x9, [x9, _REG_CONTROL_BT_RES_PU@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
Lloh45:
	ldr	w9, [x9]
	orr	w0, w9, w8
	str	w0, [x19]
	ldr	w8, [x23]
	add	w1, w8, w24
	bl	_outb
Lloh46:
	adrp	x8, _REG_INTERRUPT@GOTPAGE
Lloh47:
	ldr	x8, [x8, _REG_INTERRUPT@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	add	w1, w8, w24
	mov	w0, #255
	bl	_outb
Lloh49:
	adrp	x8, _REG_CONTROL_INTERRUPT@GOTPAGE
Lloh50:
	ldr	x8, [x8, _REG_CONTROL_INTERRUPT@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w0, w9, w8
	str	w0, [x19]
	ldr	w8, [x23]
	add	w1, w8, w24
	bl	_outb
	cmp	w25, #3
	b.ne	LBB0_7
; %bb.6:
Lloh52:
	adrp	x22, _REG_CONTROL_RTS@GOTPAGE
Lloh53:
	ldr	x22, [x22, _REG_CONTROL_RTS@GOTPAGEOFF]
	ldr	w8, [x22]
	ldr	w9, [x19]
	orr	w0, w9, w8
	str	w0, [x19]
	ldr	w8, [x23]
	add	w1, w8, w24
	bl	_outb
	ldr	w8, [x19]
	orr	w0, w8, #0x3
	str	w0, [x19]
	ldr	w8, [x23]
	add	w1, w8, w24
	bl	_outb
	ldr	w8, [x22]
	ldr	w9, [x19]
	bic	w0, w9, w8
	mov	x22, x19
	str	w0, [x22], #24
	ldr	w8, [x23]
	add	w1, w8, w24
	bl	_outb
Lloh54:
	adrp	x8, _XMIT_BUF_ONE_READY@GOTPAGE
Lloh55:
	ldr	x8, [x8, _XMIT_BUF_ONE_READY@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_set_bit
Lloh57:
	adrp	x8, _XMIT_BUF_TWO_READY@GOTPAGE
Lloh58:
	ldr	x8, [x8, _XMIT_BUF_TWO_READY@GOTPAGEOFF]
Lloh59:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_set_bit
Lloh60:
	adrp	x8, _XMIT_SENDING_READY@GOTPAGE
Lloh61:
	ldr	x8, [x8, _XMIT_SENDING_READY@GOTPAGEOFF]
Lloh62:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_set_bit
LBB0_7:
Lloh63:
	adrp	x8, _REG_COMMAND_RX_BUF_ONE@GOTPAGE
Lloh64:
	ldr	x8, [x8, _REG_COMMAND_RX_BUF_ONE@GOTPAGEOFF]
Lloh65:
	ldr	w0, [x8]
Lloh66:
	adrp	x22, _REG_COMMAND@GOTPAGE
Lloh67:
	ldr	x22, [x22, _REG_COMMAND@GOTPAGEOFF]
	ldr	w8, [x22]
	add	w1, w8, w24
	bl	_outb
Lloh68:
	adrp	x8, _REG_COMMAND_RX_BUF_TWO@GOTPAGE
Lloh69:
	ldr	x8, [x8, _REG_COMMAND_RX_BUF_TWO@GOTPAGEOFF]
Lloh70:
	ldr	w0, [x8]
	ldr	w8, [x22]
	add	w1, w8, w24
	bl	_outb
Lloh71:
	adrp	x8, _CARD_READY@GOTPAGE
Lloh72:
	ldr	x8, [x8, _CARD_READY@GOTPAGEOFF]
Lloh73:
	ldr	w0, [x8]
	add	x1, x19, #20
	bl	_set_bit
	mov	x0, x21
	bl	_skb_queue_purge
Lloh74:
	adrp	x8, _RTS_LEVEL_SHIFT_BITS@GOTPAGE
Lloh75:
	ldr	x8, [x8, _RTS_LEVEL_SHIFT_BITS@GOTPAGEOFF]
Lloh76:
	ldr	w8, [x8]
	mov	w9, #15
	lsl	w8, w9, w8
	orr	w0, w8, #0x1
Lloh77:
	adrp	x8, _REG_RX_CONTROL@GOTPAGE
Lloh78:
	ldr	x8, [x8, _REG_RX_CONTROL@GOTPAGEOFF]
Lloh79:
	ldr	w8, [x8]
	add	w1, w8, w24
	bl	_outb
	mov	w0, #1250
	bl	_msleep
	mov	x0, x20
	bl	_hci_register_dev
	tbnz	x0, #63, LBB0_12
; %bb.8:
	mov	w0, #0
	b	LBB0_14
LBB0_9:
Lloh80:
	adrp	x0, l_.str@PAGE
Lloh81:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BT_ERR
Lloh82:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh83:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:
Lloh84:
	adrp	x8, _CARD_HAS_PCCARD_ID@GOTPAGE
Lloh85:
	ldr	x8, [x8, _CARD_HAS_PCCARD_ID@GOTPAGEOFF]
Lloh86:
	ldr	w0, [x8]
	add	x1, x19, #20
	bl	_set_bit
	tbz	w23, #4, LBB0_3
LBB0_11:
Lloh87:
	adrp	x8, _CARD_HAS_POWER_LED@GOTPAGE
Lloh88:
	ldr	x8, [x8, _CARD_HAS_POWER_LED@GOTPAGEOFF]
Lloh89:
	ldr	w0, [x8]
	add	x1, x19, #20
	bl	_set_bit
	tbnz	w23, #5, LBB0_4
	b	LBB0_5
LBB0_12:
Lloh90:
	adrp	x0, l_.str.1@PAGE
Lloh91:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BT_ERR
	str	xzr, [x19, #8]
	mov	x0, x20
	bl	_hci_free_dev
Lloh92:
	adrp	x8, _ENODEV@GOTPAGE
Lloh93:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh44
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh82, Lloh83
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGot	Lloh92, Lloh93
	.loh AdrpAdd	Lloh90, Lloh91
	.cfi_endproc
                                        ; -- End function
	.comm	_bluecard_activity_led_timeout,4,2 ; @bluecard_activity_led_timeout
	.comm	_RECV_WAIT_PACKET_TYPE,4,2      ; @RECV_WAIT_PACKET_TYPE
	.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	_bluecard_hci_open,4,2          ; @bluecard_hci_open
	.comm	_bluecard_hci_close,4,2         ; @bluecard_hci_close
	.comm	_bluecard_hci_flush,4,2         ; @bluecard_hci_flush
	.comm	_bluecard_hci_send_frame,4,2    ; @bluecard_hci_send_frame
	.comm	_bluecard_hci_destruct,4,2      ; @bluecard_hci_destruct
	.comm	_bluecard_hci_ioctl,4,2         ; @bluecard_hci_ioctl
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_CARD_HAS_PCCARD_ID,4,2         ; @CARD_HAS_PCCARD_ID
	.comm	_CARD_HAS_POWER_LED,4,2         ; @CARD_HAS_POWER_LED
	.comm	_CARD_HAS_ACTIVITY_LED,4,2      ; @CARD_HAS_ACTIVITY_LED
	.comm	_REG_CONTROL_BT_RESET,4,2       ; @REG_CONTROL_BT_RESET
	.comm	_REG_CONTROL_CARD_RESET,4,2     ; @REG_CONTROL_CARD_RESET
	.comm	_REG_CONTROL,4,2                ; @REG_CONTROL
	.comm	_REG_CONTROL_BT_ON,4,2          ; @REG_CONTROL_BT_ON
	.comm	_REG_CONTROL_BT_RES_PU,4,2      ; @REG_CONTROL_BT_RES_PU
	.comm	_REG_INTERRUPT,4,2              ; @REG_INTERRUPT
	.comm	_REG_CONTROL_INTERRUPT,4,2      ; @REG_CONTROL_INTERRUPT
	.comm	_REG_CONTROL_RTS,4,2            ; @REG_CONTROL_RTS
	.comm	_XMIT_BUF_ONE_READY,4,2         ; @XMIT_BUF_ONE_READY
	.comm	_XMIT_BUF_TWO_READY,4,2         ; @XMIT_BUF_TWO_READY
	.comm	_XMIT_SENDING_READY,4,2         ; @XMIT_SENDING_READY
	.comm	_REG_COMMAND_RX_BUF_ONE,4,2     ; @REG_COMMAND_RX_BUF_ONE
	.comm	_REG_COMMAND,4,2                ; @REG_COMMAND
	.comm	_REG_COMMAND_RX_BUF_TWO,4,2     ; @REG_COMMAND_RX_BUF_TWO
	.comm	_CARD_READY,4,2                 ; @CARD_READY
	.comm	_RTS_LEVEL_SHIFT_BITS,4,2       ; @RTS_LEVEL_SHIFT_BITS
	.comm	_REG_RX_CONTROL,4,2             ; @REG_RX_CONTROL
l_.str.1:                               ; @.str.1
	.asciz	"Can't register HCI device"

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