	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __igt_ctx_sseu
___igt_ctx_sseu:                        ## @__igt_ctx_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	_RCS0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r14
	callq	_INTEL_GEN
	xorl	%ebx, %ebx
	cmpl	$9, %eax
	jl	LBB0_26
## %bb.1:
	testq	%r14, %r14
	je	LBB0_26
## %bb.2:
	movq	%r15, %rdi
	callq	_RUNTIME_INFO
	cmpl	$0, (%rax)
	je	LBB0_26
## %bb.3:
	movl	(%r14), %edi
	callq	_hweight32
	cmpl	$2, %eax
	jge	LBB0_4
LBB0_26:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	4(%r14), %edi
	callq	_hweight32
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	shrl	%ecx
	movl	$-1, %r12d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r12d
	movl	(%r14), %edi
	callq	_hweight32
	movq	%r13, %rbx
	movl	%eax, %r13d
	movl	$1, %edi
	callq	_hweight32
	leaq	L_.str(%rip), %rdi
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	callq	_pr_info
	movq	%r15, %rdi
	callq	_mock_file
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.27:
	movq	%r13, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_5:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	_TEST_RESET@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_igt_global_reset_lock
LBB0_7:
	leaq	4(%r15), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rsi
	callq	_live_context
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.8:
	movq	%r13, %rdi
	jmp	LBB0_9
LBB0_10:
	movq	%r13, %rdi
	callq	_i915_gem_context_clear_bannable
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i915_gem_object_create_internal
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
LBB0_9:
	callq	_PTR_ERR
	movl	%eax, %r12d
	xorl	%ebx, %ebx
	movq	-72(%rbp), %r13                 ## 8-byte Reload
LBB0_22:
	movq	_TEST_RESET@GOTPCREL(%rip), %r14
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, (%r14)
	je	LBB0_24
## %bb.23:
	movq	%r15, %rdi
	callq	_igt_global_reset_unlock
LBB0_24:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_mock_file_free
	testl	%r12d, %r12d
	je	LBB0_26
## %bb.25:
	leaq	L_.str.1(%rip), %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_pr_err
	movl	%r12d, %ebx
	jmp	LBB0_26
LBB0_12:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	_RCS0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_i915_gem_context_get_engine
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %r12d
	xorl	%ebx, %ebx
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_14:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_intel_context_pin
	movl	%eax, %r12d
	testl	%eax, %eax
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	$0, %ebx
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_20
## %bb.15:
	movq	(%r14), %r8
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	%rdi, %r12
	movl	%ebx, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	___sseu_test
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.16:
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	notl	%r8d
	shlq	$32, %r8
	orq	$1, %r8
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	callq	___sseu_test
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.17:
	movq	(%r14), %r8
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	___sseu_test
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.18:
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	callq	___sseu_test
	movl	%eax, %r13d
LBB0_19:
	movq	_I915_WAIT_LOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_igt_flush_test
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	subl	(%rcx), %r12d
	testq	%rax, %rax
	cmovel	%r13d, %r12d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_intel_context_unpin
	xorl	%ebx, %ebx
	movq	-72(%rbp), %r13                 ## 8-byte Reload
LBB0_20:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_intel_context_put
LBB0_21:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_i915_gem_object_put
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_RCS0,8,3                       ## @RCS0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SSEU subtest '%s', flags=%x, def_slices=%u, pg_slices=%u\n"

	.comm	_TEST_RESET,4,2                 ## @TEST_RESET
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_I915_WAIT_LOCKED,4,2           ## @I915_WAIT_LOCKED
	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"%s: Failed with %d!\n"

	.no_dead_strip	___igt_ctx_sseu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __igt_ctx_sseu
