	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_ppgtt
_set_ppgtt:                             ## @set_ppgtt
	.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
	cmpq	$0, 8(%rdx)
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_15:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rsi, %r15
	cmpq	$0, 16(%rsi)
	je	LBB0_4
## %bb.5:
	movq	%rdx, %rbx
	movq	%rdi, %r12
	movl	(%rdx), %edi
	callq	_upper_32_bits
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movq	%r12, %rdi
	callq	_mutex_lock_interruptible
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.8:
	leaq	4(%r12), %rdi
	movl	(%rbx), %esi
	callq	_idr_find
	testq	%rax, %rax
	je	LBB0_16
## %bb.9:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_i915_vm_get
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	(%r15), %rdi
	callq	_mutex_lock_interruptible
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.10:
	xorl	%r13d, %r13d
	cmpq	16(%r15), %r14
	je	LBB0_13
## %bb.11:
	leaq	8(%r15), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	_lut_close
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	___set_ppgtt
	movq	%rax, %r12
	movq	_ALL_ENGINES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_skip_ppgtt_update@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_emit_ppgtt_update@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_set_ppgtt_barrier@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movq	%r12, %r9
	callq	_context_barrier_task
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %ebx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	___set_ppgtt
	movq	%rax, %rdi
	callq	_i915_vm_put
	movq	%r12, %rdi
	callq	_i915_vm_put
	movl	%ebx, %r13d
LBB0_13:
	movq	(%r15), %rdi
	callq	_mutex_unlock
LBB0_14:
	movq	%r14, %rdi
	callq	_i915_vm_put
	jmp	LBB0_15
LBB0_16:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_ALL_ENGINES,4,2                ## @ALL_ENGINES
	.comm	_skip_ppgtt_update,4,2          ## @skip_ppgtt_update
	.comm	_emit_ppgtt_update,4,2          ## @emit_ppgtt_update
	.comm	_set_ppgtt_barrier,4,2          ## @set_ppgtt_barrier
	.no_dead_strip	_set_ppgtt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_ppgtt
_set_ppgtt:                             ; @set_ppgtt
	.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	x8, [x2, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
	mov	x19, x1
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x20, x2
	mov	x22, x0
	ldr	w0, [x2]
	bl	_upper_32_bits
	cbz	x0, LBB0_8
LBB0_4:
Lloh2:
	adrp	x8, _ENOENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	mov	x0, x21
	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
LBB0_8:
	mov	x0, x22
	bl	_mutex_lock_interruptible
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.9:
	add	x0, x22, #4
	ldr	w1, [x20]
	bl	_idr_find
	cbz	x0, LBB0_14
; %bb.10:
	mov	x20, x0
	bl	_i915_vm_get
	mov	x0, x22
	bl	_mutex_unlock
	ldr	x0, [x19]
	bl	_mutex_lock_interruptible
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.11:
	ldr	x8, [x19, #16]
	cmp	x20, x8
	b.eq	LBB0_15
; %bb.12:
	add	x21, x19, #8
	mov	x0, x21
	bl	_mutex_lock
	mov	x0, x19
	bl	_lut_close
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x19
	mov	x1, x20
	bl	___set_ppgtt
	mov	x22, x0
Lloh6:
	adrp	x8, _ALL_ENGINES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ALL_ENGINES@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _skip_ppgtt_update@GOTPAGE
Lloh10:
	ldr	x8, [x8, _skip_ppgtt_update@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _emit_ppgtt_update@GOTPAGE
Lloh13:
	ldr	x8, [x8, _emit_ppgtt_update@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
Lloh15:
	adrp	x8, _set_ppgtt_barrier@GOTPAGE
Lloh16:
	ldr	x8, [x8, _set_ppgtt_barrier@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x5, x22
	bl	_context_barrier_task
	mov	x21, x0
	cbz	w0, LBB0_16
; %bb.13:
	mov	x0, x19
	mov	x1, x22
	bl	___set_ppgtt
	bl	_i915_vm_put
	mov	x0, x22
	bl	_i915_vm_put
	b	LBB0_16
LBB0_14:
	mov	x0, x22
	bl	_mutex_unlock
	b	LBB0_4
LBB0_15:
	mov	w21, #0
LBB0_16:
	ldr	x0, [x19]
	bl	_mutex_unlock
LBB0_17:
	mov	x0, x20
	bl	_i915_vm_put
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_ALL_ENGINES,4,2                ; @ALL_ENGINES
	.comm	_skip_ppgtt_update,4,2          ; @skip_ppgtt_update
	.comm	_emit_ppgtt_update,4,2          ; @emit_ppgtt_update
	.comm	_set_ppgtt_barrier,4,2          ; @set_ppgtt_barrier
	.no_dead_strip	_set_ppgtt
.subsections_via_symbols
