	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_btmrvl_add_card                ## -- Begin function btmrvl_add_card
	.p2align	4, 0x90
_btmrvl_add_card:                       ## @btmrvl_add_card
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	(%r14), %esi
	movl	$1, %edi
	callq	_kzalloc
	movq	%rax, 48(%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_btmrvl_init_adapter
	xorl	%eax, %eax
	callq	_hci_alloc_dev
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r14
	leaq	L_.str.3(%rip), %rdi
	callq	_BT_DBG
	movq	%rbx, 8(%rbx)
	leaq	40(%rbx), %rdi
	callq	_spin_lock_init
	movq	%rbx, %rdi
	addq	$4, %rdi
	callq	_init_waitqueue_head
	movq	_btmrvl_service_main_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rdx
	movq	%rbx, %rsi
	callq	_kthread_run
	movl	%eax, (%rbx)
	movq	%r14, 32(%rbx)
	movq	%r15, 24(%rbx)
	movq	%rbx, 32(%r14)
	movl	$1, 16(%rbx)
	movq	_HCI_SDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
	movq	_btmrvl_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	_btmrvl_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	_btmrvl_flush@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_btmrvl_send_frame@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	_btmrvl_destruct@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	_btmrvl_ioctl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_hci_register_dev
	testl	%eax, %eax
	jns	LBB0_11
## %bb.7:
	leaq	L_.str.5(%rip), %rdi
	callq	_BT_ERR
	movl	(%rbx), %edi
	callq	_kthread_stop
	movq	%r14, %rdi
	callq	_hci_free_dev
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_BT_ERR
	jmp	LBB0_10
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_BT_ERR
	jmp	LBB0_9
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	callq	_BT_ERR
LBB0_8:
	movq	%rbx, %rdi
	callq	_btmrvl_free_adapter
LBB0_9:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can not allocate priv"

L_.str.1:                               ## @.str.1
	.asciz	"Allocate buffer for btmrvl_adapter failed!"

L_.str.2:                               ## @.str.2
	.asciz	"Can not allocate HCI device"

L_.str.3:                               ## @.str.3
	.asciz	"Starting kthread..."

	.comm	_btmrvl_service_main_thread,4,2 ## @btmrvl_service_main_thread
L_.str.4:                               ## @.str.4
	.asciz	"btmrvl_main_service"

	.comm	_HCI_SDIO,4,2                   ## @HCI_SDIO
	.comm	_btmrvl_open,4,2                ## @btmrvl_open
	.comm	_btmrvl_close,4,2               ## @btmrvl_close
	.comm	_btmrvl_flush,4,2               ## @btmrvl_flush
	.comm	_btmrvl_send_frame,4,2          ## @btmrvl_send_frame
	.comm	_btmrvl_destruct,4,2            ## @btmrvl_destruct
	.comm	_btmrvl_ioctl,4,2               ## @btmrvl_ioctl
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
L_.str.5:                               ## @.str.5
	.asciz	"Can not register HCI device"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_btmrvl_add_card                ; -- Begin function btmrvl_add_card
	.p2align	2
_btmrvl_add_card:                       ; @btmrvl_add_card
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x0
Lloh0:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w0, #56
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w1, [x20]
	mov	w0, #1
	bl	_kzalloc
	str	x0, [x19, #48]
	cbz	x0, LBB0_6
; %bb.2:
	mov	x0, x19
	bl	_btmrvl_init_adapter
	bl	_hci_alloc_dev
	cbz	x0, LBB0_7
; %bb.3:
	mov	x20, x0
Lloh2:
	adrp	x0, l_.str.3@PAGE
Lloh3:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_BT_DBG
	str	x19, [x19, #8]
	add	x0, x19, #40
	bl	_spin_lock_init
	add	x0, x19, #4
	bl	_init_waitqueue_head
Lloh4:
	adrp	x8, _btmrvl_service_main_thread@GOTPAGE
Lloh5:
	ldr	x8, [x8, _btmrvl_service_main_thread@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x2, l_.str.4@PAGE
Lloh8:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x1, x19
	bl	_kthread_run
	str	w0, [x19]
	stp	x21, x20, [x19, #24]
	str	x19, [x20, #32]
	mov	w8, #1
	str	w8, [x19, #16]
Lloh9:
	adrp	x8, _HCI_SDIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HCI_SDIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _btmrvl_open@GOTPAGE
Lloh13:
	ldr	x9, [x9, _btmrvl_open@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #24]
Lloh15:
	adrp	x8, _btmrvl_close@GOTPAGE
Lloh16:
	ldr	x8, [x8, _btmrvl_close@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _btmrvl_flush@GOTPAGE
Lloh19:
	ldr	x9, [x9, _btmrvl_flush@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #16]
Lloh21:
	adrp	x8, _btmrvl_send_frame@GOTPAGE
Lloh22:
	ldr	x8, [x8, _btmrvl_send_frame@GOTPAGEOFF]
Lloh23:
	adrp	x9, _btmrvl_destruct@GOTPAGE
Lloh24:
	ldr	x9, [x9, _btmrvl_destruct@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
Lloh27:
	adrp	x8, _btmrvl_ioctl@GOTPAGE
Lloh28:
	ldr	x8, [x8, _btmrvl_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, [x20]
	mov	x0, x20
	bl	_hci_register_dev
	tbz	w0, #31, LBB0_10
; %bb.4:
Lloh33:
	adrp	x0, l_.str.5@PAGE
Lloh34:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_BT_ERR
	ldr	w0, [x19]
	bl	_kthread_stop
	mov	x0, x20
	bl	_hci_free_dev
	b	LBB0_8
LBB0_5:
Lloh35:
	adrp	x0, l_.str@PAGE
Lloh36:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BT_ERR
	b	LBB0_10
LBB0_6:
Lloh37:
	adrp	x0, l_.str.1@PAGE
Lloh38:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BT_ERR
	b	LBB0_9
LBB0_7:
Lloh39:
	adrp	x0, l_.str.2@PAGE
Lloh40:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_BT_ERR
LBB0_8:
	mov	x0, x19
	bl	_btmrvl_free_adapter
LBB0_9:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.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 AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can not allocate priv"

l_.str.1:                               ; @.str.1
	.asciz	"Allocate buffer for btmrvl_adapter failed!"

l_.str.2:                               ; @.str.2
	.asciz	"Can not allocate HCI device"

l_.str.3:                               ; @.str.3
	.asciz	"Starting kthread..."

	.comm	_btmrvl_service_main_thread,4,2 ; @btmrvl_service_main_thread
l_.str.4:                               ; @.str.4
	.asciz	"btmrvl_main_service"

	.comm	_HCI_SDIO,4,2                   ; @HCI_SDIO
	.comm	_btmrvl_open,4,2                ; @btmrvl_open
	.comm	_btmrvl_close,4,2               ; @btmrvl_close
	.comm	_btmrvl_flush,4,2               ; @btmrvl_flush
	.comm	_btmrvl_send_frame,4,2          ; @btmrvl_send_frame
	.comm	_btmrvl_destruct,4,2            ; @btmrvl_destruct
	.comm	_btmrvl_ioctl,4,2               ; @btmrvl_ioctl
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
l_.str.5:                               ; @.str.5
	.asciz	"Can not register HCI device"

.subsections_via_symbols
