	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_update_rx_rate
_hns_update_rx_rate:                    ## @hns_update_rx_rate
	.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	32(%rdi), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movq	_jiffies@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	$4, %eax
	movslq	%eax, %rsi
	addq	(%rbx), %rsi
	callq	_time_before
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movq	8(%rbx), %rax
	movq	24(%rbx), %r14
	cmpq	%rax, %r14
	jl	LBB0_4
## %bb.3:
	subl	%eax, %r14d
	movq	(%r15), %rdi
	subq	(%rbx), %rdi
	callq	_jiffies_to_msecs
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_do_div
	sarl	$10, %r14d
	movl	%r14d, 16(%rbx)
	movq	24(%rbx), %r14
LBB0_4:
	movq	%r14, 8(%rbx)
	movq	(%r15), %rax
	movq	%rax, (%rbx)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_hns_update_rx_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_update_rx_rate
_hns_update_rx_rate:                    ; @hns_update_rx_rate
	.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
	ldr	x8, [x0, #32]
	ldr	x8, [x8]
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x21, _jiffies@GOTPAGE
Lloh1:
	ldr	x21, [x21, _jiffies@GOTPAGEOFF]
	ldr	x0, [x21]
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _HZ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	asr	w9, w9, #4
	add	x1, x8, w9, sxtw
	bl	_time_before
	cbnz	x0, LBB0_5
; %bb.2:
	ldr	x9, [x19, #8]
	ldr	x8, [x19, #24]
	cmp	x8, x9
	b.lt	LBB0_4
; %bb.3:
	sub	w20, w8, w9
	ldr	x8, [x21]
	ldr	x9, [x19]
	sub	x0, x8, x9
	bl	_jiffies_to_msecs
	mov	x1, x0
	mov	x0, x20
	bl	_do_div
	asr	w8, w20, #10
	str	w8, [x19, #16]
	ldr	x8, [x19, #24]
LBB0_4:
	ldr	x9, [x21]
	stp	x9, x8, [x19]
LBB0_5:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_hns_update_rx_rate
.subsections_via_symbols
