	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_svm_finish_prq           ## -- Begin function intel_svm_finish_prq
	.p2align	4, 0x90
_intel_svm_finish_prq:                  ## @intel_svm_finish_prq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_DMAR_PQH_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%rbx), %rdi
	xorl	%esi, %esi
	callq	_dmar_writeq
	movq	_DMAR_PQT_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%rbx), %rdi
	xorl	%esi, %esi
	callq	_dmar_writeq
	movq	_DMAR_PQA_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%rbx), %rdi
	xorl	%esi, %esi
	callq	_dmar_writeq
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rsi
	callq	_free_irq
	movq	8(%rbx), %rdi
	callq	_dmar_free_hwirq
	movq	$0, 8(%rbx)
LBB0_2:
	movq	(%rbx), %rdi
	movq	_PRQ_ORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_free_pages
	movq	$0, (%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMAR_PQH_REG,8,3               ## @DMAR_PQH_REG
	.comm	_DMAR_PQT_REG,8,3               ## @DMAR_PQT_REG
	.comm	_DMAR_PQA_REG,8,3               ## @DMAR_PQA_REG
	.comm	_PRQ_ORDER,4,2                  ## @PRQ_ORDER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_svm_finish_prq           ; -- Begin function intel_svm_finish_prq
	.p2align	2
_intel_svm_finish_prq:                  ; @intel_svm_finish_prq
	.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, #16]
Lloh0:
	adrp	x9, _DMAR_PQH_REG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DMAR_PQH_REG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	x1, #0
	bl	_dmar_writeq
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x9, _DMAR_PQT_REG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DMAR_PQT_REG@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	x1, #0
	bl	_dmar_writeq
	ldr	x8, [x19, #16]
Lloh6:
	adrp	x9, _DMAR_PQA_REG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DMAR_PQA_REG@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	x1, #0
	bl	_dmar_writeq
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x1, x19
	bl	_free_irq
	ldr	x0, [x19, #8]
	bl	_dmar_free_hwirq
	str	xzr, [x19, #8]
LBB0_2:
	ldr	x0, [x19]
Lloh9:
	adrp	x8, _PRQ_ORDER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PRQ_ORDER@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_free_pages
	str	xzr, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DMAR_PQH_REG,8,3               ; @DMAR_PQH_REG
	.comm	_DMAR_PQT_REG,8,3               ; @DMAR_PQT_REG
	.comm	_DMAR_PQA_REG,8,3               ; @DMAR_PQA_REG
	.comm	_PRQ_ORDER,4,2                  ; @PRQ_ORDER
.subsections_via_symbols
