	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_eqd_update
_be_eqd_update:                         ## @be_eqd_update
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rsi), %rdi
	shlq	$2, %rdi
	addq	8(%r14), %rdi
	callq	_rx_stats
	cmpl	$0, 28(%r15)
	je	LBB0_1
## %bb.2:
	movq	(%r15), %rdi
	cmpq	(%r14), %rdi
	jae	LBB0_15
## %bb.3:
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	movq	%rbx, %r13
	subq	(%rax), %r13
	shlq	$2, %rdi
	addq	8(%r14), %rdi
	callq	_rx_stats
	movq	%rax, %r12
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, (%r12)
	jmp	LBB0_15
LBB0_1:
	movl	8(%r15), %ebx
	cmpl	12(%r15), %ebx
	je	LBB0_15
LBB0_14:
	movl	16(%r15), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_be_cmd_modify_eqd
	movl	%ebx, 12(%r15)
	jmp	LBB0_15
LBB0_5:
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	cmpq	%rsi, %r13
	jb	LBB0_15
## %bb.6:
	movq	16(%r12), %rdi
	movq	%rdi, %rcx
	movq	%r13, %rax
	orq	%rsi, %rax
	subq	24(%r12), %rcx
	shrq	$32, %rax
	je	LBB0_7
## %bb.8:
	movq	%r13, %rax
	xorl	%edx, %edx
	divq	%rsi
	movq	%rax, %rsi
	jmp	LBB0_9
LBB0_7:
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %esi
LBB0_9:
	movq	%rcx, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_10
## %bb.11:
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_12
LBB0_10:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_12:
	movq	%rax, 8(%r12)
	movq	%rdi, 24(%r12)
	movabsq	$5495117361884678067, %rcx      ## imm = 0x4C4294205237C7B3
	mulq	%rcx
	movq	%rbx, (%r12)
	shrq	$15, %rdx
	leal	(,%rdx,8), %edi
	movl	24(%r15), %esi
	callq	_min
	movl	20(%r15), %esi
	movl	%eax, %edi
	callq	_max
	xorl	%ebx, %ebx
	cmpl	$10, %eax
	cmovgel	%eax, %ebx
	cmpl	12(%r15), %ebx
	jne	LBB0_14
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
	.no_dead_strip	_be_eqd_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_eqd_update
_be_eqd_update:                         ; @be_eqd_update
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x9, [x1]
	add	x0, x8, x9, lsl #2
	bl	_rx_stats
	ldr	w8, [x19, #28]
	cbz	w8, LBB0_4
; %bb.1:
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x8, x9
	b.hs	LBB0_8
; %bb.2:
Lloh0:
	adrp	x9, _jiffies@GOTPAGE
Lloh1:
	ldr	x9, [x9, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x9]
	ldr	x23, [x0]
	ldr	x9, [x20, #8]
	add	x0, x9, x8, lsl #2
	bl	_rx_stats
	mov	x22, x0
	ldr	x1, [x0]
	mov	x0, x21
	bl	_time_before
	cbz	x0, LBB0_7
; %bb.3:
	str	x21, [x22]
	b	LBB0_8
LBB0_4:
	ldr	w21, [x19, #8]
LBB0_5:
	ldr	w8, [x19, #12]
	cmp	w21, w8
	b.eq	LBB0_8
; %bb.6:
	ldr	w1, [x19, #16]
	mov	x0, x20
	mov	x2, x21
	bl	_be_cmd_modify_eqd
	str	w21, [x19, #12]
	b	LBB0_8
LBB0_7:
Lloh3:
	adrp	x8, _HZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	sub	x9, x21, x23
	cmp	x9, x8
	b.hs	LBB0_9
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldp	x10, x11, [x22, #16]
	sub	x11, x10, x11
	udiv	x8, x9, x8
	udiv	x8, x11, x8
	str	x10, [x22, #24]
	stp	x21, x8, [x22]
	mov	x9, #51123
	movk	x9, #21047, lsl #16
	movk	x9, #37920, lsl #32
	movk	x9, #19522, lsl #48
	umulh	x8, x8, x9
	lsr	x8, x8, #15
	lsl	w0, w8, #3
	ldr	w1, [x19, #24]
	bl	_min
	ldr	w1, [x19, #20]
	bl	_max
	cmp	w0, #10
	csel	w21, wzr, w0, lt
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.no_dead_strip	_be_eqd_update
.subsections_via_symbols
