	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rfcomm_dev_destruct
_rfcomm_dev_destruct:                   ## @rfcomm_dev_destruct
	.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, %r14
	movq	8(%rdi), %rbx
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_BT_DBG
	leaq	4(%r14), %rdi
	callq	_list_empty
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_BUG_ON
	movq	%rbx, %rdi
	callq	_rfcomm_dlc_lock
	cmpq	%r14, (%rbx)
	jne	LBB0_2
## %bb.1:
	movq	$0, (%rbx)
LBB0_2:
	movq	%rbx, %rdi
	callq	_rfcomm_dlc_unlock
	movq	%rbx, %rdi
	callq	_rfcomm_dlc_put
	movq	_rfcomm_tty_driver@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	callq	_tty_unregister_device
	movq	%r14, %rdi
	callq	_kfree
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_module_put                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dev %p dlc %p"

	.comm	_rfcomm_tty_driver,4,2          ## @rfcomm_tty_driver
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.no_dead_strip	_rfcomm_dev_destruct
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rfcomm_dev_destruct
_rfcomm_dev_destruct:                   ; @rfcomm_dev_destruct
	.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	x19, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	bl	_BT_DBG
	add	x0, x19, #4
	bl	_list_empty
	cmp	w0, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	x0, x20
	bl	_rfcomm_dlc_lock
	ldr	x8, [x20]
	cmp	x8, x19
	b.ne	LBB0_2
; %bb.1:
	str	xzr, [x20]
LBB0_2:
	mov	x0, x20
	bl	_rfcomm_dlc_unlock
	mov	x0, x20
	bl	_rfcomm_dlc_put
Lloh2:
	adrp	x8, _rfcomm_tty_driver@GOTPAGE
Lloh3:
	ldr	x8, [x8, _rfcomm_tty_driver@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_tty_unregister_device
	mov	x0, x19
	bl	_kfree
Lloh5:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_module_put
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dev %p dlc %p"

	.comm	_rfcomm_tty_driver,4,2          ; @rfcomm_tty_driver
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.no_dead_strip	_rfcomm_dev_destruct
.subsections_via_symbols
