	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mspace_malloc                  ## -- Begin function mspace_malloc
	.p2align	4, 0x90
_mspace_malloc:                         ## @mspace_malloc
	.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	%rsi, %rbx
	movslq	%edi, %r15
	movq	%r15, %rdi
	callq	_ok_magic
	movq	%r15, %rdi
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	callq	_PREACTION
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	jmp	LBB0_34
LBB0_3:
	movq	%r15, %rsi
	callq	_USAGE_ERROR_ACTION
	xorl	%ebx, %ebx
	jmp	LBB0_34
LBB0_4:
	movq	_MAX_SMALL_REQUEST@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jae	LBB0_9
## %bb.5:
	movq	_MAX_REQUEST@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jbe	LBB0_11
## %bb.6:
	movq	%rbx, %rdi
	callq	_pad_request
	movq	%rax, %r13
	cmpq	$0, 16(%r15)
	je	LBB0_22
## %bb.7:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_tmalloc_large
	testq	%rax, %rax
	je	LBB0_22
LBB0_8:
	movq	%rax, %rbx
	jmp	LBB0_25
LBB0_9:
	movq	_MIN_REQUEST@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jbe	LBB0_12
## %bb.10:
	movq	_MIN_CHUNK_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	jmp	LBB0_13
LBB0_11:
	movq	_MAX_SIZE_T@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	jmp	LBB0_22
LBB0_12:
	movq	%rbx, %rdi
	callq	_pad_request
	movq	%rax, %r13
LBB0_13:
	movq	%r13, %rdi
	callq	_small_index
	movl	%eax, %ecx
	movl	(%r15), %ebx
	sarl	%cl, %ebx
	testb	$3, %bl
	je	LBB0_15
## %bb.14:
	notl	%ebx
	andl	$1, %ebx
	addl	%ecx, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_smallbin_at
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %r13
	movq	8(%rax), %r12
	movq	%r12, %rdi
	callq	_chunksize
	movq	%rax, %r14
	movl	%ebx, %edi
	callq	_small_index2size
	xorl	%edi, %edi
	cmpq	%rax, %r14
	sete	%dil
	callq	_assert
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_unlink_first_small_chunk
	movl	%ebx, %edi
	callq	_small_index2size
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	callq	_set_inuse_and_pinuse
	movq	%r12, %rdi
	callq	_chunk2mem
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_32
LBB0_15:
	cmpq	8(%r15), %r13
	jbe	LBB0_22
## %bb.16:
	testl	%ebx, %ebx
	je	LBB0_20
## %bb.17:
	shll	%cl, %ebx
	movl	%ecx, %edi
	callq	_idx2bit
	movl	%eax, %edi
	callq	_left_bits
	andl	%eax, %ebx
	movl	%ebx, %edi
	callq	_least_bit
	movl	%eax, %edi
	callq	_compute_bit2idx
	movq	%r15, %rdi
	callq	_smallbin_at
	movq	%rax, %r14
	movq	8(%rax), %r12
	movq	%r12, %rdi
	callq	_chunksize
	movq	%rax, %rbx
	callq	_small_index2size
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	sete	%dil
	callq	_assert
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_unlink_first_small_chunk
	callq	_small_index2size
	movq	%rax, %rbx
	subq	%r13, %rbx
	movq	_SIZE_T_SIZE@GOTPCREL(%rip), %rax
	cmpl	$4, (%rax)
	je	LBB0_35
## %bb.18:
	movq	_MIN_CHUNK_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jae	LBB0_35
## %bb.19:
	callq	_small_index2size
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	callq	_set_inuse_and_pinuse
	jmp	LBB0_30
LBB0_20:
	cmpq	$0, 16(%r15)
	je	LBB0_22
## %bb.21:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_tmalloc_small
	testq	%rax, %rax
	jne	LBB0_8
LBB0_22:
	movq	8(%r15), %rdx
	movq	%rdx, %rbx
	subq	%r13, %rbx
	jae	LBB0_26
## %bb.23:
	movq	24(%r15), %rbx
	subq	%r13, %rbx
	jbe	LBB0_28
## %bb.24:
	movq	%rbx, 24(%r15)
	movq	32(%r15), %r14
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_chunk_plus_offset
	movq	%rax, 32(%r15)
	movq	_PINUSE_BIT@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rbx
	movq	%rbx, (%rax)
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_set_size_and_pinuse_of_inuse_chunk
	movq	%r14, %rdi
	callq	_chunk2mem
	movq	%rax, %rbx
	movq	32(%r15), %rsi
	movq	%r15, %rdi
	callq	_check_top_chunk
