	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emit_ppgtt_update
_emit_ppgtt_update:                     ## @emit_ppgtt_update
	.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
	movq	%rdi, %r13
	movq	(%rdi), %r14
	movq	8(%rdi), %rax
	movq	(%rax), %rbx
	movl	4(%r14), %r12d
	movq	%rbx, %rdi
	callq	_i915_vm_is_4lvl
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_i915_vm_to_ppgtt
	movl	(%rax), %edi
	callq	_px_dma
	movl	%eax, %r15d
	movq	%r13, %rdi
	movl	$6, %esi
	callq	_intel_ring_begin
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movl	$2, %edi
	callq	_MI_LOAD_REGISTER_IMM
	movl	%eax, (%rbx)
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_GEN8_RING_PDP_UDW
	movl	%eax, %edi
	callq	_i915_mmio_reg_offset
	movl	%eax, 4(%rbx)
	movl	%r15d, %edi
	callq	_upper_32_bits
	movl	%eax, 8(%rbx)
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_GEN8_RING_PDP_LDW
	movl	%eax, %edi
	callq	_i915_mmio_reg_offset
	movl	%eax, 12(%rbx)
	movl	%r15d, %edi
	callq	_lower_32_bits
	movl	%eax, 16(%rbx)
	movq	_MI_NOOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, %rsi
	addq	$24, %rsi
	movl	%eax, 20(%rbx)
	movq	%r13, %rdi
	jmp	LBB0_11
LBB0_3:
	movl	(%r14), %edi
	callq	_HAS_LOGICAL_RING_CONTEXTS
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_i915_vm_to_ppgtt
	movq	%rax, %r15
	testq	%r14, %r14
	je	LBB0_6
## %bb.4:
	movq	_GEN8_3LVL_PDPES@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	leal	2(,%rax,4), %esi
	movq	%r13, %rdi
	callq	_intel_ring_begin
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
LBB0_5:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_6:
	movq	%r15, %rdi
	callq	_gen6_ppgtt_pin
	jmp	LBB0_12
LBB0_7:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	(%r14), %edi
	addl	%edi, %edi
	callq	_MI_LOAD_REGISTER_IMM
	movq	%rbx, %r13
	addq	$4, %r13
	movl	%eax, (%rbx)
	movl	(%r14), %ebx
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.8:
	decl	%ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_i915_page_dir_dma_addr
	movl	%eax, %r14d
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_GEN8_RING_PDP_UDW
	movl	%eax, %edi
	callq	_i915_mmio_reg_offset
	movl	%eax, (%r13)
	movl	%r14d, %edi
	callq	_upper_32_bits
	movl	%eax, 4(%r13)
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_GEN8_RING_PDP_LDW
	movl	%eax, %edi
	callq	_i915_mmio_reg_offset
	movl	%eax, 8(%r13)
	movl	%r14d, %edi
	callq	_lower_32_bits
	movl	%eax, 12(%r13)
	addq	$16, %r13
	addl	$-1, %ebx
	jb	LBB0_9
LBB0_10:
	movq	_MI_NOOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	addq	$4, %r13
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
LBB0_11:
	callq	_intel_ring_advance
LBB0_12:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MI_NOOP,8,3                    ## @MI_NOOP
	.comm	_GEN8_3LVL_PDPES,4,2            ## @GEN8_3LVL_PDPES
	.no_dead_strip	_emit_ppgtt_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emit_ppgtt_update
_emit_ppgtt_update:                     ; @emit_ppgtt_update
	.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	x19, x0
	ldp	x22, x8, [x0]
	ldr	x21, [x8]
	ldr	w20, [x22, #4]
	mov	x0, x21
	bl	_i915_vm_is_4lvl
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_i915_vm_to_ppgtt
	ldr	w0, [x0]
	bl	_px_dma
	mov	x22, x0
	mov	x0, x19
	mov	w1, #6
	bl	_intel_ring_begin
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.2:
	mov	x0, x21
	b	LBB0_6
LBB0_3:
	ldr	w0, [x22]
	bl	_HAS_LOGICAL_RING_CONTEXTS
	mov	x22, x0
	mov	x0, x21
	bl	_i915_vm_to_ppgtt
	mov	x21, x0
	cbz	x22, LBB0_8
; %bb.4:
Lloh0:
	adrp	x23, _GEN8_3LVL_PDPES@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GEN8_3LVL_PDPES@GOTPAGEOFF]
	ldr	w8, [x23]
	mov	w1, #2
	bfi	w1, w8, #2, #30
	mov	x0, x19
	bl	_intel_ring_begin
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.5:
	mov	x0, x22
LBB0_6:
	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	_PTR_ERR
LBB0_7:
	mov	w0, #2
	bl	_MI_LOAD_REGISTER_IMM
	str	w0, [x21]
	mov	x0, x20
	mov	w1, #0
	bl	_GEN8_RING_PDP_UDW
	bl	_i915_mmio_reg_offset
	str	w0, [x21, #4]
	mov	x0, x22
	bl	_upper_32_bits
	str	w0, [x21, #8]
	mov	x0, x20
	mov	w1, #0
	bl	_GEN8_RING_PDP_LDW
	bl	_i915_mmio_reg_offset
	str	w0, [x21, #12]
	mov	x0, x22
	bl	_lower_32_bits
Lloh2:
	adrp	x8, _MI_NOOP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MI_NOOP@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x1, x21, #24
	stp	w0, w8, [x21, #16]
	mov	x0, x19
	b	LBB0_14
LBB0_8:
	mov	x0, x21
	bl	_gen6_ppgtt_pin
	b	LBB0_15
LBB0_9:
	ldr	w8, [x23]
	lsl	w0, w8, #1
	bl	_MI_LOAD_REGISTER_IMM
	str	w0, [x22], #4
	ldr	w8, [x23]
	cbz	w8, LBB0_13
; %bb.10:
	sub	w23, w8, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_i915_page_dir_dma_addr
	mov	x24, x0
	mov	x0, x20
	mov	x1, x23
	bl	_GEN8_RING_PDP_UDW
	bl	_i915_mmio_reg_offset
	str	w0, [x22]
	mov	x0, x24
	bl	_upper_32_bits
	str	w0, [x22, #4]
	mov	x0, x20
	mov	x1, x23
	bl	_GEN8_RING_PDP_LDW
	bl	_i915_mmio_reg_offset
	str	w0, [x22, #8]
	mov	x0, x24
	bl	_lower_32_bits
	add	x8, x22, #16
	str	w0, [x22, #12]
	sub	w23, w23, #1
	mov	x22, x8
	cmn	w23, #1
	b.ne	LBB0_11
; %bb.12:
	mov	x22, x8
LBB0_13:
Lloh5:
	adrp	x8, _MI_NOOP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MI_NOOP@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	w8, [x22], #4
	mov	x0, x19
	mov	x1, x22
LBB0_14:
	bl	_intel_ring_advance
LBB0_15:
	mov	w0, #0
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MI_NOOP,8,3                    ; @MI_NOOP
	.comm	_GEN8_3LVL_PDPES,4,2            ; @GEN8_3LVL_PDPES
	.no_dead_strip	_emit_ppgtt_update
.subsections_via_symbols
