	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_quicly_sendbuf_shift           ## -- Begin function quicly_sendbuf_shift
	.p2align	4, 0x90
_quicly_sendbuf_shift:                  ## @quicly_sendbuf_shift
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	leaq	8(%rsi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	movq	%rdx, %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, (%r15)
	incq	%rbx
	addq	$16, %r12
	movq	%r13, %r14
	testq	%r13, %r13
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	cmpq	8(%r15), %rbx
	setb	%dil
	callq	_assert
	movq	(%r15), %rax
	movq	24(%r15), %rdi
	movq	(%rdi,%r12), %rcx
	subq	%rax, %rcx
	subq	%rcx, %r13
	jb	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rdi,%r12), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%r12, %rdi
	callq	*%rax
	jmp	LBB0_5
LBB0_11:
	addq	%r14, %rax
	movq	%rax, (%r15)
LBB0_6:
	testq	%rbx, %rbx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_10
## %bb.7:
	movq	8(%r15), %rdx
	movq	24(%r15), %rdi
	subq	%rbx, %rdx
	jne	LBB0_8
## %bb.9:
	callq	_free
	xorps	%xmm0, %xmm0
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movups	%xmm0, (%rax)
	movq	$0, 16(%rax)
	jmp	LBB0_10
LBB0_8:
	movq	%rbx, %rsi
	shlq	$4, %rsi
	addq	%rdi, %rsi
	shlq	$4, %rdx
	callq	_memmove
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	subq	%rbx, (%rax)
LBB0_10:
	movq	%r12, %rdi
	xorl	%esi, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_quicly_stream_sync_sendbuf     ## TAILCALL
	.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_shift           ; -- Begin function quicly_sendbuf_shift
	.p2align	2
_quicly_sendbuf_shift:                  ; @quicly_sendbuf_shift
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	cbz	x2, LBB0_11
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x24, #0
	mov	x23, #0
	add	x22, x1, #8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x20]
	add	x23, x23, #1
	add	x24, x24, #16
	mov	x21, x25
	cbz	x25, LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	cmp	x23, x8
	cset	w0, lo
	bl	_assert
	ldr	x8, [x20, #24]
	add	x0, x8, x24
	ldr	x9, [x0]
	ldr	x8, [x20]
	sub	x9, x9, x8
	subs	x25, x21, x9
	b.lo	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	blr	x8
	b	LBB0_2
LBB0_6:
	add	x8, x8, x21
	str	x8, [x20]
LBB0_7:
	cbz	x23, LBB0_11
; %bb.8:
	ldr	x8, [x20, #8]
	ldr	x0, [x20, #24]
	subs	x8, x8, x23
	b.ne	LBB0_10
; %bb.9:
	bl	_free
	stp	xzr, xzr, [x22, #8]
	str	xzr, [x22]
	b	LBB0_11
LBB0_10:
	lsl	x2, x8, #4
	add	x1, x0, x23, lsl #4
	bl	_memmove
	ldr	x8, [x22]
	sub	x8, x8, x23
	str	x8, [x22]
LBB0_11:
	mov	x0, x19
	mov	w1, #0
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_quicly_stream_sync_sendbuf
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