LBB0_25:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	jmp	LBB0_31
LBB0_26:
	movq	40(%r15), %r12
	movq	_MIN_CHUNK_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jae	LBB0_29
## %bb.27:
	movq	$0, 8(%r15)
	movq	$0, 40(%r15)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_set_inuse_and_pinuse
	jmp	LBB0_30
LBB0_28:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_sys_alloc
	movq	%rax, %rbx
	jmp	LBB0_33
LBB0_29:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_chunk_plus_offset
	movq	%rax, 40(%r15)
	movq	%rbx, 8(%r15)
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_set_size_and_pinuse_of_free_chunk
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_set_size_and_pinuse_of_inuse_chunk
LBB0_30:
	movq	%r12, %rdi
	callq	_chunk2mem
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rax, %rsi
LBB0_31:
	movq	%r13, %rdx
LBB0_32:
	callq	_check_malloced_chunk
LBB0_33:
	movq	%r15, %rdi
	callq	_POSTACTION
LBB0_34:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_set_size_and_pinuse_of_inuse_chunk
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_chunk_plus_offset
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_set_size_and_pinuse_of_free_chunk
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_replace_dv
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SMALL_REQUEST,8,3          ## @MAX_SMALL_REQUEST
	.comm	_MIN_REQUEST,8,3                ## @MIN_REQUEST
	.comm	_MIN_CHUNK_SIZE,8,3             ## @MIN_CHUNK_SIZE
	.comm	_SIZE_T_SIZE,4,2                ## @SIZE_T_SIZE
	.comm	_MAX_REQUEST,8,3                ## @MAX_REQUEST
	.comm	_MAX_SIZE_T,8,3                 ## @MAX_SIZE_T
	.comm	_PINUSE_BIT,8,3                 ## @PINUSE_BIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mspace_malloc                  ; -- Begin function mspace_malloc
	.p2align	2
_mspace_malloc:                         ; @mspace_malloc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x19, w0
	mov	x0, x19
	bl	_ok_magic
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_PREACTION
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, #0
	b	LBB0_34
LBB0_3:
	mov	x0, x19
	mov	x1, x19
	bl	_USAGE_ERROR_ACTION
	mov	x21, #0
	b	LBB0_34
LBB0_4:
Lloh0:
	adrp	x8, _MAX_SMALL_REQUEST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_SMALL_REQUEST@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x20
	b.hs	LBB0_8
; %bb.5:
Lloh3:
	adrp	x8, _MAX_REQUEST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_REQUEST@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ls	LBB0_10
; %bb.6:
	mov	x0, x20
	bl	_pad_request
	mov	x20, x0
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_21
; %bb.7:
	mov	x0, x19
	mov	x1, x20
	bl	_tmalloc_large
	cbnz	x0, LBB0_31
	b	LBB0_21
LBB0_8:
Lloh6:
	adrp	x8, _MIN_REQUEST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MIN_REQUEST@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ls	LBB0_11
; %bb.9:
Lloh9:
	adrp	x8, _MIN_CHUNK_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MIN_CHUNK_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	x20, [x8]
	b	LBB0_12
LBB0_10:
Lloh12:
	adrp	x8, _MAX_SIZE_T@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MAX_SIZE_T@GOTPAGEOFF]
Lloh14:
	ldr	x20, [x8]
	b	LBB0_21
LBB0_11:
	mov	x0, x20
	bl	_pad_request
	mov	x20, x0
LBB0_12:
	mov	x0, x20
	bl	_small_index
	ldr	w8, [x19]
	asr	w8, w8, w0
	tst	w8, #0x3
	b.eq	LBB0_14
