	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ingress_unistream_on_receive
_ingress_unistream_on_receive:          ## @ingress_unistream_on_receive
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_quicly_get_data
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	16(%rax), %r14
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_h2o_http3_update_recvbuf
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	8(%r12), %rdi
	callq	_quicly_recvstate_transfer_complete
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_H2O_HTTP3_ERROR_CLOSED_CRITICAL_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	16(%r12), %rax
	movq	(%rax), %rbx
	movq	%rbx, -48(%rbp)
	movq	8(%r12), %rdi
	callq	_quicly_recvstate_bytes_available
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	cltq
	leaq	(%rbx,%rax,4), %rcx
	movq	$0, -72(%rbp)
	leaq	-48(%rbp), %rdx
	leaq	-72(%rbp), %r8
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	*(%r12)
	movl	%eax, %ebx
	movq	-48(%rbp), %r15
	movq	16(%r12), %rax
	movq	(%rax), %rax
	cmpq	%r15, %rax
	je	LBB0_7
## %bb.6:
	subq	%rax, %r15
	sarq	$2, %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_h2o_buffer_consume
	movq	8(%r12), %rdi
	movq	%r15, %rsi
	callq	_quicly_stream_sync_recvbuf
	jmp	LBB0_7
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_H2O_HTTP3_ERROR_CLOSED_CRITICAL_STREAM,4,2 ## @H2O_HTTP3_ERROR_CLOSED_CRITICAL_STREAM
	.no_dead_strip	_ingress_unistream_on_receive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ingress_unistream_on_receive
_ingress_unistream_on_receive:          ; @ingress_unistream_on_receive
	.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	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_quicly_get_data
	ldr	x21, [x0]
	ldr	x19, [x19]
	add	x20, x19, #16
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	bl	_h2o_http3_update_recvbuf
	mov	x22, x0
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	x0, [x19, #8]
	bl	_quicly_recvstate_transfer_complete
	cbz	x0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _H2O_HTTP3_ERROR_CLOSED_CRITICAL_STREAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _H2O_HTTP3_ERROR_CLOSED_CRITICAL_STREAM@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
LBB0_3:
	mov	x0, x22
	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
LBB0_4:
	ldp	x0, x8, [x19, #8]
	ldr	x22, [x8]
	str	x22, [sp, #8]
	bl	_quicly_recvstate_bytes_available
	cbz	w0, LBB0_7
; %bb.5:
	add	x3, x22, w0, sxtw #2
	str	xzr, [sp]
	ldr	x8, [x19]
	add	x2, sp, #8
	mov	x4, sp
	mov	x0, x21
	mov	x1, x19
	blr	x8
	mov	x22, x0
	ldr	x8, [sp, #8]
	ldr	x9, [x19, #16]
	ldr	x9, [x9]
	cmp	x9, x8
	b.eq	LBB0_3
; %bb.6:
	sub	x8, x8, x9
	asr	x21, x8, #2
	mov	x0, x20
	mov	x1, x21
	bl	_h2o_buffer_consume
	ldr	x0, [x19, #8]
	mov	x1, x21
	bl	_quicly_stream_sync_recvbuf
	b	LBB0_3
LBB0_7:
	mov	w22, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_H2O_HTTP3_ERROR_CLOSED_CRITICAL_STREAM,4,2 ; @H2O_HTTP3_ERROR_CLOSED_CRITICAL_STREAM
	.no_dead_strip	_ingress_unistream_on_receive
.subsections_via_symbols
