	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function empty_batch
_empty_batch:                           ## @empty_batch
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i915_gem_object_create_internal
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_CAST                       ## TAILCALL
LBB0_1:
	movq	_I915_MAP_WB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i915_gem_object_pin_map
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movq	_MI_BATCH_BUFFER_END@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	___i915_gem_object_flush_map
	movq	%rbx, %rdi
	callq	_i915_gem_object_unpin_map
	leaq	4(%r14), %rdi
	callq	_intel_gt_chipset_flush
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_i915_vma_instance
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
LBB0_5:
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
LBB0_6:
	movq	%rbx, %rdi
	callq	_i915_gem_object_put
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_3:
	movq	_PIN_USER@GOTPCREL(%rip), %rax
	movq	_PIN_GLOBAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_i915_vma_pin
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_I915_MAP_WB,4,2                ## @I915_MAP_WB
	.comm	_MI_BATCH_BUFFER_END,4,2        ## @MI_BATCH_BUFFER_END
	.comm	_PIN_USER,4,2                   ## @PIN_USER
	.comm	_PIN_GLOBAL,4,2                 ## @PIN_GLOBAL
	.no_dead_strip	_empty_batch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function empty_batch
_empty_batch:                           ; @empty_batch
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i915_gem_object_create_internal
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ERR_CAST
LBB0_2:
Lloh3:
	adrp	x8, _I915_MAP_WB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I915_MAP_WB@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i915_gem_object_pin_map
	mov	x21, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _MI_BATCH_BUFFER_END@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MI_BATCH_BUFFER_END@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x21]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #64
	bl	___i915_gem_object_flush_map
	mov	x0, x19
	bl	_i915_gem_object_unpin_map
	add	x0, x20, #4
	bl	_intel_gt_chipset_flush
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	bl	_i915_vma_instance
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
LBB0_4:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x20, x0
LBB0_5:
	mov	x0, x19
	bl	_i915_gem_object_put
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_6:
Lloh9:
	adrp	x8, _PIN_USER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PIN_USER@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _PIN_GLOBAL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PIN_GLOBAL@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	bl	_i915_vma_pin
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.7:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_I915_MAP_WB,4,2                ; @I915_MAP_WB
	.comm	_MI_BATCH_BUFFER_END,4,2        ; @MI_BATCH_BUFFER_END
	.comm	_PIN_USER,4,2                   ; @PIN_USER
	.comm	_PIN_GLOBAL,4,2                 ; @PIN_GLOBAL
	.no_dead_strip	_empty_batch
.subsections_via_symbols
