	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hci_conn_del                   ## -- Begin function hci_conn_del
	.p2align	4, 0x90
_hci_conn_del:                          ## @hci_conn_del
	.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
	movq	%rdi, %rbx
	movq	48(%rdi), %r14
	movl	20(%r14), %esi
	movl	40(%rdi), %ecx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rdx
	callq	_BT_DBG
	leaq	36(%rbx), %rdi
	callq	_del_timer
	leaq	32(%rbx), %rdi
	callq	_del_timer
	movq	_ACL_LINK@GOTPCREL(%rip), %rax
	movq	(%rbx), %rcx
	movq	16(%rbx), %rdi
	cmpq	(%rax), %rcx
	jne	LBB0_4
## %bb.1:
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	movq	$0, 16(%rdi)
LBB0_3:
	movl	24(%rbx), %eax
	addl	%eax, 16(%r14)
	jmp	LBB0_6
LBB0_4:
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	movq	$0, 16(%rdi)
	callq	_hci_conn_put
LBB0_6:
	movq	%r14, %rdi
	callq	_tasklet_disable
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_hci_conn_hash_del
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_HCI_NOTIFY_CONN_DEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdi
	callq	*%rax
LBB0_8:
	movq	%r14, %rdi
	callq	_tasklet_enable
	leaq	8(%rbx), %rdi
	callq	_skb_queue_purge
	movq	%rbx, %rdi
	callq	_hci_conn_put_device
	movq	%r14, %rdi
	callq	_hci_dev_put
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s conn %p handle %d"

	.comm	_ACL_LINK,8,3                   ## @ACL_LINK
	.comm	_HCI_NOTIFY_CONN_DEL,4,2        ## @HCI_NOTIFY_CONN_DEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hci_conn_del                   ; -- Begin function hci_conn_del
	.p2align	2
_hci_conn_del:                          ; @hci_conn_del
	.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
	mov	x20, x0
	ldr	x19, [x0, #48]
	ldr	w1, [x19, #20]
	ldr	w3, [x0, #40]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_BT_DBG
	add	x0, x20, #36
	bl	_del_timer
	add	x0, x20, #32
	bl	_del_timer
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _ACL_LINK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ACL_LINK@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	x0, [x20, #16]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	cbz	x0, LBB0_3
; %bb.2:
	str	xzr, [x0, #16]
LBB0_3:
	ldr	w8, [x20, #24]
	ldr	w9, [x19, #16]
	add	w8, w9, w8
	str	w8, [x19, #16]
	b	LBB0_6
LBB0_4:
	cbz	x0, LBB0_6
; %bb.5:
	str	xzr, [x0, #16]
	bl	_hci_conn_put
LBB0_6:
	mov	x0, x19
	bl	_tasklet_disable
	mov	x0, x19
	mov	x1, x20
	bl	_hci_conn_hash_del
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
; %bb.7:
Lloh5:
	adrp	x9, _HCI_NOTIFY_CONN_DEL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HCI_NOTIFY_CONN_DEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
LBB0_8:
	mov	x0, x19
	bl	_tasklet_enable
	add	x0, x20, #8
	bl	_skb_queue_purge
	mov	x0, x20
	bl	_hci_conn_put_device
	mov	x0, x19
	bl	_hci_dev_put
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s conn %p handle %d"

	.comm	_ACL_LINK,8,3                   ; @ACL_LINK
	.comm	_HCI_NOTIFY_CONN_DEL,4,2        ; @HCI_NOTIFY_CONN_DEL
.subsections_via_symbols
