	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_vector__expand             ## -- Begin function h2o_vector__expand
	.p2align	4, 0x90
_h2o_vector__expand:                    ## @h2o_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	%r8, %rbx
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r12
	xorl	%edi, %edi
	cmpq	%r8, (%rsi)
	setb	%dil
	callq	_assert
	movq	(%r13), %rdx
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	cmpq	%rbx, %rdx
	jb	LBB0_3
LBB0_5:
	testq	%r12, %r12
	je	LBB0_7
LBB0_6:
	imulq	%r14, %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_h2o_mem_alloc_pool_aligned
	movq	%rax, %rbx
	movq	16(%r13), %rsi
	imulq	8(%r13), %r14
	movq	%rax, %rdi
	movq	%r14, %rdx
	callq	_h2o_memcpy
	jmp	LBB0_8
LBB0_1:
	movq	$4, (%r13)
	movl	$4, %edx
	cmpq	%rbx, %rdx
	jae	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	addq	%rdx, %rdx
	cmpq	%rbx, %rdx
	jb	LBB0_3
## %bb.4:
	movq	%rdx, (%r13)
	testq	%r12, %r12
	jne	LBB0_6
LBB0_7:
	movq	16(%r13), %rdi
	imulq	%r14, %rdx
	movq	%rdx, %rsi
	callq	_h2o_mem_realloc
	movq	%rax, %rbx
LBB0_8:
	movq	%rbx, 16(%r13)
	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	_h2o_vector__expand             ; -- Begin function h2o_vector__expand
	.p2align	2
_h2o_vector__expand:                    ; @h2o_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	x23, x4
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	ldr	x8, [x1]
	cmp	x8, x4
	cset	w0, lo
	bl	_assert
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.1:
	cmp	x8, x23
	b.lo	LBB0_5
LBB0_2:
	cbz	x22, LBB0_7
LBB0_3:
	mul	x2, x8, x20
	mov	x0, x22
	mov	x1, x21
	bl	_h2o_mem_alloc_pool_aligned
	mov	x21, x0
	ldp	x8, x1, [x19, #8]
	mul	x2, x8, x20
	bl	_h2o_memcpy
	b	LBB0_8
LBB0_4:
	mov	w8, #4
	str	x8, [x19]
	cmp	x8, x23
	b.hs	LBB0_2
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x8, x8, #1
	cmp	x8, x23
	b.lo	LBB0_5
; %bb.6:
	str	x8, [x19]
	cbnz	x22, LBB0_3
LBB0_7:
	ldr	x0, [x19, #16]
	mul	x1, x8, x20
	bl	_h2o_mem_realloc
	mov	x21, x0
LBB0_8:
	str	x21, [x19, #16]
	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
