	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_quicly_send                    ## -- Begin function quicly_send
	.p2align	4, 0x90
_quicly_send:                           ## @quicly_send
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rdi, %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -128(%rbp)
	movl	%esi, -112(%rbp)
	movq	(%rdx), %rax
	movq	%rax, -104(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -64(%rbp)
	movl	56(%rdi), %edi
	callq	_update_now
	movq	_now@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r14, %rdi
	callq	_quicly_get_first_timeout
	cmpq	%rax, %rbx
	jge	LBB0_2
## %bb.1:
	movq	$0, (%r15)
LBB0_22:
	xorl	%eax, %eax
LBB0_23:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r15, %rbx
	movq	_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	callq	_probe_now
	movl	%eax, %r12d
	movq	40(%r14), %r13
	movl	52(%r14), %edi
	movl	48(%r14), %esi
	callq	_QUICLY_PROBE_HEXDUMP
	movl	%r15d, %edi
	movq	%r14, %rsi
	movl	%r12d, %edx
	movq	%r13, %rcx
	movl	%eax, %r8d
	callq	_QUICLY_PROBE
	movq	40(%r14), %rax
	movq	_QUICLY_STATE_CLOSING@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jge	LBB0_3
## %bb.17:
	leaq	-128(%rbp), %rsi
	movq	%r14, %rdi
	callq	_do_send
	testl	%eax, %eax
	jne	LBB0_23
## %bb.18:
	cmpq	$0, -120(%rbp)
	jne	LBB0_21
## %bb.19:
	movq	_now@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, 8(%r14)
	jg	LBB0_21
## %bb.20:
	sete	%al
	movzbl	%al, %edi
	callq	_assert
	leaq	-128(%rbp), %rsi
	movq	%r14, %rdi
	callq	_do_send
	testl	%eax, %eax
	jne	LBB0_23
LBB0_21:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_assert_consistency
	movq	-120(%rbp), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_22
LBB0_3:
	leaq	-44(%rbp), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_init_acks_iter
	movq	%r15, %rdi
	callq	_quicly_sentmap_get
	movq	(%rax), %rax
	movq	_UINT64_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_QUICLY_ERROR_FREE_CONNECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_23
LBB0_5:
	movq	40(%r14), %rax
	cmpq	(%r12), %rax
	movq	%rbx, %r15
	movq	_now@GOTPCREL(%rip), %r12
	jne	LBB0_16
## %bb.6:
	movq	(%r14), %rax
	cmpq	(%r12), %rax
	jle	LBB0_7
LBB0_16:
	leaq	-44(%rbp), %rdi
	callq	_quicly_sentmap_get
	movq	8(%rax), %rbx
	movq	%r14, %rdi
	callq	_get_sentmap_expiration_time
	addq	%rbx, %rax
	movq	%rax, (%r14)
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	setg	%dil
	callq	_assert
	movq	-120(%rbp), %rax
	movq	%rax, (%r15)
	jmp	LBB0_22
LBB0_7:
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_destroy_all_streams
	movq	32(%r14), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	cmpq	$0, 8(%rax)
	je	LBB0_10
## %bb.9:
	movq	%rax, -104(%rbp)
	movq	_QUICLY_QUIC_BIT@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_10:
	movq	24(%r14), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	%rax, -104(%rbp)
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.12:
	movq	_QUICLY_PACKET_TYPE_HANDSHAKE@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	16(%r14), %rax
	movq	%rax, -104(%rbp)
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	setne	%dil
	callq	_assert
	movq	_QUICLY_PACKET_TYPE_INITIAL@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	movl	%eax, -112(%rbp)
	leaq	-128(%rbp), %rsi
	movq	%r14, %rdi
	callq	_send_connection_close
	testl	%eax, %eax
	jne	LBB0_23
## %bb.15:
	leaq	-128(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_commit_send_packet
	testl	%eax, %eax
	jne	LBB0_23
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_now,8,3                        ## @now
	.comm	_SEND,4,2                       ## @SEND
	.comm	_QUICLY_STATE_CLOSING,8,3       ## @QUICLY_STATE_CLOSING
	.comm	_UINT64_MAX,8,3                 ## @UINT64_MAX
	.comm	_QUICLY_ERROR_FREE_CONNECTION,4,2 ## @QUICLY_ERROR_FREE_CONNECTION
	.comm	_QUICLY_QUIC_BIT,4,2            ## @QUICLY_QUIC_BIT
	.comm	_QUICLY_PACKET_TYPE_HANDSHAKE,4,2 ## @QUICLY_PACKET_TYPE_HANDSHAKE
	.comm	_QUICLY_PACKET_TYPE_INITIAL,4,2 ## @QUICLY_PACKET_TYPE_INITIAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_quicly_send                    ; -- Begin function quicly_send
	.p2align	2
_quicly_send:                           ; @quicly_send
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x19, x2
	mov	x20, x0
	stp	xzr, xzr, [sp, #16]
	str	w1, [sp, #32]
	ldr	x8, [x2]
	str	x8, [sp, #40]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #48]
	str	q0, [sp, #80]
	ldr	w0, [x0, #56]
	bl	_update_now
Lloh0:
	adrp	x24, _now@GOTPAGE
Lloh1:
	ldr	x24, [x24, _now@GOTPAGEOFF]
	ldr	x21, [x24]
	mov	x0, x20
	bl	_quicly_get_first_timeout
	cmp	x21, x0
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #0
	str	xzr, [x19]
	b	LBB0_14
LBB0_2:
Lloh2:
	adrp	x8, _SEND@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SEND@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
	bl	_probe_now
	mov	x22, x0
	ldr	x23, [x20, #40]
	ldp	w1, w0, [x20, #48]
	bl	_QUICLY_PROBE_HEXDUMP
	mov	x4, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	x3, x23
	bl	_QUICLY_PROBE
	ldr	x8, [x20, #40]
Lloh5:
	adrp	x21, _QUICLY_STATE_CLOSING@GOTPAGE
Lloh6:
	ldr	x21, [x21, _QUICLY_STATE_CLOSING@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ge	LBB0_8
; %bb.3:
	add	x1, sp, #16
	mov	x0, x20
	bl	_do_send
	cbnz	w0, LBB0_14
; %bb.4:
	ldr	x8, [sp, #24]
	cbnz	x8, LBB0_7
; %bb.5:
	ldr	x8, [x20, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.gt	LBB0_7
; %bb.6:
	cset	w0, eq
	bl	_assert
	add	x1, sp, #16
	mov	x0, x20
	bl	_do_send
	cbnz	w0, LBB0_14
LBB0_7:
	mov	x0, x20
	mov	w1, #1
	bl	_assert_consistency
	b	LBB0_13
LBB0_8:
	add	x1, sp, #12
	mov	x0, x20
	bl	_init_acks_iter
	add	x0, sp, #12
	bl	_quicly_sentmap_get
	ldr	x8, [x0]
Lloh7:
	adrp	x9, _UINT64_MAX@GOTPAGE
Lloh8:
	ldr	x9, [x9, _UINT64_MAX@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
Lloh10:
	adrp	x8, _QUICLY_ERROR_FREE_CONNECTION@GOTPAGE
Lloh11:
	ldr	x8, [x8, _QUICLY_ERROR_FREE_CONNECTION@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	b	LBB0_14
LBB0_10:
	ldr	x8, [x20, #40]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	ldr	x8, [x20]
	ldr	x9, [x24]
	cmp	x8, x9
	b.le	LBB0_15
LBB0_12:
	add	x0, sp, #12
	bl	_quicly_sentmap_get
	ldr	x21, [x0, #8]
	mov	x0, x20
	bl	_get_sentmap_expiration_time
	add	x8, x0, x21
	str	x8, [x20]
	ldr	x9, [x24]
	cmp	x8, x9
	cset	w0, gt
	bl	_assert
LBB0_13:
	mov	w0, #0
	ldr	x8, [sp, #24]
	str	x8, [x19]
LBB0_14:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_15:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	bl	_destroy_all_streams
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_18
; %bb.16:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_18
; %bb.17:
	str	x8, [sp, #40]
Lloh13:
	adrp	x8, _QUICLY_QUIC_BIT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _QUICLY_QUIC_BIT@GOTPAGEOFF]
	b	LBB0_22
LBB0_18:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_21
; %bb.19:
	str	x8, [sp, #40]
	ldr	x8, [x8]
	cbz	x8, LBB0_21
; %bb.20:
Lloh15:
	adrp	x8, _QUICLY_PACKET_TYPE_HANDSHAKE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _QUICLY_PACKET_TYPE_HANDSHAKE@GOTPAGEOFF]
	b	LBB0_22
LBB0_21:
	ldr	x8, [x20, #16]
	str	x8, [sp, #40]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
Lloh17:
	adrp	x8, _QUICLY_PACKET_TYPE_INITIAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _QUICLY_PACKET_TYPE_INITIAL@GOTPAGEOFF]
LBB0_22:
	ldr	w8, [x8]
	str	w8, [sp, #32]
	add	x1, sp, #16
	mov	x0, x20
	bl	_send_connection_close
	cbnz	w0, LBB0_14
; %bb.23:
	add	x1, sp, #16
	mov	x0, x20
	mov	w2, #0
	bl	_commit_send_packet
	cbnz	w0, LBB0_14
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_now,8,3                        ; @now
	.comm	_SEND,4,2                       ; @SEND
	.comm	_QUICLY_STATE_CLOSING,8,3       ; @QUICLY_STATE_CLOSING
	.comm	_UINT64_MAX,8,3                 ; @UINT64_MAX
	.comm	_QUICLY_ERROR_FREE_CONNECTION,4,2 ; @QUICLY_ERROR_FREE_CONNECTION
	.comm	_QUICLY_QUIC_BIT,4,2            ; @QUICLY_QUIC_BIT
	.comm	_QUICLY_PACKET_TYPE_HANDSHAKE,4,2 ; @QUICLY_PACKET_TYPE_HANDSHAKE
	.comm	_QUICLY_PACKET_TYPE_INITIAL,4,2 ; @QUICLY_PACKET_TYPE_INITIAL
.subsections_via_symbols
