	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_aliasing_ppgtt
_init_aliasing_ppgtt:                   ## @init_aliasing_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	20(%rdi), %edi
	callq	_i915_ppgtt_create
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movl	8(%rbx), %eax
	xorl	%edi, %edi
	cmpl	16(%r14), %eax
	setl	%dil
	callq	_GEM_WARN_ON
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_3
LBB0_4:
	movl	16(%r14), %edx
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*(%rbx)
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_5
LBB0_3:
	movq	%rbx, %rdi
	callq	_i915_vm_put
	movl	%r12d, %r15d
LBB0_6:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, 24(%r14)
	movq	(%r14), %rax
	movq	_ggtt_bind_vma@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_GEM_BUG_ON
	movq	_aliasing_gtt_bind_vma@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	8(%r14), %rax
	movq	_ggtt_unbind_vma@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_GEM_BUG_ON
	movq	_aliasing_gtt_unbind_vma@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ggtt_bind_vma,8,3              ## @ggtt_bind_vma
	.comm	_aliasing_gtt_bind_vma,8,3      ## @aliasing_gtt_bind_vma
	.comm	_ggtt_unbind_vma,8,3            ## @ggtt_unbind_vma
	.comm	_aliasing_gtt_unbind_vma,8,3    ## @aliasing_gtt_unbind_vma
	.no_dead_strip	_init_aliasing_ppgtt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_aliasing_ppgtt
_init_aliasing_ppgtt:                   ; @init_aliasing_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
	mov	x19, x0
	ldr	w0, [x0, #20]
	bl	_i915_ppgtt_create
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	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
	b	_PTR_ERR
LBB0_2:
	ldr	w8, [x20, #8]
	ldr	w9, [x19, #16]
	cmp	w8, w9
	cset	w0, lt
	bl	_GEM_WARN_ON
	cbz	x0, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_5
LBB0_4:
	ldr	x8, [x20]
	ldr	w2, [x19, #16]
	mov	x0, x20
	mov	w1, #0
	blr	x8
	mov	x21, x0
	cbz	w0, LBB0_7
LBB0_5:
	mov	x0, x20
	bl	_i915_vm_put
LBB0_6:
	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_7:
	str	x20, [x19, #24]
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _ggtt_bind_vma@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ggtt_bind_vma@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_GEM_BUG_ON
Lloh6:
	adrp	x8, _aliasing_gtt_bind_vma@GOTPAGE
Lloh7:
	ldr	x8, [x8, _aliasing_gtt_bind_vma@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19]
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x9, _ggtt_unbind_vma@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ggtt_unbind_vma@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_GEM_BUG_ON
Lloh12:
	adrp	x8, _aliasing_gtt_unbind_vma@GOTPAGE
Lloh13:
	ldr	x8, [x8, _aliasing_gtt_unbind_vma@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ggtt_bind_vma,8,3              ; @ggtt_bind_vma
	.comm	_aliasing_gtt_bind_vma,8,3      ; @aliasing_gtt_bind_vma
	.comm	_ggtt_unbind_vma,8,3            ; @ggtt_unbind_vma
	.comm	_aliasing_gtt_unbind_vma,8,3    ; @aliasing_gtt_unbind_vma
	.no_dead_strip	_init_aliasing_ppgtt
.subsections_via_symbols
