	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_pread_ioctl           ## -- Begin function i915_gem_pread_ioctl
	.p2align	4, 0x90
_i915_gem_pread_ioctl:                  ## @i915_gem_pread_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, (%rsi)
	je	LBB0_1
## %bb.2:
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movl	16(%rsi), %edi
	callq	_u64_to_user_ptr
	movq	(%r15), %rsi
	movl	%eax, %edi
	callq	_access_ok
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movl	12(%r15), %esi
	movq	%rbx, %rdi
	callq	_i915_gem_object_lookup
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r14
	movq	_u64@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r15), %esi
	movq	(%r15), %rdx
	movl	(%r14), %ecx
	callq	_range_overflows_t
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_3:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_9:
	movl	8(%r15), %esi
	movq	(%r15), %rdx
	movq	%r14, %rdi
	callq	_trace_i915_gem_object_pread
	movq	_I915_WAIT_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAX_SCHEDULE_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_i915_gem_object_wait
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.10:
	movq	%r14, %rdi
	callq	_i915_gem_object_pin_pages
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_i915_gem_shmem_pread
	movl	%eax, %ebx
	movq	_EFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_13
## %bb.12:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_14
LBB0_13:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_i915_gem_gtt_pread
	movl	%eax, %ebx
LBB0_14:
	movq	%r14, %rdi
	callq	_i915_gem_object_unpin_pages
LBB0_15:
	movq	%r14, %rdi
	callq	_i915_gem_object_put
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_u64,4,2                        ## @u64
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_I915_WAIT_INTERRUPTIBLE,4,2    ## @I915_WAIT_INTERRUPTIBLE
	.comm	_MAX_SCHEDULE_TIMEOUT,4,2       ## @MAX_SCHEDULE_TIMEOUT
	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_pread_ioctl           ; -- Begin function i915_gem_pread_ioctl
	.p2align	2
_i915_gem_pread_ioctl:                  ; @i915_gem_pread_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
	ldr	x8, [x1]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x20, x2
	mov	x19, x1
	ldr	w0, [x1, #16]
	bl	_u64_to_user_ptr
	ldr	x1, [x19]
	bl	_access_ok
	cbz	w0, LBB0_6
; %bb.2:
	ldr	w1, [x19, #12]
	mov	x0, x20
	bl	_i915_gem_object_lookup
	cbz	x0, LBB0_7
; %bb.3:
	mov	x20, x0
Lloh0:
	adrp	x8, _u64@GOTPAGE
Lloh1:
	ldr	x8, [x8, _u64@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
	ldr	x2, [x19]
	ldr	w3, [x20]
	bl	_range_overflows_t
	cbz	x0, LBB0_9
; %bb.4:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_15
LBB0_5:
	mov	w21, #0
	b	LBB0_16
LBB0_6:
Lloh6:
	adrp	x8, _EFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x8, _ENOENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_16
LBB0_9:
	ldr	w1, [x19, #8]
	ldr	x2, [x19]
	mov	x0, x20
	bl	_trace_i915_gem_object_pread
Lloh10:
	adrp	x8, _I915_WAIT_INTERRUPTIBLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _I915_WAIT_INTERRUPTIBLE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _MAX_SCHEDULE_TIMEOUT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MAX_SCHEDULE_TIMEOUT@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_i915_gem_object_wait
	mov	x21, x0
	cbnz	w0, LBB0_15
; %bb.10:
	mov	x0, x20
	bl	_i915_gem_object_pin_pages
	mov	x21, x0
	cbnz	w0, LBB0_15
; %bb.11:
	mov	x0, x20
	mov	x1, x19
	bl	_i915_gem_shmem_pread
Lloh16:
	adrp	x8, _EFAULT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_13
; %bb.12:
	mov	x21, x0
Lloh19:
	adrp	x8, _ENODEV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_14
LBB0_13:
	mov	x0, x20
	mov	x1, x19
	bl	_i915_gem_gtt_pread
	mov	x21, x0
LBB0_14:
	mov	x0, x20
	bl	_i915_gem_object_unpin_pages
LBB0_15:
	mov	x0, x20
	bl	_i915_gem_object_put
LBB0_16:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_u64,4,2                        ; @u64
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_I915_WAIT_INTERRUPTIBLE,4,2    ; @I915_WAIT_INTERRUPTIBLE
	.comm	_MAX_SCHEDULE_TIMEOUT,4,2       ; @MAX_SCHEDULE_TIMEOUT
	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
