	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hci_reset_all                  ## -- Begin function hci_reset_all
	.p2align	4, 0x90
_hci_reset_all:                         ## @hci_reset_all
	.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	_hci_active_links@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi), %rbx
	callq	_hci_close
	movq	%rbx, %rdi
	testq	%rbx, %rbx
	jne	LBB0_1
LBB0_2:
	movq	$0, (%r14)
	movq	_hci_dev@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	16(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	_hci_inq_results@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rbx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_btmemb_free
	movq	%rbx, %rax
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.5:
	movq	(%r14), %rsi
LBB0_6:
	movq	8(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	_hci_inq_results@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rbx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_btmemb_free
	movq	%rbx, %rax
	testq	%rbx, %rbx
	jne	LBB0_8
## %bb.9:
	movq	(%r14), %rsi
LBB0_10:
	movq	_hci_pcbs@GOTPCREL(%rip), %rdi
	callq	_btmemb_free
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hci_init                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_hci_active_links,8,3           ## @hci_active_links
	.comm	_hci_dev,8,3                    ## @hci_dev
	.comm	_hci_inq_results,4,2            ## @hci_inq_results
	.comm	_hci_pcbs,4,2                   ## @hci_pcbs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hci_reset_all                  ; -- Begin function hci_reset_all
	.p2align	2
_hci_reset_all:                         ; @hci_reset_all
	.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
Lloh0:
	adrp	x19, _hci_active_links@GOTPAGE
Lloh1:
	ldr	x19, [x19, _hci_active_links@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x20, [x0]
	bl	_hci_close
	mov	x0, x20
	cbnz	x20, LBB0_1
LBB0_2:
	str	xzr, [x19]
Lloh2:
	adrp	x20, _hci_dev@GOTPAGE
Lloh3:
	ldr	x20, [x20, _hci_dev@GOTPAGEOFF]
	ldr	x1, [x20]
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_6
; %bb.3:
Lloh4:
	adrp	x19, _hci_inq_results@GOTPAGE
Lloh5:
	ldr	x19, [x19, _hci_inq_results@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x8]
	mov	x0, x19
	mov	x1, x8
	bl	_btmemb_free
	mov	x8, x21
	cbnz	x21, LBB0_4
; %bb.5:
	ldr	x1, [x20]
LBB0_6:
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_10
; %bb.7:
Lloh6:
	adrp	x19, _hci_inq_results@GOTPAGE
Lloh7:
	ldr	x19, [x19, _hci_inq_results@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x8]
	mov	x0, x19
	mov	x1, x8
	bl	_btmemb_free
	mov	x8, x21
	cbnz	x21, LBB0_8
; %bb.9:
	ldr	x1, [x20]
LBB0_10:
Lloh8:
	adrp	x0, _hci_pcbs@GOTPAGE
Lloh9:
	ldr	x0, [x0, _hci_pcbs@GOTPAGEOFF]
	bl	_btmemb_free
	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	_hci_init
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_hci_active_links,8,3           ; @hci_active_links
	.comm	_hci_dev,8,3                    ; @hci_dev
	.comm	_hci_inq_results,4,2            ; @hci_inq_results
	.comm	_hci_pcbs,4,2                   ; @hci_pcbs
.subsections_via_symbols
