	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ppgtt_free_spt
_ppgtt_free_spt:                        ## @ppgtt_free_spt
	.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
	movq	32(%rdi), %rax
	movq	8(%rax), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %r14
	movl	4(%rax), %edi
	movl	24(%rbx), %edx
	movq	%rbx, %rsi
	callq	_trace_spt_free
	movl	40(%rbx), %esi
	movq	_I915_GTT_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	movq	_PCI_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_dma_unmap_page
	movq	32(%rbx), %rdi
	movl	40(%rbx), %esi
	callq	_radix_tree_delete
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	32(%rbx), %rdi
	movq	%rax, %rsi
	callq	_detach_oos_page
	movq	8(%rbx), %rsi
LBB0_3:
	movq	32(%rbx), %rdi
	callq	_intel_vgpu_unregister_page_track
LBB0_4:
	movq	%rbx, %rdi
	callq	_list_del_init
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_free_spt                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_GTT_PAGE_SHIFT,4,2        ## @I915_GTT_PAGE_SHIFT
	.comm	_PCI_DMA_BIDIRECTIONAL,4,2      ## @PCI_DMA_BIDIRECTIONAL
	.no_dead_strip	_ppgtt_free_spt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ppgtt_free_spt
_ppgtt_free_spt:                        ; @ppgtt_free_spt
	.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, #32]
	ldr	x9, [x8, #8]
	ldr	x9, [x9]
	ldr	x20, [x9]
	ldr	w0, [x8, #4]
	ldr	w2, [x19, #24]
	mov	x1, x19
	bl	_trace_spt_free
Lloh0:
	adrp	x8, _I915_GTT_PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I915_GTT_PAGE_SHIFT@GOTPAGEOFF]
	ldr	w9, [x19, #40]
Lloh2:
	ldr	w8, [x8]
	lsl	w1, w9, w8
Lloh3:
	adrp	x8, _PCI_DMA_BIDIRECTIONAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_DMA_BIDIRECTIONAL@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w2, #4096
	bl	_dma_unmap_page
	ldr	x0, [x19, #32]
	ldr	w1, [x19, #40]
	bl	_radix_tree_delete
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_4
; %bb.1:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x0, [x19, #32]
	mov	x1, x8
	bl	_detach_oos_page
	ldr	x1, [x19, #8]
LBB0_3:
	ldr	x0, [x19, #32]
	bl	_intel_vgpu_unregister_page_track
LBB0_4:
	mov	x0, x19
	bl	_list_del_init
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_free_spt
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_GTT_PAGE_SHIFT,4,2        ; @I915_GTT_PAGE_SHIFT
	.comm	_PCI_DMA_BIDIRECTIONAL,4,2      ; @PCI_DMA_BIDIRECTIONAL
	.no_dead_strip	_ppgtt_free_spt
.subsections_via_symbols
