	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prepare_flatten
_prepare_flatten:                       ## @prepare_flatten
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rax
	movq	%rdi, %rbx
	movq	%rsi, 56(%rdi)
	movq	%rdx, 8(%rdi)
	movl	%ecx, 48(%rdi)
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	(%rsi), %rdx
	xorl	%ecx, %ecx
	cmpq	8(%rsi), %rdx
	movq	16(%rsi), %rdx
	cmovlq	%r8, %rcx
	movq	24(%rsi), %rdi
	addq	32(%rsi), %rdi
	notq	%rdx
	addq	%rdi, %rdx
	jmp	LBB0_3
LBB0_1:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
LBB0_3:
	movq	%rcx, 40(%rbx)
	movq	%r9, (%rbx)
	movq	%rdx, 32(%rbx)
	movq	$0, 24(%rbx)
	movq	(%r9), %rdx
	movq	%rdx, 16(%rbx)
	addq	$2, %rdx
	movq	%rax, %rdi
	movq	%r9, %rsi
	callq	_h2o_vector_reserve
	movq	(%rbx), %rax
	addq	$2, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_prepare_flatten
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prepare_flatten
_prepare_flatten:                       ; @prepare_flatten
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x2
	mov	x19, x0
	str	x1, [x0, #56]
	str	x2, [x0, #8]
	str	w3, [x0, #48]
	cbz	x1, LBB0_2
; %bb.1:
	ldp	x9, x10, [x1]
	cmp	x9, x10
	csel	x9, x4, xzr, lt
	ldp	x11, x10, [x1, #24]
	ldr	x12, [x1, #16]
	mvn	x12, x12
	add	x10, x11, x10
	add	x10, x10, x12
	b	LBB0_3
LBB0_2:
	mov	x9, #0
	mov	x10, #0
LBB0_3:
	str	x5, [x19]
	stp	x10, x9, [x19, #32]
	ldr	x9, [x5]
	stp	x9, xzr, [x19, #16]
	add	x2, x9, #2
	mov	x0, x8
	mov	x1, x5
	bl	_h2o_vector_reserve
	ldr	x8, [x19]
	ldr	x9, [x8]
	add	x9, x9, #2
	str	x9, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_prepare_flatten
.subsections_via_symbols