___igt_ctx_sseu:                        ; @__igt_ctx_sseu
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x28, _RCS0@GOTPAGE
Lloh1:
	ldr	x28, [x28, _RCS0@GOTPAGEOFF]
	ldr	x9, [x28]
	ldr	x27, [x8, x9, lsl #3]
	bl	_INTEL_GEN
	mov	w26, #0
	cmp	w0, #9
	b.lt	LBB0_5
; %bb.1:
	cbz	x27, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_RUNTIME_INFO
	ldr	w8, [x0]
	cbz	w8, LBB0_4
; %bb.3:
	ldr	w0, [x27]
	bl	_hweight32
	cmp	w0, #2
	b.ge	LBB0_6
LBB0_4:
	mov	w26, #0
LBB0_5:
	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_6:
	ldr	w0, [x27, #4]
	bl	_hweight32
	cmp	w0, #0
	cinc	w24, w0, lt
	ldr	w0, [x27]
	bl	_hweight32
	mov	x22, x0
	mov	w0, #1
	bl	_hweight32
	mov	x4, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	bl	_pr_info
	mov	x0, x20
	bl	_mock_file
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x22
	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
	b	_PTR_ERR
LBB0_8:
Lloh4:
	adrp	x8, _TEST_RESET@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TEST_RESET@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_igt_global_reset_lock
LBB0_10:
	add	x23, x20, #4
	mov	x0, x23
	bl	_mutex_lock
	mov	x0, x20
	mov	x1, x22
	bl	_live_context
	mov	x25, x0
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x25
	b	LBB0_14
LBB0_12:
	mov	x0, x25
	bl	_i915_gem_context_clear_bannable
Lloh7:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i915_gem_object_create_internal
	mov	x26, x0
	bl	_IS_ERR
	cbz	x0, LBB0_19
; %bb.13:
	mov	x0, x26
LBB0_14:
	bl	_PTR_ERR
	mov	x26, x0
LBB0_15:
Lloh10:
	adrp	x24, _TEST_RESET@GOTPAGE
Lloh11:
	ldr	x24, [x24, _TEST_RESET@GOTPAGEOFF]
	mov	x0, x23
	bl	_mutex_unlock
Lloh12:
	ldr	w8, [x24]
	tst	w8, w21
	b.eq	LBB0_17
; %bb.16:
	mov	x0, x20
	bl	_igt_global_reset_unlock
LBB0_17:
	mov	x0, x20
	mov	x1, x22
	bl	_mock_file_free
	cbz	w26, LBB0_5
; %bb.18:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	mov	x2, x26
	bl	_pr_err
	b	LBB0_5
LBB0_19:
	str	x26, [sp, #8]                   ; 8-byte Folded Spill
	ldr	x1, [x28]
	mov	x0, x25
	bl	_i915_gem_context_get_engine
	mov	x25, x0
	bl	_IS_ERR
	cbz	x0, LBB0_21
; %bb.20:
	mov	x0, x25
	bl	_PTR_ERR
	mov	x26, x0
	b	LBB0_28
LBB0_21:
	mov	x0, x25
	bl	_intel_context_pin
	mov	x26, x0
	cbnz	w0, LBB0_27
; %bb.22:
	ldr	x4, [x27]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x25
	ldr	x28, [sp, #8]                   ; 8-byte Folded Reload
	mov	x3, x28
	bl	___sseu_test
	mov	x26, x0
	cbnz	w0, LBB0_26
; %bb.23:
	asr	w8, w24, #1
	mov	w9, #-1
	lsl	w8, w9, w8
	mvn	w8, w8
	mov	w24, #1
	bfi	x24, x8, #32, #32
	mov	x0, x19
	mov	x1, x21
	mov	x2, x25
	mov	x3, x28
	mov	x4, x24
	bl	___sseu_test
	mov	x26, x0
	cbnz	w0, LBB0_26
; %bb.24:
	ldr	x4, [x27]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x25
	mov	x3, x28
	bl	___sseu_test
	mov	x26, x0
	cbnz	w0, LBB0_26
; %bb.25:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x25
	mov	x3, x28
	mov	x4, x24
	bl	___sseu_test
	mov	x26, x0
LBB0_26:
Lloh15:
	adrp	x8, _I915_WAIT_LOCKED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _I915_WAIT_LOCKED@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_igt_flush_test
Lloh18:
	adrp	x8, _EIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w26, w26, w8, eq
	mov	x0, x25
	bl	_intel_context_unpin
LBB0_27:
	mov	x0, x25
	bl	_intel_context_put
LBB0_28:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_i915_gem_object_put
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_RCS0,8,3                       ; @RCS0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SSEU subtest '%s', flags=%x, def_slices=%u, pg_slices=%u\n"

	.comm	_TEST_RESET,4,2                 ; @TEST_RESET
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_I915_WAIT_LOCKED,4,2           ; @I915_WAIT_LOCKED
	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"%s: Failed with %d!\n"

	.no_dead_strip	___igt_ctx_sseu
.subsections_via_symbols
