	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_gem_object_create_mmap_offset
_i915_gem_object_create_mmap_offset:    ## @i915_gem_object_create_mmap_offset
	.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
	xorl	%eax, %eax
	cmpq	$0, 8(%rdi)
	jne	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	(%rax), %r14
	movl	$1, (%r14)
	callq	_drm_gem_create_mmap_offset
	movq	_ENOSPC@GOTPCREL(%rip), %r15
	movl	%eax, %ecx
	addl	(%r15), %ecx
	jne	LBB0_4
## %bb.2:
	movl	(%rbx), %esi
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %esi
	movq	%r14, %rdi
	callq	_i915_gem_purge
	movq	%rbx, %rdi
	callq	_drm_gem_create_mmap_offset
	movl	%eax, %ecx
	addl	(%r15), %ecx
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_i915_gem_shrink_all
	movq	%rbx, %rdi
	callq	_drm_gem_create_mmap_offset
LBB0_4:
	movl	$0, (%r14)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.no_dead_strip	_i915_gem_object_create_mmap_offset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915_gem_object_create_mmap_offset
_i915_gem_object_create_mmap_offset:    ; @i915_gem_object_create_mmap_offset
	.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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_6
LBB0_2:
	mov	x20, x0
	ldr	x8, [x0, #16]
	ldr	x19, [x8]
	mov	w8, #1
	str	w8, [x19]
	bl	_drm_gem_create_mmap_offset
Lloh0:
	adrp	x21, _ENOSPC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ENOSPC@GOTPAGEOFF]
	ldr	w8, [x21]
	cmn	w0, w8
	b.ne	LBB0_5
; %bb.3:
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	asr	w1, w8, w9
	mov	x0, x19
	bl	_i915_gem_purge
	mov	x0, x20
	bl	_drm_gem_create_mmap_offset
	ldr	w8, [x21]
	cmn	w0, w8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_i915_gem_shrink_all
	mov	x0, x20
	bl	_drm_gem_create_mmap_offset
LBB0_5:
	str	wzr, [x19]
LBB0_6:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.no_dead_strip	_i915_gem_object_create_mmap_offset
.subsections_via_symbols
