	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_nic_adpt_coalesce
_hns_nic_adpt_coalesce:                 ## @hns_nic_adpt_coalesce
	.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	8(%rdi), %rbx
	movq	8(%rbx), %rcx
	movq	_HNS_LOWEST_LATENCY_RATE@GOTPCREL(%rip), %rdx
	movq	_HNS_LOW_LATENCY_RATE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jge	LBB0_1
## %bb.2:
	movq	_HNAE_LOW_LATENCY_COAL_PARAM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_HNAE_BULK_LATENCY_COAL_PARAM@GOTPCREL(%rip), %rax
LBB0_3:
	movq	16(%rbx), %rdi
	movq	(%rbx), %rsi
	cmpq	(%rdx), %rcx
	jge	LBB0_5
## %bb.4:
	movq	_HNAE_LOWEST_LATENCY_COAL_PARAM@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rdi), %r12
	movq	(%rax), %rdi
	cmpq	%rsi, %rdi
	jne	LBB0_7
## %bb.6:
	cmpq	(%r12), %rsi
	je	LBB0_13
LBB0_7:
	callq	_smooth_alg
	movq	%rax, (%rbx)
	cmpq	(%r12), %rax
	jne	LBB0_9
## %bb.8:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r12)
	movq	(%r14), %rax
	movq	%rax, 8(%r12)
	jmp	LBB0_13
LBB0_9:
	movq	%rax, %r15
	jg	LBB0_12
## %bb.10:
	movq	8(%r12), %rax
	cmpq	(%r14), %rax
	je	LBB0_12
## %bb.11:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	$4, %eax
	movslq	%eax, %rsi
	addq	16(%r12), %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_13
LBB0_12:
	movq	24(%r12), %rax
	movq	(%rax), %rax
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	*8(%rax)
	movq	24(%r12), %rax
	movq	(%rax), %rax
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	callq	*(%rax)
	movq	%r15, (%r12)
	movq	(%r14), %rax
	movq	%rax, 8(%r12)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r12)
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HNS_LOWEST_LATENCY_RATE,8,3    ## @HNS_LOWEST_LATENCY_RATE
	.comm	_HNAE_LOWEST_LATENCY_COAL_PARAM,8,3 ## @HNAE_LOWEST_LATENCY_COAL_PARAM
	.comm	_HNS_LOW_LATENCY_RATE,8,3       ## @HNS_LOW_LATENCY_RATE
	.comm	_HNAE_LOW_LATENCY_COAL_PARAM,8,3 ## @HNAE_LOW_LATENCY_COAL_PARAM
	.comm	_HNAE_BULK_LATENCY_COAL_PARAM,8,3 ## @HNAE_BULK_LATENCY_COAL_PARAM
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_hns_nic_adpt_coalesce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_nic_adpt_coalesce
_hns_nic_adpt_coalesce:                 ; @hns_nic_adpt_coalesce
	.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	x20, x0
	ldr	x22, [x0, #8]
	ldr	x8, [x22, #16]
	ldr	x19, [x8]
	ldp	x1, x8, [x22]
Lloh0:
	adrp	x9, _HNS_LOWEST_LATENCY_RATE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HNS_LOWEST_LATENCY_RATE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _HNS_LOW_LATENCY_RATE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HNS_LOW_LATENCY_RATE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _HNAE_LOWEST_LATENCY_COAL_PARAM@GOTPAGE
Lloh7:
	ldr	x11, [x11, _HNAE_LOWEST_LATENCY_COAL_PARAM@GOTPAGEOFF]
Lloh8:
	adrp	x12, _HNAE_LOW_LATENCY_COAL_PARAM@GOTPAGE
Lloh9:
	ldr	x12, [x12, _HNAE_LOW_LATENCY_COAL_PARAM@GOTPAGEOFF]
Lloh10:
	adrp	x13, _HNAE_BULK_LATENCY_COAL_PARAM@GOTPAGE
Lloh11:
	ldr	x13, [x13, _HNAE_BULK_LATENCY_COAL_PARAM@GOTPAGEOFF]
	cmp	x8, x10
	csel	x10, x12, x13, lt
	cmp	x8, x9
	csel	x8, x11, x10, lt
	ldr	x0, [x8]
	cmp	x0, x1
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19]
	cmp	x1, x8
	b.eq	LBB0_8
LBB0_2:
	bl	_smooth_alg
	str	x0, [x22]
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _jiffies@GOTPAGE
Lloh13:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	x9, [x20]
	stp	x9, x8, [x19, #8]
	b	LBB0_8
LBB0_4:
	mov	x21, x0
Lloh15:
	adrp	x22, _jiffies@GOTPAGE
Lloh16:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	b.gt	LBB0_7
; %bb.5:
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.6:
	ldr	x0, [x22]
	ldr	x8, [x19, #16]
Lloh17:
	adrp	x9, _HZ@GOTPAGE
Lloh18:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	asr	w9, w9, #4
	add	x1, x8, w9, sxtw
	bl	_time_after
	cbz	x0, LBB0_8
LBB0_7:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	mov	x0, x19
	mov	x1, x21
	blr	x8
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x19
	mov	w1, #1
	mov	x2, x21
	blr	x8
	ldr	x8, [x20]
	stp	x21, x8, [x19]
	ldr	x8, [x22]
	str	x8, [x19, #16]
LBB0_8:
	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 AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_HNS_LOWEST_LATENCY_RATE,8,3    ; @HNS_LOWEST_LATENCY_RATE
	.comm	_HNAE_LOWEST_LATENCY_COAL_PARAM,8,3 ; @HNAE_LOWEST_LATENCY_COAL_PARAM
	.comm	_HNS_LOW_LATENCY_RATE,8,3       ; @HNS_LOW_LATENCY_RATE
	.comm	_HNAE_LOW_LATENCY_COAL_PARAM,8,3 ; @HNAE_LOW_LATENCY_COAL_PARAM
	.comm	_HNAE_BULK_LATENCY_COAL_PARAM,8,3 ; @HNAE_BULK_LATENCY_COAL_PARAM
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_hns_nic_adpt_coalesce
.subsections_via_symbols
