	.file	"extr_stumbler.c_chanhop.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"gettimeofday()"
	.text
	.p2align 4
	.globl	chanhop
	.type	chanhop, @function
chanhop:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	xor	esi, esi
	mov	rbx, rdi
	call	gettimeofday@PLT
	cmp	eax, -1
	je	.L8
.L2:
	lea	rsi, chaninfo[rip+4]
	mov	rdi, rbx
	call	elapsed_ms@PLT
	mov	rdx, QWORD PTR hopfreq[rip]
	mov	rcx, rdx
	sub	rcx, rax
	cmp	rdx, rax
	ja	.L5
	mov	eax, DWORD PTR chaninfo[rip]
	lea	edi, 1[rax]
	mov	eax, 1
	cmp	edi, 12
	cmovge	edi, eax
	call	set_chan@PLT
	mov	rcx, QWORD PTR hopfreq[rip]
.L5:
	movabs	rsi, 2361183241434822607
	mov	rdx, rcx
	shr	rdx, 3
	mov	rax, rdx
	mul	rsi
	shr	rdx, 4
	mov	QWORD PTR [rbx], rdx
	imul	rdx, rdx, 1000
	sub	rcx, rdx
	imul	rcx, rcx, 1000
	mov	QWORD PTR 8[rbx], rcx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	edi, 1
	call	die@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	chanhop, .-chanhop
	.comm	hopfreq,8,8
	.comm	chaninfo,8,8
	.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_stumbler.c_chanhop.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"gettimeofday()\000"
	.text
	.align	2
	.global	chanhop
	.syntax unified
	.arm
	.fpu softvfp
	.type	chanhop, %function
chanhop:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r1, #0
	mov	r4, r0
	bl	gettimeofday
	cmn	r0, #1
	beq	.L8
.L2:
	ldr	r6, .L9
	mov	r0, r4
	mov	r1, r6
	bl	elapsed_ms
	ldr	r5, .L9+4
	ldr	r3, [r5]
	cmp	r3, r0
	subhi	r3, r3, r0
	bhi	.L5
	ldr	r0, [r6, #-4]
	add	r0, r0, #1
	cmp	r0, #12
	movge	r0, #1
	bl	set_chan
	ldr	r3, [r5]
.L5:
	ldr	r2, .L9+8
	umull	r1, r2, r3, r2
	lsr	r2, r2, #6
	rsb	r0, r2, r2, lsl #5
	add	r0, r2, r0, lsl #2
	sub	r3, r3, r0, lsl #3
	rsb	r1, r3, r3, lsl #5
	add	r3, r3, r1, lsl #2
	lsl	r3, r3, #3
	stm	r4, {r2, r3}
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r1, .L9+12
	mov	r0, #1
	bl	die
	b	.L2
.L10:
	.align	2
.L9:
	.word	chaninfo+4
	.word	hopfreq
	.word	274877907
	.word	.LC0
	.size	chanhop, .-chanhop
	.comm	hopfreq,4,4
	.comm	chaninfo,8,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
