	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_array_new                   ## -- Begin function dm_array_new
	.p2align	4, 0x90
_dm_array_new:                          ## @dm_array_new
	.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, -88(%rbp)                  ## 8-byte Spill
	movl	%ecx, %ebx
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_dm_array_empty
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movl	%ebx, %r12d
	movl	4(%r14), %edi
	callq	_dm_tm_get_bm
	movl	%eax, %edi
	callq	_dm_bm_block_size
	movl	(%r14), %edi
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%eax, %esi
	callq	_calc_max_entries
	movl	%eax, %ebx
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_dm_div_up
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	leaq	-64(%rbp), %rcx
	leaq	-96(%rbp), %r8
	callq	_alloc_ablock
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	movq	-96(%rbp), %r12
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_min
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %r8d
	movl	%eax, %r9d
	callq	_populate_ablock_with_values
	movq	-64(%rbp), %rdx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movl	%r13d, %esi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_insert_ablock
	movl	%eax, %r12d
	movq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_unlock_ablock
	testl	%r12d, %r12d
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	subl	%ebx, -44(%rbp)                 ## 4-byte Folded Spill
	incl	%r13d
	addl	%ebx, %r14d
	cmpl	%r13d, -52(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_3
LBB0_9:
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_4:
	movl	%eax, %r12d
	jmp	LBB0_10
LBB0_6:
	movl	%eax, %r12d
	movq	%r15, %rdi
	movq	%rdx, %rsi
	callq	_unlock_ablock
LBB0_10:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_array_new                   ; -- Begin function dm_array_new
	.p2align	2
_dm_array_new:                          ; @dm_array_new
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x4
	mov	x27, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	bl	_dm_array_empty
	mov	x19, x0
	cbnz	w0, LBB0_10
; %bb.1:
	ldr	w0, [x20, #4]
	bl	_dm_tm_get_bm
	bl	_dm_bm_block_size
	mov	x24, x0
	ldr	w0, [x20]
	mov	x1, x24
	bl	_calc_max_entries
	mov	x25, x0
	mov	x0, x22
	mov	x1, x25
	bl	_dm_div_up
	cbz	w0, LBB0_7
; %bb.2:
	mov	x26, x0
	str	w27, [sp, #12]                  ; 4-byte Folded Spill
	mov	w27, #0
	mov	w28, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x3, sp, #24
	add	x4, sp, #16
	mov	x0, x20
	mov	x1, x24
	mov	x2, x25
	bl	_alloc_ablock
	cbnz	w0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x19, [sp, #16]
	mov	x0, x25
	mov	x1, x22
	bl	_min
	mov	x5, x0
	mov	x0, x20
	mov	x1, x19
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	mov	x3, x21
	mov	x4, x27
	bl	_populate_ablock_with_values
	ldr	x2, [sp, #24]
	cbnz	w0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x28
	mov	x3, x23
	bl	_insert_ablock
	mov	x19, x0
	ldr	x1, [sp, #24]
	mov	x0, x20
	bl	_unlock_ablock
	cbnz	w19, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w22, w22, w25
	add	w28, w28, #1
	add	w27, w27, w25
	cmp	w26, w28
	b.ne	LBB0_3
LBB0_7:
	mov	w19, #0
	b	LBB0_10
LBB0_8:
	mov	x19, x0
	b	LBB0_10
LBB0_9:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x2
	bl	_unlock_ablock
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
