	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns3_check_rl_coalesce_para
_hns3_check_rl_coalesce_para:           ## @hns3_check_rl_coalesce_para
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rsi), %rdi
	cmpq	8(%rsi), %rdi
	jne	LBB0_1
## %bb.3:
	movq	_HNS3_INT_RL_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpq	%rdx, %rdi
	jle	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	%rsi, %rbx
	callq	_hns3_rl_round_down
	movq	8(%rbx), %rdx
	xorl	%ebx, %ebx
	cmpq	%rdx, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rcx
	callq	_netdev_info
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tx_usecs_high must be same as rx_usecs_high.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HNS3_INT_RL_MAX,8,3            ## @HNS3_INT_RL_MAX
L_.str.1:                               ## @.str.1
	.asciz	"Invalid usecs_high value, usecs_high range is 0-%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"usecs_high(%d) rounded down to %d, because it must be multiple of 4.\n"

	.no_dead_strip	_hns3_check_rl_coalesce_para
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns3_check_rl_coalesce_para
_hns3_check_rl_coalesce_para:           ; @hns3_check_rl_coalesce_para
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldp	x0, x8, [x1]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _HNS3_INT_RL_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HNS3_INT_RL_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_5
; %bb.2:
	str	x8, [sp]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_netdev_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_5:
	mov	x20, x1
	bl	_hns3_rl_round_down
	ldr	x2, [x20, #8]
	cmp	x0, x2
	b.eq	LBB0_7
; %bb.6:
	mov	x3, x0
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tx_usecs_high must be same as rx_usecs_high.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HNS3_INT_RL_MAX,8,3            ; @HNS3_INT_RL_MAX
l_.str.1:                               ; @.str.1
	.asciz	"Invalid usecs_high value, usecs_high range is 0-%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"usecs_high(%d) rounded down to %d, because it must be multiple of 4.\n"

	.no_dead_strip	_hns3_check_rl_coalesce_para
.subsections_via_symbols
