	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_request_wait              ## -- Begin function i915_request_wait
	.p2align	4, 0x90
_i915_request_wait:                     ## @i915_request_wait
	.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	%rdx, %r13
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_I915_WAIT_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%esi, %eax
	jne	LBB0_1
## %bb.2:
	movq	_TASK_UNINTERRUPTIBLE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r12d
	xorl	%eax, %eax
	callq	_might_sleep
	movq	%r13, %rdi
	shrq	$63, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_GEM_BUG_ON
	leaq	8(%r14), %r15
	movq	%r15, %rdi
	callq	_dma_fence_is_signaled
	testq	%rax, %rax
	jne	LBB0_11
## %bb.4:
	testq	%r13, %r13
	je	LBB0_5
## %bb.6:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_trace_i915_request_wait_begin
	movq	(%r14), %rax
	movq	(%rax), %rdi
	movq	__THIS_IP_@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_mutex_acquire
	movq	_CONFIG_DRM_I915_SPIN_REQUEST@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.7:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	___i915_spin_request
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movq	%r15, %rdi
	callq	_dma_fence_signal
	jmp	LBB0_9
LBB0_12:
	movq	_I915_WAIT_PRIORITY@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_17
## %bb.13:
	movq	%r14, %rdi
	callq	_i915_request_started
	testl	%eax, %eax
	jne	LBB0_16
## %bb.14:
	movl	12(%r14), %edi
	callq	_INTEL_GEN
	cmpl	$6, %eax
	jl	LBB0_16
## %bb.15:
	movq	%r14, %rdi
	callq	_gen6_rps_boost
LBB0_16:
	movq	_I915_PRIORITY_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_i915_schedule_bump_priority
LBB0_17:
	movq	_current@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, -44(%rbp)
	movq	_request_wait_wake@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_dma_fence_add_callback
	testq	%rax, %rax
	je	LBB0_18
LBB0_9:
	movq	__THIS_IP_@GOTPCREL(%rip), %rbx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	(%rbx), %esi
	movl	%r12d, %edi
	callq	_signal_pending_state
	testq	%rax, %rax
	jne	LBB0_23
## %bb.25:                              ##   in Loop: Header=BB0_18 Depth=1
	testq	%r13, %r13
	je	LBB0_26
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%r13, %rdi
	callq	_io_schedule_timeout
	movq	%rax, %r13
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	callq	_set_current_state
	movq	%r14, %rdi
	callq	_i915_request_completed
	testq	%rax, %rax
	je	LBB0_22
## %bb.19:
	movq	%r15, %rdi
	callq	_dma_fence_signal
	jmp	LBB0_20
LBB0_5:
	movq	_ETIME@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subq	(%rax), %r13
	jmp	LBB0_11
LBB0_23:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_26:
	movq	_ETIME@GOTPCREL(%rip), %rax
LBB0_24:
	xorl	%r13d, %r13d
	subq	(%rax), %r13
LBB0_20:
	movq	__THIS_IP_@GOTPCREL(%rip), %rbx
	movq	_TASK_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___set_current_state
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_dma_fence_remove_callback
LBB0_10:
	movq	(%r14), %rax
	movq	(%rax), %rdi
	movl	(%rbx), %edx
	xorl	%esi, %esi
	callq	_mutex_release
	movq	%r14, %rdi
	callq	_trace_i915_request_wait_end
LBB0_11:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_WAIT_INTERRUPTIBLE,4,2    ## @I915_WAIT_INTERRUPTIBLE
	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ## @TASK_UNINTERRUPTIBLE
	.comm	_ETIME,8,3                      ## @ETIME
	.comm	__THIS_IP_,4,2                  ## @_THIS_IP_
	.comm	_CONFIG_DRM_I915_SPIN_REQUEST,8,3 ## @CONFIG_DRM_I915_SPIN_REQUEST
	.comm	_I915_WAIT_PRIORITY,4,2         ## @I915_WAIT_PRIORITY
	.comm	_I915_PRIORITY_WAIT,4,2         ## @I915_PRIORITY_WAIT
	.comm	_current,4,2                    ## @current
	.comm	_request_wait_wake,4,2          ## @request_wait_wake
	.comm	_ERESTARTSYS,8,3                ## @ERESTARTSYS
	.comm	_TASK_RUNNING,4,2               ## @TASK_RUNNING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_request_wait              ; -- Begin function i915_request_wait
	.p2align	2
