	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chanhop                        ## -- Begin function chanhop
	.p2align	4, 0x90
_chanhop:                               ## @chanhop
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%esi, %esi
	callq	_gettimeofday
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_die
LBB0_2:
	movq	_chaninfo@GOTPCREL(%rip), %r15
	leaq	4(%r15), %rsi
	movq	%rbx, %rdi
	callq	_elapsed_ms
	movq	_hopfreq@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	subq	%rax, %rcx
	ja	LBB0_4
## %bb.3:
	movl	(%r15), %eax
	leal	1(%rax), %ecx
	cmpl	$11, %eax
	movl	$1, %edi
	cmovll	%ecx, %edi
	callq	_set_chan
	movq	(%r14), %rcx
LBB0_4:
	movq	%rcx, %rax
	shrq	$3, %rax
	movabsq	$2361183241434822607, %rdx      ## imm = 0x20C49BA5E353F7CF
	mulq	%rdx
	shrq	$4, %rdx
	movq	%rdx, (%rbx)
	imulq	$-1000, %rdx, %rax              ## imm = 0xFC18
	addq	%rcx, %rax
	imulq	$1000, %rax, %rax               ## imm = 0x3E8
	movq	%rax, 8(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gettimeofday()"

	.comm	_chaninfo,8,2                   ## @chaninfo
	.comm	_hopfreq,8,3                    ## @hopfreq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chanhop                        ; -- Begin function chanhop
	.p2align	2
_chanhop:                               ; @chanhop
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	mov	x1, #0
	bl	_gettimeofday
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_die
LBB0_2:
Lloh2:
	adrp	x21, _chaninfo@GOTPAGE
Lloh3:
	ldr	x21, [x21, _chaninfo@GOTPAGEOFF]
	add	x1, x21, #4
	mov	x0, x19
	bl	_elapsed_ms
Lloh4:
	adrp	x20, _hopfreq@GOTPAGE
Lloh5:
	ldr	x20, [x20, _hopfreq@GOTPAGEOFF]
	ldr	x8, [x20]
	subs	x8, x8, x0
	b.hi	LBB0_4
; %bb.3:
	ldr	w8, [x21]
	cmp	w8, #10
	mov	w9, #1
	csinc	w0, w9, w8, gt
	bl	_set_chan
	ldr	x8, [x20]
LBB0_4:
	lsr	x9, x8, #3
	mov	x10, #63439
	movk	x10, #58195, lsl #16
	movk	x10, #39845, lsl #32
	movk	x10, #8388, lsl #48
	umulh	x9, x9, x10
	lsr	x9, x9, #4
	mov	x10, #-1000
	madd	x8, x9, x10, x8
	mov	w10, #1000
	mul	x8, x8, x10
	stp	x9, x8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gettimeofday()"

	.comm	_chaninfo,8,2                   ; @chaninfo
	.comm	_hopfreq,8,3                    ; @hopfreq
.subsections_via_symbols
