	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtd_get_unmapped_area
_mtd_get_unmapped_area:                 ## @mtd_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
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	testq	%rsi, %rsi
	jne	LBB0_2
## %bb.3:
	movq	8(%rdi), %rsi
	movq	%rsi, %r10
	subq	%rdx, %r10
	jb	LBB0_2
## %bb.4:
	movq	%rcx, %r9
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shrq	%cl, %rsi
	cmpq	%r9, %rsi
	jbe	LBB0_2
## %bb.5:
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %r9
	cmpq	%r10, %r9
	jbe	LBB0_6
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_7:
	movq	_ENOSYS@GOTPCREL(%rip), %rcx
LBB0_8:
	xorl	%eax, %eax
	subq	(%rcx), %rax
	popq	%rbp
	retq
LBB0_6:
	movq	%rdx, %rsi
	movq	%r9, %rdx
	movq	%r8, %rcx
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_ENOSYS,8,3                     ## @ENOSYS
	.no_dead_strip	_mtd_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 mtd_get_unmapped_area
_mtd_get_unmapped_area:                 ; @mtd_get_unmapped_area
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	x0, [x8]
	ldr	x5, [x0]
	cbz	x5, LBB0_6
; %bb.1:
	cbnz	x1, LBB0_5
; %bb.2:
	ldr	x8, [x0, #8]
	subs	x9, x8, x2
	b.lo	LBB0_5
; %bb.3:
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_5
; %bb.4:
	lsl	x8, x3, x10
	cmp	x8, x9
	b.ls	LBB0_8
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh5:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
LBB0_7:
	ldr	x8, [x8]
	neg	x0, x8
	ret
LBB0_8:
	mov	x1, x2
	mov	x2, x8
	mov	x3, x4
	br	x5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_ENOSYS,8,3                     ; @ENOSYS
	.no_dead_strip	_mtd_get_unmapped_area
.subsections_via_symbols
