	.file	"extr_horizon.c_make_rate_with_tolerance.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"up"
.LC1:
	.string	"down"
.LC2:
	.string	"nearest"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"make_rate_with_tolerance c=%u, %s, tol=%u"
	.text
	.p2align 4
	.type	make_rate_with_tolerance, @function
make_rate_with_tolerance:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, r8
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, ecx
	lea	rcx, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r9
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR round_up[rip], rdx
	je	.L2
	cmp	QWORD PTR round_down[rip], rdx
	lea	rcx, .LC1[rip]
	lea	rax, .LC2[rip]
	cmovne	rcx, rax
.L2:
	mov	edi, DWORD PTR DBG_QOS[rip]
	mov	r8d, r12d
	mov	edx, ebp
	or	edi, DWORD PTR DBG_FLOW[rip]
	lea	rsi, .LC3[rip]
	call	PRINTD@PLT
	test	rbx, rbx
	lea	rax, 4[rsp]
	mov	rcx, r14
	cmove	rbx, rax
	mov	rdx, QWORD PTR round_nearest[rip]
	mov	esi, ebp
	mov	rdi, r13
	mov	r8, rbx
	call	make_rate@PLT
	test	eax, eax
	jne	.L9
	mov	ecx, ebp
	mov	edx, DWORD PTR [rbx]
	sub	ecx, r12d
	cmp	ecx, edx
	ja	.L5
	add	r12d, ebp
	cmp	edx, r12d
	ja	.L5
.L1:
	mov	rbx, QWORD PTR 8[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L13
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L5:
	.cfi_restore_state
	mov	r8, rbx
	mov	rcx, r14
	mov	rdx, r15
	mov	esi, ebp
	mov	rdi, r13
	call	make_rate@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, -1
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	make_rate_with_tolerance, .-make_rate_with_tolerance
	.comm	round_up,8,8
	.comm	round_nearest,8,8
	.comm	round_down,8,8
	.comm	DBG_QOS,4,4
	.comm	DBG_FLOW,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_horizon.c_make_rate_with_tolerance.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"up\000"
	.align	2
.LC1:
	.ascii	"down\000"
	.align	2
.LC2:
	.ascii	"nearest\000"
	.align	2
.LC3:
	.ascii	"make_rate_with_tolerance c=%u, %s, tol=%u\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	make_rate_with_tolerance, %function
make_rate_with_tolerance:
	@ args = 8, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r6, r2
	ldr	lr, .L13
	ldr	r2, .L13+4
	ldr	ip, .L13+8
	ldr	lr, [lr]
	mov	r5, r3
	ldr	r2, [r2]
	ldr	ip, [ip]
	ldr	r3, .L13+12
	sub	sp, sp, #20
	cmp	lr, r6
	mov	r8, r0
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	ldr	r9, [sp, #48]
	ldr	r7, [sp, #52]
	orr	r0, r2, ip
	beq	.L7
	ldr	r2, .L13+16
	ldr	r3, .L13+20
	ldr	r1, [r2]
	ldr	r2, .L13+24
	cmp	r1, r6
	movne	r3, r2
.L2:
	mov	r2, r4
	ldr	r1, .L13+28
	str	r5, [sp]
	bl	PRINTD
	cmp	r7, #0
	addeq	r7, sp, #8
	ldr	r3, .L13+32
	str	r7, [sp]
	ldr	r2, [r3]
	mov	r1, r4
	mov	r3, r9
	mov	r0, r8
	bl	make_rate
	cmp	r0, #0
	bne	.L9
	ldr	r3, [r7]
	sub	r2, r4, r5
	cmp	r2, r3
	bhi	.L5
	add	r5, r4, r5
	cmp	r3, r5
	bhi	.L5
.L1:
	ldr	r3, .L13+12
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L5:
	mov	r3, r9
	mov	r2, r6
	mov	r1, r4
	mov	r0, r8
	str	r7, [sp]
	bl	make_rate
	b	.L1
.L7:
	ldr	r3, .L13+36
	b	.L2
.L9:
	mvn	r0, #0
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	round_up
	.word	DBG_QOS
	.word	DBG_FLOW
	.word	.LC4
	.word	round_down
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	round_nearest
	.word	.LC0
	.size	make_rate_with_tolerance, .-make_rate_with_tolerance
	.comm	round_up,4,4
	.comm	round_nearest,4,4
	.comm	round_down,4,4
	.comm	DBG_QOS,4,4
	.comm	DBG_FLOW,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
