	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ialloc
_ialloc:                                ## @ialloc
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movq	%rsi, %r12
	movl	%edi, %r13d
	xorl	%eax, %eax
	callq	_ensure_initialization
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	testq	%r12, %r12
	je	LBB0_25
## %bb.2:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_3:
	testq	%r12, %r12
	je	LBB0_26
## %bb.4:
	leaq	(,%r12,8), %rdi
	callq	_request2size
LBB0_5:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testb	$1, %r15b
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movl	%r15d, -68(%rbp)                ## 4-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_8
## %bb.6:
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rbx,8), %rdi
	callq	_request2size
	addq	%rax, %r13
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_7
	jmp	LBB0_9
LBB0_8:
	movq	(%r14), %rdi
	callq	_request2size
	movq	%rax, %r13
	movq	%rax, %rcx
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	imulq	%r12, %r13
LBB0_9:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r13), %r15
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_use_mmap
	movq	%rax, %r14
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_disable_mmap
	movq	_CHUNK_OVERHEAD@GOTPCREL(%rip), %rax
	subq	(%rax), %r15
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %rsi
	callq	_internal_malloc
	movq	%rax, %r15
	testq	%r14, %r14
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_11
## %bb.10:
	movl	%ebx, %edi
	callq	_enable_mmap
LBB0_11:
	testq	%r15, %r15
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_14
## %bb.12:
	movl	%ebx, %edi
	callq	_PREACTION
	testq	%rax, %rax
	je	LBB0_15
LBB0_14:
	xorl	%ebx, %ebx
	jmp	LBB0_25
LBB0_15:
	movq	%r14, %rbx
	movq	%r15, %rdi
	callq	_mem2chunk
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_chunksize
	movq	%rax, %r14
	movl	%r15d, %edi
	callq	_is_mmapped
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	testb	$2, -68(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_17
## %bb.16:
	movq	_SIZE_T_SIZE@GOTPCREL(%rip), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addq	(%rax), %rcx
	movq	%r14, %rdx
	subq	%rcx, %rdx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_memset
LBB0_17:
	testq	%rbx, %rbx
	jne	LBB0_19
## %bb.18:
	movl	%r15d, %edi
	movq	%r13, %rsi
	callq	_chunk_plus_offset
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	subq	%r13, %r14
	movl	%eax, %edi
	callq	_chunk2mem
	movq	%rax, %rbx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movq	%r14, %rdx
	callq	_set_size_and_pinuse_of_inuse_chunk
	movq	%r13, %r14
LBB0_19:
	movl	%r15d, %edi
	callq	_chunk2mem
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, (%rbx)
	decq	%r12
	je	LBB0_24
## %bb.20:
	xorl	%r13d, %r13d
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_22 Depth=1
	subq	%rbx, %r14
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	movq	%rbx, %rdx
	callq	_set_size_and_pinuse_of_inuse_chunk
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_chunk_plus_offset
	movl	%eax, %r15d
	leaq	1(%r13), %rbx
	movl	%eax, %edi
	callq	_chunk2mem
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%rcx,%r13,8)
	movq	%rbx, %r13
	cmpq	%rbx, %r12
	je	LBB0_24
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_21
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r13,8), %rdi
	callq	_request2size
	movq	%rax, %rbx
	jmp	LBB0_21
LBB0_24:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_set_size_and_pinuse_of_inuse_chunk
	movl	%ebx, %edi
	callq	_POSTACTION
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_25:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	movl	%r13d, %edi
	xorl	%esi, %esi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_internal_malloc                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CHUNK_OVERHEAD,8,3             ## @CHUNK_OVERHEAD
	.comm	_SIZE_T_SIZE,8,3                ## @SIZE_T_SIZE
	.no_dead_strip	_ialloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ialloc
_ialloc:                                ; @ialloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x26, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	bl	_ensure_initialization
	cbz	x19, LBB0_6
; %bb.1:
	cbz	x22, LBB0_24
; %bb.2:
	mov	x27, #0
	tbnz	w26, #0, LBB0_8
LBB0_3:
	mov	x25, #0
	mov	x23, x21
	mov	x24, x22
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23], #8
	bl	_request2size
	add	x25, x0, x25
	subs	x24, x24, #1
	b.ne	LBB0_4
; %bb.5:
	mov	x23, #0
	b	LBB0_9
LBB0_6:
	cbz	x22, LBB0_25
; %bb.7:
	lsl	x0, x22, #3
	bl	_request2size
	mov	x27, x0
	tbz	w26, #0, LBB0_3
LBB0_8:
	ldr	x0, [x21]
	bl	_request2size
	mov	x23, x0
	mul	x25, x0, x22
LBB0_9:
	str	x27, [sp, #8]                   ; 8-byte Folded Spill
	add	x27, x25, x27
	mov	x0, x20
	bl	_use_mmap
	mov	x24, x0
	mov	x0, x20
	bl	_disable_mmap
Lloh0:
	adrp	x8, _CHUNK_OVERHEAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHUNK_OVERHEAD@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sub	x1, x27, x8
	mov	x0, x20
	bl	_internal_malloc
	mov	x28, x0
	cbz	x24, LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_enable_mmap
LBB0_11:
	cbz	x28, LBB0_13
; %bb.12:
	mov	x0, x20
	bl	_PREACTION
	cbz	x0, LBB0_14
LBB0_13:
	mov	x19, #0
	b	LBB0_24
LBB0_14:
	mov	x0, x28
	bl	_mem2chunk
	mov	x24, x0
	bl	_chunksize
	mov	x27, x0
	mov	x0, x24
	bl	_is_mmapped
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	tbz	w26, #1, LBB0_16
; %bb.15:
Lloh3:
	adrp	x8, _SIZE_T_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIZE_T_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x8, x9, x8
	sub	x2, x27, x8
	mov	x0, x28
	mov	w1, #0
	bl	_memset
LBB0_16:
	cbnz	x19, LBB0_18
; %bb.17:
	mov	x0, x24
	mov	x1, x25
	bl	_chunk_plus_offset
	mov	x26, x0
	sub	x27, x27, x25
	bl	_chunk2mem
	mov	x19, x0
	mov	x0, x20
	mov	x1, x26
	mov	x2, x27
	bl	_set_size_and_pinuse_of_inuse_chunk
	mov	x27, x25
LBB0_18:
	mov	x0, x24
	bl	_chunk2mem
	str	x0, [x19]
	subs	x25, x22, #1
	b.eq	LBB0_23
; %bb.19:
	add	x26, x19, #8
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	sub	x27, x27, x22
	mov	x0, x20
	mov	x1, x24
	mov	x2, x22
	bl	_set_size_and_pinuse_of_inuse_chunk
	mov	x0, x24
	mov	x1, x22
	bl	_chunk_plus_offset
	mov	x24, x0
	bl	_chunk2mem
	str	x0, [x26], #8
	add	x21, x21, #8
	subs	x25, x25, #1
	b.eq	LBB0_23
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	mov	x22, x23
	cbnz	x23, LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x0, [x21]
	bl	_request2size
	mov	x22, x0
	b	LBB0_20
LBB0_23:
	mov	x0, x20
	mov	x1, x24
	mov	x2, x27
	bl	_set_size_and_pinuse_of_inuse_chunk
	mov	x0, x20
	bl	_POSTACTION
LBB0_24:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_25:
	mov	x0, x20
	mov	x1, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_internal_malloc
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CHUNK_OVERHEAD,8,3             ; @CHUNK_OVERHEAD
	.comm	_SIZE_T_SIZE,8,3                ; @SIZE_T_SIZE
	.no_dead_strip	_ialloc
.subsections_via_symbols
