	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_ack
_send_ack:                              ## @send_ack
	.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
	cmpq	$0, 16(%rsi)
	je	LBB0_10
## %bb.1:
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	16(%rsi), %r12
	movq	_now@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rsi), %rdx
	movq	%rax, %rcx
	subq	%rdx, %rcx
	imulq	$1000, %rcx, %r13               ## imm = 0x3E8
	movq	_QUICLY_LOCAL_ACK_DELAY_EXPONENT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarq	%cl, %r13
	xorl	%ecx, %ecx
	cmpq	%rdx, %rax
	cmovleq	%rcx, %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_QUICLY_ACK_FRAME_CAPACITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_allocate_frame
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rdi
	movl	8(%rbx), %esi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_quicly_encode_ack_frame
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_commit_send_packet
	testl	%eax, %eax
	je	LBB0_2
	jmp	LBB0_11
LBB0_5:
	movq	%rax, (%rbx)
	cmpq	$0, (%r12)
	je	LBB0_9
## %bb.6:
	xorl	%ebx, %ebx
	movq	_on_ack_ack@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_quicly_sentmap_allocate
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	24(%r14), %rcx
	movl	(%rcx,%rbx,4), %ecx
	movl	%ecx, (%rax)
	incq	%rbx
	cmpq	16(%r14), %rbx
	jne	LBB0_7
LBB0_9:
	movq	$0, 8(%r14)
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_PTLS_ERROR_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_now,8,3                        ## @now
	.comm	_QUICLY_LOCAL_ACK_DELAY_EXPONENT,8,3 ## @QUICLY_LOCAL_ACK_DELAY_EXPONENT
	.comm	_QUICLY_ACK_FRAME_CAPACITY,4,2  ## @QUICLY_ACK_FRAME_CAPACITY
	.comm	_on_ack_ack,4,2                 ## @on_ack_ack
	.comm	_PTLS_ERROR_NO_MEMORY,4,2       ## @PTLS_ERROR_NO_MEMORY
	.no_dead_strip	_send_ack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_ack
_send_ack:                              ; @send_ack
	.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
	mov	x22, x1
	ldr	x8, [x22, #16]!
	cbz	x8, LBB0_5
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _now@GOTPAGE
Lloh1:
	ldr	x8, [x8, _now@GOTPAGEOFF]
	ldr	x9, [x1]
Lloh2:
	ldr	x8, [x8]
	subs	x8, x8, x9
	mov	w9, #1000
Lloh3:
	adrp	x10, _QUICLY_LOCAL_ACK_DELAY_EXPONENT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _QUICLY_LOCAL_ACK_DELAY_EXPONENT@GOTPAGEOFF]
	mul	x8, x8, x9
Lloh5:
	ldr	x9, [x10]
	asr	x8, x8, x9
	csel	x23, x8, xzr, gt
Lloh6:
	adrp	x24, _QUICLY_ACK_FRAME_CAPACITY@GOTPAGE
Lloh7:
	ldr	x24, [x24, _QUICLY_ACK_FRAME_CAPACITY@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x24]
	mov	x0, x20
	mov	x1, x21
	bl	_allocate_frame
	cbnz	w0, LBB0_12
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x21]
	ldr	w1, [x21, #8]
	mov	x2, x22
	mov	x3, x23
	bl	_quicly_encode_ack_frame
	cbnz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	bl	_commit_send_packet
	cbz	w0, LBB0_2
	b	LBB0_12
LBB0_5:
	mov	w0, #0
	b	LBB0_12
LBB0_6:
	str	x0, [x21]
	ldr	x8, [x22]
	cbz	x8, LBB0_10
; %bb.7:
	mov	x21, #0
Lloh8:
	adrp	x22, _on_ack_ack@GOTPAGE
Lloh9:
	ldr	x22, [x22, _on_ack_ack@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x20
	bl	_quicly_sentmap_allocate
	cbz	x0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldp	x9, x8, [x19, #16]
	ldr	w8, [x8, x21, lsl #2]
	str	w8, [x0]
	add	x21, x21, #1
	cmp	x21, x9
	b.ne	LBB0_8
LBB0_10:
	mov	w0, #0
	str	xzr, [x19, #8]
	b	LBB0_12
LBB0_11:
Lloh10:
	adrp	x8, _PTLS_ERROR_NO_MEMORY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PTLS_ERROR_NO_MEMORY@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
LBB0_12:
	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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_now,8,3                        ; @now
	.comm	_QUICLY_LOCAL_ACK_DELAY_EXPONENT,8,3 ; @QUICLY_LOCAL_ACK_DELAY_EXPONENT
	.comm	_QUICLY_ACK_FRAME_CAPACITY,4,2  ; @QUICLY_ACK_FRAME_CAPACITY
	.comm	_on_ack_ack,4,2                 ; @on_ack_ack
	.comm	_PTLS_ERROR_NO_MEMORY,4,2       ; @PTLS_ERROR_NO_MEMORY
	.no_dead_strip	_send_ack
.subsections_via_symbols
