	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emit_pdps
_emit_pdps:                             ## @emit_pdps
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	16(%rdi), %r13
	movl	(%rax), %edi
	callq	_i915_vm_to_ppgtt
	movq	%rax, %rbx
	movl	(%r15), %edi
	callq	_intel_vgpu_active
	movl	%eax, %edi
	callq	_GEM_BUG_ON
	movq	_EMIT_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	*(%r13)
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movq	_EMIT_INVALIDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	*(%r13)
	testl	%eax, %eax
	je	LBB0_2
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_GEN8_3LVL_PDPES@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	leal	2(,%rax,4), %esi
	movq	%r15, %rdi
	callq	_intel_ring_begin
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.9:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%r12), %edi
	addl	%edi, %edi
	callq	_MI_LOAD_REGISTER_IMM
	movq	_MI_LRI_FORCE_POSTED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r12, %rcx
	movq	%r14, %r12
	addq	$4, %r12
	movl	%eax, (%r14)
	movl	(%rcx), %ebx
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.4:
	decl	%ebx
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_i915_page_dir_dma_addr
	movl	%eax, %r13d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %r14d
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_GEN8_RING_PDP_UDW
	movl	%eax, %edi
	callq	_i915_mmio_reg_offset
	movl	%eax, (%r12)
	movl	%r13d, %edi
	callq	_upper_32_bits
	movl	%eax, 4(%r12)
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_GEN8_RING_PDP_LDW
	movl	%eax, %edi
	callq	_i915_mmio_reg_offset
	movl	%eax, 8(%r12)
	movl	%r13d, %edi
	callq	_lower_32_bits
	movl	%eax, 12(%r12)
	addq	$16, %r12
	addl	$-1, %ebx
	jb	LBB0_5
## %bb.6:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_7:
	movq	_MI_NOOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	addq	$4, %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_intel_ring_advance
	movq	_EMIT_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	*(%r13)
	testl	%eax, %eax
	movq	_EMIT_INVALIDATE@GOTPCREL(%rip), %rcx
	jne	LBB0_8
## %bb.10:
	movq	(%r13), %rax
	movl	(%rcx), %esi
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EMIT_FLUSH,4,2                 ## @EMIT_FLUSH
	.comm	_EMIT_INVALIDATE,4,2            ## @EMIT_INVALIDATE
	.comm	_GEN8_3LVL_PDPES,4,2            ## @GEN8_3LVL_PDPES
	.comm	_MI_LRI_FORCE_POSTED,4,2        ## @MI_LRI_FORCE_POSTED
	.comm	_MI_NOOP,4,2                    ## @MI_NOOP
	.no_dead_strip	_emit_pdps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emit_pdps
_emit_pdps:                             ; @emit_pdps
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldp	x8, x25, [x0, #8]
	ldr	w0, [x8]
	bl	_i915_vm_to_ppgtt
	mov	x20, x0
	ldr	w0, [x19]
	bl	_intel_vgpu_active
	bl	_GEM_BUG_ON
	ldr	x8, [x25]
Lloh0:
	adrp	x26, _EMIT_FLUSH@GOTPAGE
Lloh1:
	ldr	x26, [x26, _EMIT_FLUSH@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x25]
Lloh2:
	adrp	x27, _EMIT_INVALIDATE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _EMIT_INVALIDATE@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh4:
	adrp	x22, _GEN8_3LVL_PDPES@GOTPAGE
Lloh5:
	ldr	x22, [x22, _GEN8_3LVL_PDPES@GOTPAGEOFF]
	ldr	w8, [x22]
	mov	w1, #2
	bfi	w1, w8, #2, #30
	mov	x0, x19
	bl	_intel_ring_begin
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_5:
	ldr	w8, [x22]
	lsl	w0, w8, #1
	bl	_MI_LOAD_REGISTER_IMM
Lloh6:
	adrp	x8, _MI_LRI_FORCE_POSTED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MI_LRI_FORCE_POSTED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w8, w8, w0
	str	w8, [x21], #4
	ldr	w8, [x22]
	cbz	w8, LBB0_9
; %bb.6:
	sub	w22, w8, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_i915_page_dir_dma_addr
	mov	x23, x0
	ldr	w24, [x25, #8]
	mov	x0, x24
	mov	x1, x22
	bl	_GEN8_RING_PDP_UDW
	bl	_i915_mmio_reg_offset
	str	w0, [x21]
	mov	x0, x23
	bl	_upper_32_bits
	str	w0, [x21, #4]
	mov	x0, x24
	mov	x1, x22
	bl	_GEN8_RING_PDP_LDW
	bl	_i915_mmio_reg_offset
	str	w0, [x21, #8]
	mov	x0, x23
	bl	_lower_32_bits
	add	x8, x21, #16
	str	w0, [x21, #12]
	sub	w22, w22, #1
	mov	x21, x8
	cmn	w22, #1
	b.ne	LBB0_7
; %bb.8:
	mov	x21, x8
LBB0_9:
Lloh9:
	adrp	x8, _MI_NOOP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MI_NOOP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x21], #4
	mov	x0, x19
	mov	x1, x21
	bl	_intel_ring_advance
	ldr	x8, [x25]
	ldr	w1, [x26]
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_2
; %bb.10:
	ldr	x2, [x25]
	ldr	w1, [x27]
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	br	x2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EMIT_FLUSH,4,2                 ; @EMIT_FLUSH
	.comm	_EMIT_INVALIDATE,4,2            ; @EMIT_INVALIDATE
	.comm	_GEN8_3LVL_PDPES,4,2            ; @GEN8_3LVL_PDPES
	.comm	_MI_LRI_FORCE_POSTED,4,2        ; @MI_LRI_FORCE_POSTED
	.comm	_MI_NOOP,4,2                    ; @MI_NOOP
	.no_dead_strip	_emit_pdps
.subsections_via_symbols
