	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_gem_mmap_obj               ## -- Begin function drm_gem_mmap_obj
	.p2align	4, 0x90
_drm_gem_mmap_obj:                      ## @drm_gem_mmap_obj
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdx), %rax
	subq	8(%rdx), %rax
	cmpq	%rsi, %rax
	ja	LBB0_1
## %bb.2:
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_5
LBB0_4:
	movq	(%rax), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
LBB0_5:
	movq	%rcx, 32(%rbx)
	movq	_VM_IO@GOTPCREL(%rip), %rax
	movq	_VM_PFNMAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_VM_DONTEXPAND@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_VM_DONTDUMP@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	orl	16(%rbx), %edi
	movl	%edi, 16(%rbx)
	movq	%r14, 24(%rbx)
	callq	_vm_get_page_prot
	movl	%eax, %edi
	callq	_pgprot_writecombine
	movl	%eax, 20(%rbx)
	movl	%eax, %edi
	callq	_pgprot_decrypted
	movl	%eax, 20(%rbx)
	movq	%r14, %rdi
	callq	_drm_gem_object_get
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VM_IO,4,2                      ## @VM_IO
	.comm	_VM_PFNMAP,4,2                  ## @VM_PFNMAP
	.comm	_VM_DONTEXPAND,4,2              ## @VM_DONTEXPAND
	.comm	_VM_DONTDUMP,4,2                ## @VM_DONTDUMP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_gem_mmap_obj               ; -- Begin function drm_gem_mmap_obj
	.p2align	2
_drm_gem_mmap_obj:                      ; @drm_gem_mmap_obj
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldp	x8, x9, [x2]
	sub	x8, x8, x9
	cmp	x8, x1
	b.hi	LBB0_5
; %bb.1:
	mov	x20, x2
	mov	x19, x0
	ldp	x8, x9, [x0]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x8]
	cbnz	x8, LBB0_4
LBB0_3:
	ldr	x8, [x9]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
LBB0_4:
Lloh0:
	adrp	x9, _VM_IO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VM_IO@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _VM_PFNMAP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _VM_PFNMAP@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _VM_DONTEXPAND@GOTPAGE
Lloh7:
	ldr	x11, [x11, _VM_DONTEXPAND@GOTPAGEOFF]
	orr	w9, w10, w9
Lloh8:
	ldr	w10, [x11]
	orr	w9, w9, w10
Lloh9:
	adrp	x10, _VM_DONTDUMP@GOTPAGE
Lloh10:
	ldr	x10, [x10, _VM_DONTDUMP@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w9, w10
	ldr	w10, [x20, #16]
	orr	w0, w9, w10
	str	w0, [x20, #16]
	stp	x19, x8, [x20, #24]
	bl	_vm_get_page_prot
	bl	_pgprot_writecombine
	str	w0, [x20, #20]
	bl	_pgprot_decrypted
	str	w0, [x20, #20]
	mov	x0, x19
	bl	_drm_gem_object_get
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VM_IO,4,2                      ; @VM_IO
	.comm	_VM_PFNMAP,4,2                  ; @VM_PFNMAP
	.comm	_VM_DONTEXPAND,4,2              ; @VM_DONTEXPAND
	.comm	_VM_DONTDUMP,4,2                ; @VM_DONTDUMP
.subsections_via_symbols
