	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function l2cap_chan_unlink
_l2cap_chan_unlink:                     ## @l2cap_chan_unlink
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_l2cap_pi
	movq	(%rax), %r15
	movq	%rbx, %rdi
	callq	_l2cap_pi
	movq	8(%rax), %r12
	movq	%r14, %rdi
	callq	_write_lock_bh
	cmpq	%rbx, 8(%r14)
	je	LBB0_1
## %bb.2:
	testq	%r15, %r15
	je	LBB0_4
LBB0_3:
	movq	%r15, %rdi
	callq	_l2cap_pi
	movq	%r12, 8(%rax)
LBB0_4:
	testq	%r12, %r12
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_l2cap_pi
	movq	%r15, (%rax)
LBB0_6:
	movq	%r14, %rdi
	callq	_write_unlock_bh
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___sock_put                     ## TAILCALL
LBB0_1:
	movq	%r15, 8(%r14)
	testq	%r15, %r15
	jne	LBB0_3
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_l2cap_chan_unlink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function l2cap_chan_unlink
_l2cap_chan_unlink:                     ; @l2cap_chan_unlink
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_l2cap_pi
	ldr	x21, [x0]
	mov	x0, x19
	bl	_l2cap_pi
	ldr	x22, [x0, #8]
	mov	x0, x20
	bl	_write_lock_bh
	ldr	x8, [x20, #8]
	cmp	x8, x19
	b.eq	LBB0_6
; %bb.1:
	cbz	x21, LBB0_3
LBB0_2:
	mov	x0, x21
	bl	_l2cap_pi
	str	x22, [x0, #8]
LBB0_3:
	cbz	x22, LBB0_5
; %bb.4:
	mov	x0, x22
	bl	_l2cap_pi
	str	x21, [x0]
LBB0_5:
	mov	x0, x20
	bl	_write_unlock_bh
	mov	x0, x19
	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	___sock_put
LBB0_6:
	str	x21, [x20, #8]
	cbnz	x21, LBB0_2
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_l2cap_chan_unlink
.subsections_via_symbols
