	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ppgtt_alloc_spt_gfn
_ppgtt_alloc_spt_gfn:                   ## @ppgtt_alloc_spt_gfn
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r13
	callq	_ppgtt_alloc_spt
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
LBB0_3:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	_ppgtt_write_protection_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rcx
	callq	_intel_vgpu_register_page_track
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_ppgtt_free_spt
	movl	%r12d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_2:
	movl	%r15d, 8(%rbx)
	movq	%r14, 16(%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 24(%rbx)
	movl	(%r13), %edi
	movl	(%rbx), %ecx
	movq	%rbx, %rsi
	movl	%r15d, %edx
	movq	%r14, %r8
	callq	_trace_spt_alloc
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_ppgtt_write_protection_handler,4,2 ## @ppgtt_write_protection_handler
	.no_dead_strip	_ppgtt_alloc_spt_gfn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ppgtt_alloc_spt_gfn
_ppgtt_alloc_spt_gfn:                   ; @ppgtt_alloc_spt_gfn
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x23, x0
	bl	_ppgtt_alloc_spt
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
LBB0_1:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh0:
	adrp	x8, _ppgtt_write_protection_handler@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ppgtt_write_protection_handler@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x19
	mov	x3, x20
	bl	_intel_vgpu_register_page_track
	cbz	w0, LBB0_4
; %bb.3:
	mov	x24, x0
	mov	x0, x20
	bl	_ppgtt_free_spt
	mov	x0, x24
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_4:
	str	w21, [x20, #8]
	str	x19, [x20, #16]
	str	w22, [x20, #24]
	ldr	w0, [x23]
	ldr	w3, [x20]
	mov	x1, x20
	mov	x2, x21
	mov	x4, x19
	bl	_trace_spt_alloc
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ppgtt_write_protection_handler,4,2 ; @ppgtt_write_protection_handler
	.no_dead_strip	_ppgtt_alloc_spt_gfn
.subsections_via_symbols
