	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_vm_create_ioctl       ## -- Begin function i915_gem_vm_create_ioctl
	.p2align	4, 0x90
_i915_gem_vm_create_ioctl:              ## @i915_gem_vm_create_ioctl
	.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	%rdx, %rbx
	movq	%rsi, %r13
	callq	_to_i915
	movq	%rax, %r15
	movq	(%rbx), %r14
	movq	%rax, %rdi
	callq	_HAS_FULL_PPGTT
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	cmpq	$0, 16(%r13)
	je	LBB0_5
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r15, %rdi
	callq	_i915_ppgtt_create
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.14:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_6:
	movq	%r14, (%r15)
	movq	8(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_u64_to_user_ptr
	movl	%eax, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r15, %rcx
	callq	_i915_user_extensions
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_12
LBB0_8:
	movq	%r14, %rdi
	callq	_mutex_lock_interruptible
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_9
LBB0_12:
	movq	%r15, %rdi
	callq	_i915_vm_put
	movl	%r12d, %ebx
	jmp	LBB0_13
LBB0_9:
	leaq	4(%r14), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%ebx, %ebx
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_idr_alloc
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_11
## %bb.10:
	sete	%al
	movzbl	%al, %edi
	callq	_GEM_BUG_ON
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r12d, (%r13)
	jmp	LBB0_13
LBB0_11:
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_vm_create_ioctl       ; -- Begin function i915_gem_vm_create_ioctl
	.p2align	2
_i915_gem_vm_create_ioctl:              ; @i915_gem_vm_create_ioctl
	.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	x20, x2
	mov	x19, x1
	bl	_to_i915
	mov	x21, x0
	ldr	x20, [x20]
	bl	_HAS_FULL_PPGTT
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	mov	x0, x22
	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_6:
	mov	x0, x21
	bl	_i915_ppgtt_create
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.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
	b	_PTR_ERR
LBB0_8:
	str	x20, [x21]
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_u64_to_user_ptr
	mov	x1, #0
	mov	w2, #0
	mov	x3, x21
	bl	_i915_user_extensions
	mov	x22, x0
	cbnz	w0, LBB0_11
LBB0_10:
	mov	x0, x20
	bl	_mutex_lock_interruptible
	mov	x22, x0
	cbz	w0, LBB0_12
LBB0_11:
	mov	x0, x21
	bl	_i915_vm_put
	b	LBB0_5
LBB0_12:
	add	x0, x20, #4
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w4, [x8]
	mov	x1, x21
	mov	w2, #0
	mov	w3, #0
	bl	_idr_alloc
	mov	x22, x0
	tbnz	w0, #31, LBB0_14
; %bb.13:
	cmp	w22, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
	mov	x0, x20
	bl	_mutex_unlock
	str	w22, [x19]
	mov	w22, #0
	b	LBB0_5
LBB0_14:
	mov	x0, x20
	bl	_mutex_unlock
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
