	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mspace_calloc                  ## -- Begin function mspace_calloc
	.p2align	4, 0x90
_mspace_calloc:                         ## @mspace_calloc
	.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	%rdx, %rbx
	movq	%rsi, %r12
	movl	%edi, %r15d
	callq	_ok_magic
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	testq	%r12, %r12
	je	LBB0_6
## %bb.2:
	movq	%r12, %rax
	mulq	%rbx
	movq	%rax, %r14
	seto	%al
	orq	%r12, %rbx
	cmpq	$65536, %rbx                    ## imm = 0x10000
	jb	LBB0_7
## %bb.3:
	testb	%al, %al
	je	LBB0_7
## %bb.4:
	movq	_MAX_SIZE_T@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	jmp	LBB0_7
LBB0_5:
	movl	%r15d, %edi
	movl	%r15d, %esi
	callq	_USAGE_ERROR_ACTION
	jmp	LBB0_10
LBB0_6:
	xorl	%r14d, %r14d
LBB0_7:
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_internal_malloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_mem2chunk
	movl	%eax, %edi
	callq	_calloc_must_clear
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_memset
	jmp	LBB0_11
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SIZE_T,8,3                 ## @MAX_SIZE_T
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mspace_calloc                  ; -- Begin function mspace_calloc
	.p2align	2
_mspace_calloc:                         ; @mspace_calloc
	.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, x2
	mov	x22, x1
	mov	x20, x0
	bl	_ok_magic
	cbz	w0, LBB0_4
; %bb.1:
	cbz	x22, LBB0_5
; %bb.2:
	mul	x19, x22, x21
	umulh	x8, x22, x21
	cmp	xzr, x8
	cset	w8, ne
	orr	x9, x21, x22
	cmp	x9, #16, lsl #12                ; =65536
	b.lo	LBB0_6
; %bb.3:
Lloh0:
	adrp	x9, _MAX_SIZE_T@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_SIZE_T@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	w8, #0
	csel	x19, x9, x19, ne
	b	LBB0_6
LBB0_4:
	mov	x0, x20
	mov	x1, x20
	bl	_USAGE_ERROR_ACTION
	mov	x20, #0
	b	LBB0_9
LBB0_5:
	mov	x19, #0
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_internal_malloc
	mov	x20, x0
	cbz	x0, LBB0_9
; %bb.7:
	mov	x0, x20
	bl	_mem2chunk
	bl	_calloc_must_clear
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x20
	mov	w1, #0
	mov	x2, x19
	bl	_memset
LBB0_9:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SIZE_T,8,3                 ; @MAX_SIZE_T
.subsections_via_symbols
