	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_http3_decode_priority_frame ## -- Begin function h2o_http3_decode_priority_frame
	.p2align	4, 0x90
_h2o_http3_decode_priority_frame:       ## @h2o_http3_decode_priority_frame
	.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	%rcx, %rbx
	cmpq	$2, %rdx
	jl	LBB0_8
## %bb.1:
	movl	(%rsi), %eax
	testb	$7, %al
	jne	LBB0_8
## %bb.2:
	movq	%rdi, %r14
	shrl	$6, %eax
	andl	$3, %eax
	movl	%eax, 16(%rdi)
	movl	(%rsi), %ecx
	shrl	$4, %ecx
	andl	$3, %ecx
	movl	%ecx, 8(%rdi)
	movl	(%rsi), %ecx
	shrl	$3, %ecx
	andl	$1, %ecx
	movl	%ecx, (%rdi)
	leaq	4(%rsi), %rcx
	movq	%rcx, -48(%rbp)
	movq	_H2O_HTTP3_PRIORITY_ELEMENT_TYPE_ROOT@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	je	LBB0_8
## %bb.3:
	leaq	(%rsi,%rdx,4), %r15
	leaq	-48(%rbp), %rdi
	movq	%r15, %rsi
	callq	_quicly_decodev
	movl	%eax, 20(%r14)
	movq	_UINT64_MAX@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	je	LBB0_8
## %bb.4:
	movl	$0, 12(%r14)
	movl	8(%r14), %eax
	cmpl	(%r12), %eax
	je	LBB0_6
## %bb.5:
	leaq	-48(%rbp), %rdi
	movq	%r15, %rsi
	callq	_quicly_decodev
	movl	%eax, 12(%r14)
	cmpl	(%r13), %eax
	je	LBB0_8
LBB0_6:
	movq	-48(%rbp), %rax
	subq	%rax, %r15
	cmpq	$4, %r15
	jne	LBB0_8
## %bb.7:
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rbx)
	movq	_H2O_HTTP3_ERROR_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_H2O_HTTP3_PRIORITY_ELEMENT_TYPE_ROOT,4,2 ## @H2O_HTTP3_PRIORITY_ELEMENT_TYPE_ROOT
	.comm	_UINT64_MAX,4,2                 ## @UINT64_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid PRIORITY frame"

	.comm	_H2O_HTTP3_ERROR_FRAME,4,2      ## @H2O_HTTP3_ERROR_FRAME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_http3_decode_priority_frame ; -- Begin function h2o_http3_decode_priority_frame
	.p2align	2
_h2o_http3_decode_priority_frame:       ; @h2o_http3_decode_priority_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x3
	cmp	x2, #2
	b.lt	LBB0_8
; %bb.1:
	ldr	w8, [x1]
	tst	w8, #0x7
	b.ne	LBB0_8
; %bb.2:
	mov	x20, x0
	ubfx	w8, w8, #6, #2
	str	w8, [x0, #16]
	ldr	w9, [x1]
	ubfx	w9, w9, #4, #2
	str	w9, [x0, #8]
	mov	x9, x1
	ldr	w10, [x9], #4
	ubfx	w10, w10, #3, #1
	str	w10, [x0]
	str	x9, [sp, #8]
Lloh0:
	adrp	x22, _H2O_HTTP3_PRIORITY_ELEMENT_TYPE_ROOT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _H2O_HTTP3_PRIORITY_ELEMENT_TYPE_ROOT@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	w8, w9
	b.eq	LBB0_8
; %bb.3:
	add	x21, x1, x2, lsl #2
	add	x0, sp, #8
	mov	x1, x21
	bl	_quicly_decodev
	str	w0, [x20, #20]
Lloh2:
	adrp	x23, _UINT64_MAX@GOTPAGE
Lloh3:
	ldr	x23, [x23, _UINT64_MAX@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_8
; %bb.4:
	str	wzr, [x20, #12]
	ldr	w8, [x20, #8]
	ldr	w9, [x22]
	cmp	w8, w9
	b.eq	LBB0_6
; %bb.5:
	add	x0, sp, #8
	mov	x1, x21
	bl	_quicly_decodev
	str	w0, [x20, #12]
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_8
LBB0_6:
	ldr	x8, [sp, #8]
	sub	x9, x21, x8
	cmp	x9, #4
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #0
	ldr	w8, [x8]
	str	w8, [x20, #4]
	b	LBB0_9
LBB0_8:
Lloh4:
	adrp	x8, l_.str@PAGE
Lloh5:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x19]
Lloh6:
	adrp	x8, _H2O_HTTP3_ERROR_FRAME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _H2O_HTTP3_ERROR_FRAME@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_H2O_HTTP3_PRIORITY_ELEMENT_TYPE_ROOT,4,2 ; @H2O_HTTP3_PRIORITY_ELEMENT_TYPE_ROOT
	.comm	_UINT64_MAX,4,2                 ; @UINT64_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid PRIORITY frame"

	.comm	_H2O_HTTP3_ERROR_FRAME,4,2      ; @H2O_HTTP3_ERROR_FRAME
.subsections_via_symbols
