	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_quicly_recvstate_update        ## -- Begin function quicly_recvstate_update
	.p2align	4, 0x90
_quicly_recvstate_update:               ## @quicly_recvstate_update
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_quicly_recvstate_transfer_complete
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movq	(%rbx), %rax
	movq	_UINT64_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.2:
	movq	(%r14), %rax
	addq	%r15, %rax
	movq	%rax, (%rbx)
	movq	24(%rbx), %rcx
	movslq	16(%rbx), %rdx
	shlq	$4, %rdx
	cmpq	-16(%rdx,%rcx), %rax
	jl	LBB0_3
LBB0_5:
	movq	(%r14), %rdx
	leaq	(%rdx,%r15), %rax
	movq	8(%rbx), %rsi
	cmpq	%rsi, %rax
	jbe	LBB0_6
## %bb.7:
	cmpq	%r15, %rsi
	jle	LBB0_8
## %bb.9:
	subq	%rsi, %r15
	addq	%r15, %rdx
	movq	%rdx, (%r14)
	testq	%rdx, %rdx
	jne	LBB0_11
	jmp	LBB0_12
LBB0_4:
	movq	(%r14), %rcx
	addq	%r15, %rcx
	cmpq	%rax, %rcx
	jbe	LBB0_5
LBB0_3:
	movq	_QUICLY_TRANSPORT_ERROR_FINAL_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_17
LBB0_6:
	movq	$0, (%r14)
	movq	24(%rbx), %rax
	movq	(%rax), %rcx
	xorl	%eax, %eax
	cmpq	(%rbx), %rcx
	jne	LBB0_17
LBB0_16:
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_quicly_ranges_clear
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_8:
	movq	%r15, %rsi
	testq	%rdx, %rdx
	je	LBB0_12
LBB0_11:
	leaq	16(%rbx), %rdi
	addq	%rsi, %rdx
	callq	_quicly_ranges_add
	testl	%eax, %eax
	jne	LBB0_17
LBB0_12:
	xorl	%eax, %eax
	cmpl	$1, 16(%rbx)
	jne	LBB0_17
## %bb.13:
	movq	24(%rbx), %rcx
	cmpq	$0, 8(%rcx)
	jne	LBB0_17
## %bb.14:
	movq	(%rcx), %rcx
	cmpq	(%rbx), %rcx
	je	LBB0_16
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UINT64_MAX,8,3                 ## @UINT64_MAX
	.comm	_QUICLY_TRANSPORT_ERROR_FINAL_OFFSET,4,2 ## @QUICLY_TRANSPORT_ERROR_FINAL_OFFSET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_quicly_recvstate_update        ; -- Begin function quicly_recvstate_update
	.p2align	2
_quicly_recvstate_update:               ; @quicly_recvstate_update
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_quicly_recvstate_transfer_complete
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _UINT64_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UINT64_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.1:
	cbz	w22, LBB0_3
; %bb.2:
	ldr	x8, [x21]
	ldr	x9, [x19, #24]
	ldrsw	x10, [x19, #16]
	add	x9, x9, x10, lsl #4
	ldur	x9, [x9, #-16]
	add	x8, x8, x20
	cmp	x8, x9
	str	x8, [x19]
	b.lt	LBB0_11
LBB0_3:
	ldr	x8, [x21]
	ldr	x9, [x19, #8]
	add	x10, x8, x20
	cmp	x10, x9
	b.ls	LBB0_12
; %bb.4:
	cmp	x9, x20
	b.le	LBB0_6
; %bb.5:
	sub	x10, x20, x9
	add	x8, x10, x8
	str	x8, [x21]
	mov	x20, x9
LBB0_6:
	cbz	x8, LBB0_8
; %bb.7:
	add	x0, x19, #16
	add	x2, x20, x8
	mov	x1, x20
	bl	_quicly_ranges_add
	cbnz	w0, LBB0_16
LBB0_8:
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.ne	LBB0_15
; %bb.9:
	ldr	x8, [x19, #24]
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_15
	b	LBB0_13
LBB0_10:
	ldr	x9, [x21]
	add	x9, x9, x20
	cmp	x9, x8
	b.ls	LBB0_3
LBB0_11:
Lloh3:
	adrp	x8, _QUICLY_TRANSPORT_ERROR_FINAL_OFFSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QUICLY_TRANSPORT_ERROR_FINAL_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_16
LBB0_12:
	str	xzr, [x21]
	ldr	x8, [x19, #24]
LBB0_13:
	ldr	x8, [x8]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.14:
	add	x0, x19, #16
	bl	_quicly_ranges_clear
LBB0_15:
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_UINT64_MAX,8,3                 ; @UINT64_MAX
	.comm	_QUICLY_TRANSPORT_ERROR_FINAL_OFFSET,4,2 ; @QUICLY_TRANSPORT_ERROR_FINAL_OFFSET
.subsections_via_symbols
