	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_scheduler_node
_get_scheduler_node:                    ## @get_scheduler_node
	.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
                                        ## kill: def $edx killed $edx def $rdx
	xorl	%ebx, %ebx
	addl	$-128, %edx
	cmpl	$3, %edx
	ja	LBB0_17
## %bb.1:
	movq	%r9, %r12
	movl	%ecx, %r13d
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	testq	%r8, %r8
	je	LBB0_14
## %bb.3:
	movq	%r8, (%r14)
	jmp	LBB0_17
LBB0_4:
	movl	%r13d, %edi
	callq	_quicly_stream_is_client_initiated
	testl	%eax, %eax
	je	LBB0_12
## %bb.5:
	movl	%r13d, %edi
	callq	_quicly_stream_is_unidirectional
	testl	%eax, %eax
	jne	LBB0_12
## %bb.6:
	leal	3(%r13), %ebx
	testl	%r13d, %r13d
	cmovnsl	%r13d, %ebx
	sarl	$2, %ebx
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_quicly_get_ingress_max_streams
	cmpl	%eax, %ebx
	jge	LBB0_12
## %bb.7:
	movl	(%r15), %edi
	movl	%r13d, %esi
	callq	_quicly_get_stream
	testq	%rax, %rax
	je	LBB0_18
## %bb.8:
	movq	(%rax), %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	movq	%rbx, %rdi
	callq	_h2o_http2_scheduler_is_open
	movl	%eax, %edi
	callq	_assert
	jmp	LBB0_21
LBB0_9:
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%r12)
	movq	_H2O_HTTP3_ERROR_GENERAL_PROTOCOL@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_10:
	movq	_H2O_HTTP3_SETTINGS_NUM_PLACEHOLDERS@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jle	LBB0_13
## %bb.11:
	notl	%r13d
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	$1, %edx
	callq	_get_freestanding_scheduler_ref
	movq	%rax, (%r14)
	jmp	LBB0_17
LBB0_12:
	leaq	L_.str(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	leaq	L_.str.2(%rip), %rax
	jmp	LBB0_15
LBB0_14:
	leaq	L_.str.3(%rip), %rax
LBB0_15:
	movq	%rax, (%r12)
	movq	_H2O_HTTP3_ERROR_FRAME@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_quicly_get_peer_next_stream_id
	xorl	%edx, %edx
	cmpl	%r13d, %eax
	setle	%dl
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_get_freestanding_scheduler_ref
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:
	movq	%r15, %rdi
	callq	_get_orphan_placeholder
LBB0_20:
	movq	%rax, %rbx
LBB0_21:
	movq	%rbx, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_9
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid request stream id in PRIORITY frame"

	.comm	_H2O_HTTP3_ERROR_FRAME,4,2      ## @H2O_HTTP3_ERROR_FRAME
L_.str.1:                               ## @.str.1
	.asciz	"unexpectedly found a push stream id in PRIORITY frame"

	.comm	_H2O_HTTP3_ERROR_GENERAL_PROTOCOL,4,2 ## @H2O_HTTP3_ERROR_GENERAL_PROTOCOL
	.comm	_H2O_HTTP3_SETTINGS_NUM_PLACEHOLDERS,4,2 ## @H2O_HTTP3_SETTINGS_NUM_PLACEHOLDERS
L_.str.2:                               ## @.str.2
	.asciz	"invalid placeholder id found in PRIORITY frame"

L_.str.3:                               ## @.str.3
	.asciz	"invalid depedency type in PRIORITY frame"

	.no_dead_strip	_get_scheduler_node
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_scheduler_node
_get_scheduler_node:                    ; @get_scheduler_node
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	w8, w2, #128
	cmp	w8, #3
	b.hi	LBB0_4
; %bb.1:
	mov	x22, x5
	mov	x21, x3
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	cbz	x4, LBB0_15
; %bb.3:
	mov	w0, #0
	str	x4, [x19]
	b	LBB0_18
LBB0_4:
	mov	w0, #0
	b	LBB0_18
LBB0_5:
	mov	x0, x21
	bl	_quicly_stream_is_client_initiated
	cbz	w0, LBB0_13
; %bb.6:
	mov	x0, x21
	bl	_quicly_stream_is_unidirectional
	cbnz	w0, LBB0_13
; %bb.7:
	add	w8, w21, #3
	cmp	w21, #0
	csel	w23, w8, w21, lt
	ldr	w0, [x20]
	mov	w1, #0
	bl	_quicly_get_ingress_max_streams
	cmp	w0, w23, asr #2
	b.le	LBB0_13
; %bb.8:
	ldr	w0, [x20]
	mov	x1, x21
	bl	_quicly_get_stream
	cbz	x0, LBB0_19
; %bb.9:
	ldr	x21, [x0]
	cmp	x21, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x21
	bl	_h2o_http2_scheduler_is_open
	bl	_assert
	b	LBB0_22
LBB0_10:
Lloh2:
	adrp	x8, l_.str.1@PAGE
Lloh3:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x22]
Lloh4:
	adrp	x8, _H2O_HTTP3_ERROR_GENERAL_PROTOCOL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _H2O_HTTP3_ERROR_GENERAL_PROTOCOL@GOTPAGEOFF]
	b	LBB0_17
