	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __sseu_finish
___sseu_finish:                         ## @__sseu_finish
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movl	%r8d, %ebx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movl	%esi, %r13d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %rax
	movl	16(%rax), %edi
	callq	_hweight32
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	$0, -44(%rbp)
	movq	_TEST_RESET@GOTPCREL(%rip), %rax
	movq	%r14, %rdx
	testl	%r13d, (%rax)
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	je	LBB0_3
## %bb.1:
	movq	(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_intel_engine_reset
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	xorl	%edx, %edx
	movq	_TEST_RESET@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	cmoveq	%r14, %rdx
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
LBB0_3:
	leaq	-44(%rbp), %rcx
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	___read_slice_count
	movl	-44(%rbp), %esi
	leaq	L_.str.1(%rip), %r8
	leaq	L_.str.2(%rip), %r9
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	movl	%ebx, %ecx
	callq	___check_rpcs
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	testq	%r14, %r14
	je	LBB0_7
LBB0_6:
	movq	%r14, %rdi
	callq	_igt_spinner_end
LBB0_7:
	movq	_TEST_IDLE@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_11
## %bb.8:
	testl	%r15d, %r15d
	jne	LBB0_11
## %bb.9:
	movq	(%r12), %rax
	movl	(%rax), %edi
	movq	_MAX_SCHEDULE_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_i915_gem_wait_for_idle
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	leaq	-44(%rbp), %rcx
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	___read_slice_count
	movl	-44(%rbp), %esi
	leaq	L_.str.1(%rip), %r8
	leaq	L_.str.4(%rip), %r9
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	___check_rpcs
	movl	%eax, %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%r12), %rax
	movq	8(%rax), %rdi
	leaq	-44(%rbp), %rcx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	___read_slice_count
	movl	-44(%rbp), %esi
	leaq	L_.str.3(%rip), %r8
	leaq	L_.str.2(%rip), %r9
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	callq	___check_rpcs
	movl	%eax, %r15d
	testq	%r14, %r14
	jne	LBB0_6
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_TEST_RESET,4,2                 ## @TEST_RESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sseu"

L_.str.1:                               ## @.str.1
	.asciz	"Context"

L_.str.2:                               ## @.str.2
	.asciz	"!"

L_.str.3:                               ## @.str.3
	.asciz	"Kernel context"

	.comm	_TEST_IDLE,4,2                  ## @TEST_IDLE
	.comm	_MAX_SCHEDULE_TIMEOUT,4,2       ## @MAX_SCHEDULE_TIMEOUT
L_.str.4:                               ## @.str.4
	.asciz	" after idle!"

	.no_dead_strip	___sseu_finish
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __sseu_finish
___sseu_finish:                         ; @__sseu_finish
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x5
	mov	x19, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	ldr	x8, [x2]
	ldr	w0, [x8, #16]
	bl	_hweight32
	mov	x25, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x27, _TEST_RESET@GOTPAGE
Lloh1:
	ldr	x27, [x27, _TEST_RESET@GOTPAGEOFF]
	ldr	w8, [x27]
	mov	x2, x24
	tst	w8, w23
	b.eq	LBB0_3
; %bb.1:
	ldr	x0, [x22]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_intel_engine_reset
	mov	x26, x0
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w8, [x27]
	tst	w8, w23
	csel	x2, x24, xzr, eq
LBB0_3:
	add	x3, sp, #12
	mov	x0, x22
	mov	x1, x21
	bl	___read_slice_count
	mov	x2, x0
	ldr	w1, [sp, #12]
Lloh4:
	adrp	x4, l_.str.1@PAGE
Lloh5:
	add	x4, x4, l_.str.1@PAGEOFF
Lloh6:
	adrp	x5, l_.str.2@PAGE
Lloh7:
	add	x5, x5, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	bl	___check_rpcs
	mov	x26, x0
	cbz	w0, LBB0_10
LBB0_4:
	cbz	x24, LBB0_6
LBB0_5:
	mov	x0, x24
	bl	_igt_spinner_end
LBB0_6:
Lloh8:
	adrp	x8, _TEST_IDLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TEST_IDLE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	and	w8, w8, w23
	cmp	w8, #0
	ccmp	w26, #0, #0, ne
	b.ne	LBB0_9
; %bb.7:
	ldr	x8, [x22]
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _MAX_SCHEDULE_TIMEOUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAX_SCHEDULE_TIMEOUT@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_i915_gem_wait_for_idle
	mov	x26, x0
	cbnz	w0, LBB0_9
; %bb.8:
	add	x3, sp, #12
	mov	x0, x22
	mov	x1, x21
	mov	x2, #0
	bl	___read_slice_count
	mov	x2, x0
	ldr	w1, [sp, #12]
Lloh14:
	adrp	x4, l_.str.1@PAGE
Lloh15:
	add	x4, x4, l_.str.1@PAGEOFF
Lloh16:
	adrp	x5, l_.str.4@PAGE
Lloh17:
	add	x5, x5, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	bl	___check_rpcs
	mov	x26, x0
LBB0_9:
	mov	x0, x26
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_10:
	ldr	x8, [x22]
	ldr	x0, [x8, #8]
	add	x3, sp, #12
	mov	x1, x21
	mov	x2, #0
	bl	___read_slice_count
	mov	x2, x0
	ldr	w1, [sp, #12]
Lloh18:
	adrp	x4, l_.str.3@PAGE
Lloh19:
	add	x4, x4, l_.str.3@PAGEOFF
Lloh20:
	adrp	x5, l_.str.2@PAGE
Lloh21:
	add	x5, x5, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x3, x25
	bl	___check_rpcs
	mov	x26, x0
	cbnz	x24, LBB0_5
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_TEST_RESET,4,2                 ; @TEST_RESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sseu"

l_.str.1:                               ; @.str.1
	.asciz	"Context"

l_.str.2:                               ; @.str.2
	.asciz	"!"

l_.str.3:                               ; @.str.3
	.asciz	"Kernel context"

	.comm	_TEST_IDLE,4,2                  ; @TEST_IDLE
	.comm	_MAX_SCHEDULE_TIMEOUT,4,2       ; @MAX_SCHEDULE_TIMEOUT
l_.str.4:                               ; @.str.4
	.asciz	" after idle!"

	.no_dead_strip	___sseu_finish
.subsections_via_symbols
