	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igt_spinner_create_request     ## -- Begin function igt_spinner_create_request
	.p2align	4, 0x90
_igt_spinner_create_request:            ## @igt_spinner_create_request
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rsi), %rax
	movq	8(%rsi), %r14
	movq	(%rdi), %rcx
	xorl	%edi, %edi
	cmpq	(%rax), %rcx
	setne	%dil
	callq	_GEM_BUG_ON
	movl	20(%r15), %edi
	movq	(%rbx), %rsi
	xorl	%edx, %edx
	callq	_i915_vma_instance
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%r13, %rdi
	jmp	LBB0_2
LBB0_3:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	16(%r15), %edi
	movq	(%rbx), %rsi
	xorl	%edx, %edx
	callq	_i915_vma_instance
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_CAST                       ## TAILCALL
LBB0_5:
	movq	_PIN_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_i915_vma_pin
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	%eax, %edi
	jmp	LBB0_7
LBB0_8:
	movq	_PIN_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_i915_vma_pin
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	%r13, %rdi
	callq	_i915_vma_unpin
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_7
LBB0_10:
	movq	%rbx, %rdi
	callq	_intel_context_create_request
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movq	%rbx, %r8
	movl	%eax, %ebx
	jmp	LBB0_19
LBB0_12:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_move_to_active
	movq	%rbx, %r8
	testl	%eax, %eax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_18
## %bb.13:
	movq	%r14, %rdi
	movq	%r8, %rsi
	xorl	%edx, %edx
	callq	_move_to_active
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	testl	%eax, %eax
	jne	LBB0_18
