	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igt_gpu_fill_dw                ## -- Begin function igt_gpu_fill_dw
	.p2align	4, 0x90
_igt_gpu_fill_dw:                       ## @igt_gpu_fill_dw
	.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	%rdi, %r14
	movslq	(%rsi), %r13
	testq	%r13, %r13
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%ecx, %r15d
	movq	%r8, %rbx
	movl	%r9d, %r12d
	jne	LBB0_2
## %bb.1:
	movq	8(%rdx), %rax
	movq	(%rax), %r13
LBB0_2:
	movq	(%r14), %rax
	xorl	%edi, %edi
	cmpq	(%r13), %rax
	setg	%dil
	callq	_GEM_BUG_ON
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_intel_engine_can_store_dword
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_GEM_BUG_ON
	movq	%r14, %rdi
	callq	_i915_vma_is_pinned
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_GEM_BUG_ON
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	movl	%r12d, %ecx
	callq	_igt_emit_store_dw
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.19:
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_igt_request_alloc
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_6:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	8(%r13), %edi
	callq	_INTEL_GEN
	xorl	%ecx, %ecx
	cmpl	$6, %eax
	jge	LBB0_8
## %bb.7:
	movq	_I915_DISPATCH_SECURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_8:
	movl	12(%r12), %edx
	movl	16(%r12), %esi
	movq	%r14, %rdi
	callq	*(%r15)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.9:
	movq	%r12, %rdi
	callq	_i915_vma_lock
	movl	8(%r12), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_i915_request_await_object
	movl	%eax, %ebx
	movq	%r12, %rdi
	testl	%eax, %eax
	je	LBB0_10
LBB0_13:
	callq	_i915_vma_unlock
	jmp	LBB0_14
LBB0_10:
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_i915_vma_move_to_active
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_i915_vma_unlock
	testl	%ebx, %ebx
	je	LBB0_11
LBB0_14:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_i915_request_skip
LBB0_15:
	movq	%r14, %rdi
	callq	_i915_request_add
LBB0_5:
	movq	%r12, %rdi
	callq	_i915_vma_unpin
	movq	%r12, %rdi
	callq	_i915_vma_put
LBB0_18:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_i915_vma_lock
	movl	8(%r15), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_i915_request_await_object
	testl	%eax, %eax
	je	LBB0_16
## %bb.12:
	movl	%eax, %ebx
	movq	%r15, %rdi
	jmp	LBB0_13
LBB0_16:
	movq	_EXEC_OBJECT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_i915_vma_move_to_active
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_i915_vma_unlock
	testl	%ebx, %ebx
	jne	LBB0_14
## %bb.17:
	movq	%r14, %rdi
	callq	_i915_request_add
	movq	%r12, %rdi
	callq	_i915_vma_unpin
	movq	%r12, %rdi
	callq	_i915_vma_close
	movq	%r12, %rdi
	callq	_i915_vma_put
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_DISPATCH_SECURE,4,2       ## @I915_DISPATCH_SECURE
	.comm	_EXEC_OBJECT_WRITE,4,2          ## @EXEC_OBJECT_WRITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igt_gpu_fill_dw                ; -- Begin function igt_gpu_fill_dw
	.p2align	2
_igt_gpu_fill_dw:                       ; @igt_gpu_fill_dw
	.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, x5
	mov	x23, x4
	mov	x24, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	ldrsw	x25, [x1]
	cbnz	w25, LBB0_2
; %bb.1:
	ldr	x8, [x22, #8]
	ldr	x25, [x8]
LBB0_2:
	ldr	x8, [x20]
	ldr	x9, [x25]
	cmp	x8, x9
	cset	w0, gt
	bl	_GEM_BUG_ON
	mov	x0, x22
	bl	_intel_engine_can_store_dword
	cmp	w0, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
	mov	x0, x20
	bl	_i915_vma_is_pinned
	cmp	w0, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	mov	x3, x19
	bl	_igt_emit_store_dw
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_4:
	mov	x0, x21
	mov	x1, x22
	bl	_igt_request_alloc
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_12
LBB0_6:
	ldr	w0, [x25, #8]
	bl	_INTEL_GEN
Lloh0:
	adrp	x8, _I915_DISPATCH_SECURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I915_DISPATCH_SECURE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, #6
	csel	w3, w8, wzr, lt
	ldr	x8, [x22]
	ldp	w2, w1, [x19, #12]
	mov	x0, x21
	blr	x8
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.7:
	mov	x0, x19
	bl	_i915_vma_lock
	ldr	w1, [x19, #8]
	mov	x0, x21
	mov	w2, #0
	bl	_i915_request_await_object
	mov	x22, x0
	mov	x0, x19
	cbz	w22, LBB0_9
LBB0_8:
	bl	_i915_vma_unlock
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_i915_vma_move_to_active
	mov	x22, x0
	mov	x0, x19
	bl	_i915_vma_unlock
	cbz	w22, LBB0_14
LBB0_10:
	mov	x0, x21
	mov	x1, x22
	bl	_i915_request_skip
LBB0_11:
	mov	x0, x21
	bl	_i915_request_add
LBB0_12:
	mov	x0, x19
	bl	_i915_vma_unpin
LBB0_13:
	mov	x0, x19
	bl	_i915_vma_put
	mov	x0, x22
	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_14:
	mov	x0, x20
	bl	_i915_vma_lock
	ldr	w1, [x20, #8]
	mov	x0, x21
	mov	w2, #1
	bl	_i915_request_await_object
	cbz	w0, LBB0_16
; %bb.15:
	mov	x22, x0
	mov	x0, x20
	b	LBB0_8
LBB0_16:
Lloh3:
	adrp	x8, _EXEC_OBJECT_WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EXEC_OBJECT_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_i915_vma_move_to_active
	mov	x22, x0
	mov	x0, x20
	bl	_i915_vma_unlock
	cbnz	w22, LBB0_10
; %bb.17:
	mov	x0, x21
	bl	_i915_request_add
	mov	x0, x19
	bl	_i915_vma_unpin
	mov	x0, x19
	bl	_i915_vma_close
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_DISPATCH_SECURE,4,2       ; @I915_DISPATCH_SECURE
	.comm	_EXEC_OBJECT_WRITE,4,2          ; @EXEC_OBJECT_WRITE
.subsections_via_symbols
