	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_mspace                  ## -- Begin function create_mspace
	.p2align	4, 0x90
_create_mspace:                         ## @create_mspace
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_ensure_initialization
	movl	$4, %edi
	callq	_pad_request
	movq	_TOP_FOOT_SIZE@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	_mparams@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	addq	%rax, %rdx
	negq	%rdx
	cmpq	%rbx, %rdx
	jbe	LBB0_6
## %bb.1:
	testq	%rbx, %rbx
	jne	LBB0_2
## %bb.3:
	movq	8(%rcx), %rax
	jmp	LBB0_4
LBB0_2:
	addq	%rbx, %rax
LBB0_4:
	movq	%rax, %rdi
	callq	_granularity_align
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_CALL_MMAP
	movq	_CMFAIL@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_init_user_mstate
	movq	%rax, %r15
	movq	_IS_MMAPPED_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_set_lock
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TOP_FOOT_SIZE,8,3              ## @TOP_FOOT_SIZE
	.comm	_mparams,16,3                   ## @mparams
	.comm	_CMFAIL,8,3                     ## @CMFAIL
	.comm	_IS_MMAPPED_BIT,4,2             ## @IS_MMAPPED_BIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_mspace                  ; -- Begin function create_mspace
	.p2align	2
_create_mspace:                         ; @create_mspace
	.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, x1
	mov	x20, x0
	bl	_ensure_initialization
	mov	w0, #4
	bl	_pad_request
Lloh0:
	adrp	x9, _TOP_FOOT_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TOP_FOOT_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x8, _mparams@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mparams@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	x10, [x8]
	add	x9, x0, x9
	add	x10, x9, x10
	neg	x10, x10
	cmp	x10, x20
	b.ls	LBB0_3
; %bb.1:
	ldr	x8, [x8, #8]
	add	x9, x9, x20
	cmp	x20, #0
	csel	x0, x8, x9, eq
	bl	_granularity_align
	mov	x20, x0
	bl	_CALL_MMAP
Lloh5:
	adrp	x8, _CMFAIL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CMFAIL@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x8, x0
	b.eq	LBB0_3
; %bb.2:
	mov	x1, x20
	bl	_init_user_mstate
	mov	x20, x0
Lloh8:
	adrp	x8, _IS_MMAPPED_BIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IS_MMAPPED_BIT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x0]
	mov	x1, x19
	bl	_set_lock
	b	LBB0_4
LBB0_3:
	mov	w20, #0
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_TOP_FOOT_SIZE,8,3              ; @TOP_FOOT_SIZE
	.comm	_mparams,16,3                   ; @mparams
	.comm	_CMFAIL,8,3                     ; @CMFAIL
	.comm	_IS_MMAPPED_BIT,4,2             ; @IS_MMAPPED_BIT
.subsections_via_symbols
