	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exynos_drm_gem_mmap_obj
_exynos_drm_gem_mmap_obj:               ## @exynos_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_to_exynos_gem
	movq	%rax, %r15
	movl	(%rbx), %edi
	callq	_to_dma_dev
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_DRM_DEV_DEBUG_KMS
	movl	(%r15), %ebx
	movq	_EXYNOS_BO_CACHABLE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	callq	_vm_get_page_prot
	jmp	LBB0_5
LBB0_2:
	movq	_EXYNOS_BO_WC@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movl	(%r14), %edi
	callq	_vm_get_page_prot
	movl	%eax, %edi
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.3:
	callq	_pgprot_writecombine
	jmp	LBB0_5
LBB0_4:
	callq	_pgprot_noncached
LBB0_5:
	movl	%eax, 4(%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_exynos_drm_gem_mmap_buffer
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_drm_gem_vm_close
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"flags = 0x%x\n"

	.comm	_EXYNOS_BO_CACHABLE,4,2         ## @EXYNOS_BO_CACHABLE
	.comm	_EXYNOS_BO_WC,4,2               ## @EXYNOS_BO_WC
	.no_dead_strip	_exynos_drm_gem_mmap_obj
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exynos_drm_gem_mmap_obj
_exynos_drm_gem_mmap_obj:               ; @exynos_drm_gem_mmap_obj
	.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	x19, x1
	mov	x21, x0
	bl	_to_exynos_gem
	mov	x20, x0
	ldr	w0, [x21]
	bl	_to_dma_dev
	ldr	w2, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DRM_DEV_DEBUG_KMS
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _EXYNOS_BO_CACHABLE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EXYNOS_BO_CACHABLE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19]
	bl	_vm_get_page_prot
	b	LBB0_5
LBB0_2:
Lloh5:
	adrp	x9, _EXYNOS_BO_WC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EXYNOS_BO_WC@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	and	w21, w9, w8
	ldr	w0, [x19]
	bl	_vm_get_page_prot
	cbz	w21, LBB0_4
; %bb.3:
	bl	_pgprot_writecombine
	b	LBB0_5
LBB0_4:
	bl	_pgprot_noncached
LBB0_5:
	str	w0, [x19, #4]
	mov	x0, x20
	mov	x1, x19
	bl	_exynos_drm_gem_mmap_buffer
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_drm_gem_vm_close
LBB0_7:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"flags = 0x%x\n"

	.comm	_EXYNOS_BO_CACHABLE,4,2         ; @EXYNOS_BO_CACHABLE
	.comm	_EXYNOS_BO_WC,4,2               ; @EXYNOS_BO_WC
	.no_dead_strip	_exynos_drm_gem_mmap_obj
.subsections_via_symbols
