	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hci_init                       ## -- Begin function hci_init
	.p2align	4, 0x90
_hci_init:                              ## @hci_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%eax, %eax
	callq	_btmemr_init
	xorl	%eax, %eax
	callq	_btpbuf_init
	movq	_hci_pcbs@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_btmemb_init
	movq	_hci_links@GOTPCREL(%rip), %rdi
	callq	_btmemb_init
	movq	_hci_inq_results@GOTPCREL(%rip), %rdi
	callq	_btmemb_init
	movq	_hci_link_key_results@GOTPCREL(%rip), %rdi
	callq	_btmemb_init
	movq	%rbx, %rdi
	callq	_btmemb_alloc
	movq	_hci_dev@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_hci_active_links@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_hci_tmp_link@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_ERR_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_ERROR
	movq	_ERR_MEM@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hci_pcbs,4,2                   ## @hci_pcbs
	.comm	_hci_links,4,2                  ## @hci_links
	.comm	_hci_inq_results,4,2            ## @hci_inq_results
	.comm	_hci_link_key_results,4,2       ## @hci_link_key_results
	.comm	_hci_dev,8,3                    ## @hci_dev
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hci_init: Could not allocate memory for hci_dev\n"

	.comm	_ERR_MEM,4,2                    ## @ERR_MEM
	.comm	_hci_active_links,8,3           ## @hci_active_links
	.comm	_hci_tmp_link,8,3               ## @hci_tmp_link
	.comm	_ERR_OK,4,2                     ## @ERR_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hci_init                       ; -- Begin function hci_init
	.p2align	2
_hci_init:                              ; @hci_init
	.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
	bl	_btmemr_init
	bl	_btpbuf_init
Lloh0:
	adrp	x19, _hci_pcbs@GOTPAGE
Lloh1:
	ldr	x19, [x19, _hci_pcbs@GOTPAGEOFF]
	mov	x0, x19
	bl	_btmemb_init
Lloh2:
	adrp	x0, _hci_links@GOTPAGE
Lloh3:
	ldr	x0, [x0, _hci_links@GOTPAGEOFF]
	bl	_btmemb_init
Lloh4:
	adrp	x0, _hci_inq_results@GOTPAGE
Lloh5:
	ldr	x0, [x0, _hci_inq_results@GOTPAGEOFF]
	bl	_btmemb_init
Lloh6:
	adrp	x0, _hci_link_key_results@GOTPAGE
Lloh7:
	ldr	x0, [x0, _hci_link_key_results@GOTPAGEOFF]
	bl	_btmemb_init
	mov	x0, x19
	bl	_btmemb_alloc
Lloh8:
	adrp	x8, _hci_dev@GOTPAGE
Lloh9:
	ldr	x8, [x8, _hci_dev@GOTPAGEOFF]
Lloh10:
	str	x0, [x8]
	cbz	x0, LBB0_2
; %bb.1:
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh11:
	adrp	x8, _hci_active_links@GOTPAGE
Lloh12:
	ldr	x8, [x8, _hci_active_links@GOTPAGEOFF]
Lloh13:
	str	xzr, [x8]
Lloh14:
	adrp	x8, _hci_tmp_link@GOTPAGE
Lloh15:
	ldr	x8, [x8, _hci_tmp_link@GOTPAGEOFF]
Lloh16:
	str	xzr, [x8]
Lloh17:
	adrp	x8, _ERR_OK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERR_OK@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERROR
Lloh21:
	adrp	x8, _ERR_MEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERR_MEM@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_hci_pcbs,4,2                   ; @hci_pcbs
	.comm	_hci_links,4,2                  ; @hci_links
	.comm	_hci_inq_results,4,2            ; @hci_inq_results
	.comm	_hci_link_key_results,4,2       ; @hci_link_key_results
	.comm	_hci_dev,8,3                    ; @hci_dev
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hci_init: Could not allocate memory for hci_dev\n"

	.comm	_ERR_MEM,4,2                    ; @ERR_MEM
	.comm	_hci_active_links,8,3           ; @hci_active_links
	.comm	_hci_tmp_link,8,3               ; @hci_tmp_link
	.comm	_ERR_OK,4,2                     ; @ERR_OK
.subsections_via_symbols
