	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_quicly_sendbuf_emit            ## -- Begin function quicly_sendbuf_emit
	.p2align	4, 0x90
_quicly_sendbuf_emit:                   ## @quicly_sendbuf_emit
	.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	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	(%r8), %r15
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	movq	%rcx, %r9
	addq	16(%rsi), %rdx
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rax
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	addq	$16, %r12
	movq	%rcx, %rdx
	testq	%rax, %rax
	je	LBB0_12
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%rsi), %r14
	jae	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rsi), %rax
	movq	(%rax,%r12), %r13
	movq	%rdx, %rcx
	subq	%r13, %rcx
	jae	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rax,%r12), %rdi
	subq	%rdx, %r13
	cmpq	%r13, %r15
	movq	%r13, %rbx
	cmovbq	%r15, %rbx
	movq	8(%rax,%r12), %rax
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r9, %rsi
	movq	%rbx, %rcx
	callq	*(%rax)
	testl	%eax, %eax
	jne	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rax
	subq	%rbx, %rax
	cmpq	%r13, %r15
	jb	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	leaq	(%r9,%rbx,4), %r9
	xorl	%ecx, %ecx
	movq	%rax, %r15
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_1:
	xorl	%r14d, %r14d
LBB0_12:
	cmpq	(%rsi), %r14
	jae	LBB0_14
## %bb.13:
	xorl	%ecx, %ecx
	jmp	LBB0_16
LBB0_14:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_4:
	movq	%r15, %rax
	jmp	LBB0_15
LBB0_11:
	testq	%rax, %rax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_12
LBB0_15:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	subq	%rax, (%rcx)
	movl	$1, %ecx
LBB0_16:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	xorl	%eax, %eax
LBB0_17:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_quicly_sendbuf_emit            ; -- Begin function quicly_sendbuf_emit
	.p2align	2
_quicly_sendbuf_emit:                   ; @quicly_sendbuf_emit
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x5
	mov	x20, x4
	mov	x21, x1
	ldr	x26, [x4]
	cbz	x26, LBB0_9
; %bb.1:
	mov	x22, x3
	mov	x25, #0
	mov	x24, #0
	ldr	x8, [x21, #16]
	add	x2, x8, x2
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x2, x9
	mov	x8, x26
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	add	x25, x25, #16
	cbz	x8, LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	cmp	x24, x8
	b.hs	LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #8]
	add	x0, x8, x25
	ldr	x8, [x0]
	subs	x9, x2, x8
	b.hs	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x27, x8, x2
	cmp	x26, x27
	csel	x23, x26, x27, lo
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	mov	x1, x22
	mov	x3, x23
	blr	x8
	cbnz	w0, LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x8, x26, x23
	cmp	x26, x27
	b.lo	LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x2, #0
	add	x22, x22, x23, lsl #2
	mov	x26, x8
	b	LBB0_3
LBB0_9:
	mov	x24, #0
LBB0_10:
	ldr	x8, [x21]
	cmp	x24, x8
	b.hs	LBB0_12
; %bb.11:
	mov	w8, #0
	b	LBB0_16
LBB0_12:
	mov	x8, #0
	b	LBB0_15
LBB0_13:
	mov	x8, x26
	b	LBB0_15
LBB0_14:
	cbz	x8, LBB0_10
LBB0_15:
	ldr	x9, [x20]
	sub	x8, x9, x8
	str	x8, [x20]
	mov	w8, #1
LBB0_16:
	mov	w0, #0
	str	w8, [x19]
LBB0_17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
