	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_crypto_data
_write_crypto_data:                     ## @write_crypto_data
	.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
	xorl	%eax, %eax
	cmpq	$0, (%rsi)
	je	LBB0_13
## %bb.1:
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdx), %rax
	movq	%rax, %rbx
	subq	(%rdx), %rbx
	je	LBB0_4
## %bb.2:
	movq	%r15, %rdi
	movl	$-1, %esi
	callq	_quicly_get_stream
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	(%r12), %rsi
	addq	8(%r14), %rsi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	_quicly_streambuf_egress_write
	testl	%eax, %eax
	jne	LBB0_13
## %bb.3:
	movq	8(%r12), %rax
LBB0_4:
	movq	16(%r12), %rbx
	subq	%rax, %rbx
	je	LBB0_7
## %bb.5:
	movq	%r15, %rdi
	movl	$-2, %esi
	callq	_quicly_get_stream
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	8(%r12), %rsi
	addq	8(%r14), %rsi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	_quicly_streambuf_egress_write
	testl	%eax, %eax
	jne	LBB0_13
## %bb.6:
	movq	16(%r12), %rax
LBB0_7:
	movq	24(%r12), %rbx
	subq	%rax, %rbx
	je	LBB0_10
## %bb.8:
	movq	%r15, %rdi
	movl	$-3, %esi
	callq	_quicly_get_stream
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	16(%r12), %rsi
	addq	8(%r14), %rsi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	_quicly_streambuf_egress_write
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:
	movq	24(%r12), %rax
LBB0_10:
	movq	32(%r12), %rbx
	subq	%rax, %rbx
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	movl	$-4, %esi
	callq	_quicly_get_stream
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	24(%r12), %rsi
	addq	8(%r14), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_quicly_streambuf_egress_write
	testl	%eax, %eax
	jne	LBB0_13
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_write_crypto_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_crypto_data
_write_crypto_data:                     ; @write_crypto_data
	.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
	ldr	x8, [x1]
	cbz	x8, LBB0_12
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldp	x9, x8, [x2]
	subs	x22, x8, x9
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x21
	mov	w1, #-1
	bl	_quicly_get_stream
	mov	x23, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x20, #8]
	ldr	x9, [x19]
	add	x1, x9, x8
	mov	x0, x23
	mov	x2, x22
	bl	_quicly_streambuf_egress_write
	cbnz	w0, LBB0_13
; %bb.3:
	ldr	x8, [x19, #8]
LBB0_4:
	ldr	x9, [x19, #16]
	subs	x22, x9, x8
	b.eq	LBB0_7
; %bb.5:
	mov	x0, x21
	mov	w1, #-2
	bl	_quicly_get_stream
	mov	x23, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x20, #8]
	ldr	x9, [x19, #8]
	add	x1, x9, x8
	mov	x0, x23
	mov	x2, x22
	bl	_quicly_streambuf_egress_write
	cbnz	w0, LBB0_13
; %bb.6:
	ldr	x8, [x19, #16]
LBB0_7:
	ldr	x9, [x19, #24]
	subs	x22, x9, x8
	b.eq	LBB0_10
; %bb.8:
	mov	x0, x21
	mov	w1, #-3
	bl	_quicly_get_stream
	mov	x23, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x20, #8]
	ldr	x9, [x19, #16]
	add	x1, x9, x8
	mov	x0, x23
	mov	x2, x22
	bl	_quicly_streambuf_egress_write
	cbnz	w0, LBB0_13
; %bb.9:
	ldr	x8, [x19, #24]
LBB0_10:
	ldr	x9, [x19, #32]
	subs	x22, x9, x8
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x21
	mov	w1, #-4
	bl	_quicly_get_stream
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x20, #8]
	ldr	x9, [x19, #24]
	add	x1, x9, x8
	mov	x0, x21
	mov	x2, x22
	bl	_quicly_streambuf_egress_write
	cbnz	w0, LBB0_13
LBB0_12:
	mov	w0, #0
LBB0_13:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_write_crypto_data
.subsections_via_symbols
