	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdp_pcbfree
_sdp_pcbfree:                           ## @sdp_pcbfree
	.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
	xorl	%edi, %edi
	cmpq	$0, 40(%rbx)
	sete	%dil
	movq	%rbx, %rsi
	callq	_KASSERT
	movq	_SDP_DESTROY@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	xorl	%edi, %edi
	andl	(%rbx), %eax
	sete	%dil
	movq	%rbx, %rsi
	callq	_KASSERT
	movq	40(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_sdp_dbg
	movq	%rbx, %rdi
	callq	_SDP_WLOCK_ASSERT
	movl	(%r14), %eax
	orl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_SDP_WUNLOCK
	xorl	%eax, %eax
	callq	_SDP_LIST_WLOCK
	movq	_sdp_count@GOTPCREL(%rip), %rax
	decl	(%rax)
	movq	_list@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_LIST_REMOVE
	xorl	%eax, %eax
	callq	_SDP_LIST_WUNLOCK
	movl	32(%rbx), %edi
	callq	_crfree
	movq	$0, 24(%rbx)
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_ib_destroy_qp
	movq	$0, 16(%rbx)
LBB0_2:
	movq	%rbx, %rdi
	callq	_sdp_tx_ring_destroy
	movq	%rbx, %rdi
	callq	_sdp_rx_ring_destroy
	movq	%rbx, %rdi
	callq	_sdp_destroy_cma
	leaq	8(%rbx), %rdi
	callq	_rw_destroy
	leaq	4(%rbx), %rdi
	callq	_rw_destroy
	movq	_sdp_zone@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_uma_zfree                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SDP_DESTROY,4,2                ## @SDP_DESTROY
	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"Freeing pcb"

	.comm	_sdp_count,4,2                  ## @sdp_count
	.comm	_list,4,2                       ## @list
	.comm	_sdp_zone,4,2                   ## @sdp_zone
	.no_dead_strip	_sdp_pcbfree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdp_pcbfree
_sdp_pcbfree:                           ; @sdp_pcbfree
	.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
	ldr	x8, [x0, #40]
	cmp	x8, #0
	cset	w0, eq
	mov	x1, x19
	bl	_KASSERT
	ldr	w8, [x19]
Lloh0:
	adrp	x20, _SDP_DESTROY@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SDP_DESTROY@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	cset	w0, eq
	mov	x1, x19
	bl	_KASSERT
	ldr	x0, [x19, #40]
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_sdp_dbg
	mov	x0, x19
	bl	_SDP_WLOCK_ASSERT
	ldr	w8, [x20]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	x0, x19
	bl	_SDP_WUNLOCK
	bl	_SDP_LIST_WLOCK
Lloh4:
	adrp	x8, _sdp_count@GOTPAGE
Lloh5:
	ldr	x8, [x8, _sdp_count@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
Lloh6:
	adrp	x8, _list@GOTPAGE
Lloh7:
	ldr	x8, [x8, _list@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_LIST_REMOVE
	bl	_SDP_LIST_WUNLOCK
	ldr	w0, [x19, #32]
	bl	_crfree
	str	xzr, [x19, #24]
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_ib_destroy_qp
	str	xzr, [x19, #16]
LBB0_2:
	mov	x0, x19
	bl	_sdp_tx_ring_destroy
	mov	x0, x19
	bl	_sdp_rx_ring_destroy
	mov	x0, x19
	bl	_sdp_destroy_cma
	add	x0, x19, #8
	bl	_rw_destroy
	add	x0, x19, #4
	bl	_rw_destroy
Lloh9:
	adrp	x8, _sdp_zone@GOTPAGE
Lloh10:
	ldr	x8, [x8, _sdp_zone@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_uma_zfree
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SDP_DESTROY,4,2                ; @SDP_DESTROY
	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"Freeing pcb"

	.comm	_sdp_count,4,2                  ; @sdp_count
	.comm	_list,4,2                       ; @list
	.comm	_sdp_zone,4,2                   ; @sdp_zone
	.no_dead_strip	_sdp_pcbfree
.subsections_via_symbols
