	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sco_chan_del
_sco_chan_del:                          ## @sco_chan_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_sco_pi
	movq	(%rax), %r15
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_BT_DBG
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_sco_conn_lock
	movq	$0, 8(%r15)
	movq	%rbx, %rdi
	callq	_sco_pi
	movq	$0, (%rax)
	movq	%r15, %rdi
	callq	_sco_conn_unlock
	movl	(%r15), %edi
	callq	_hci_conn_put
LBB0_2:
	movq	_BT_CLOSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	%r14d, (%rbx)
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movq	_SOCK_ZAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sock_set_flag                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sk %p, conn %p, err %d"

	.comm	_BT_CLOSED,4,2                  ## @BT_CLOSED
	.comm	_SOCK_ZAPPED,4,2                ## @SOCK_ZAPPED
	.no_dead_strip	_sco_chan_del
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sco_chan_del
_sco_chan_del:                          ; @sco_chan_del
	.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	x20, x1
	mov	x19, x0
	bl	_sco_pi
	ldr	x21, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x21
	mov	x3, x20
	bl	_BT_DBG
	cbz	x21, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_sco_conn_lock
	str	xzr, [x21, #8]
	mov	x0, x19
	bl	_sco_pi
	str	xzr, [x0]
	mov	x0, x21
	bl	_sco_conn_unlock
	ldr	w0, [x21]
	bl	_hci_conn_put
LBB0_2:
Lloh2:
	adrp	x8, _BT_CLOSED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BT_CLOSED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	str	w20, [x19]
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
Lloh5:
	adrp	x8, _SOCK_ZAPPED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SOCK_ZAPPED@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	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_set_flag
	.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	"sk %p, conn %p, err %d"

	.comm	_BT_CLOSED,4,2                  ; @BT_CLOSED
	.comm	_SOCK_ZAPPED,4,2                ; @SOCK_ZAPPED
	.no_dead_strip	_sco_chan_del
.subsections_via_symbols
