	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igt_tmpfs_fallback
_igt_tmpfs_fallback:                    ## @igt_tmpfs_fallback
	.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
	movq	8(%rdi), %r15
	movslq	(%rdi), %rax
	leaq	8(%r15), %rbx
	testq	%rax, %rax
	cmovneq	%rax, %rbx
	movq	(%r15), %r13
	movq	$0, (%r15)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i915_gem_object_create_shmem
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_2:
	movq	_I915_MAP_WB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_i915_gem_object_pin_map
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	movl	$-559038801, (%r12)             ## imm = 0xDEADBEAF
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	___i915_gem_object_flush_map
	movq	%r14, %rdi
	callq	_i915_gem_object_unpin_map
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_i915_vma_instance
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
LBB0_3:
	movq	%r12, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_8:
	movq	%r14, %rdi
	callq	_i915_gem_object_put
LBB0_9:
	movq	%r13, (%r15)
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_PIN_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_i915_vma_pin
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	callq	_igt_check_page_sizes
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_i915_vma_unpin
LBB0_7:
	movq	%r12, %rdi
	callq	_i915_vma_close
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_I915_MAP_WB,4,2                ## @I915_MAP_WB
	.comm	_PIN_USER,4,2                   ## @PIN_USER
	.no_dead_strip	_igt_tmpfs_fallback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igt_tmpfs_fallback
_igt_tmpfs_fallback:                    ; @igt_tmpfs_fallback
	.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
	ldr	x19, [x0, #8]
	ldr	x23, [x19]
	ldrsw	x8, [x0]
	cmp	w8, #0
	mov	x9, x19
	str	xzr, [x9], #8
	csel	x21, x9, x8, eq
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i915_gem_object_create_shmem
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_8
LBB0_2:
Lloh3:
	adrp	x8, _I915_MAP_WB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I915_MAP_WB@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i915_gem_object_pin_map
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x22
	b	LBB0_6
LBB0_4:
	mov	w8, #48815
	movk	w8, #57005, lsl #16
	str	w8, [x22]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #64
	bl	___i915_gem_object_flush_map
	mov	x0, x20
	bl	_i915_gem_object_unpin_map
	mov	x0, x20
	mov	x1, x21
	mov	x2, #0
	bl	_i915_vma_instance
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.5:
	mov	x0, x21
LBB0_6:
	bl	_PTR_ERR
	mov	x22, x0
LBB0_7:
	mov	x0, x20
	bl	_i915_gem_object_put
LBB0_8:
	str	x23, [x19]
	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
LBB0_9:
Lloh6:
	adrp	x8, _PIN_USER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PIN_USER@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	bl	_i915_vma_pin
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.10:
	mov	x0, x21
	bl	_igt_check_page_sizes
	mov	x22, x0
	mov	x0, x21
	bl	_i915_vma_unpin
LBB0_11:
	mov	x0, x21
	bl	_i915_vma_close
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_I915_MAP_WB,4,2                ; @I915_MAP_WB
	.comm	_PIN_USER,4,2                   ; @PIN_USER
	.no_dead_strip	_igt_tmpfs_fallback
.subsections_via_symbols
