	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function destroy_pv_resources
_destroy_pv_resources:                  ## @destroy_pv_resources
	.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
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.1:
	movq	%rcx, %rbx
	movq	(%rcx), %rax
	movq	_DEMUX_PV_STATE_DOWN@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jle	LBB0_7
## %bb.2:
	movq	_DEMUX_PV_STATE_DOWNING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	testl	%r8d, %r8d
	je	LBB0_4
## %bb.3:
	movl	40(%rbx), %edi
	callq	_flush_workqueue
LBB0_4:
	cmpq	$0, 32(%rbx)
	je	LBB0_6
## %bb.5:
	movq	24(%rbx), %rax
	movq	(%rax), %rdi
	callq	_ib_destroy_qp
	movq	24(%rbx), %rax
	movq	$0, (%rax)
	movq	_IB_QPT_SMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_mlx4_ib_free_pv_qp_bufs
LBB0_6:
	movq	24(%rbx), %rax
	movq	8(%rax), %rdi
	callq	_ib_destroy_qp
	movq	24(%rbx), %rax
	movq	$0, 8(%rax)
	movq	_IB_QPT_GSI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_mlx4_ib_free_pv_qp_bufs
	movq	16(%rbx), %rdi
	callq	_ib_dealloc_pd
	movq	$0, 16(%rbx)
	movq	8(%rbx), %rdi
	callq	_ib_destroy_cq
	movq	$0, 8(%rbx)
	movq	(%r14), %rax
	movq	%rax, (%rbx)
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEMUX_PV_STATE_DOWN,8,3        ## @DEMUX_PV_STATE_DOWN
	.comm	_DEMUX_PV_STATE_DOWNING,8,3     ## @DEMUX_PV_STATE_DOWNING
	.comm	_IB_QPT_SMI,4,2                 ## @IB_QPT_SMI
	.comm	_IB_QPT_GSI,4,2                 ## @IB_QPT_GSI
	.no_dead_strip	_destroy_pv_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function destroy_pv_resources
_destroy_pv_resources:                  ; @destroy_pv_resources
	.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
	cbz	x3, LBB0_7
; %bb.1:
	mov	x19, x3
	ldr	x8, [x3]
Lloh0:
	adrp	x20, _DEMUX_PV_STATE_DOWN@GOTPAGE
Lloh1:
	ldr	x20, [x20, _DEMUX_PV_STATE_DOWN@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.le	LBB0_7
; %bb.2:
Lloh2:
	adrp	x8, _DEMUX_PV_STATE_DOWNING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DEMUX_PV_STATE_DOWNING@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x19]
	cbz	w4, LBB0_4
; %bb.3:
	ldr	w0, [x19, #40]
	bl	_flush_workqueue
LBB0_4:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x8, [x19, #24]
	ldr	x0, [x8]
	bl	_ib_destroy_qp
	ldr	x8, [x19, #24]
	str	xzr, [x8]
Lloh5:
	adrp	x8, _IB_QPT_SMI@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IB_QPT_SMI@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_mlx4_ib_free_pv_qp_bufs
LBB0_6:
	ldr	x8, [x19, #24]
	ldr	x0, [x8, #8]
	bl	_ib_destroy_qp
	ldr	x8, [x19, #24]
	str	xzr, [x8, #8]
Lloh8:
	adrp	x8, _IB_QPT_GSI@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IB_QPT_GSI@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_mlx4_ib_free_pv_qp_bufs
	ldr	x0, [x19, #16]
	bl	_ib_dealloc_pd
	str	xzr, [x19, #16]
	ldr	x0, [x19, #8]
	bl	_ib_destroy_cq
	ldr	x8, [x20]
	stp	x8, xzr, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DEMUX_PV_STATE_DOWN,8,3        ; @DEMUX_PV_STATE_DOWN
	.comm	_DEMUX_PV_STATE_DOWNING,8,3     ; @DEMUX_PV_STATE_DOWNING
	.comm	_IB_QPT_SMI,4,2                 ; @IB_QPT_SMI
	.comm	_IB_QPT_GSI,4,2                 ; @IB_QPT_GSI
	.no_dead_strip	_destroy_pv_resources
.subsections_via_symbols
