	.file	"extr_........libhttp3frame.c_h2o_http3_encode_priority_frame.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	h2o_http3_encode_priority_frame
	.type	h2o_http3_encode_priority_frame, @function
h2o_http3_encode_priority_frame:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rax, QWORD PTR H2O_HTTP3_PRIORITY_ELEMENT_TYPE_ROOT[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	xor	edi, edi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	cmp	QWORD PTR 24[rsi], rax
	mov	rbx, rsi
	setne	dil
	call	assert@PLT
	mov	eax, DWORD PTR H2O_HTTP3_FRAME_TYPE_PRIORITY[rip]
	mov	edx, DWORD PTR 8[rbx]
	lea	rdi, 12[rbp]
	mov	DWORD PTR 0[rbp], eax
	mov	eax, DWORD PTR 24[rbx]
	sal	edx, 4
	mov	ecx, DWORD PTR [rbx]
	sal	eax, 6
	or	eax, edx
	lea	edx, 0[0+rcx*8]
	or	eax, edx
	mov	DWORD PTR 8[rbp], eax
	mov	esi, DWORD PTR 32[rbx]
	call	quicly_encodev@PLT
	mov	rcx, QWORD PTR H2O_HTTP3_PRIORITY_ELEMENT_TYPE_ROOT[rip]
	cmp	QWORD PTR 8[rbx], rcx
	je	.L2
	mov	esi, DWORD PTR 16[rbx]
	mov	rdi, rax
	call	quicly_encodev@PLT
.L2:
	mov	edx, DWORD PTR 4[rbx]
	lea	r12, 4[rax]
	xor	edi, edi
	mov	rcx, r12
	mov	DWORD PTR [rax], edx
	lea	rax, 8[rbp]
	movsx	rdx, DWORD PTR H2O_HTTP3_PRIORITY_FRAME_CAPACITY[rip]
	sub	rcx, rax
	mov	rax, rcx
	sar	rax, 2
	mov	DWORD PTR 4[rbp], eax
	mov	rax, r12
	sub	rax, rbp
	sar	rax, 2
	cmp	rax, rdx
	setl	dil
	call	assert@PLT
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	h2o_http3_encode_priority_frame, .-h2o_http3_encode_priority_frame
	.comm	H2O_HTTP3_PRIORITY_FRAME_CAPACITY,4,4
	.comm	H2O_HTTP3_PRIORITY_ELEMENT_TYPE_ROOT,8,8
	.comm	H2O_HTTP3_FRAME_TYPE_PRIORITY,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_........libhttp3frame.c_h2o_http3_encode_priority_frame.c"
	.text
	.align	2
	.global	h2o_http3_encode_priority_frame
	.syntax unified
	.arm
	.fpu softvfp
	.type	h2o_http3_encode_priority_frame, %function
h2o_http3_encode_priority_frame:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	ldr	r7, .L6
	ldr	r0, [r1, #16]
	ldr	r3, [r7]
	mov	r5, r1
	subs	r0, r0, r3
	movne	r0, #1
	bl	assert
	mov	r0, r6
	ldr	r2, .L6+4
	ldr	r3, [r5, #8]
	ldr	r2, [r2]
	ldr	r1, [r5, #16]
	str	r2, [r0], #12
	ldr	r2, [r5]
	lsl	r3, r3, #4
	orr	r3, r3, r1, lsl #6
	orr	r3, r3, r2, lsl #3
	str	r3, [r6, #8]
	ldr	r1, [r5, #20]
	bl	quicly_encodev
	ldr	r3, [r7]
	ldr	r2, [r5, #8]
	cmp	r2, r3
	moveq	r4, r0
	beq	.L2
	ldr	r1, [r5, #12]
	bl	quicly_encodev
	mov	r4, r0
.L2:
	ldr	r2, [r5, #4]
	ldr	r3, .L6+8
	str	r2, [r4], #4
	ldr	r2, [r3]
	add	r3, r6, #8
	sub	r1, r4, r6
	sub	r3, r4, r3
	cmp	r2, r1, asr #2
	asr	r3, r3, #2
	movgt	r0, #1
	movle	r0, #0
	str	r3, [r6, #4]
	bl	assert
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	.align	2
.L6:
	.word	H2O_HTTP3_PRIORITY_ELEMENT_TYPE_ROOT
	.word	H2O_HTTP3_FRAME_TYPE_PRIORITY
	.word	H2O_HTTP3_PRIORITY_FRAME_CAPACITY
	.size	h2o_http3_encode_priority_frame, .-h2o_http3_encode_priority_frame
	.comm	H2O_HTTP3_PRIORITY_FRAME_CAPACITY,4,4
	.comm	H2O_HTTP3_PRIORITY_ELEMENT_TYPE_ROOT,4,4
	.comm	H2O_HTTP3_FRAME_TYPE_PRIORITY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
