	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_l2cap_reset_all                ## -- Begin function l2cap_reset_all
	.p2align	4, 0x90
_l2cap_reset_all:                       ## @l2cap_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_l2cap_active_pcbs@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi), %rbx
	callq	_l2cap_close
	movq	%rbx, %rdi
	testq	%rbx, %rbx
	jne	LBB0_1
LBB0_2:
	movq	_l2cap_listen_pcbs@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi), %rbx
	callq	_l2cap_close
	movq	%rbx, %rdi
	testq	%rbx, %rbx
	jne	LBB0_3
LBB0_4:
	movq	_l2cap_insegs@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.5:
	movq	_l2cap_insegs@GOTPCREL(%rip), %r14
	movq	_l2cap_segs@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %r12
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_L2CAP_SEG_RMV
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_btmemb_free
	movq	%r12, %rbx
	testq	%r12, %r12
	jne	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_l2cap_init                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_l2cap_active_pcbs,8,3          ## @l2cap_active_pcbs
	.comm	_l2cap_listen_pcbs,8,3          ## @l2cap_listen_pcbs
	.comm	_l2cap_insegs,8,3               ## @l2cap_insegs
	.comm	_l2cap_segs,4,2                 ## @l2cap_segs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_l2cap_reset_all                ; -- Begin function l2cap_reset_all
	.p2align	2
_l2cap_reset_all:                       ; @l2cap_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	x8, _l2cap_active_pcbs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _l2cap_active_pcbs@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	cbz	x0, LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x19, [x0]
	bl	_l2cap_close
	mov	x0, x19
	cbnz	x19, LBB0_1
LBB0_2:
Lloh3:
	adrp	x8, _l2cap_listen_pcbs@GOTPAGE
Lloh4:
	ldr	x8, [x8, _l2cap_listen_pcbs@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	cbz	x0, LBB0_4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x19, [x0]
	bl	_l2cap_close
	mov	x0, x19
	cbnz	x19, LBB0_3
LBB0_4:
Lloh6:
	adrp	x8, _l2cap_insegs@GOTPAGE
Lloh7:
	ldr	x8, [x8, _l2cap_insegs@GOTPAGEOFF]
Lloh8:
	ldr	x19, [x8]
	cbz	x19, LBB0_7
; %bb.5:
Lloh9:
	adrp	x20, _l2cap_insegs@GOTPAGE
Lloh10:
	ldr	x20, [x20, _l2cap_insegs@GOTPAGEOFF]
Lloh11:
	adrp	x21, _l2cap_segs@GOTPAGE
Lloh12:
	ldr	x21, [x21, _l2cap_segs@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x19]
	mov	x0, x20
	mov	x1, x19
	bl	_L2CAP_SEG_RMV
	mov	x0, x21
	mov	x1, x19
	bl	_btmemb_free
	mov	x19, x22
	cbnz	x22, LBB0_6
LBB0_7:
	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	_l2cap_init
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_l2cap_active_pcbs,8,3          ; @l2cap_active_pcbs
	.comm	_l2cap_listen_pcbs,8,3          ; @l2cap_listen_pcbs
	.comm	_l2cap_insegs,8,3               ; @l2cap_insegs
	.comm	_l2cap_segs,4,2                 ; @l2cap_segs
.subsections_via_symbols