LBB0_11:
Lloh6:
	adrp	x8, _H2O_HTTP3_SETTINGS_NUM_PLACEHOLDERS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _H2O_HTTP3_SETTINGS_NUM_PLACEHOLDERS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w21
	b.le	LBB0_14
; %bb.12:
	mvn	w1, w21
	mov	x0, x20
	mov	w2, #1
	bl	_get_freestanding_scheduler_ref
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_18
LBB0_13:
Lloh9:
	adrp	x8, l_.str@PAGE
Lloh10:
	add	x8, x8, l_.str@PAGEOFF
	b	LBB0_16
LBB0_14:
Lloh11:
	adrp	x8, l_.str.2@PAGE
Lloh12:
	add	x8, x8, l_.str.2@PAGEOFF
	b	LBB0_16
LBB0_15:
Lloh13:
	adrp	x8, l_.str.3@PAGE
Lloh14:
	add	x8, x8, l_.str.3@PAGEOFF
LBB0_16:
	str	x8, [x22]
Lloh15:
	adrp	x8, _H2O_HTTP3_ERROR_FRAME@GOTPAGE
Lloh16:
	ldr	x8, [x8, _H2O_HTTP3_ERROR_FRAME@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
LBB0_18:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_19:
	ldr	w0, [x20]
	mov	w1, #0
	bl	_quicly_get_peer_next_stream_id
	cmp	w0, w21
	cset	w2, le
	mov	x0, x20
	mov	x1, x21
	bl	_get_freestanding_scheduler_ref
	cbnz	x0, LBB0_21
; %bb.20:
	mov	x0, x20
	bl	_get_orphan_placeholder
LBB0_21:
	mov	x21, x0
LBB0_22:
	mov	w0, #0
	str	x21, [x19]
	b	LBB0_18
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid request stream id in PRIORITY frame"

	.comm	_H2O_HTTP3_ERROR_FRAME,4,2      ; @H2O_HTTP3_ERROR_FRAME
l_.str.1:                               ; @.str.1
	.asciz	"unexpectedly found a push stream id in PRIORITY frame"

	.comm	_H2O_HTTP3_ERROR_GENERAL_PROTOCOL,4,2 ; @H2O_HTTP3_ERROR_GENERAL_PROTOCOL
	.comm	_H2O_HTTP3_SETTINGS_NUM_PLACEHOLDERS,4,2 ; @H2O_HTTP3_SETTINGS_NUM_PLACEHOLDERS
l_.str.2:                               ; @.str.2
	.asciz	"invalid placeholder id found in PRIORITY frame"

l_.str.3:                               ; @.str.3
	.asciz	"invalid depedency type in PRIORITY frame"

	.no_dead_strip	_get_scheduler_node
.subsections_via_symbols