## %bb.14:
	movq	8(%r15), %r15
	movq	_MI_STORE_DWORD_IMM_GEN4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	%r14, %rdi
	movq	%r8, %rsi
	callq	_hws_address
	movl	%eax, %edi
	callq	_lower_32_bits
	movl	%eax, 4(%r15)
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_hws_address
	movl	%eax, %edi
	callq	_upper_32_bits
	movl	%eax, 8(%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %eax
	movl	%eax, 12(%r15)
	movl	%r12d, 16(%r15)
	movq	_MI_BATCH_BUFFER_START@GOTPCREL(%rip), %rax
	movl	$257, %ecx                      ## imm = 0x101
	orl	(%rax), %ecx
	movl	%ecx, 20(%r15)
	movl	(%r13), %edi
	callq	_lower_32_bits
	movl	%eax, 24(%r15)
	movl	(%r13), %edi
	callq	_upper_32_bits
	movl	%eax, 28(%r15)
	movq	_MI_BATCH_BUFFER_END@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	16(%r15), %edi
	callq	_intel_gt_chipset_flush
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	movq	8(%r8), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_17
## %bb.16:
	movq	%r8, %rdi
	callq	*%rax
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	testl	%eax, %eax
	jne	LBB0_18
LBB0_17:
	movl	(%r13), %esi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	movq	%r8, %rdi
	xorl	%ecx, %ecx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	callq	*8(%rax)
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_19
LBB0_18:
	movq	%r8, %rdi
	movl	%eax, %esi
	movl	%eax, %ebx
	callq	_i915_request_skip
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_i915_request_add
	movq	-48(%rbp), %r8                  ## 8-byte Reload
LBB0_19:
	movq	%r8, %r15
	movq	%r14, %rdi
	callq	_i915_vma_unpin
	movq	%r13, %rdi
	callq	_i915_vma_unpin
	testl	%ebx, %ebx
	je	LBB0_21
## %bb.20:
	movl	%ebx, %edi
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_21:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PIN_USER,4,2                   ## @PIN_USER
	.comm	_MI_STORE_DWORD_IMM_GEN4,4,2    ## @MI_STORE_DWORD_IMM_GEN4
	.comm	_MI_BATCH_BUFFER_START,4,2      ## @MI_BATCH_BUFFER_START
	.comm	_MI_BATCH_BUFFER_END,4,2        ## @MI_BATCH_BUFFER_END
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igt_spinner_create_request     ; -- Begin function igt_spinner_create_request
	.p2align	2
_igt_spinner_create_request:            ; @igt_spinner_create_request
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x21, x1
	mov	x23, x0
	ldr	x8, [x0]
	ldp	x9, x25, [x1]
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_GEM_BUG_ON
	ldr	w0, [x23, #20]
	ldr	x1, [x21]
	mov	x2, #0
	bl	_i915_vma_instance
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	b	LBB0_4
LBB0_2:
	ldr	w0, [x23, #16]
	ldr	x1, [x21]
	mov	x2, #0
	bl	_i915_vma_instance
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x20
LBB0_4:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ERR_CAST
LBB0_5:
Lloh0:
	adrp	x24, _PIN_USER@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PIN_USER@GOTPAGEOFF]
	ldr	w3, [x24]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_i915_vma_pin
	cbnz	w0, LBB0_19
; %bb.6:
	ldr	w3, [x24]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	bl	_i915_vma_pin
	cbz	w0, LBB0_8
; %bb.7:
	mov	x24, x0
	mov	x0, x19
	bl	_i915_vma_unpin
	b	LBB0_18
LBB0_8:
	mov	x0, x21
	bl	_intel_context_create_request
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x24, x0
	b	LBB0_17
LBB0_10:
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_move_to_active
	mov	x24, x0
	cbnz	w0, LBB0_16
; %bb.11:
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	bl	_move_to_active
	mov	x24, x0
	cbnz	w0, LBB0_16
; %bb.12:
	ldr	x23, [x23, #8]
Lloh2:
	adrp	x8, _MI_STORE_DWORD_IMM_GEN4@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MI_STORE_DWORD_IMM_GEN4@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x23]
	mov	x0, x20
	mov	x1, x21
	bl	_hws_address
	bl	_lower_32_bits
	str	w0, [x23, #4]
	mov	x0, x20
	mov	x1, x21
	bl	_hws_address
	bl	_upper_32_bits
	str	w0, [x23, #8]
	ldr	w8, [x21, #16]
Lloh5:
	adrp	x9, _MI_BATCH_BUFFER_START@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MI_BATCH_BUFFER_START@GOTPAGEOFF]
	stp	w8, w22, [x23, #12]
Lloh7:
	ldr	w8, [x9]
	mov	w9, #257
	orr	w8, w8, w9
	str	w8, [x23, #20]
	ldr	w0, [x19]
	bl	_lower_32_bits
	str	w0, [x23, #24]
	ldr	w0, [x19]
	bl	_upper_32_bits
Lloh8:
	adrp	x8, _MI_BATCH_BUFFER_END@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MI_BATCH_BUFFER_END@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	stp	w0, w8, [x23, #28]
	ldr	w0, [x25, #16]
	bl	_intel_gt_chipset_flush
	ldr	x8, [x25]
	cbz	x8, LBB0_15
; %bb.13:
	ldr	x9, [x21, #8]
	ldr	x9, [x9]
	cbz	x9, LBB0_15
; %bb.14:
	mov	x0, x21
	blr	x8
	mov	x24, x0
	cbnz	w0, LBB0_16
LBB0_15:
	ldr	x8, [x25, #8]
	ldr	w1, [x19]
Lloh11:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x9]
	mov	x0, x21
	mov	w3, #0
	blr	x8
	mov	x24, x0
	cbz	w0, LBB0_17
LBB0_16:
	mov	x0, x21
	mov	x1, x24
	bl	_i915_request_skip
	mov	x0, x21
	bl	_i915_request_add
LBB0_17:
	mov	x0, x20
	bl	_i915_vma_unpin
	mov	x0, x19
	bl	_i915_vma_unpin
	cbz	w24, LBB0_20
LBB0_18:
	mov	x0, x24
LBB0_19:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_20:
	mov	x0, x21
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PIN_USER,4,2                   ; @PIN_USER
	.comm	_MI_STORE_DWORD_IMM_GEN4,4,2    ; @MI_STORE_DWORD_IMM_GEN4
	.comm	_MI_BATCH_BUFFER_START,4,2      ; @MI_BATCH_BUFFER_START
	.comm	_MI_BATCH_BUFFER_END,4,2        ; @MI_BATCH_BUFFER_END
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
.subsections_via_symbols
