	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_add_request               ## -- Begin function i915_add_request
	.p2align	4, 0x90
_i915_add_request:                      ## @i915_add_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
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	24(%rdi), %rax
	movq	(%rax), %r15
	callq	_intel_ring_flush_all_caches
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r15
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_intel_ring_get_tail
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	*(%r13)
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_14
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_5:
	movq	%r13, %rdi
	callq	_intel_ring_get_seqno
	movl	%eax, (%r15)
	movq	%r13, 40(%r15)
	movl	%r14d, 32(%r15)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r15)
	leaq	16(%r13), %rbx
	movq	%rbx, %rdi
	callq	_list_empty
	movl	%eax, %r14d
	leaq	16(%r15), %rdi
	movq	%rbx, %rsi
	callq	_list_add_tail
	movq	$0, 8(%r15)
	testq	%r12, %r12
	je	LBB0_7
## %bb.6:
	movq	(%r12), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	%rbx, 8(%r15)
	movq	%r15, %rdi
	addq	$4, %rdi
	leaq	4(%rbx), %rsi
	callq	_list_add_tail
	movq	%rbx, %rdi
	callq	_spin_unlock
LBB0_7:
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_trace_i915_gem_request_add
	movq	$0, 8(%r13)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 8(%rax)
	jne	LBB0_12
## %bb.8:
	movq	_i915_enable_hangcheck@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	16(%rax), %rbx
	movq	_DRM_I915_HANGCHECK_JIFFIES@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_jiffies@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_round_jiffies_up
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_mod_timer
LBB0_10:
	testl	%r14d, %r14d
	je	LBB0_12
## %bb.11:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	12(%rbx), %r12d
	leaq	4(%rbx), %r14
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_round_jiffies_up_relative
	movl	%r12d, %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_queue_delayed_work
	movl	(%rbx), %edi
	callq	_intel_mark_busy
LBB0_12:
	xorl	%ebx, %ebx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.13:
	movl	(%r15), %eax
	movl	%eax, (%rcx)
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_i915_enable_hangcheck,8,3      ## @i915_enable_hangcheck
	.comm	_DRM_I915_HANGCHECK_JIFFIES,8,3 ## @DRM_I915_HANGCHECK_JIFFIES
	.comm	_HZ,4,2                         ## @HZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_add_request               ; -- Begin function i915_add_request
	.p2align	2
_i915_add_request:                      ; @i915_add_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	x19, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x8, [x0, #24]
	ldr	x25, [x8]
	bl	_intel_ring_flush_all_caches
	mov	x23, x0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x23
	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
LBB0_2:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kmalloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
	mov	x0, x21
	bl	_intel_ring_get_tail
	mov	x24, x0
	ldr	x8, [x21]
	mov	x0, x21
	blr	x8
	cbz	w0, LBB0_6
; %bb.4:
	mov	x23, x0
	mov	x0, x20
	bl	_kfree
	b	LBB0_1
LBB0_5:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_1
LBB0_6:
	mov	x0, x21
	bl	_intel_ring_get_seqno
	str	w0, [x20]
	str	x21, [x20, #40]
	str	w24, [x20, #32]
Lloh6:
	adrp	x26, _jiffies@GOTPAGE
Lloh7:
	ldr	x26, [x26, _jiffies@GOTPAGEOFF]
	ldr	x8, [x26]
	str	x8, [x20, #24]
	add	x24, x21, #16
	mov	x0, x24
	bl	_list_empty
	mov	x23, x0
	add	x0, x20, #16
	mov	x1, x24
	bl	_list_add_tail
	str	xzr, [x20, #8]
	cbz	x22, LBB0_8
; %bb.7:
	ldr	x22, [x22]
	mov	x0, x22
	bl	_spin_lock
	str	x22, [x20, #8]
	add	x0, x20, #4
	add	x1, x22, #4
	bl	_list_add_tail
	mov	x0, x22
	bl	_spin_unlock
LBB0_8:
	ldr	w1, [x20]
	mov	x0, x21
	bl	_trace_i915_gem_request_add
	str	xzr, [x21, #8]
	ldr	w8, [x25, #8]
	cbnz	w8, LBB0_13
; %bb.9:
Lloh8:
	adrp	x8, _i915_enable_hangcheck@GOTPAGE
Lloh9:
	ldr	x8, [x8, _i915_enable_hangcheck@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.10:
	add	x21, x25, #16
	ldr	x8, [x26]
Lloh11:
	adrp	x9, _DRM_I915_HANGCHECK_JIFFIES@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DRM_I915_HANGCHECK_JIFFIES@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_round_jiffies_up
	mov	x1, x0
	mov	x0, x21
	bl	_mod_timer
LBB0_11:
	cbz	w23, LBB0_13
; %bb.12:
	ldr	w21, [x25, #12]
	add	x22, x25, #4
Lloh14:
	adrp	x8, _HZ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_round_jiffies_up_relative
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_queue_delayed_work
	ldr	w0, [x25]
	bl	_intel_mark_busy
LBB0_13:
	mov	w23, #0
	cbz	x19, LBB0_1
; %bb.14:
	ldr	w8, [x20]
	str	w8, [x19]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_i915_enable_hangcheck,8,3      ; @i915_enable_hangcheck
	.comm	_DRM_I915_HANGCHECK_JIFFIES,8,3 ; @DRM_I915_HANGCHECK_JIFFIES
	.comm	_HZ,4,2                         ; @HZ
.subsections_via_symbols
