	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtdchar_get_unmapped_area
_mtdchar_get_unmapped_area:             ## @mtdchar_get_unmapped_area
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rsi, %rsi
	jne	LBB0_1
## %bb.2:
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	movq	(%rdi), %rsi
	movq	%rsi, %rax
	subq	%rdx, %rax
	jb	LBB0_1
## %bb.3:
	movq	%rcx, %r9
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shrq	%cl, %rsi
	cmpq	%r9, %rsi
	jbe	LBB0_1
## %bb.4:
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %r9
	cmpq	%rax, %r9
	jbe	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
	popq	%rbp
	retq
LBB0_5:
	movq	%rdx, %rsi
	movq	%r9, %rdx
	movq	%r8, %rcx
	callq	_mtd_get_unmapped_area
	movl	%eax, %ecx
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rdx
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	subq	(%rax), %rsi
	movslq	%ecx, %rax
	addl	(%rdx), %ecx
	cmoveq	%rsi, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ENODEV,8,3                     ## @ENODEV
	.no_dead_strip	_mtdchar_get_unmapped_area
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtdchar_get_unmapped_area
_mtdchar_get_unmapped_area:             ; @mtdchar_get_unmapped_area
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbnz	x1, LBB0_4
; %bb.1:
	ldr	x8, [x0]
	ldr	x0, [x8]
	ldr	x8, [x0]
	subs	x9, x8, x2
	b.lo	LBB0_4
; %bb.2:
Lloh0:
	adrp	x10, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PAGE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	lsr	x8, x8, x10
	cmp	x8, x3
	b.ls	LBB0_4
; %bb.3:
	lsl	x8, x3, x10
	cmp	x8, x9
	b.ls	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	neg	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x1, x2
	mov	x2, x8
	mov	x3, x4
	bl	_mtd_get_unmapped_area
                                        ; kill: def $w0 killed $w0 def $x0
Lloh6:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _ENODEV@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	sxtw	x10, w0
	cmn	w0, w8
	csneg	x0, x10, x9, ne
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ENODEV,8,3                     ; @ENODEV
	.no_dead_strip	_mtdchar_get_unmapped_area
.subsections_via_symbols
