	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vector_expand                  ## -- Begin function vector_expand
	.p2align	4, 0x90
_vector_expand:                         ## @vector_expand
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdi, %r12
	movq	(%rcx), %rax
	movq	(%rdx), %rcx
	movq	%rax, %rdx
	subq	%rcx, %rdx
	cmpq	%r8, %rdx
	jae	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	addq	%rax, %rax
	movq	%rax, %rdx
	subq	%rcx, %rdx
	addq	%r8, %rcx
	cmpq	$9, %rcx
	movl	$8, %ebx
	cmovaeq	%rcx, %rbx
	cmpq	%r8, %rdx
	cmovaeq	%rax, %rbx
	movq	%rbx, %rdi
	imulq	%rsi, %rdi
	callq	_xmalloc
	movq	%rax, %r13
	testq	%r12, %r12
	je	LBB0_4
## %bb.3:
	imulq	(%r14), %r15
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_memcpy
	movq	%r12, %rdi
	callq	_xfree
LBB0_4:
	movq	%rbx, (%r14)
	jmp	LBB0_5
LBB0_1:
	movq	%r12, %r13
LBB0_5:
	movq	%r13, %rax
	addq	$8, %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	_vector_expand                  ; -- Begin function vector_expand
	.p2align	2
_vector_expand:                         ; @vector_expand
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	ldr	x9, [x3]
	ldr	x8, [x2]
	sub	x10, x9, x8
	cmp	x10, x4
	b.hs	LBB0_4
; %bb.1:
	mov	x19, x3
	mov	x21, x1
	lsl	x9, x9, #1
	add	x10, x8, x4
	mov	w11, #8
	cmp	x10, #8
	csel	x10, x10, x11, hi
	sub	x8, x9, x8
	cmp	x8, x4
	csel	x23, x10, x9, lo
	mul	x0, x23, x1
	bl	_xmalloc
	mov	x22, x0
	cbz	x20, LBB0_3
; %bb.2:
	ldr	x8, [x19]
	mul	x2, x8, x21
	mov	x0, x22
	mov	x1, x20
	bl	_memcpy
	mov	x0, x20
	bl	_xfree
LBB0_3:
	str	x23, [x19]
	b	LBB0_5
LBB0_4:
	mov	x22, x20
LBB0_5:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
