	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns3_get_new_flow_lvl
_hns3_get_new_flow_lvl:                 ## @hns3_get_new_flow_lvl
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movq	(%rax), %r15
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	subq	24(%r15), %rdi
	callq	_jiffies_to_msecs
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_do_div
	movl	(%r14), %r12d
	movl	4(%r14), %edi
	movl	%ebx, %esi
	callq	_do_div
	movl	4(%r14), %ecx
	movl	8(%r14), %eax
	cmpl	$129, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$130, %eax
	jne	LBB0_7
## %bb.4:
	xorl	%edx, %edx
	cmpl	$10001, %ecx                    ## imm = 0x2711
	setge	%dl
	movl	$130, %eax
	subl	%edx, %eax
	jmp	LBB0_8
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_5:
	movl	$131, %eax
	cmpl	$20000, %ecx                    ## imm = 0x4E20
	jg	LBB0_8
## %bb.6:
	xorl	%eax, %eax
	cmpl	$10001, %ecx                    ## imm = 0x2711
	setl	%al
	addl	$129, %eax
	jmp	LBB0_8
LBB0_7:
	cmpl	$20001, %ecx                    ## imm = 0x4E21
	movl	$129, %ecx
	cmovll	%ecx, %eax
LBB0_8:
	cmpq	%r14, %r15
	movl	$128, %ecx
	cmovnel	%eax, %ecx
	cmpl	$41, %r12d
	cmovll	%eax, %ecx
	movq	$0, (%r14)
	movl	%ecx, 8(%r14)
	movl	$1, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HNS3_RX_LOW_BYTE_RATE,4,2      ## @HNS3_RX_LOW_BYTE_RATE
	.comm	_HNS3_RX_MID_BYTE_RATE,4,2      ## @HNS3_RX_MID_BYTE_RATE
	.comm	_HNS3_RX_ULTRA_PACKET_RATE,4,2  ## @HNS3_RX_ULTRA_PACKET_RATE
	.no_dead_strip	_hns3_get_new_flow_lvl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns3_get_new_flow_lvl
_hns3_get_new_flow_lvl:                 ; @hns3_get_new_flow_lvl
	.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
	ldr	x8, [x0, #16]
	ldr	x21, [x8]
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x21, #24]
	sub	x0, x8, x9
	bl	_jiffies_to_msecs
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19]
	mov	x1, x20
	bl	_do_div
	ldp	w22, w0, [x19]
	mov	x1, x20
	bl	_do_div
	ldp	w8, w9, [x19, #4]
	mov	w10, #131
	mov	w11, #20000
	mov	w12, #10001
	cmp	w8, w12
	mov	w12, #129
	cinc	w13, w12, lt
	cmp	w8, w11
	csel	w10, w10, w13, gt
	mov	w11, #20001
	cmp	w8, w11
	csel	w11, w12, w9, lt
	mov	w13, #10000
	cmp	w8, w13
	cinc	w8, w12, le
	cmp	w9, #130
	csel	w8, w11, w8, ne
	cmp	w9, #129
	csel	w8, w10, w8, eq
	cmp	x21, x19
	mov	w9, #40
	ccmp	w22, w9, #4, eq
	mov	w9, #128
	csel	w8, w9, w8, gt
	str	xzr, [x19]
	str	w8, [x19, #8]
	mov	w0, #1
LBB0_2:
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HNS3_RX_LOW_BYTE_RATE,4,2      ; @HNS3_RX_LOW_BYTE_RATE
	.comm	_HNS3_RX_MID_BYTE_RATE,4,2      ; @HNS3_RX_MID_BYTE_RATE
	.comm	_HNS3_RX_ULTRA_PACKET_RATE,4,2  ; @HNS3_RX_ULTRA_PACKET_RATE
	.no_dead_strip	_hns3_get_new_flow_lvl
.subsections_via_symbols
