	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_sseu
_set_sseu:                              ## @set_sseu
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$15, (%rsi)
	ja	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	%r14, %rdi
	movl	$11, %esi
	callq	_IS_GEN
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	4(%r15), %edi
	callq	_u64_to_user_ptr
	leaq	-56(%rbp), %rdi
	movl	%eax, %esi
	movl	$16, %edx
	callq	_copy_from_user
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	cmpq	$0, -48(%rbp)
	jne	LBB0_1
## %bb.8:
	movl	-56(%rbp), %eax
	movq	_I915_CONTEXT_SSEU_FLAG_ENGINE_INDEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	notl	%edx
	testl	%edx, %eax
	jne	LBB0_1
## %bb.9:
	testl	%eax, %ecx
	je	LBB0_10
## %bb.11:
	movq	_LOOKUP_USER_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	jmp	LBB0_12
LBB0_10:
	xorl	%esi, %esi
LBB0_12:
	leaq	-52(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_lookup_user_engine
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%r12, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_20
LBB0_14:
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	_RENDER_CLASS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.16:
	leaq	-56(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	callq	_user_to_context_sseu
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.17:
	movl	-40(%rbp), %esi
	movq	%r12, %rdi
	callq	_intel_context_reconfigure_sseu
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.18:
	movl	$16, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_15:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_19:
	movq	%r12, %rdi
	callq	_intel_context_put
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_I915_CONTEXT_SSEU_FLAG_ENGINE_INDEX,4,2 ## @I915_CONTEXT_SSEU_FLAG_ENGINE_INDEX
	.comm	_LOOKUP_USER_INDEX,8,3          ## @LOOKUP_USER_INDEX
	.comm	_RENDER_CLASS,8,3               ## @RENDER_CLASS
	.no_dead_strip	_set_sseu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_sseu
_set_sseu:                              ; @set_sseu
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	w8, [x1]
	cmp	w8, #15
	b.hi	LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
	mov	x19, x1
	mov	x21, x0
	ldr	x20, [x0]
	mov	x0, x20
	mov	w1, #11
	bl	_IS_GEN
	cbz	w0, LBB0_5
; %bb.3:
	ldr	w0, [x19, #4]
	bl	_u64_to_user_ptr
	mov	x1, x0
	add	x0, sp, #16
	mov	w2, #16
	bl	_copy_from_user
	cbz	x0, LBB0_8
; %bb.4:
Lloh2:
	adrp	x8, _EFAULT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
	ldr	x8, [sp, #24]
	cbnz	x8, LBB0_1
; %bb.9:
	ldr	w8, [sp, #16]
Lloh6:
	adrp	x9, _I915_CONTEXT_SSEU_FLAG_ENGINE_INDEX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I915_CONTEXT_SSEU_FLAG_ENGINE_INDEX@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	bics	wzr, w8, w9
	b.ne	LBB0_1
; %bb.10:
Lloh9:
	adrp	x10, _LOOKUP_USER_INDEX@GOTPAGE
Lloh10:
	ldr	x10, [x10, _LOOKUP_USER_INDEX@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	tst	w9, w8
	csel	x1, xzr, x10, eq
	add	x8, sp, #16
	orr	x2, x8, #0x4
	mov	x0, x21
	bl	_lookup_user_engine
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x20, x0
	b	LBB0_7
LBB0_12:
	ldr	x8, [x21]
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _RENDER_CLASS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RENDER_CLASS@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.13:
	add	x1, sp, #16
	add	x2, sp, #8
	mov	x0, x20
	bl	_user_to_context_sseu
	mov	x20, x0
	cbnz	w0, LBB0_17
; %bb.14:
	ldr	w1, [sp, #8]
	mov	x0, x21
	bl	_intel_context_reconfigure_sseu
	mov	x20, x0
	cbnz	w0, LBB0_17
; %bb.15:
	mov	w8, #16
	str	w8, [x19]
	b	LBB0_17
LBB0_16:
Lloh15:
	adrp	x8, _ENODEV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_17:
	mov	x0, x21
	bl	_intel_context_put
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_I915_CONTEXT_SSEU_FLAG_ENGINE_INDEX,4,2 ; @I915_CONTEXT_SSEU_FLAG_ENGINE_INDEX
	.comm	_LOOKUP_USER_INDEX,8,3          ; @LOOKUP_USER_INDEX
	.comm	_RENDER_CLASS,8,3               ; @RENDER_CLASS
	.no_dead_strip	_set_sseu
.subsections_via_symbols
