	.file	"extr_quicly.c_send_ack.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	send_ack, @function
send_ack:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	cmp	QWORD PTR 16[rsi], 0
	je	.L1
	mov	r15, rdx
	mov	rax, QWORD PTR now[rip]
	mov	rdx, QWORD PTR [rsi]
	mov	rbx, rdi
	mov	rbp, rsi
	xor	r13d, r13d
	cmp	rdx, rax
	jl	.L16
.L3:
	lea	r14, 16[rbp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	mov	esi, DWORD PTR 8[r15]
	mov	rdi, QWORD PTR [r15]
	mov	rcx, r13
	mov	rdx, r14
	call	quicly_encode_ack_frame@PLT
	test	rax, rax
	jne	.L4
	xor	edx, edx
	mov	rsi, r15
	mov	rdi, rbx
	call	commit_send_packet@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
.L5:
	mov	edx, DWORD PTR QUICLY_ACK_FRAME_CAPACITY[rip]
	mov	rsi, r15
	mov	rdi, rbx
	call	allocate_frame@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L17
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	sub	rax, rdx
	mov	rcx, QWORD PTR QUICLY_LOCAL_ACK_DELAY_EXPONENT[rip]
	imul	r13, rax, 1000
	sar	r13, cl
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	xor	r13d, r13d
	cmp	QWORD PTR 16[rbp], 0
	mov	QWORD PTR [r15], rax
	jne	.L8
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdx, QWORD PTR 24[rbp]
	mov	edx, DWORD PTR [rdx+r13*4]
	add	r13, 1
	mov	DWORD PTR [rax], edx
	cmp	QWORD PTR 16[rbp], r13
	je	.L9
.L8:
	mov	esi, DWORD PTR on_ack_ack[rip]
	mov	rdi, rbx
	call	quicly_sentmap_allocate@PLT
	test	rax, rax
	jne	.L7
	mov	r12d, DWORD PTR PTLS_ERROR_NO_MEMORY[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	QWORD PTR 8[rbp], 0
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	send_ack, .-send_ack
	.comm	on_ack_ack,4,4
	.comm	now,8,8
	.comm	QUICLY_LOCAL_ACK_DELAY_EXPONENT,8,8
	.comm	QUICLY_ACK_FRAME_CAPACITY,4,4
	.comm	PTLS_ERROR_NO_MEMORY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_quicly.c_send_ack.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_ack, %function
send_ack:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r4, [r1, #8]
	cmp	r4, #0
	beq	.L1
.L3:
	ldr	r3, .L18
	mov	r5, r2
	ldr	r3, [r3]
	ldr	r2, [r1]
	mov	r8, r1
	cmp	r2, r3
	sublt	r3, r3, r2
	ldrlt	r2, .L18+4
	rsblt	r7, r3, r3, lsl #5
	addlt	r3, r3, r7, lsl #2
	ldrlt	r2, [r2]
	lsllt	r7, r3, #3
	mov	r6, r0
	movge	r7, #0
	ldr	r9, .L18+8
	asrlt	r7, r7, r2
	add	r10, r1, #8
	b	.L5
.L17:
	mov	r3, r7
	ldm	r5, {r0, r1}
	mov	r2, r10
	bl	quicly_encode_ack_frame
	cmp	r0, #0
	bne	.L4
	mov	r2, r4
	mov	r1, r5
	mov	r0, r6
	bl	commit_send_packet
	subs	r4, r0, #0
	bne	.L1
.L5:
	mov	r1, r5
	mov	r0, r6
	ldr	r2, [r9]
	bl	allocate_frame
	subs	r4, r0, #0
	beq	.L17
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	ldr	r3, [r8, #8]
	str	r0, [r5]
	cmp	r3, #0
	movne	r5, r4
	ldrne	r7, .L18+12
	bne	.L8
	b	.L9
.L7:
	ldr	r3, [r8, #12]
	ldr	r2, [r8, #8]
	ldr	r3, [r3, r5, lsl #2]
	add	r5, r5, #1
	cmp	r2, r5
	str	r3, [r0]
	beq	.L9
.L8:
	mov	r0, r6
	ldr	r1, [r7]
	bl	quicly_sentmap_allocate
	cmp	r0, #0
	bne	.L7
	ldr	r3, .L18+16
	ldr	r4, [r3]
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	mov	r3, #0
	mov	r0, r4
	str	r3, [r8, #4]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L19:
	.align	2
.L18:
	.word	now
	.word	QUICLY_LOCAL_ACK_DELAY_EXPONENT
	.word	QUICLY_ACK_FRAME_CAPACITY
	.word	on_ack_ack
	.word	PTLS_ERROR_NO_MEMORY
	.size	send_ack, .-send_ack
	.comm	on_ack_ack,4,4
	.comm	now,4,4
	.comm	QUICLY_LOCAL_ACK_DELAY_EXPONENT,4,4
	.comm	QUICLY_ACK_FRAME_CAPACITY,4,4
	.comm	PTLS_ERROR_NO_MEMORY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
