	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_context_getparam_ioctl ## -- Begin function i915_gem_context_getparam_ioctl
	.p2align	4, 0x90
_i915_gem_context_getparam_ioctl:       ## @i915_gem_context_getparam_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	(%rdx), %rbx
	movl	12(%rsi), %esi
	movq	%rbx, %rdi
	callq	_i915_gem_context_lookup
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movl	(%r12), %eax
	addl	$-128, %eax
	cmpl	$9, %eax
	ja	LBB0_17
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_15:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_get_ppgtt
	movl	%eax, %ebx
	jmp	LBB0_18
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_14:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_get_sseu
	movl	%eax, %ebx
	jmp	LBB0_18
LBB0_12:
	movl	$0, 8(%r12)
	movq	%r14, %rdi
	callq	_i915_gem_context_is_recoverable
	jmp	LBB0_7
LBB0_13:
	movl	$0, 8(%r12)
	movl	(%r14), %eax
	movq	_I915_USER_PRIORITY_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	jmp	LBB0_7
LBB0_4:
	movl	$0, 8(%r12)
	movq	_UCONTEXT_NO_ZEROMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	addq	$16, %rsi
	callq	_test_bit
	jmp	LBB0_7
LBB0_10:
	movl	$0, 8(%r12)
	movq	%r14, %rdi
	callq	_i915_gem_context_no_error_capture
	jmp	LBB0_7
LBB0_5:
	movl	$0, 8(%r12)
	movq	8(%r14), %rax
	testq	%rax, %rax
	jne	LBB0_6
## %bb.8:
	movq	%r15, %rdi
	callq	_to_i915
	movq	8(%rax), %rbx
	movq	%r15, %rdi
	callq	_to_i915
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.9:
	movq	8(%rax), %rax
LBB0_6:
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_16:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_get_engines
	movl	%eax, %ebx
	jmp	LBB0_18
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_11:
	movl	$0, 8(%r12)
	movq	%r14, %rdi
	callq	_i915_gem_context_is_bannable
LBB0_7:
	movl	%eax, 4(%r12)
	xorl	%ebx, %ebx
LBB0_18:
	movq	%r14, %rdi
	callq	_i915_gem_context_put
LBB0_19:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_15
	.long	L0_0_set_14
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_4
	.long	L0_0_set_10
	.long	L0_0_set_5
	.long	L0_0_set_16
	.long	L0_0_set_17
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_UCONTEXT_NO_ZEROMAP,4,2        ## @UCONTEXT_NO_ZEROMAP
	.comm	_I915_USER_PRIORITY_SHIFT,4,2   ## @I915_USER_PRIORITY_SHIFT
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_context_getparam_ioctl ; -- Begin function i915_gem_context_getparam_ioctl
	.p2align	2
_i915_gem_context_getparam_ioctl:       ; @i915_gem_context_getparam_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, x1
	mov	x21, x0
	ldr	x22, [x2]
	ldr	w1, [x1, #12]
	mov	x0, x22
	bl	_i915_gem_context_lookup
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w8, [x20]
	sub	w8, w8, #128
	cmp	w8, #9
	b.hi	LBB0_13
; %bb.2:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x20
	bl	_get_ppgtt
	mov	x21, x0
	b	LBB0_16
LBB0_4:
Lloh2:
	adrp	x8, _ENOENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_17
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_get_sseu
	mov	x21, x0
	b	LBB0_16
LBB0_6:
	str	wzr, [x20, #8]
	mov	x0, x19
	bl	_i915_gem_context_is_recoverable
	b	LBB0_15
LBB0_7:
	mov	w21, #0
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _I915_USER_PRIORITY_SHIFT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _I915_USER_PRIORITY_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	asr	w8, w8, w9
	stp	w8, wzr, [x20, #4]
	b	LBB0_16
LBB0_8:
	str	wzr, [x20, #8]
Lloh8:
	adrp	x8, _UCONTEXT_NO_ZEROMAP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _UCONTEXT_NO_ZEROMAP@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x1, x19, #16
	bl	_test_bit
	b	LBB0_15
LBB0_9:
	str	wzr, [x20, #8]
	mov	x0, x19
	bl	_i915_gem_context_no_error_capture
	b	LBB0_15
LBB0_10:
	str	wzr, [x20, #8]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_18
; %bb.11:
	mov	w21, #0
	b	LBB0_20
LBB0_12:
	mov	x0, x19
	mov	x1, x20
	bl	_get_engines
	mov	x21, x0
	b	LBB0_16
LBB0_13:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_16
LBB0_14:
	str	wzr, [x20, #8]
	mov	x0, x19
	bl	_i915_gem_context_is_bannable
LBB0_15:
	mov	w21, #0
	str	w0, [x20, #4]
LBB0_16:
	mov	x0, x19
	bl	_i915_gem_context_put
LBB0_17:
	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_18:
	mov	x0, x21
	bl	_to_i915
	ldr	x22, [x0, #8]
	mov	x0, x21
	bl	_to_i915
	mov	w21, #0
	cbz	x22, LBB0_21
; %bb.19:
	ldr	x8, [x0, #8]
LBB0_20:
	ldr	w8, [x8]
	str	w8, [x20, #4]
	b	LBB0_16
LBB0_21:
	ldr	w8, [x0]
	str	w8, [x20, #4]
	b	LBB0_16
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_UCONTEXT_NO_ZEROMAP,4,2        ; @UCONTEXT_NO_ZEROMAP
	.comm	_I915_USER_PRIORITY_SHIFT,4,2   ; @I915_USER_PRIORITY_SHIFT
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
