	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpu_fill
_gpu_fill:                              ## @gpu_fill
	.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
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movslq	(%rsi), %rbx
	testq	%rbx, %rbx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_2
## %bb.1:
	movq	(%r12), %rax
	movq	(%rax), %rbx
LBB0_2:
	movq	(%r14), %rax
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	setg	%dil
	callq	_GEM_BUG_ON
	movq	%r12, %rdi
	callq	_intel_engine_can_store_dword
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_GEM_BUG_ON
	movq	%r14, %rdi
	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.7:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movq	%r14, %rdi
	callq	_i915_gem_object_lock
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_i915_gem_object_set_to_gtt_domain
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_i915_gem_object_unlock
	testl	%ebx, %ebx
	jne	LBB0_6
## %bb.4:
	movq	_PIN_HIGH@GOTPCREL(%rip), %rax
	movq	_PIN_USER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_i915_vma_pin
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_real_page_count
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	imull	%edx, %eax
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	leal	(,%rdx,4), %ebx
	orl	%eax, %ebx
	movq	%r14, %rdi
	callq	_real_page_count
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	movq	-48(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_igt_gpu_fill_dw
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_i915_vma_unpin
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PIN_HIGH,4,2                   ## @PIN_HIGH
	.comm	_PIN_USER,4,2                   ## @PIN_USER
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.no_dead_strip	_gpu_fill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpu_fill
_gpu_fill:                              ; @gpu_fill
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldrsw	x23, [x1]
	cbnz	w23, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	ldr	x23, [x8]
LBB0_2:
	ldr	x8, [x22]
	ldr	x9, [x23]
	cmp	x8, x9
	cset	w0, gt
	bl	_GEM_BUG_ON
	mov	x0, x20
	bl	_intel_engine_can_store_dword
	cmp	w0, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
	mov	x0, x22
	mov	x1, x23
	mov	x2, #0
	bl	_i915_vma_instance
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_4:
	mov	x0, x22
	bl	_i915_gem_object_lock
	mov	x0, x22
	mov	w1, #1
	bl	_i915_gem_object_set_to_gtt_domain
	mov	x24, x0
	mov	x0, x22
	bl	_i915_gem_object_unlock
	cbnz	w24, LBB0_6
; %bb.5:
Lloh0:
	adrp	x8, _PIN_HIGH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PIN_HIGH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PIN_USER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PIN_USER@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x23
	mov	w1, #0
	mov	w2, #0
	bl	_i915_vma_pin
	mov	x24, x0
	cbz	w0, LBB0_8
LBB0_6:
	mov	x0, x24
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x22
	bl	_real_page_count
	mul	w8, w0, w19
Lloh6:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	orr	w24, w8, w19, lsl #2
	mov	x0, x22
	bl	_real_page_count
	mov	x4, x0
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	mov	x3, x24
	mov	x5, x19
	bl	_igt_gpu_fill_dw
	mov	x19, x0
	mov	x0, x23
	bl	_i915_vma_unpin
	mov	x0, x19
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PIN_HIGH,4,2                   ; @PIN_HIGH
	.comm	_PIN_USER,4,2                   ; @PIN_USER
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.no_dead_strip	_gpu_fill
.subsections_via_symbols
