	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exynos_drm_fb_mmap
_exynos_drm_fb_mmap:                    ## @exynos_drm_fb_mmap
	.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, %r15
	movq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_to_exynos_fbdev
	movq	_VM_IO@GOTPCREL(%rip), %rcx
	movq	_VM_DONTEXPAND@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	(%rax), %rbx
	movq	_VM_DONTDUMP@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	orl	%edx, (%r15)
	movq	8(%r15), %rax
	subq	16(%r15), %rax
	cmpq	(%rbx), %rax
	jbe	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_2:
	movl	(%r14), %edi
	callq	_to_dma_dev
	movl	16(%rbx), %edx
	movl	12(%rbx), %ecx
	movq	(%rbx), %r8
	movl	8(%rbx), %r9d
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_dma_mmap_attrs
	movl	%eax, %ebx
	xorl	%eax, %eax
	testl	%ebx, %ebx
	jns	LBB0_4
## %bb.3:
	movl	(%r14), %edi
	callq	_to_dma_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_DRM_DEV_ERROR
	movl	%ebx, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_IO,4,2                      ## @VM_IO
	.comm	_VM_DONTEXPAND,4,2              ## @VM_DONTEXPAND
	.comm	_VM_DONTDUMP,4,2                ## @VM_DONTDUMP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to mmap.\n"

	.no_dead_strip	_exynos_drm_fb_mmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exynos_drm_fb_mmap
_exynos_drm_fb_mmap:                    ; @exynos_drm_fb_mmap
	.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	x20, x1
	ldr	x19, [x0]
	mov	x0, x19
	bl	_to_exynos_fbdev
Lloh0:
	adrp	x8, _VM_IO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VM_IO@GOTPAGEOFF]
	ldr	x21, [x0]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _VM_DONTEXPAND@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VM_DONTEXPAND@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _VM_DONTDUMP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VM_DONTDUMP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x20]
	orr	w8, w8, w9
	str	w8, [x20]
	ldp	x8, x9, [x20, #8]
	ldr	x10, [x21]
	sub	x8, x8, x9
	cmp	x8, x10
	b.ls	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_5
LBB0_2:
	ldr	w0, [x19]
	bl	_to_dma_dev
	ldp	w3, w2, [x21, #12]
	ldr	x4, [x21]
	ldr	w5, [x21, #8]
	mov	x1, x20
	bl	_dma_mmap_attrs
	tbnz	w0, #31, LBB0_4
; %bb.3:
	mov	w20, #0
	b	LBB0_5
LBB0_4:
	mov	x20, x0
	ldr	w0, [x19]
	bl	_to_dma_dev
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DRM_DEV_ERROR
LBB0_5:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_IO,4,2                      ; @VM_IO
	.comm	_VM_DONTEXPAND,4,2              ; @VM_DONTEXPAND
	.comm	_VM_DONTDUMP,4,2                ; @VM_DONTDUMP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to mmap.\n"

	.no_dead_strip	_exynos_drm_fb_mmap
.subsections_via_symbols