; %bb.13:
	mvn	w8, w8
	and	w8, w8, #0x1
	add	w21, w8, w0
	mov	x0, x19
	mov	x1, x21
	bl	_smallbin_at
	mov	x22, x0
	ldr	x23, [x0, #8]
	mov	x0, x23
	bl	_chunksize
	mov	x24, x0
	mov	x0, x21
	bl	_small_index2size
	cmp	x24, x0
	cset	w0, eq
	bl	_assert
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	mov	x3, x21
	bl	_unlink_first_small_chunk
	mov	x0, x21
	bl	_small_index2size
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	bl	_set_inuse_and_pinuse
	mov	x0, x23
	b	LBB0_30
LBB0_14:
	ldr	x9, [x19, #8]
	cmp	x20, x9
	b.ls	LBB0_21
; %bb.15:
	cbz	w8, LBB0_19
; %bb.16:
	lsl	w21, w8, w0
	bl	_idx2bit
	bl	_left_bits
	and	w0, w0, w21
	bl	_least_bit
	bl	_compute_bit2idx
	mov	x0, x19
	bl	_smallbin_at
	mov	x22, x0
	ldr	x21, [x0, #8]
	mov	x0, x21
	bl	_chunksize
	mov	x23, x0
	bl	_small_index2size
	cmp	x23, x0
	cset	w0, eq
	bl	_assert
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_unlink_first_small_chunk
	bl	_small_index2size
	sub	x22, x0, x20
Lloh15:
	adrp	x8, _SIZE_T_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SIZE_T_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w8, #4
	b.eq	LBB0_35
; %bb.17:
Lloh18:
	adrp	x8, _MIN_CHUNK_SIZE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MIN_CHUNK_SIZE@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x22, x8
	b.hs	LBB0_35
; %bb.18:
	bl	_small_index2size
	mov	x2, x0
	b	LBB0_26
LBB0_19:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_21
; %bb.20:
	mov	x0, x19
	mov	x1, x20
	bl	_tmalloc_small
	cbnz	x0, LBB0_31
LBB0_21:
	ldr	x2, [x19, #8]
	subs	x22, x2, x20
	b.hs	LBB0_24
; %bb.22:
	ldr	x8, [x19, #24]
	subs	x22, x8, x20
	b.ls	LBB0_27
; %bb.23:
	str	x22, [x19, #24]
	ldr	x21, [x19, #32]
	mov	x0, x21
	mov	x1, x20
	bl	_chunk_plus_offset
	str	x0, [x19, #32]
Lloh21:
	adrp	x8, _PINUSE_BIT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PINUSE_BIT@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	orr	x8, x8, x22
	str	x8, [x0]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_set_size_and_pinuse_of_inuse_chunk
	mov	x0, x21
	bl	_chunk2mem
	mov	x21, x0
	ldr	x1, [x19, #32]
	mov	x0, x19
	bl	_check_top_chunk
	b	LBB0_32
LBB0_24:
	ldr	x21, [x19, #40]
Lloh24:
	adrp	x8, _MIN_CHUNK_SIZE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MIN_CHUNK_SIZE@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cmp	x22, x8
	b.hs	LBB0_28
; %bb.25:
	str	xzr, [x19, #8]
	str	xzr, [x19, #40]
LBB0_26:
	mov	x0, x19
	mov	x1, x21
	bl	_set_inuse_and_pinuse
	b	LBB0_29
LBB0_27:
	mov	x0, x19
	mov	x1, x20
	bl	_sys_alloc
	mov	x21, x0
	b	LBB0_33
LBB0_28:
	mov	x0, x21
	mov	x1, x20
	bl	_chunk_plus_offset
	str	x0, [x19, #40]
	str	x22, [x19, #8]
	mov	x1, x22
	bl	_set_size_and_pinuse_of_free_chunk
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_set_size_and_pinuse_of_inuse_chunk
LBB0_29:
	mov	x0, x21
LBB0_30:
	bl	_chunk2mem
LBB0_31:
	mov	x21, x0
LBB0_32:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_check_malloced_chunk
LBB0_33:
	mov	x0, x19
	bl	_POSTACTION
LBB0_34:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_35:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_set_size_and_pinuse_of_inuse_chunk
	mov	x0, x21
	mov	x1, x20
	bl	_chunk_plus_offset
	mov	x23, x0
	mov	x1, x22
	bl	_set_size_and_pinuse_of_free_chunk
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_replace_dv
	b	LBB0_29
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SMALL_REQUEST,8,3          ; @MAX_SMALL_REQUEST
	.comm	_MIN_REQUEST,8,3                ; @MIN_REQUEST
	.comm	_MIN_CHUNK_SIZE,8,3             ; @MIN_CHUNK_SIZE
	.comm	_SIZE_T_SIZE,4,2                ; @SIZE_T_SIZE
	.comm	_MAX_REQUEST,8,3                ; @MAX_REQUEST
	.comm	_MAX_SIZE_T,8,3                 ; @MAX_SIZE_T
	.comm	_PINUSE_BIT,8,3                 ; @PINUSE_BIT
.subsections_via_symbols
