	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_pasid_free_table         ## -- Begin function intel_pasid_free_table
	.p2align	4, 0x90
_intel_pasid_free_table:                ## @intel_pasid_free_table
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.1:
	callq	_dev_is_pci
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	movq	(%rbx), %r14
	testq	%r14, %r14
	je	LBB0_9
## %bb.3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_device_detach_pasid_table
	leaq	16(%r14), %rdi
	callq	_list_empty
	testl	%eax, %eax
	je	LBB0_9
## %bb.4:
	movq	8(%r14), %r15
	movl	(%r14), %eax
	movq	_PASID_PDE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.5:
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_get_pasid_table_from_pde
	movq	%rax, %rdi
	callq	_free_pgtable_page
	addq	$4, %r15
	decq	%rbx
	jne	LBB0_6
## %bb.7:
	movq	8(%r14), %r15
LBB0_8:
	movl	4(%r14), %esi
	movq	%r15, %rdi
	callq	_free_pages
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PASID_PDE_SHIFT,4,2            ## @PASID_PDE_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_pasid_free_table         ; -- Begin function intel_pasid_free_table
	.p2align	2
_intel_pasid_free_table:                ; @intel_pasid_free_table
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x20, [x0]
	cbz	x20, LBB0_8
; %bb.1:
	bl	_dev_is_pci
	cbz	w0, LBB0_8
; %bb.2:
	ldr	x19, [x20]
	cbz	x19, LBB0_8
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	bl	_device_detach_pasid_table
	add	x0, x19, #16
	bl	_list_empty
	cbz	w0, LBB0_8
; %bb.4:
	ldr	x20, [x19, #8]
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _PASID_PDE_SHIFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PASID_PDE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	asr	w21, w8, w9
	cmp	w21, #1
	b.lt	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_get_pasid_table_from_pde
	bl	_free_pgtable_page
	add	x20, x20, #4
	subs	x21, x21, #1
	b.ne	LBB0_5
; %bb.6:
	ldr	x20, [x19, #8]
LBB0_7:
	ldr	w1, [x19, #4]
	mov	x0, x20
	bl	_free_pages
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_kfree
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PASID_PDE_SHIFT,4,2            ; @PASID_PDE_SHIFT
.subsections_via_symbols
