	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function port_delete
_port_delete:                           ## @port_delete
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movl	$1, (%rsi)
	leaq	40(%rsi), %rdi
	callq	_snd_use_lock_sync
	leaq	16(%rbx), %rdx
	movq	_SRC_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_clear_subscriber_list
	leaq	8(%rbx), %rdx
	movq	_DEST_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_clear_subscriber_list
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	24(%rbx), %edi
	callq	*%rax
LBB0_2:
	xorl	%edi, %edi
	cmpq	$0, 16(%rbx)
	setne	%dil
	callq	_snd_BUG_ON
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	setne	%dil
	callq	_snd_BUG_ON
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SRC_LIST,4,2                   ## @SRC_LIST
	.comm	_DEST_LIST,4,2                  ## @DEST_LIST
	.no_dead_strip	_port_delete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function port_delete
_port_delete:                           ; @port_delete
	.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, x1
	mov	x20, x0
	mov	w8, #1
	str	w8, [x1]
	add	x0, x1, #40
	bl	_snd_use_lock_sync
	add	x2, x19, #16
Lloh0:
	adrp	x8, _SRC_LIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SRC_LIST@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_clear_subscriber_list
	add	x2, x19, #8
Lloh3:
	adrp	x8, _DEST_LIST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEST_LIST@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_clear_subscriber_list
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x19, #24]
	blr	x8
LBB0_2:
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w0, ne
	bl	_snd_BUG_ON
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w0, ne
	bl	_snd_BUG_ON
	mov	x0, x19
	bl	_kfree
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SRC_LIST,4,2                   ; @SRC_LIST
	.comm	_DEST_LIST,4,2                  ; @DEST_LIST
	.no_dead_strip	_port_delete
.subsections_via_symbols
