	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pd_vma_create
_pd_vma_create:                         ## @pd_vma_create
	.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	%esi, %r14d
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r12
	movq	_I915_GTT_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_IS_ALIGNED
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_GEM_BUG_ON
	xorl	%edi, %edi
	cmpl	%r14d, (%r12)
	setl	%dil
	callq	_GEM_BUG_ON
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_i915_vma_alloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	leaq	56(%rax), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_i915_active_init
	movq	%r12, 8(%rbx)
	movq	_pd_vma_ops@GOTPCREL(%rip), %rax
	movq	%rax, 48(%rbx)
	movq	%r15, 40(%rbx)
	movl	%r14d, (%rbx)
	movl	%r14d, 4(%rbx)
	movq	_I915_VMA_GGTT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_I915_GGTT_VIEW_ROTATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	leaq	24(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	20(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	8(%rbx), %rdi
	addq	$4, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	addq	$16, %rdi
	movq	8(%rbx), %rsi
	addq	$8, %rsi
	callq	_list_add
	movq	8(%rbx), %rdi
	addq	$4, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movl	%r13d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_GTT_PAGE_SIZE,4,2         ## @I915_GTT_PAGE_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_pd_vma_ops,4,2                 ## @pd_vma_ops
	.comm	_I915_VMA_GGTT,4,2              ## @I915_VMA_GGTT
	.comm	_I915_GGTT_VIEW_ROTATED,4,2     ## @I915_GGTT_VIEW_ROTATED
	.no_dead_strip	_pd_vma_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pd_vma_create
_pd_vma_create:                         ; @pd_vma_create
	.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	x20, x1
	mov	x21, x0
	ldp	x8, x22, [x0]
	ldr	x23, [x8]
Lloh0:
	adrp	x8, _I915_GTT_PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I915_GTT_PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_IS_ALIGNED
	cmp	w0, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
	ldr	w8, [x23]
	cmp	w8, w20
	cset	w0, lt
	bl	_GEM_BUG_ON
	bl	_i915_vma_alloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	add	x1, x0, #56
	mov	x0, x22
	mov	x2, #0
	mov	x3, #0
	bl	_i915_active_init
	str	x23, [x19, #8]
Lloh3:
	adrp	x8, _pd_vma_ops@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pd_vma_ops@GOTPAGEOFF]
	stp	x21, x8, [x19, #40]
	stp	w20, w20, [x19]
Lloh5:
	adrp	x8, _I915_VMA_GGTT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I915_VMA_GGTT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _I915_GGTT_VIEW_ROTATED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _I915_GGTT_VIEW_ROTATED@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #28]
	add	x0, x19, #24
	bl	_INIT_LIST_HEAD
	add	x0, x19, #20
	bl	_INIT_LIST_HEAD
	ldr	x8, [x19, #8]
	add	x0, x8, #4
	bl	_mutex_lock
	add	x0, x19, #16
	ldr	x8, [x19, #8]
	add	x1, x8, #8
	bl	_list_add
	ldr	x8, [x19, #8]
	add	x0, x8, #4
	bl	_mutex_unlock
	mov	x0, x19
	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:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_GTT_PAGE_SIZE,4,2         ; @I915_GTT_PAGE_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_pd_vma_ops,4,2                 ; @pd_vma_ops
	.comm	_I915_VMA_GGTT,4,2              ; @I915_VMA_GGTT
	.comm	_I915_GGTT_VIEW_ROTATED,4,2     ; @I915_GGTT_VIEW_ROTATED
	.no_dead_strip	_pd_vma_create
.subsections_via_symbols
