	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpu_fill
_cpu_fill:                              ## @cpu_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
	movl	%esi, %r13d
	movq	%rdi, %r14
	movl	16(%rdi), %edi
	callq	_to_i915
	movl	%eax, %edi
	callq	_HAS_LLC
	movl	%eax, %ebx
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_i915_gem_object_prepare_write
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_real_page_count
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	xorl	%r12d, %r12d
	movq	_DW_PER_PAGE@GOTPCREL(%rip), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_kunmap_atomic
	incl	%r12d
	movq	%r14, %rdi
	callq	_real_page_count
	cmpl	%eax, %r12d
	jae	LBB0_9
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_i915_gem_object_get_page
	movl	%eax, %edi
	callq	_kmap_atomic
	movq	%rax, %rbx
	cmpl	$0, (%r15)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r13d, (%rbx,%rax,4)
	incq	%rax
	movl	(%r15), %ecx
	cmpq	%rcx, %rax
	jb	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_drm_clflush_virt_range
	jmp	LBB0_8
LBB0_9:
	movq	%r14, %rdi
	callq	_i915_gem_object_finish_access
	movq	_I915_GEM_DOMAIN_GTT@GOTPCREL(%rip), %rax
	movq	_I915_GEM_DOMAIN_CPU@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r14)
	movq	$0, 8(%r14)
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DW_PER_PAGE,4,2                ## @DW_PER_PAGE
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_I915_GEM_DOMAIN_GTT,4,2        ## @I915_GEM_DOMAIN_GTT
	.comm	_I915_GEM_DOMAIN_CPU,4,2        ## @I915_GEM_DOMAIN_CPU
	.no_dead_strip	_cpu_fill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpu_fill
_cpu_fill:                              ; @cpu_fill
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_to_i915
	bl	_HAS_LLC
	mov	x21, x0
	add	x1, sp, #12
	mov	x0, x19
	bl	_i915_gem_object_prepare_write
	cbnz	w0, LBB0_10
; %bb.1:
	mov	x0, x19
	bl	_real_page_count
	cbz	w0, LBB0_9
; %bb.2:
	mov	w22, #0
Lloh0:
	adrp	x24, _DW_PER_PAGE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DW_PER_PAGE@GOTPAGEOFF]
Lloh2:
	adrp	x25, _PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _PAGE_SIZE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_kunmap_atomic
	add	w22, w22, #1
	mov	x0, x19
	bl	_real_page_count
	cmp	w22, w0
	b.hs	LBB0_9
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x0, x19
	mov	x1, x22
	bl	_i915_gem_object_get_page
	bl	_kmap_atomic
	mov	x23, x0
	ldr	w8, [x24]
	cbz	w8, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, #0
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	w20, [x23, x8, lsl #2]
	add	x8, x8, #1
	ldr	w9, [x24]
	cmp	x8, x9
	b.lo	LBB0_6
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w21, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x25]
	mov	x0, x23
	bl	_drm_clflush_virt_range
	b	LBB0_3
LBB0_9:
	mov	x0, x19
	bl	_i915_gem_object_finish_access
	mov	w0, #0
Lloh4:
	adrp	x8, _I915_GEM_DOMAIN_GTT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _I915_GEM_DOMAIN_GTT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _I915_GEM_DOMAIN_CPU@GOTPAGE
Lloh8:
	ldr	x9, [x9, _I915_GEM_DOMAIN_CPU@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
	str	xzr, [x19, #8]
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_DW_PER_PAGE,4,2                ; @DW_PER_PAGE
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_I915_GEM_DOMAIN_GTT,4,2        ; @I915_GEM_DOMAIN_GTT
	.comm	_I915_GEM_DOMAIN_CPU,4,2        ; @I915_GEM_DOMAIN_CPU
	.no_dead_strip	_cpu_fill
.subsections_via_symbols
