	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apply_stream_frame
_apply_stream_frame:                    ## @apply_stream_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	%rsi, %r14
	movq	%rdi, %r12
	movq	_STREAM_RECEIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	40(%rdi), %r15
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_probe_now
	movq	(%r14), %r8
	movq	8(%r14), %r9
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	movq	%r12, %rcx
	callq	_QUICLY_PROBE
	leaq	16(%r12), %r15
	movq	%r15, %rdi
	callq	_quicly_recvstate_transfer_complete
	testq	%rax, %rax
	je	LBB0_1
LBB0_17:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpq	$0, (%r12)
	js	LBB0_2
## %bb.3:
	movq	(%r14), %rsi
	movq	8(%r14), %rax
	leaq	(%rax,%rsi), %rcx
	movq	%rcx, %rdx
	subq	16(%r12), %rdx
	cmpq	%rdx, 48(%r12)
	jge	LBB0_5
LBB0_4:
	movq	_QUICLY_TRANSPORT_ERROR_FLOW_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_17
LBB0_2:
	movq	(%r14), %rsi
	movq	8(%r14), %rax
	jmp	LBB0_8
LBB0_5:
	movq	32(%r12), %rdx
	movslq	24(%r12), %rdi
	subq	-8(%rdx,%rdi,8), %rcx
	jle	LBB0_8
## %bb.6:
	movq	40(%r12), %rdx
	addq	(%rdx), %rcx
	cmpq	8(%rdx), %rcx
	jg	LBB0_4
## %bb.7:
	movq	%rcx, (%rdx)
LBB0_8:
	movq	%rax, -48(%rbp)
	movl	24(%r14), %ecx
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_quicly_recvstate_update
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.9:
	movq	-48(%rbp), %rcx
	testq	%rcx, %rcx
	jne	LBB0_12
## %bb.10:
	movq	%r15, %rdi
	callq	_quicly_recvstate_transfer_complete
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	-48(%rbp), %rcx
LBB0_12:
	movq	8(%r14), %rdx
	movq	(%r14), %rsi
	addq	%rdx, %rsi
	movq	16(%r12), %rax
	addq	%rcx, %rax
	subq	%rax, %rsi
	movq	8(%r12), %rax
	subq	%rcx, %rdx
	addq	16(%r14), %rdx
	movq	%r12, %rdi
	callq	*(%rax)
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_17
LBB0_13:
	movq	%r12, %rdi
	callq	_should_send_max_stream_data
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%r12, %rdi
	callq	_sched_stream_control
LBB0_15:
	movq	%r12, %rdi
	callq	_stream_is_destroyable
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_destroy_stream
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_STREAM_RECEIVE,4,2             ## @STREAM_RECEIVE
	.comm	_QUICLY_TRANSPORT_ERROR_FLOW_CONTROL,4,2 ## @QUICLY_TRANSPORT_ERROR_FLOW_CONTROL
	.no_dead_strip	_apply_stream_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apply_stream_frame
_apply_stream_frame:                    ; @apply_stream_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _STREAM_RECEIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STREAM_RECEIVE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	x22, [x0, #40]
	bl	_probe_now
	mov	x2, x0
	ldp	x4, x5, [x20]
	mov	x0, x21
	mov	x1, x22
	mov	x3, x19
	bl	_QUICLY_PROBE
	add	x21, x19, #16
	mov	x0, x21
	bl	_quicly_recvstate_transfer_complete
	cbz	x0, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	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
	add	sp, sp, #64
	ret
LBB0_3:
	ldr	x8, [x19]
	tbnz	x8, #63, LBB0_6
; %bb.4:
	ldp	x1, x8, [x20]
	ldr	x10, [x19, #48]
	ldr	x11, [x19, #16]
	add	x9, x8, x1
	sub	x11, x9, x11
	cmp	x10, x11
	b.ge	LBB0_7
LBB0_5:
Lloh3:
	adrp	x8, _QUICLY_TRANSPORT_ERROR_FLOW_CONTROL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QUICLY_TRANSPORT_ERROR_FLOW_CONTROL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_2
LBB0_6:
	ldp	x1, x8, [x20]
	b	LBB0_10
LBB0_7:
	ldr	x10, [x19, #32]
	ldrsw	x11, [x19, #24]
	add	x10, x10, x11, lsl #3
	ldur	x10, [x10, #-8]
	subs	x10, x9, x10
	b.le	LBB0_10
; %bb.8:
	ldr	x9, [x19, #40]
	ldp	x11, x12, [x9]
	add	x10, x11, x10
	cmp	x10, x12
	b.gt	LBB0_5
; %bb.9:
	str	x10, [x9]
LBB0_10:
	str	x8, [sp, #8]
	ldr	w3, [x20, #24]
	add	x2, sp, #8
	mov	x0, x21
	bl	_quicly_recvstate_update
	cbnz	w0, LBB0_2
; %bb.11:
	ldr	x3, [sp, #8]
	cbnz	x3, LBB0_14
; %bb.12:
	mov	x0, x21
	bl	_quicly_recvstate_transfer_complete
	cbz	x0, LBB0_15
; %bb.13:
	ldr	x3, [sp, #8]
LBB0_14:
	ldp	x8, x9, [x20]
	add	x8, x9, x8
	ldp	x11, x10, [x19, #8]
	add	x10, x3, x10
	sub	x1, x8, x10
	ldr	x8, [x11]
	ldr	x10, [x20, #16]
	sub	x9, x9, x3
	add	x2, x9, x10
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_2
LBB0_15:
	mov	x0, x19
	bl	_should_send_max_stream_data
	cbz	x0, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_sched_stream_control
LBB0_17:
	mov	x0, x19
	bl	_stream_is_destroyable
	cbz	x0, LBB0_2
; %bb.18:
	mov	x0, x19
	mov	w1, #0
	bl	_destroy_stream
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_STREAM_RECEIVE,4,2             ; @STREAM_RECEIVE
	.comm	_QUICLY_TRANSPORT_ERROR_FLOW_CONTROL,4,2 ; @QUICLY_TRANSPORT_ERROR_FLOW_CONTROL
	.no_dead_strip	_apply_stream_frame
.subsections_via_symbols
