	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_arch_setup_additional_pages    ## -- Begin function arch_setup_additional_pages
	.p2align	4, 0x90
_arch_setup_additional_pages:           ## @arch_setup_additional_pages
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_vdso_enabled@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_current@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rax), %r14
	movq	%r14, %rdi
	callq	_down_write
	movl	16(%r14), %edi
	movq	_vdso_size@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_vdso_addr
	movl	(%r13), %edx
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	movq	%rax, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_get_unmapped_area
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR_VALUE
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	%ebx, %r15d
	jmp	LBB0_6
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_7
LBB0_4:
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	%rbx, 8(%rax)
	movq	_VM_READ@GOTPCREL(%rip), %rax
	movq	_VM_EXEC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	(%r13), %edx
	movq	_VM_MAYREAD@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_VM_MAYWRITE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_VM_MAYEXEC@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_vdso_pages@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_install_special_mapping
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	(%r12), %rcx
	movq	(%rcx), %rcx
	movq	$0, 8(%rcx)
	movl	%eax, %r15d
LBB0_6:
	movq	%r14, %rdi
	callq	_up_write
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	_vdso_enabled,4,2               ## @vdso_enabled
	.comm	_vdso_size,4,2                  ## @vdso_size
	.comm	_VM_READ,4,2                    ## @VM_READ
	.comm	_VM_EXEC,4,2                    ## @VM_EXEC
	.comm	_VM_MAYREAD,4,2                 ## @VM_MAYREAD
	.comm	_VM_MAYWRITE,4,2                ## @VM_MAYWRITE
	.comm	_VM_MAYEXEC,4,2                 ## @VM_MAYEXEC
	.comm	_vdso_pages,4,2                 ## @vdso_pages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_arch_setup_additional_pages    ; -- Begin function arch_setup_additional_pages
	.p2align	2
_arch_setup_additional_pages:           ; @arch_setup_additional_pages
	.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
Lloh0:
	adrp	x8, _vdso_enabled@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vdso_enabled@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.1:
Lloh3:
	adrp	x21, _current@GOTPAGE
Lloh4:
	ldr	x21, [x21, _current@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x19, [x8]
	mov	x0, x19
	bl	_down_write
	ldr	w0, [x19, #16]
Lloh5:
	adrp	x22, _vdso_size@GOTPAGE
Lloh6:
	ldr	x22, [x22, _vdso_size@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_vdso_addr
	mov	x1, x0
	ldr	w2, [x22]
	mov	x0, #0
	mov	w3, #0
	mov	w4, #0
	bl	_get_unmapped_area
	mov	x20, x0
	bl	_IS_ERR_VALUE
	cbnz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x21]
	ldr	x8, [x8]
	str	x20, [x8, #8]
Lloh7:
	adrp	x8, _VM_READ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VM_READ@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _VM_EXEC@GOTPAGE
Lloh11:
	ldr	x9, [x9, _VM_EXEC@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh13:
	adrp	x9, _VM_MAYREAD@GOTPAGE
Lloh14:
	ldr	x9, [x9, _VM_MAYREAD@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh16:
	adrp	x9, _VM_MAYWRITE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _VM_MAYWRITE@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh19:
	adrp	x9, _VM_MAYEXEC@GOTPAGE
Lloh20:
	ldr	x9, [x9, _VM_MAYEXEC@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh21:
	ldr	w9, [x9]
	orr	w3, w8, w9
Lloh22:
	adrp	x8, _vdso_pages@GOTPAGE
Lloh23:
	ldr	x8, [x8, _vdso_pages@GOTPAGEOFF]
Lloh24:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_install_special_mapping
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.3:
	ldr	x8, [x21]
	ldr	x8, [x8]
	str	xzr, [x8, #8]
LBB0_4:
	mov	x0, x19
	bl	_up_write
	b	LBB0_6
LBB0_5:
	mov	w20, #0
LBB0_6:
	mov	x0, x20
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	_vdso_enabled,4,2               ; @vdso_enabled
	.comm	_vdso_size,4,2                  ; @vdso_size
	.comm	_VM_READ,4,2                    ; @VM_READ
	.comm	_VM_EXEC,4,2                    ; @VM_EXEC
	.comm	_VM_MAYREAD,4,2                 ; @VM_MAYREAD
	.comm	_VM_MAYWRITE,4,2                ; @VM_MAYWRITE
	.comm	_VM_MAYEXEC,4,2                 ; @VM_MAYEXEC
	.comm	_vdso_pages,4,2                 ; @vdso_pages
.subsections_via_symbols
