	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_memory_segment
_setup_memory_segment:                  ## @setup_memory_segment
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	_VM_SYSMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PROT_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%esi, %ecx
	movq	%r14, %r8
	callq	_vm_mmap_memseg
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_MAP_SHARED@GOTPCREL(%rip), %rax
	movq	_MAP_FIXED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_VM_MEM_F_INCORE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	andl	(%r12), %edx
	jne	LBB0_3
## %bb.2:
	movq	_MAP_NOCORE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	orl	%eax, %ecx
	movslq	%ebx, %rax
	addq	%rax, %r15
	movq	_PROT_RW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%r12), %r8d
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %r9d
	callq	_mmap
	movq	%rax, %rcx
	movq	_MAP_FAILED@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	sete	%al
	negl	%eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_SYSMEM,4,2                  ## @VM_SYSMEM
	.comm	_PROT_ALL,4,2                   ## @PROT_ALL
	.comm	_MAP_SHARED,4,2                 ## @MAP_SHARED
	.comm	_MAP_FIXED,4,2                  ## @MAP_FIXED
	.comm	_VM_MEM_F_INCORE,4,2            ## @VM_MEM_F_INCORE
	.comm	_MAP_NOCORE,4,2                 ## @MAP_NOCORE
	.comm	_PROT_RW,4,2                    ## @PROT_RW
	.comm	_MAP_FAILED,8,3                 ## @MAP_FAILED
	.no_dead_strip	_setup_memory_segment
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_memory_segment
_setup_memory_segment:                  ; @setup_memory_segment
	.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	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _VM_SYSMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VM_SYSMEM@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _PROT_ALL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PROT_ALL@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
	mov	x3, x1
	mov	x4, x20
	bl	_vm_mmap_memseg
	cbnz	w0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _MAP_SHARED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAP_SHARED@GOTPAGEOFF]
Lloh8:
	adrp	x9, _MAP_FIXED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MAP_FIXED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _VM_MEM_F_INCORE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VM_MEM_F_INCORE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _MAP_NOCORE@GOTPAGE
Lloh16:
	ldr	x10, [x10, _MAP_NOCORE@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	ldp	w11, w4, [x22]
	tst	w9, w11
	csel	w9, w10, wzr, eq
	orr	w3, w8, w9
	add	x0, x21, w19, sxtw
Lloh18:
	adrp	x8, _PROT_RW@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PROT_RW@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x1, x20
	mov	x5, x19
	bl	_mmap
Lloh21:
	adrp	x8, _MAP_FAILED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MAP_FAILED@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x0, x8
	csetm	w0, eq
LBB0_2:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_SYSMEM,4,2                  ; @VM_SYSMEM
	.comm	_PROT_ALL,4,2                   ; @PROT_ALL
	.comm	_MAP_SHARED,4,2                 ; @MAP_SHARED
	.comm	_MAP_FIXED,4,2                  ; @MAP_FIXED
	.comm	_VM_MEM_F_INCORE,4,2            ; @VM_MEM_F_INCORE
	.comm	_MAP_NOCORE,4,2                 ; @MAP_NOCORE
	.comm	_PROT_RW,4,2                    ; @PROT_RW
	.comm	_MAP_FAILED,8,3                 ; @MAP_FAILED
	.no_dead_strip	_setup_memory_segment
.subsections_via_symbols