_i915_request_wait:                     ; @i915_request_wait
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _I915_WAIT_INTERRUPTIBLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I915_WAIT_INTERRUPTIBLE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x10, _TASK_UNINTERRUPTIBLE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _TASK_UNINTERRUPTIBLE@GOTPAGEOFF]
	tst	w8, w1
	csel	x8, x10, x9, eq
	ldr	w22, [x8]
	bl	_might_sleep
	lsr	x0, x19, #63
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_GEM_BUG_ON
	add	x21, x20, #8
	mov	x0, x21
	bl	_dma_fence_is_signaled
	cbnz	x0, LBB0_22
; %bb.1:
	cbz	x19, LBB0_16
; %bb.2:
	mov	x0, x20
	mov	x1, x23
	bl	_trace_i915_request_wait_begin
	ldr	x8, [x20]
	ldr	x0, [x8]
Lloh7:
	adrp	x24, __THIS_IP_@GOTPAGE
Lloh8:
	ldr	x24, [x24, __THIS_IP_@GOTPAGEOFF]
	ldr	w3, [x24]
	mov	w1, #0
	mov	w2, #0
	bl	_mutex_acquire
Lloh9:
	adrp	x8, _CONFIG_DRM_I915_SPIN_REQUEST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CONFIG_DRM_I915_SPIN_REQUEST@GOTPAGEOFF]
Lloh11:
	ldr	x2, [x8]
	cbz	x2, LBB0_5
; %bb.3:
	mov	x0, x20
	mov	x1, x22
	bl	___i915_spin_request
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x21
	bl	_dma_fence_signal
	b	LBB0_21
LBB0_5:
Lloh12:
	adrp	x8, _I915_WAIT_PRIORITY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _I915_WAIT_PRIORITY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_10
; %bb.6:
	mov	x0, x20
	bl	_i915_request_started
	cbnz	w0, LBB0_9
; %bb.7:
	ldr	w0, [x20, #12]
	bl	_INTEL_GEN
	cmp	w0, #6
	b.lt	LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_gen6_rps_boost
LBB0_9:
Lloh15:
	adrp	x8, _I915_PRIORITY_WAIT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _I915_PRIORITY_WAIT@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i915_schedule_bump_priority
LBB0_10:
Lloh18:
	adrp	x23, _current@GOTPAGE
Lloh19:
	ldr	x23, [x23, _current@GOTPAGEOFF]
	ldr	w8, [x23]
	str	w8, [sp, #12]
Lloh20:
	adrp	x8, _request_wait_wake@GOTPAGE
Lloh21:
	ldr	x8, [x8, _request_wait_wake@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x21
	bl	_dma_fence_add_callback
	cbnz	x0, LBB0_21
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w1, [x23]
	mov	x0, x22
	bl	_signal_pending_state
	cbnz	x0, LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_14 Depth=1
	cbz	x19, LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x19
	bl	_io_schedule_timeout
	mov	x19, x0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_set_current_state
	mov	x0, x20
	bl	_i915_request_completed
	cbz	x0, LBB0_11
; %bb.15:
	mov	x0, x21
	bl	_dma_fence_signal
	b	LBB0_20
LBB0_16:
Lloh23:
	adrp	x8, _ETIME@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ETIME@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_22
LBB0_17:
Lloh26:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:
Lloh28:
	adrp	x8, _ETIME@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ETIME@GOTPAGEOFF]
LBB0_19:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_20:
Lloh30:
	adrp	x8, _TASK_RUNNING@GOTPAGE
Lloh31:
	ldr	x8, [x8, _TASK_RUNNING@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	___set_current_state
	add	x1, sp, #8
	mov	x0, x21
	bl	_dma_fence_remove_callback
LBB0_21:
	ldr	x8, [x20]
	ldr	x0, [x8]
	ldr	w2, [x24]
	mov	w1, #0
	bl	_mutex_release
	mov	x0, x20
	bl	_trace_i915_request_wait_end
LBB0_22:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_WAIT_INTERRUPTIBLE,4,2    ; @I915_WAIT_INTERRUPTIBLE
	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ; @TASK_UNINTERRUPTIBLE
	.comm	_ETIME,8,3                      ; @ETIME
	.comm	__THIS_IP_,4,2                  ; @_THIS_IP_
	.comm	_CONFIG_DRM_I915_SPIN_REQUEST,8,3 ; @CONFIG_DRM_I915_SPIN_REQUEST
	.comm	_I915_WAIT_PRIORITY,4,2         ; @I915_WAIT_PRIORITY
	.comm	_I915_PRIORITY_WAIT,4,2         ; @I915_PRIORITY_WAIT
	.comm	_current,4,2                    ; @current
	.comm	_request_wait_wake,4,2          ; @request_wait_wake
	.comm	_ERESTARTSYS,8,3                ; @ERESTARTSYS
	.comm	_TASK_RUNNING,4,2               ; @TASK_RUNNING
.subsections_via_symbols
