	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vhci_open
_vhci_open:                             ## @vhci_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	%rsi, %r15
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r12
	leaq	12(%rax), %rdi
	callq	_skb_queue_head_init
	movq	%r12, %rdi
	addq	$8, %rdi
	callq	_init_waitqueue_head
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_hci_alloc_dev
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, (%r12)
	movq	_HCI_VIRTUAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	%r12, 24(%rbx)
	movq	_vhci_open_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_vhci_close_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_vhci_flush@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_vhci_send_frame@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_vhci_destruct@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_hci_register_dev
	testq	%rax, %rax
	js	LBB0_6
## %bb.3:
	movq	%r12, (%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nonseekable_open               ## TAILCALL
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	%r12, %rdi
	callq	_kfree
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_BT_ERR
	movq	%r12, %rdi
	callq	_kfree
	movq	%rbx, %rdi
	callq	_hci_free_dev
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%r13d, %r13d
LBB0_8:
	subl	(%rax), %r13d
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HCI_VIRTUAL,4,2                ## @HCI_VIRTUAL
	.comm	_vhci_open_dev,4,2              ## @vhci_open_dev
	.comm	_vhci_close_dev,4,2             ## @vhci_close_dev
	.comm	_vhci_flush,4,2                 ## @vhci_flush
	.comm	_vhci_send_frame,4,2            ## @vhci_send_frame
	.comm	_vhci_destruct,4,2              ## @vhci_destruct
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't register HCI device"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_vhci_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vhci_open
_vhci_open:                             ; @vhci_open
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	add	x0, x0, #12
	bl	_skb_queue_head_init
	add	x0, x21, #8
	bl	_init_waitqueue_head
	bl	_hci_alloc_dev
	cbz	x0, LBB0_4
; %bb.2:
	mov	x22, x0
	str	x0, [x21]
Lloh3:
	adrp	x8, _HCI_VIRTUAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HCI_VIRTUAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #32]
	str	x21, [x0, #24]
Lloh6:
	adrp	x8, _vhci_open_dev@GOTPAGE
Lloh7:
	ldr	x8, [x8, _vhci_open_dev@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _vhci_close_dev@GOTPAGE
Lloh10:
	ldr	x9, [x9, _vhci_close_dev@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #16]
Lloh12:
	adrp	x8, _vhci_flush@GOTPAGE
Lloh13:
	ldr	x8, [x8, _vhci_flush@GOTPAGEOFF]
Lloh14:
	adrp	x9, _vhci_send_frame@GOTPAGE
Lloh15:
	ldr	x9, [x9, _vhci_send_frame@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #8]
Lloh18:
	adrp	x8, _vhci_destruct@GOTPAGE
Lloh19:
	ldr	x8, [x8, _vhci_destruct@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _THIS_MODULE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _THIS_MODULE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x0]
	bl	_hci_register_dev
	tbnz	x0, #63, LBB0_6
; %bb.3:
	str	x21, [x19]
	mov	x0, x20
	mov	x1, 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
	b	_nonseekable_open
LBB0_4:
	mov	x0, x21
	bl	_kfree
LBB0_5:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BT_ERR
	mov	x0, x21
	bl	_kfree
	mov	x0, x22
	bl	_hci_free_dev
Lloh28:
	adrp	x8, _EBUSY@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HCI_VIRTUAL,4,2                ; @HCI_VIRTUAL
	.comm	_vhci_open_dev,4,2              ; @vhci_open_dev
	.comm	_vhci_close_dev,4,2             ; @vhci_close_dev
	.comm	_vhci_flush,4,2                 ; @vhci_flush
	.comm	_vhci_send_frame,4,2            ; @vhci_send_frame
	.comm	_vhci_destruct,4,2              ; @vhci_destruct
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't register HCI device"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_vhci_open
.subsections_via_symbols
