	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_arch_pick_mmap_layout          ## -- Begin function arch_pick_mmap_layout
	.p2align	4, 0x90
_arch_pick_mmap_layout:                 ## @arch_pick_mmap_layout
	.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	%rdi, %rbx
	movq	_exec_shield@GOTPCREL(%rip), %rax
	testb	$2, (%rax)
	jne	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	callq	_mmap_is_legacy
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_mmap_legacy_base
	movl	%eax, 24(%rbx)
	movq	_arch_get_unmapped_area@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_arch_unmap_area@GOTPCREL(%rip), %r14
	jmp	LBB0_6
LBB0_3:
	xorl	%eax, %eax
	callq	_mmap_base
	movl	%eax, 24(%rbx)
	movq	_arch_get_unmapped_area_topdown@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_READ_IMPLIES_EXEC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_arch_unmap_area_topdown@GOTPCREL(%rip), %r14
	testl	%ecx, (%rax)
	jne	LBB0_6
## %bb.4:
	xorl	%eax, %eax
	callq	_mmap_is_ia32
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_arch_get_unmapped_exec_area@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_SHLIB_BASE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	xorl	%eax, %eax
	callq	_mmap_rnd
	addq	%r15, %rax
	movq	%rax, 8(%rbx)
LBB0_6:
	movl	(%r14), %eax
	movl	%eax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_exec_shield,4,2                ## @exec_shield
	.comm	_arch_get_unmapped_area,4,2     ## @arch_get_unmapped_area
	.comm	_arch_unmap_area,4,2            ## @arch_unmap_area
	.comm	_arch_get_unmapped_area_topdown,4,2 ## @arch_get_unmapped_area_topdown
	.comm	_current,8,3                    ## @current
	.comm	_READ_IMPLIES_EXEC,4,2          ## @READ_IMPLIES_EXEC
	.comm	_arch_get_unmapped_exec_area,4,2 ## @arch_get_unmapped_exec_area
	.comm	_SHLIB_BASE,8,3                 ## @SHLIB_BASE
	.comm	_arch_unmap_area_topdown,4,2    ## @arch_unmap_area_topdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_arch_pick_mmap_layout          ; -- Begin function arch_pick_mmap_layout
	.p2align	2
_arch_pick_mmap_layout:                 ; @arch_pick_mmap_layout
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _exec_shield@GOTPAGE
Lloh1:
	ldr	x8, [x8, _exec_shield@GOTPAGEOFF]
	ldrb	w8, [x8]
	tbnz	w8, #1, LBB0_3
; %bb.1:
	bl	_mmap_is_legacy
	cbz	x0, LBB0_3
; %bb.2:
	bl	_mmap_legacy_base
Lloh2:
	adrp	x8, _arch_get_unmapped_area@GOTPAGE
Lloh3:
	ldr	x8, [x8, _arch_get_unmapped_area@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	stp	w8, w0, [x19, #20]
Lloh5:
	adrp	x8, _arch_unmap_area@GOTPAGE
Lloh6:
	ldr	x8, [x8, _arch_unmap_area@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
	bl	_mmap_base
Lloh7:
	adrp	x8, _arch_get_unmapped_area_topdown@GOTPAGE
Lloh8:
	ldr	x8, [x8, _arch_get_unmapped_area_topdown@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	stp	w8, w0, [x19, #20]
Lloh10:
	adrp	x8, _current@GOTPAGE
Lloh11:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _READ_IMPLIES_EXEC@GOTPAGE
Lloh14:
	ldr	x9, [x9, _READ_IMPLIES_EXEC@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.4:
	bl	_mmap_is_ia32
	cbz	x0, LBB0_6
; %bb.5:
Lloh16:
	adrp	x8, _arch_get_unmapped_exec_area@GOTPAGE
Lloh17:
	ldr	x8, [x8, _arch_get_unmapped_exec_area@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x19, #16]
Lloh19:
	adrp	x8, _SHLIB_BASE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SHLIB_BASE@GOTPAGEOFF]
Lloh21:
	ldr	x20, [x8]
	bl	_mmap_rnd
	add	x8, x0, x20
	str	x8, [x19, #8]
LBB0_6:
Lloh22:
	adrp	x8, _arch_unmap_area_topdown@GOTPAGE
Lloh23:
	ldr	x8, [x8, _arch_unmap_area_topdown@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_exec_shield,4,2                ; @exec_shield
	.comm	_arch_get_unmapped_area,4,2     ; @arch_get_unmapped_area
	.comm	_arch_unmap_area,4,2            ; @arch_unmap_area
	.comm	_arch_get_unmapped_area_topdown,4,2 ; @arch_get_unmapped_area_topdown
	.comm	_current,8,3                    ; @current
	.comm	_READ_IMPLIES_EXEC,4,2          ; @READ_IMPLIES_EXEC
	.comm	_arch_get_unmapped_exec_area,4,2 ; @arch_get_unmapped_exec_area
	.comm	_SHLIB_BASE,8,3                 ; @SHLIB_BASE
	.comm	_arch_unmap_area_topdown,4,2    ; @arch_unmap_area_topdown
.subsections_via_symbols
