	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_malloc                         ## -- Begin function malloc
	.p2align	4, 0x90
_malloc:                                ## @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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$8, %edi
	callq	_MEMALIGN
	addl	%eax, %ebx
	movq	_RSLOP@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_MEMALIGN
	decq	%rax
	shrq	$2, %rax
	xorl	%ebx, %ebx
	cmpl	$2, %eax
	jb	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movl	%eax, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	shrl	%ecx
	incl	%ebx
	cmpl	$3, %eax
	movl	%ecx, %eax
	ja	LBB0_2
LBB0_3:
	movq	_nextf@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	%ebx, %r15d
	movq	(%rax,%r15,8), %r14
	testq	%r14, %r14
	jne	LBB0_6
## %bb.4:
	movl	%ebx, %edi
	callq	_morecore
	movq	(%r12), %rax
	movq	(%rax,%r15,8), %r14
	testq	%r14, %r14
	je	LBB0_5
LBB0_6:
	movq	(%r14), %rcx
	movq	%rcx, (%rax,%r15,8)
	movl	%ebx, (%r14)
	movq	_nmalloc@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incl	(%rax,%r15,4)
	movl	$8, %edi
	callq	_MEMALIGN
	movq	%rax, %rbx
	addl	%r14d, %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_child@GOTPCREL(%rip), %rax
	incl	(%rax)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_out_of_memory
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_RSLOP,8,3                      ## @RSLOP
	.comm	_nextf,8,3                      ## @nextf
	.comm	_child,4,2                      ## @child
	.comm	_MAGIC,4,2                      ## @MAGIC
	.comm	_nmalloc,8,3                    ## @nmalloc
	.comm	_RMAGIC,8,3                     ## @RMAGIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_malloc                         ; -- Begin function malloc
	.p2align	2
_malloc:                                ; @malloc
	.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	x19, x0
	mov	w0, #8
	bl	_MEMALIGN
Lloh0:
	adrp	x8, _RSLOP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RSLOP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w9, w0, w19
	add	w0, w9, w8
	bl	_MEMALIGN
	sub	x8, x0, #1
	lsr	x8, x8, #2
	cmp	w8, #2
	b.hs	LBB0_2
; %bb.1:
	mov	w19, #0
	b	LBB0_4
LBB0_2:
	mov	w19, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w9, w8, #1
	add	w19, w19, #1
	cmp	w8, #3
	mov	x8, x9
	b.hi	LBB0_3
LBB0_4:
Lloh3:
	adrp	x22, _nextf@GOTPAGE
Lloh4:
	ldr	x22, [x22, _nextf@GOTPAGEOFF]
	ldr	x8, [x22]
	mov	w21, w19
	ldr	x20, [x8, w19, uxtw #3]
	cbnz	x20, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_morecore
	ldr	x8, [x22]
	ldr	x20, [x8, x21, lsl #3]
	cbz	x20, LBB0_8
LBB0_6:
	ldr	x9, [x20]
	str	x9, [x8, x21, lsl #3]
	str	w19, [x20]
Lloh5:
	adrp	x8, _nmalloc@GOTPAGE
Lloh6:
	ldr	x8, [x8, _nmalloc@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	lsl	x9, x21, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
	mov	w0, #8
	bl	_MEMALIGN
	add	w0, w0, w20
LBB0_7:
	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
LBB0_8:
Lloh8:
	adrp	x8, _child@GOTPAGE
Lloh9:
	ldr	x8, [x8, _child@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	bl	_out_of_memory
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_RSLOP,8,3                      ; @RSLOP
	.comm	_nextf,8,3                      ; @nextf
	.comm	_child,4,2                      ; @child
	.comm	_MAGIC,4,2                      ; @MAGIC
	.comm	_nmalloc,8,3                    ; @nmalloc
	.comm	_RMAGIC,8,3                     ; @RMAGIC
.subsections_via_symbols
