	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rfcomm_dev_del
_rfcomm_dev_del:                        ## @rfcomm_dev_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
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_BT_DBG
	movq	_RFCOMM_TTY_RELEASED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	callq	_test_and_set_bit
	movl	%eax, %edi
	callq	_BUG_ON
	leaq	4(%rbx), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jle	LBB0_2
## %bb.1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	_rfcomm_dev_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_write_lock_bh
	movq	%rbx, %rdi
	callq	_list_del_init
	movq	%r14, %rdi
	callq	_write_unlock_bh
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_rfcomm_dev_put                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dev %p"

	.comm	_RFCOMM_TTY_RELEASED,4,2        ## @RFCOMM_TTY_RELEASED
	.comm	_rfcomm_dev_lock,4,2            ## @rfcomm_dev_lock
	.no_dead_strip	_rfcomm_dev_del
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rfcomm_dev_del
_rfcomm_dev_del:                        ; @rfcomm_dev_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	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_BT_DBG
Lloh2:
	adrp	x8, _RFCOMM_TTY_RELEASED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RFCOMM_TTY_RELEASED@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_test_and_set_bit
	bl	_BUG_ON
	add	x0, x19, #4
	bl	_atomic_read
	cmp	x0, #0
	b.le	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh5:
	adrp	x20, _rfcomm_dev_lock@GOTPAGE
Lloh6:
	ldr	x20, [x20, _rfcomm_dev_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_write_lock_bh
	mov	x0, x19
	bl	_list_del_init
	mov	x0, x20
	bl	_write_unlock_bh
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rfcomm_dev_put
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dev %p"

	.comm	_RFCOMM_TTY_RELEASED,4,2        ; @RFCOMM_TTY_RELEASED
	.comm	_rfcomm_dev_lock,4,2            ; @rfcomm_dev_lock
	.no_dead_strip	_rfcomm_dev_del
.subsections_via_symbols
