	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_l2cap_disconnected_ind         ## -- Begin function l2cap_disconnected_ind
	.p2align	4, 0x90
_l2cap_disconnected_ind:                ## @l2cap_disconnected_ind
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rdi, %rbx
	movq	_STATE_DISCONNECTING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rdi)
	movq	%rsi, %rdi
	callq	_l2cap_psm
	cmpl	$129, %eax
	je	LBB0_2
## %bb.3:
	cmpl	$128, %eax
	jne	LBB0_6
## %bb.4:
	movl	$40, %r14d
	jmp	LBB0_5
LBB0_2:
	movl	$32, %r14d
LBB0_5:
	movq	(%rbx,%r14), %rdi
	callq	_l2cap_close
	movq	$0, (%rbx,%r14)
LBB0_6:
	cmpq	$0, 40(%rbx)
	jne	LBB0_10
## %bb.7:
	cmpq	$0, 32(%rbx)
	jne	LBB0_10
## %bb.8:
	movq	_ERR_OK@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movl	%eax, 24(%rbx)
	movq	_STATE_DISCONNECTED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	%rbx, %rdi
	callq	___bte_close_ctrl_queue
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	(%rbx), %edi
	movl	(%r14), %edx
	movq	%rbx, %rsi
	callq	*%rax
LBB0_10:
	movq	_ERR_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_OK,4,2                     ## @ERR_OK
	.comm	_STATE_DISCONNECTING,8,3        ## @STATE_DISCONNECTING
	.comm	_STATE_DISCONNECTED,8,3         ## @STATE_DISCONNECTED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_l2cap_disconnected_ind         ; -- Begin function l2cap_disconnected_ind
	.p2align	2
_l2cap_disconnected_ind:                ; @l2cap_disconnected_ind
	.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	x20, _ERR_OK@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ERR_OK@GOTPAGEOFF]
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x8, _STATE_DISCONNECTING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STATE_DISCONNECTING@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x0, #16]
	mov	x0, x1
	bl	_l2cap_psm
	cmp	w0, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w0, #128
	b.ne	LBB0_6
; %bb.3:
	mov	w21, #40
	b	LBB0_5
LBB0_4:
	mov	w21, #32
LBB0_5:
	ldr	x0, [x19, x21]
	bl	_l2cap_close
	str	xzr, [x19, x21]
LBB0_6:
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_10
; %bb.7:
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_10
; %bb.8:
	ldr	w8, [x20]
	str	w8, [x19, #24]
Lloh5:
	adrp	x8, _STATE_DISCONNECTED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STATE_DISCONNECTED@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	mov	x0, x19
	bl	___bte_close_ctrl_queue
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	w0, [x19]
	ldr	w2, [x20]
	mov	x1, x19
	blr	x8
LBB0_10:
	ldr	w0, [x20]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_OK,4,2                     ; @ERR_OK
	.comm	_STATE_DISCONNECTING,8,3        ; @STATE_DISCONNECTING
	.comm	_STATE_DISCONNECTED,8,3         ; @STATE_DISCONNECTED
.subsections_via_symbols
