	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_schedule_fill_pages_blt ## -- Begin function i915_gem_schedule_fill_pages_blt
	.p2align	4, 0x90
_i915_gem_schedule_fill_pages_blt:      ## @i915_gem_schedule_fill_pages_blt
	.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	%r8d, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	(%rsi), %edi
	movq	%r14, %rsi
	callq	_create_sleeve
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r13
	movl	%r15d, 32(%rax)
	movq	%rbx, 24(%rax)
	movq	%r12, 16(%rax)
	leaq	12(%rax), %rdi
	movq	_clear_pages_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	8(%r13), %rdi
	movq	_clear_pages_signal_irq_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_init_irq_work
	movq	%r13, %r12
	addq	$4, %r12
	movq	_clear_pages_work_ops@GOTPCREL(%rip), %rsi
	movq	_fence_lock@GOTPCREL(%rip), %rdx
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_dma_fence_init
	movq	_clear_pages_work_notify@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_i915_sw_fence_init
	movq	%r14, %rdi
	callq	_i915_gem_object_lock
	movl	(%r14), %esi
	movq	_I915_FENCE_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_I915_FENCE_GFP@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r13, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_i915_sw_fence_await_reservation
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	(%r14), %edi
	movq	%r12, %rsi
	callq	_dma_resv_add_excl_fence
	jmp	LBB0_6
LBB0_2:
	movq	%rbx, %rdi
	callq	_destroy_sleeve
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_7
LBB0_4:
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_dma_fence_set_error
	movl	%ebx, %r15d
LBB0_6:
	movq	%r14, %rdi
	callq	_i915_gem_object_unlock
	movq	%r12, %rdi
	callq	_dma_fence_get
	movq	%r13, %rdi
	callq	_i915_sw_fence_commit
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_clear_pages_worker,4,2         ## @clear_pages_worker
	.comm	_clear_pages_signal_irq_worker,4,2 ## @clear_pages_signal_irq_worker
	.comm	_clear_pages_work_ops,4,2       ## @clear_pages_work_ops
	.comm	_fence_lock,4,2                 ## @fence_lock
	.comm	_clear_pages_work_notify,4,2    ## @clear_pages_work_notify
	.comm	_I915_FENCE_TIMEOUT,4,2         ## @I915_FENCE_TIMEOUT
	.comm	_I915_FENCE_GFP,4,2             ## @I915_FENCE_GFP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_schedule_fill_pages_blt ; -- Begin function i915_gem_schedule_fill_pages_blt
	.p2align	2
_i915_gem_schedule_fill_pages_blt:      ; @i915_gem_schedule_fill_pages_blt
	.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	x21, x4
	mov	x22, x1
	mov	x19, x0
	ldr	w0, [x1]
	mov	x1, x19
	bl	_create_sleeve
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	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_2:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kmalloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
	str	w21, [x0, #32]
	stp	x22, x23, [x0, #16]
	add	x0, x0, #12
Lloh3:
	adrp	x8, _clear_pages_worker@GOTPAGE
Lloh4:
	ldr	x8, [x8, _clear_pages_worker@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x20, #8
Lloh6:
	adrp	x8, _clear_pages_signal_irq_worker@GOTPAGE
Lloh7:
	ldr	x8, [x8, _clear_pages_signal_irq_worker@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_init_irq_work
	add	x21, x20, #4
Lloh9:
	adrp	x1, _clear_pages_work_ops@GOTPAGE
Lloh10:
	ldr	x1, [x1, _clear_pages_work_ops@GOTPAGEOFF]
Lloh11:
	adrp	x2, _fence_lock@GOTPAGE
Lloh12:
	ldr	x2, [x2, _fence_lock@GOTPAGEOFF]
	mov	x0, x21
	mov	w3, #0
	mov	w4, #0
	bl	_dma_fence_init
Lloh13:
	adrp	x8, _clear_pages_work_notify@GOTPAGE
Lloh14:
	ldr	x8, [x8, _clear_pages_work_notify@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i915_sw_fence_init
	mov	x0, x19
	bl	_i915_gem_object_lock
	ldr	w1, [x19]
Lloh16:
	adrp	x8, _I915_FENCE_TIMEOUT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _I915_FENCE_TIMEOUT@GOTPAGEOFF]
Lloh18:
	ldr	w4, [x8]
Lloh19:
	adrp	x8, _I915_FENCE_GFP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _I915_FENCE_GFP@GOTPAGEOFF]
Lloh21:
	ldr	w5, [x8]
	mov	x0, x20
	mov	x2, #0
	mov	w3, #1
	bl	_i915_sw_fence_await_reservation
	tbnz	w0, #31, LBB0_6
; %bb.4:
	ldr	w0, [x19]
	mov	x1, x21
	bl	_dma_resv_add_excl_fence
	mov	w22, #0
	b	LBB0_7
LBB0_5:
	mov	x0, x23
	bl	_destroy_sleeve
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_8
LBB0_6:
	mov	x22, x0
	mov	x0, x21
	mov	x1, x22
	bl	_dma_fence_set_error
LBB0_7:
	mov	x0, x19
	bl	_i915_gem_object_unlock
	mov	x0, x21
	bl	_dma_fence_get
	mov	x0, x20
	bl	_i915_sw_fence_commit
LBB0_8:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_clear_pages_worker,4,2         ; @clear_pages_worker
	.comm	_clear_pages_signal_irq_worker,4,2 ; @clear_pages_signal_irq_worker
	.comm	_clear_pages_work_ops,4,2       ; @clear_pages_work_ops
	.comm	_fence_lock,4,2                 ; @fence_lock
	.comm	_clear_pages_work_notify,4,2    ; @clear_pages_work_notify
	.comm	_I915_FENCE_TIMEOUT,4,2         ; @I915_FENCE_TIMEOUT
	.comm	_I915_FENCE_GFP,4,2             ; @I915_FENCE_GFP
.subsections_via_symbols
