	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __sseu_prepare
___sseu_prepare:                        ## @__sseu_prepare
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	$0, (%rcx)
	movq	_TEST_BUSY@GOTPCREL(%rip), %rax
	movq	_TEST_RESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%ebx, %ebx
	testl	%esi, %ecx
	je	LBB0_10
## %bb.1:
	movq	%rdx, %r12
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	(%r12), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_igt_spinner_init
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movq	(%r15), %rdi
	movq	_MI_NOOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_igt_spinner_create_request
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_PTR_ERR
	movl	%eax, %r13d
LBB0_8:
	movq	(%r15), %rdi
	callq	_igt_spinner_fini
LBB0_9:
	movq	%r15, %rdi
	callq	_fetch_and_zero
	movl	%eax, %edi
	callq	_kfree
	movl	%r13d, %ebx
	jmp	LBB0_10
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r12, %rdi
	callq	_i915_request_add
	movq	(%r15), %rdi
	movq	%r12, %rsi
	callq	_igt_wait_for_spinner
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_pr_err
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	movq	(%r15), %rdi
	callq	_igt_spinner_end
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_TEST_BUSY,4,2                  ## @TEST_BUSY
	.comm	_TEST_RESET,4,2                 ## @TEST_RESET
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MI_NOOP,4,2                    ## @MI_NOOP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Spinner failed to start!\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	___sseu_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __sseu_prepare
___sseu_prepare:                        ; @__sseu_prepare
	.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
	str	xzr, [x3]
Lloh0:
	adrp	x8, _TEST_BUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TEST_BUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _TEST_RESET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TEST_RESET@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w1
	b.eq	LBB0_9
; %bb.1:
	mov	x19, x3
	mov	x22, x2
	mov	x20, x0
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	str	x0, [x19]
	cbz	x0, LBB0_7
; %bb.2:
	ldr	x8, [x22]
	ldr	w1, [x8]
	bl	_igt_spinner_init
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.3:
	ldr	x0, [x19]
Lloh9:
	adrp	x8, _MI_NOOP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MI_NOOP@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_igt_spinner_create_request
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.4:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x21, x0
LBB0_5:
	ldr	x0, [x19]
	bl	_igt_spinner_fini
LBB0_6:
	mov	x0, x19
	bl	_fetch_and_zero
	bl	_kfree
	b	LBB0_10
LBB0_7:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_8:
	mov	x0, x21
	bl	_i915_request_add
	ldr	x0, [x19]
	mov	x1, x21
	bl	_igt_wait_for_spinner
	cbz	w0, LBB0_11
LBB0_9:
	mov	w21, #0
LBB0_10:
	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_11:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_pr_err
Lloh17:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w21, w8
	ldr	x0, [x19]
	bl	_igt_spinner_end
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_TEST_BUSY,4,2                  ; @TEST_BUSY
	.comm	_TEST_RESET,4,2                 ; @TEST_RESET
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MI_NOOP,4,2                    ; @MI_NOOP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Spinner failed to start!\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	___sseu_prepare
.subsections_via_symbols
