	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_quicly_sendbuf_write_vec       ## -- Begin function quicly_sendbuf_write_vec
	.p2align	4, 0x90
_quicly_sendbuf_write_vec:              ## @quicly_sendbuf_write_vec
	.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
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	8(%rsi), %eax
	xorl	%edi, %edi
	cmpl	12(%rsi), %eax
	setle	%dil
	callq	_assert
	movl	8(%rbx), %ecx
	cmpl	12(%rbx), %ecx
	jne	LBB0_1
## %bb.2:
	leal	(%rcx,%rcx), %eax
	testl	%ecx, %ecx
	movl	$4, %r12d
	cmovnel	%eax, %r12d
	movslq	%r12d, %rsi
	movq	16(%rbx), %rdi
	shlq	$3, %rsi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, 16(%rbx)
	movl	%r12d, 12(%rbx)
	movl	8(%rbx), %ecx
	jmp	LBB0_4
LBB0_1:
	movq	16(%rbx), %rax
LBB0_4:
	leal	1(%rcx), %edx
	movl	%edx, 8(%rbx)
	movslq	%ecx, %rcx
	movq	(%r15), %rdx
	movq	%rdx, (%rax,%rcx,8)
	movl	(%r15), %eax
	addl	%eax, (%rbx)
	movq	%r14, %rdi
	movl	$1, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_quicly_stream_sync_sendbuf     ## TAILCALL
LBB0_5:
	movq	_PTLS_ERROR_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PTLS_ERROR_NO_MEMORY,4,2       ## @PTLS_ERROR_NO_MEMORY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_quicly_sendbuf_write_vec       ; -- Begin function quicly_sendbuf_write_vec
	.p2align	2
_quicly_sendbuf_write_vec:              ; @quicly_sendbuf_write_vec
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldp	w8, w9, [x1, #8]
	cmp	w8, w9
	cset	w0, le
	bl	_assert
	ldp	w8, w9, [x20, #8]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.1:
	lsl	w9, w8, #1
	mov	w10, #4
	cmp	w8, #0
	csel	w22, w10, w9, eq
	ldr	x0, [x20, #16]
	sbfiz	x1, x22, #3, #32
	bl	_realloc
	cbz	x0, LBB0_5
; %bb.2:
	str	x0, [x20, #16]
	str	w22, [x20, #12]
	ldr	w8, [x20, #8]
	b	LBB0_4
LBB0_3:
	ldr	x0, [x20, #16]
LBB0_4:
	add	w9, w8, #1
	str	w9, [x20, #8]
	ldr	x9, [x21]
	str	x9, [x0, w8, sxtw #3]
	ldr	w8, [x21]
	ldr	w9, [x20]
	add	w8, w9, w8
	str	w8, [x20]
	mov	x0, x19
	mov	w1, #1
	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
	b	_quicly_stream_sync_sendbuf
LBB0_5:
Lloh0:
	adrp	x8, _PTLS_ERROR_NO_MEMORY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PTLS_ERROR_NO_MEMORY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_PTLS_ERROR_NO_MEMORY,4,2       ; @PTLS_ERROR_NO_MEMORY
.subsections_via_symbols
