	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmap_is_legacy
_mmap_is_legacy:                        ## @mmap_is_legacy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_ADDR_COMPAT_LAYOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %eax
	testl	%edx, (%rcx)
	je	LBB0_1
LBB0_3:
	popq	%rbp
	retq
LBB0_1:
	movq	8(%rcx), %rax
	movq	(%rax), %rax
	movq	_RLIMIT_STACK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rcx
	movq	_RLIM_INFINITY@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_3
## %bb.2:
	movq	_sysctl_legacy_va_layout@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	_ADDR_COMPAT_LAYOUT,4,2         ## @ADDR_COMPAT_LAYOUT
	.comm	_RLIMIT_STACK,8,3               ## @RLIMIT_STACK
	.comm	_RLIM_INFINITY,8,3              ## @RLIM_INFINITY
	.comm	_sysctl_legacy_va_layout,4,2    ## @sysctl_legacy_va_layout
	.no_dead_strip	_mmap_is_legacy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmap_is_legacy
_mmap_is_legacy:                        ; @mmap_is_legacy
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _current@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w9, [x8]
Lloh3:
	adrp	x10, _ADDR_COMPAT_LAYOUT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ADDR_COMPAT_LAYOUT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #1
	ret
LBB0_2:
	ldr	x8, [x8, #8]
Lloh6:
	adrp	x9, _RLIMIT_STACK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RLIMIT_STACK@GOTPAGEOFF]
	ldr	x8, [x8]
Lloh8:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
Lloh9:
	adrp	x9, _RLIM_INFINITY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RLIM_INFINITY@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _sysctl_legacy_va_layout@GOTPAGE
Lloh13:
	ldr	x10, [x10, _sysctl_legacy_va_layout@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	cmp	x8, x9
	csinc	w0, w10, wzr, ne
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	_ADDR_COMPAT_LAYOUT,4,2         ; @ADDR_COMPAT_LAYOUT
	.comm	_RLIMIT_STACK,8,3               ; @RLIMIT_STACK
	.comm	_RLIM_INFINITY,8,3              ; @RLIM_INFINITY
	.comm	_sysctl_legacy_va_layout,4,2    ; @sysctl_legacy_va_layout
	.no_dead_strip	_mmap_is_legacy
.subsections_via_symbols
