	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns3_check_gl_coalesce_para
_hns3_check_gl_coalesce_para:           ## @hns3_check_gl_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
	movq	_HNS3_INT_GL_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpq	%rdx, %rdi
	jle	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movq	%rsi, %rbx
	cmpq	%rdx, 8(%rsi)
	jle	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	callq	_netdev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	callq	_hns3_gl_round_down
	movq	(%rbx), %rdx
	cmpq	%rdx, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rcx
	callq	_netdev_info
LBB0_7:
	movq	8(%rbx), %rdi
	callq	_hns3_gl_round_down
	movq	8(%rbx), %rdx
	xorl	%ebx, %ebx
	cmpq	%rdx, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rcx
	callq	_netdev_info
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_HNS3_INT_GL_MAX,8,3            ## @HNS3_INT_GL_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid rx-usecs value, rx-usecs range is 0-%d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Invalid tx-usecs value, tx-usecs range is 0-%d\n"

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

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

	.no_dead_strip	_hns3_check_gl_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_gl_coalesce_para
_hns3_check_gl_coalesce_para:           ; @hns3_check_gl_coalesce_para
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x1]
Lloh0:
	adrp	x8, _HNS3_INT_GL_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HNS3_INT_GL_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x2, [x8]
	cmp	x0, x2
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	mov	x20, x1
	ldr	x8, [x1, #8]
	cmp	x8, x2
	b.le	LBB0_5
; %bb.3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@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_10
LBB0_5:
	bl	_hns3_gl_round_down
	ldr	x2, [x20]
	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:
	ldr	x0, [x20, #8]
	bl	_hns3_gl_round_down
	ldr	x2, [x20, #8]
	cmp	x0, x2
	b.eq	LBB0_9
; %bb.8:
	mov	x3, x0
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_HNS3_INT_GL_MAX,8,3            ; @HNS3_INT_GL_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid rx-usecs value, rx-usecs range is 0-%d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Invalid tx-usecs value, tx-usecs range is 0-%d\n"

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

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

	.no_dead_strip	_hns3_check_gl_coalesce_para
.subsections_via_symbols
