	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function array_resize
_array_resize:                          ## @array_resize
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	cmpq	%rcx, %rdx
	je	LBB0_12
## %bb.1:
	movq	%r8, %r15
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rdi, %rbx
	movq	%rdi, -48(%rbp)
	movl	%esi, -104(%rbp)
	movl	4(%rdi), %edi
	callq	_dm_tm_get_bm
	movl	%eax, %edi
	callq	_dm_bm_block_size
	movl	%eax, -56(%rbp)
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_calc_max_entries
	movq	%rax, %rcx
	movq	%rax, -112(%rbp)
	movq	%r13, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_2
## %bb.3:
	movq	%r13, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_4
LBB0_2:
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $eax killed $eax def $rax
LBB0_4:
	movq	%rax, -64(%rbp)
	movq	%rdx, -72(%rbp)
	movq	%rcx, %rax
	orq	%r12, %rax
	shrq	$32, %rax
	je	LBB0_5
## %bb.6:
	movq	%r12, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_7
LBB0_5:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $eax killed $eax def $rax
LBB0_7:
	movq	%rax, -80(%rbp)
	movq	%rdx, -88(%rbp)
	movq	%r15, -96(%rbp)
	cmpq	%r13, %r12
	jle	LBB0_8
## %bb.9:
	movq	_grow@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_8:
	movq	_shrink@GOTPCREL(%rip), %rcx
LBB0_10:
	leaq	-112(%rbp), %rdi
	callq	*%rcx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:
	movl	-104(%rbp), %esi
LBB0_12:
	movl	%esi, (%r14)
	xorl	%eax, %eax
LBB0_13:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_array_resize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function array_resize
_array_resize:                          ; @array_resize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x5
	cmp	x2, x3
	b.eq	LBB0_3
; %bb.1:
	mov	x22, x4
	mov	x20, x3
	mov	x21, x2
	mov	x23, x0
	str	x0, [sp, #72]
	str	w1, [sp, #16]
	ldr	w0, [x0, #4]
	bl	_dm_tm_get_bm
	bl	_dm_bm_block_size
	mov	x1, x0
	str	w0, [sp, #64]
	ldr	w0, [x23]
	bl	_calc_max_entries
	sdiv	x8, x21, x0
	msub	x9, x8, x0, x21
	stp	x9, x8, [sp, #48]
	sdiv	x8, x20, x0
	msub	x9, x8, x0, x20
	stp	x9, x8, [sp, #32]
	str	x0, [sp, #8]
	str	x22, [sp, #24]
Lloh0:
	adrp	x8, _shrink@GOTPAGE
Lloh1:
	ldr	x8, [x8, _shrink@GOTPAGEOFF]
Lloh2:
	adrp	x9, _grow@GOTPAGE
Lloh3:
	ldr	x9, [x9, _grow@GOTPAGEOFF]
	cmp	x20, x21
	csel	x8, x9, x8, gt
	add	x0, sp, #8
	blr	x8
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w1, [sp, #16]
LBB0_3:
	mov	w0, #0
	str	w1, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_array_resize
.subsections_via_symbols
