	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_gem_mmap_obj               ## -- Begin function msm_gem_mmap_obj
	.p2align	4, 0x90
_msm_gem_mmap_obj:                      ## @msm_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	%rsi, %rbx
	movq	%rdi, %r14
	callq	_to_msm_bo
	movq	_VM_PFNMAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	(%rbx), %edi
	movl	%edi, (%rbx)
	movq	_VM_MIXEDMAP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	movl	%edi, (%rbx)
	movl	(%rax), %eax
	movq	_MSM_BO_WC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	callq	_vm_get_page_prot
	movl	%eax, %edi
	callq	_pgprot_writecombine
	jmp	LBB0_5
LBB0_2:
	movq	_MSM_BO_UNCACHED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	callq	_vm_get_page_prot
	movl	%eax, %edi
	callq	_pgprot_noncached
	jmp	LBB0_5
LBB0_4:
	movl	8(%rbx), %edi
	callq	_fput
	movl	(%r14), %edi
	callq	_get_file
	movq	$0, 16(%rbx)
	movl	(%r14), %eax
	movl	%eax, 8(%rbx)
	movl	(%rbx), %edi
	callq	_vm_get_page_prot
LBB0_5:
	movl	%eax, 4(%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_PFNMAP,4,2                  ## @VM_PFNMAP
	.comm	_VM_MIXEDMAP,4,2                ## @VM_MIXEDMAP
	.comm	_MSM_BO_WC,4,2                  ## @MSM_BO_WC
	.comm	_MSM_BO_UNCACHED,4,2            ## @MSM_BO_UNCACHED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_gem_mmap_obj               ; -- Begin function msm_gem_mmap_obj
	.p2align	2
_msm_gem_mmap_obj:                      ; @msm_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
	mov	x19, x1
	mov	x20, x0
	bl	_to_msm_bo
	mov	x8, x0
Lloh0:
	adrp	x9, _VM_PFNMAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VM_PFNMAP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w10, [x19]
	bic	w9, w10, w9
	str	w9, [x19]
Lloh3:
	adrp	x10, _VM_MIXEDMAP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _VM_MIXEDMAP@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w0, w10, w9
	str	w0, [x19]
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _MSM_BO_WC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MSM_BO_WC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	bl	_vm_get_page_prot
	bl	_pgprot_writecombine
	b	LBB0_5
LBB0_2:
Lloh9:
	adrp	x9, _MSM_BO_UNCACHED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MSM_BO_UNCACHED@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	bl	_vm_get_page_prot
	bl	_pgprot_noncached
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19, #8]
	bl	_fput
	ldr	w0, [x20]
	bl	_get_file
	str	xzr, [x19, #16]
	ldr	w8, [x20]
	str	w8, [x19, #8]
	ldr	w0, [x19]
	bl	_vm_get_page_prot
LBB0_5:
	str	w0, [x19, #4]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_PFNMAP,4,2                  ; @VM_PFNMAP
	.comm	_VM_MIXEDMAP,4,2                ; @VM_MIXEDMAP
	.comm	_MSM_BO_WC,4,2                  ; @MSM_BO_WC
	.comm	_MSM_BO_UNCACHED,4,2            ; @MSM_BO_UNCACHED
.subsections_via_symbols
