	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdp_rx_ring_destroy            ## -- Begin function sdp_rx_ring_destroy
	.p2align	4, 0x90
_sdp_rx_ring_destroy:                   ## @sdp_rx_ring_destroy
	.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
	addq	$20, %rdi
	callq	_cancel_work_sync
	movq	%rbx, %rdi
	callq	_rx_ring_destroy_lock
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_sdp_rx_ring_purge
	movq	8(%rbx), %rdi
	movq	_M_SDP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_free
	movq	$0, 8(%rbx)
LBB0_2:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.3:
	callq	_ib_destroy_cq
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	16(%rbx), %edi
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_sdp_warn
	movq	(%rbx), %rdi
	jmp	LBB0_7
LBB0_5:
	movq	$0, (%rbx)
LBB0_6:
	xorl	%edi, %edi
LBB0_7:
	movq	8(%rbx), %rsi
	callq	_ring_head
	movq	%rax, %r14
	movq	(%rbx), %rdi
	movq	8(%rbx), %rsi
	callq	_ring_tail
	xorl	%edi, %edi
	cmpq	%rax, %r14
	setne	%dil
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_WARN_ON                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_M_SDP,4,2                      ## @M_SDP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"destroy cq(%p) failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdp_rx_ring_destroy            ; -- Begin function sdp_rx_ring_destroy
	.p2align	2
_sdp_rx_ring_destroy:                   ; @sdp_rx_ring_destroy
	.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
	add	x0, x0, #20
	bl	_cancel_work_sync
	mov	x0, x19
	bl	_rx_ring_destroy_lock
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_sdp_rx_ring_purge
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x8, _M_SDP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_SDP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_free
	str	xzr, [x19, #8]
LBB0_2:
	ldr	x0, [x19]
	cbz	x0, LBB0_6
; %bb.3:
	bl	_ib_destroy_cq
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x19, #16]
	ldr	x2, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sdp_warn
	ldr	x0, [x19]
	b	LBB0_6
LBB0_5:
	str	xzr, [x19]
LBB0_6:
	ldr	x1, [x19, #8]
	bl	_ring_head
	mov	x20, x0
	ldp	x0, x1, [x19]
	bl	_ring_tail
	cmp	x20, x0
	cset	w0, ne
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_WARN_ON
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_M_SDP,4,2                      ; @M_SDP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"destroy cq(%p) failed\n"

.subsections_via_symbols
