	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_validate_rings          ## -- Begin function qlcnic_validate_rings
	.p2align	4, 0x90
_qlcnic_validate_rings:                 ## @qlcnic_validate_rings
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	(%rdi), %r14
	movq	_QLCNIC_RX_QUEUE@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	-48(%rbp), %rdi
	callq	_strcpy
	movq	%r15, %rdi
	callq	_is_power_of_2
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_qlcnic_82xx_check
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	_QLCNIC_TX_QUEUE@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_qlcnic_check_multi_tx
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_num_online_cpus
	cmpq	%r15, %rax
	jge	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_num_online_cpus
	leaq	L_.str.4(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_RX_QUEUE,4,2            ## @QLCNIC_RX_QUEUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SDS"

L_.str.1:                               ## @.str.1
	.asciz	"Tx"

L_.str.2:                               ## @.str.2
	.asciz	"%s rings value should be a power of 2\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_QLCNIC_TX_QUEUE,4,2            ## @QLCNIC_TX_QUEUE
L_.str.3:                               ## @.str.3
	.asciz	"No Multi Tx queue support\n"

L_.str.4:                               ## @.str.4
	.asciz	"%s value[%u] should not be higher than, number of online CPUs\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_validate_rings          ; -- Begin function qlcnic_validate_rings
	.p2align	2
_qlcnic_validate_rings:                 ; @qlcnic_validate_rings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x19, [x0]
Lloh3:
	adrp	x8, _QLCNIC_RX_QUEUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLCNIC_RX_QUEUE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, l_.str.1@PAGE
Lloh7:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh8:
	adrp	x10, l_.str@PAGE
Lloh9:
	add	x10, x10, l_.str@PAGEOFF
	cmp	w8, w2
	csel	x1, x10, x9, eq
	add	x23, sp, #16
	add	x0, sp, #16
	bl	_strcpy
	mov	x0, x20
	bl	_is_power_of_2
	cbz	w0, LBB0_6
; %bb.1:
	mov	x0, x21
	bl	_qlcnic_82xx_check
	cbz	x0, LBB0_4
; %bb.2:
Lloh10:
	adrp	x8, _QLCNIC_TX_QUEUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _QLCNIC_TX_QUEUE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_qlcnic_check_multi_tx
	cbz	w0, LBB0_8
LBB0_4:
	bl	_num_online_cpus
	cmp	x0, x20
	b.ge	LBB0_7
; %bb.5:
	bl	_num_online_cpus
	add	x8, sp, #16
	stp	x8, x0, [sp]
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_9
LBB0_6:
	str	x23, [sp]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_7:
	mov	w0, #0
	b	LBB0_10
LBB0_8:
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_netdev_err
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldr	x8, [sp, #24]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_RX_QUEUE,4,2            ; @QLCNIC_RX_QUEUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SDS"

l_.str.1:                               ; @.str.1
	.asciz	"Tx"

l_.str.2:                               ; @.str.2
	.asciz	"%s rings value should be a power of 2\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QLCNIC_TX_QUEUE,4,2            ; @QLCNIC_TX_QUEUE
l_.str.3:                               ; @.str.3
	.asciz	"No Multi Tx queue support\n"

l_.str.4:                               ; @.str.4
	.asciz	"%s value[%u] should not be higher than, number of online CPUs\n"

.subsections_via_symbols
