	.file	"extr_qpack.c_flatten_dynamic_indexed.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	flatten_dynamic_indexed, @function
flatten_dynamic_indexed:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rsi, QWORD PTR 16[rdi]
	mov	edi, DWORD PTR 24[rdi]
	mov	rdx, QWORD PTR H2O_HPACK_ENCODE_INT_MAX_LENGTH[rip]
	add	rdx, QWORD PTR [rsi]
	call	h2o_vector_reserve@PLT
	cmp	QWORD PTR 0[rbp], rbx
	jge	.L2
	mov	QWORD PTR 0[rbp], rbx
.L2:
	mov	rdi, QWORD PTR 16[rbp]
	mov	rsi, QWORD PTR 8[rbp]
	mov	rdx, QWORD PTR [rdi]
	mov	rax, QWORD PTR 8[rdi]
	lea	rax, [rax+rdx*4]
	cmp	rsi, rbx
	jl	.L3
	mov	DWORD PTR [rax], 128
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	sub	rsi, rbx
	mov	edx, 6
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	flatten_int@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	DWORD PTR [rax], 16
	sub	rbx, rsi
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	edx, 4
	lea	rsi, -1[rbx]
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	flatten_int@PLT
	.cfi_endproc
.LFE0:
	.size	flatten_dynamic_indexed, .-flatten_dynamic_indexed
	.comm	H2O_HPACK_ENCODE_INT_MAX_LENGTH,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_qpack.c_flatten_dynamic_indexed.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	flatten_dynamic_indexed, %function
flatten_dynamic_indexed:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r5, r1
	ldr	r3, .L6
	ldr	r1, [r0, #8]
	ldr	r3, [r3]
	ldr	r2, [r1]
	ldr	r0, [r0, #12]
	add	r2, r2, r3
	bl	h2o_vector_reserve
	ldr	r3, [r4]
	ldr	r1, [r4, #4]
	cmp	r3, r5
	ldr	r0, [r4, #8]
	strlt	r5, [r4]
	cmp	r1, r5
	ldm	r0, {r2, r3}
	blt	.L3
	mov	ip, #128
	sub	r1, r1, r5
	str	ip, [r3, r2, lsl #2]
	pop	{r4, r5, r6, lr}
	mov	r2, #6
	b	flatten_int
.L3:
	mov	ip, #16
	sub	r1, r5, r1
	str	ip, [r3, r2, lsl #2]
	sub	r1, r1, #1
	mov	r2, #4
	pop	{r4, r5, r6, lr}
	b	flatten_int
.L7:
	.align	2
.L6:
	.word	H2O_HPACK_ENCODE_INT_MAX_LENGTH
	.size	flatten_dynamic_indexed, .-flatten_dynamic_indexed
	.comm	H2O_HPACK_ENCODE_INT_MAX_LENGTH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
