	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rfcomm_sock_kill
_rfcomm_sock_kill:                      ## @rfcomm_sock_kill
	.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	_SOCK_ZAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sock_flag
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_3
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movl	4(%rbx), %r14d
	movq	%rbx, %rdi
	callq	_atomic_read
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_BT_DBG
	movq	_rfcomm_sk_list@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_bt_sock_unlink
	movq	_SOCK_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sock_set_flag
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sock_put                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCK_ZAPPED,4,2                ## @SOCK_ZAPPED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sk %p state %d refcnt %d"

	.comm	_rfcomm_sk_list,4,2             ## @rfcomm_sk_list
	.comm	_SOCK_DEAD,4,2                  ## @SOCK_DEAD
	.no_dead_strip	_rfcomm_sock_kill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rfcomm_sock_kill
_rfcomm_sock_kill:                      ; @rfcomm_sock_kill
	.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	x8, _SOCK_ZAPPED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOCK_ZAPPED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_sock_flag
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	w20, [x19, #4]
	mov	x0, x19
	bl	_atomic_read
	mov	x3, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	bl	_BT_DBG
Lloh5:
	adrp	x0, _rfcomm_sk_list@GOTPAGE
Lloh6:
	ldr	x0, [x0, _rfcomm_sk_list@GOTPAGEOFF]
	mov	x1, x19
	bl	_bt_sock_unlink
Lloh7:
	adrp	x8, _SOCK_DEAD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SOCK_DEAD@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sock_set_flag
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sock_put
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCK_ZAPPED,4,2                ; @SOCK_ZAPPED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sk %p state %d refcnt %d"

	.comm	_rfcomm_sk_list,4,2             ; @rfcomm_sk_list
	.comm	_SOCK_DEAD,4,2                  ; @SOCK_DEAD
	.no_dead_strip	_rfcomm_sock_kill
.subsections_via_symbols
