	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_get_caching_ioctl     ## -- Begin function i915_gem_get_caching_ioctl
	.p2align	4, 0x90
_i915_gem_get_caching_ioctl:            ## @i915_gem_get_caching_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
	movq	%rdx, %rbx
	movq	%rsi, %r14
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movl	4(%r14), %esi
	movq	%rbx, %rdi
	callq	_i915_gem_object_lookup_rcu
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rax), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_3
## %bb.8:
	movq	_I915_CACHING_CACHED@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_7
LBB0_3:
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.4:
	movq	_I915_CACHING_DISPLAY@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_I915_CACHING_NONE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%r15d, %r15d
LBB0_7:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_I915_CACHING_CACHED,4,2        ## @I915_CACHING_CACHED
	.comm	_I915_CACHING_DISPLAY,4,2       ## @I915_CACHING_DISPLAY
	.comm	_I915_CACHING_NONE,4,2          ## @I915_CACHING_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_get_caching_ioctl     ; -- Begin function i915_gem_get_caching_ioctl
	.p2align	2
_i915_gem_get_caching_ioctl:            ; @i915_gem_get_caching_ioctl
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	mov	x19, x1
	bl	_rcu_read_lock
	ldr	w1, [x19, #4]
	mov	x0, x20
	bl	_i915_gem_object_lookup_rcu
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x0]
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_4
; %bb.2:
	mov	w20, #0
Lloh0:
	adrp	x8, _I915_CACHING_CACHED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I915_CACHING_CACHED@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
Lloh2:
	adrp	x8, _ENOENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_8
LBB0_4:
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.5:
	mov	w20, #0
Lloh5:
	adrp	x8, _I915_CACHING_DISPLAY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I915_CACHING_DISPLAY@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
	mov	w20, #0
Lloh7:
	adrp	x8, _I915_CACHING_NONE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _I915_CACHING_NONE@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_8:
	bl	_rcu_read_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_I915_CACHING_CACHED,4,2        ; @I915_CACHING_CACHED
	.comm	_I915_CACHING_DISPLAY,4,2       ; @I915_CACHING_DISPLAY
	.comm	_I915_CACHING_NONE,4,2          ; @I915_CACHING_NONE
.subsections_via_symbols
