	.file	"extr_frame.c_h2o_http2_decode_headers_payload.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"invalid stream id in HEADERS frame"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"invalid HEADERS frame"
	.text
	.p2align 4
	.globl	h2o_http2_decode_headers_payload
	.type	h2o_http2_decode_headers_payload, @function
h2o_http2_decode_headers_payload:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR 8[rsi], 0
	je	.L17
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	movsx	rax, DWORD PTR [rsi]
	mov	r8, QWORD PTR 24[rsi]
	mov	ecx, DWORD PTR 16[rsi]
	sal	rax, 2
	lea	rbp, [r8+rax]
	test	DWORD PTR H2O_HTTP2_FRAME_FLAG_PADDED[rip], ecx
	je	.L4
	cmp	r8, rbp
	je	.L6
	sub	rax, 4
	movsx	rsi, DWORD PTR [r8]
	sar	rax, 2
	cmp	rax, rsi
	jl	.L6
	sal	rsi, 2
	add	r8, 4
	sub	rbp, rsi
.L4:
	mov	rax, rbp
	sub	rax, r8
	test	DWORD PTR H2O_HTTP2_FRAME_FLAG_PRIORITY[rip], ecx
	jne	.L18
	mov	edx, DWORD PTR h2o_http2_default_priority[rip]
	mov	DWORD PTR 16[rbx], edx
.L8:
	mov	QWORD PTR 8[rbx], r8
	sar	rax, 2
	mov	DWORD PTR [rbx], eax
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	cmp	rax, 16
	jle	.L9
	mov	rsi, r8
	lea	rdi, 16[rbx]
	call	decode_priority@PLT
	mov	r8, rax
	mov	rax, rbp
	sub	rax, r8
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	lea	rax, .LC0[rip]
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR H2O_HTTP2_ERROR_PROTOCOL[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -24
	.cfi_offset 6, -16
	lea	rax, .LC1[rip]
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR H2O_HTTP2_ERROR_PROTOCOL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	h2o_http2_decode_headers_payload, .-h2o_http2_decode_headers_payload
	.comm	h2o_http2_default_priority,4,4
	.comm	H2O_HTTP2_FRAME_FLAG_PRIORITY,4,4
	.comm	H2O_HTTP2_FRAME_FLAG_PADDED,4,4
	.comm	H2O_HTTP2_ERROR_PROTOCOL,4,4
	.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_frame.c_h2o_http2_decode_headers_payload.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"invalid stream id in HEADERS frame\000"
	.align	2
.LC1:
	.ascii	"invalid HEADERS frame\000"
	.text
	.align	2
	.global	h2o_http2_decode_headers_payload
	.syntax unified
	.arm
	.fpu softvfp
	.type	h2o_http2_decode_headers_payload, %function
h2o_http2_decode_headers_payload:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1, #4]
	cmp	r3, #0
	beq	.L17
	ldr	r3, .L18
	push	{r4, r5, r6, lr}
	ldr	ip, [r3]
	mov	r4, r0
	ldr	r0, [r1, #8]
	ldr	r3, [r1, #12]
	ldr	r5, [r1]
	tst	r0, ip
	lsl	r1, r5, #2
	add	r5, r3, r5, lsl #2
	beq	.L4
	cmp	r3, r5
	beq	.L6
	ldr	ip, [r3]
	sub	r1, r1, #4
	cmp	ip, r1, asr #2
	bgt	.L6
	add	r3, r3, #4
	sub	r5, r5, ip, lsl #2
.L4:
	ldr	r1, .L18+4
	sub	r2, r5, r3
	ldr	r1, [r1]
	tst	r0, r1
	beq	.L7
	cmp	r2, #16
	ble	.L9
	mov	r1, r3
	add	r0, r4, #8
	bl	decode_priority
	mov	r3, r0
	sub	r2, r5, r0
	b	.L8
.L7:
	ldr	r1, .L18+8
	ldr	r1, [r1]
	str	r1, [r4, #8]
.L8:
	asr	r2, r2, #2
	mov	r0, #0
	stm	r4, {r2, r3}
	pop	{r4, r5, r6, pc}
.L17:
	ldr	r1, .L18+12
	ldr	r3, .L18+16
	str	r1, [r2]
	ldr	r0, [r3]
	bx	lr
.L6:
	ldr	r1, .L18+20
	ldr	r3, .L18+16
	str	r1, [r2]
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L9:
	mvn	r0, #0
	pop	{r4, r5, r6, pc}
.L19:
	.align	2
.L18:
	.word	H2O_HTTP2_FRAME_FLAG_PADDED
	.word	H2O_HTTP2_FRAME_FLAG_PRIORITY
	.word	h2o_http2_default_priority
	.word	.LC0
	.word	H2O_HTTP2_ERROR_PROTOCOL
	.word	.LC1
	.size	h2o_http2_decode_headers_payload, .-h2o_http2_decode_headers_payload
	.comm	h2o_http2_default_priority,4,4
	.comm	H2O_HTTP2_FRAME_FLAG_PRIORITY,4,4
	.comm	H2O_HTTP2_FRAME_FLAG_PADDED,4,4
	.comm	H2O_HTTP2_ERROR_PROTOCOL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
