	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_sseu
_get_sseu:                              ## @get_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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	(%rsi), %eax
	testl	%eax, %eax
	je	LBB0_16
## %bb.1:
	cmpl	$31, %eax
	ja	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movq	%rdi, %r14
	movl	4(%r15), %edi
	callq	_u64_to_user_ptr
	leaq	-56(%rbp), %rdi
	movl	%eax, %esi
	movl	$32, %edx
	callq	_copy_from_user
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_6:
	cmpq	$0, -32(%rbp)
	jne	LBB0_2
## %bb.7:
	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_2
## %bb.8:
	testl	%eax, %ecx
	je	LBB0_9
## %bb.10:
	movq	_LOOKUP_USER_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	jmp	LBB0_11
LBB0_9:
	xorl	%esi, %esi
LBB0_11:
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	callq	_lookup_user_engine
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_17
LBB0_13:
	movq	%r14, %rdi
	callq	_intel_context_lock_pinned
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_intel_context_put
	jmp	LBB0_17
LBB0_15:
	movups	(%r14), %xmm0
	movups	%xmm0, -52(%rbp)
	movq	%r14, %rdi
	callq	_intel_context_unlock_pinned
	movq	%r14, %rdi
	callq	_intel_context_put
	movl	4(%r15), %edi
	callq	_u64_to_user_ptr
	leaq	-56(%rbp), %rsi
	movl	%eax, %edi
	movl	$32, %edx
	callq	_copy_to_user
	testq	%rax, %rax
	jne	LBB0_5
LBB0_16:
	movl	$32, (%r15)
	xorl	%ebx, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.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
	.no_dead_strip	_get_sseu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_sseu
_get_sseu:                              ; @get_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
	mov	x19, x1
	ldr	w8, [x1]
	cbz	w8, LBB0_13
; %bb.1:
	cmp	w8, #31
	b.hi	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	mov	x20, x0
	ldr	w0, [x19, #4]
	bl	_u64_to_user_ptr
	mov	x1, x0
	mov	x0, sp
	mov	w2, #32
	bl	_copy_from_user
	cbz	x0, LBB0_6
LBB0_4:
Lloh2:
	adrp	x8, _EFAULT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_14
LBB0_6:
	ldr	x8, [sp, #24]
	cbnz	x8, LBB0_2
; %bb.7:
	ldr	w8, [sp]
Lloh4:
	adrp	x9, _I915_CONTEXT_SSEU_FLAG_ENGINE_INDEX@GOTPAGE
Lloh5:
	ldr	x9, [x9, _I915_CONTEXT_SSEU_FLAG_ENGINE_INDEX@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	bics	wzr, w8, w9
	b.ne	LBB0_2
; %bb.8:
Lloh7:
	adrp	x10, _LOOKUP_USER_INDEX@GOTPAGE
Lloh8:
	ldr	x10, [x10, _LOOKUP_USER_INDEX@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	tst	w9, w8
	csel	x1, xzr, x10, eq
	mov	x8, sp
	add	x2, x8, #20
	mov	x0, x20
	bl	_lookup_user_engine
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x20, x0
	b	LBB0_14
LBB0_10:
	mov	x0, x21
	bl	_intel_context_lock_pinned
	cbz	w0, LBB0_12
; %bb.11:
	mov	x20, x0
	mov	x0, x21
	bl	_intel_context_put
	b	LBB0_14
LBB0_12:
	ldr	q0, [x21]
	stur	q0, [sp, #4]
	mov	x0, x21
	bl	_intel_context_unlock_pinned
	mov	x0, x21
	bl	_intel_context_put
	ldr	w0, [x19, #4]
	bl	_u64_to_user_ptr
	mov	x1, sp
	mov	w2, #32
	bl	_copy_to_user
	cbnz	x0, LBB0_4
LBB0_13:
	mov	w20, #0
	mov	w8, #32
	str	w8, [x19]
LBB0_14:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.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
	.no_dead_strip	_get_sseu
.subsections_via_symbols
