	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_validate_ring_count
_qlcnic_validate_ring_count:            ## @qlcnic_validate_ring_count
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.2:
	movq	%rsi, %rax
	movq	(%rdi), %rcx
	cmpq	%rsi, %rcx
	jge	LBB0_4
## %bb.3:
	movl	16(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdx
	jmp	LBB0_6
LBB0_4:
	movq	8(%rdi), %rcx
	xorl	%eax, %eax
	cmpq	%rdx, %rcx
	jge	LBB0_8
## %bb.5:
	movl	16(%rdi), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	callq	_netdev_err
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid ring count, SDS ring count %d should not be greater than max %d driver sds rings.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid ring count, Tx ring count %d should not be greater than max %d driver Tx rings.\n"

	.no_dead_strip	_qlcnic_validate_ring_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_validate_ring_count
_qlcnic_validate_ring_count:            ; @qlcnic_validate_ring_count
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	x1, LBB0_7
; %bb.1:
	cbz	x2, LBB0_7
; %bb.2:
	mov	x8, x1
	ldr	x3, [x0]
	cmp	x3, x1
	b.ge	LBB0_4
; %bb.3:
	ldr	w0, [x0, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x8
	b	LBB0_6
LBB0_4:
	ldr	x3, [x0, #8]
	cmp	x3, x2
	b.ge	LBB0_8
; %bb.5:
	ldr	w0, [x0, #16]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	bl	_netdev_err
LBB0_7:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid ring count, SDS ring count %d should not be greater than max %d driver sds rings.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid ring count, Tx ring count %d should not be greater than max %d driver Tx rings.\n"

	.no_dead_strip	_qlcnic_validate_ring_count
.subsections_via_symbols
