	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hci_uart_register_dev
_hci_uart_register_dev:                 ## @hci_uart_register_dev
	.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
	leaq	L_.str(%rip), %rdi
	callq	_BT_DBG
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_hci_alloc_dev
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, (%r15)
	movq	_HCI_UART@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	%r15, 32(%rbx)
	movq	_hci_uart_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_hci_uart_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_hci_uart_flush@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_hci_uart_send_frame@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_hci_uart_destruct@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_reset@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_HCI_QUIRK_NO_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
LBB0_4:
	movq	%rbx, %rdi
	callq	_hci_register_dev
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jns	LBB0_7
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	callq	_BT_ERR
	movq	%rbx, %rdi
	callq	_hci_free_dev
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	callq	_BT_ERR
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_6:
	subl	(%rax), %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

L_.str.1:                               ## @.str.1
	.asciz	"Can't allocate HCI device"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HCI_UART,4,2                   ## @HCI_UART
	.comm	_hci_uart_open,4,2              ## @hci_uart_open
	.comm	_hci_uart_close,4,2             ## @hci_uart_close
	.comm	_hci_uart_flush,4,2             ## @hci_uart_flush
	.comm	_hci_uart_send_frame,4,2        ## @hci_uart_send_frame
	.comm	_hci_uart_destruct,4,2          ## @hci_uart_destruct
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_reset,4,2                      ## @reset
	.comm	_HCI_QUIRK_NO_RESET,4,2         ## @HCI_QUIRK_NO_RESET
L_.str.2:                               ## @.str.2
	.asciz	"Can't register HCI device"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hci_uart_register_dev
_hci_uart_register_dev:                 ; @hci_uart_register_dev
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BT_DBG
	bl	_hci_alloc_dev
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	str	x0, [x20]
Lloh2:
	adrp	x8, _HCI_UART@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HCI_UART@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x0, #40]
	str	x20, [x0, #32]
Lloh5:
	adrp	x8, _hci_uart_open@GOTPAGE
Lloh6:
	ldr	x8, [x8, _hci_uart_open@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _hci_uart_close@GOTPAGE
Lloh9:
	ldr	x9, [x9, _hci_uart_close@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _hci_uart_flush@GOTPAGE
Lloh12:
	ldr	x10, [x10, _hci_uart_flush@GOTPAGEOFF]
	stp	w9, w8, [x0, #20]
Lloh13:
	ldr	w8, [x10]
Lloh14:
	adrp	x9, _hci_uart_send_frame@GOTPAGE
Lloh15:
	ldr	x9, [x9, _hci_uart_send_frame@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #12]
Lloh17:
	adrp	x8, _hci_uart_destruct@GOTPAGE
Lloh18:
	ldr	x8, [x8, _hci_uart_destruct@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _THIS_MODULE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _THIS_MODULE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #4]
Lloh23:
	adrp	x8, _reset@GOTPAGE
Lloh24:
	ldr	x8, [x8, _reset@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cbnz	w8, LBB0_3
; %bb.2:
Lloh26:
	adrp	x8, _HCI_QUIRK_NO_RESET@GOTPAGE
Lloh27:
	ldr	x8, [x8, _HCI_QUIRK_NO_RESET@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_set_bit
LBB0_3:
	mov	x0, x19
	bl	_hci_register_dev
	tbnz	x0, #63, LBB0_6
; %bb.4:
	mov	w0, #0
	b	LBB0_8
LBB0_5:
Lloh29:
	adrp	x0, l_.str.1@PAGE
Lloh30:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BT_ERR
Lloh31:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh33:
	adrp	x0, l_.str.2@PAGE
Lloh34:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_BT_ERR
	mov	x0, x19
	bl	_hci_free_dev
Lloh35:
	adrp	x8, _ENODEV@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

l_.str.1:                               ; @.str.1
	.asciz	"Can't allocate HCI device"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HCI_UART,4,2                   ; @HCI_UART
	.comm	_hci_uart_open,4,2              ; @hci_uart_open
	.comm	_hci_uart_close,4,2             ; @hci_uart_close
	.comm	_hci_uart_flush,4,2             ; @hci_uart_flush
	.comm	_hci_uart_send_frame,4,2        ; @hci_uart_send_frame
	.comm	_hci_uart_destruct,4,2          ; @hci_uart_destruct
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_reset,4,2                      ; @reset
	.comm	_HCI_QUIRK_NO_RESET,4,2         ; @HCI_QUIRK_NO_RESET
l_.str.2:                               ; @.str.2
	.asciz	"Can't register HCI device"

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