	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_set_channels
_qlcnic_set_channels:                   ## @qlcnic_set_channels
	.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	%rsi, %r12
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_QLCNIC_MSIX_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_4
## %bb.1:
	cmpq	$0, 16(%r12)
	jne	LBB0_3
## %bb.2:
	cmpq	$0, 8(%r12)
	je	LBB0_7
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	(%r12), %edx
	movl	4(%r12), %esi
	movq	%r15, %rdi
	callq	_qlcnic_validate_ring_count
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.8:
	movl	4(%r12), %esi
	cmpl	%esi, 8(%r15)
	je	LBB0_12
## %bb.9:
	movq	_QLCNIC_RX_QUEUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_qlcnic_validate_rings
	movl	4(%r12), %edx
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_15
LBB0_11:
	movl	%edx, 16(%r15)
LBB0_12:
	movl	(%r12), %esi
	cmpl	%esi, 4(%r15)
	je	LBB0_17
## %bb.13:
	movq	_QLCNIC_TX_QUEUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_qlcnic_validate_rings
	movl	(%r12), %edx
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_15:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_6
LBB0_16:
	movl	%edx, 12(%r15)
LBB0_17:
	movq	_QLCNIC_TSS_RSS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	movq	%r15, %rdi
	callq	_qlcnic_setup_rings
	movl	%eax, %ebx
	movl	4(%r15), %ecx
	movl	8(%r15), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_info
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_MSIX_ENABLED,4,2        ## @QLCNIC_MSIX_ENABLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No RSS/TSS support in non MSI-X mode\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_QLCNIC_RX_QUEUE,4,2            ## @QLCNIC_RX_QUEUE
L_.str.1:                               ## @.str.1
	.asciz	"Unable to configure %u SDS rings\n"

	.comm	_QLCNIC_TX_QUEUE,4,2            ## @QLCNIC_TX_QUEUE
L_.str.2:                               ## @.str.2
	.asciz	"Unable to configure %u Tx rings\n"

	.comm	_QLCNIC_TSS_RSS,4,2             ## @QLCNIC_TSS_RSS
L_.str.3:                               ## @.str.3
	.asciz	"Allocated %d SDS rings and %d Tx rings\n"

	.no_dead_strip	_qlcnic_set_channels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_set_channels
_qlcnic_set_channels:                   ; @qlcnic_set_channels
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _QLCNIC_MSIX_ENABLED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QLCNIC_MSIX_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.1:
	ldr	x8, [x21, #16]
	cbnz	x8, LBB0_8
; %bb.2:
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_8
; %bb.3:
	mov	x20, x0
	ldp	w2, w1, [x21]
	bl	_qlcnic_validate_ring_count
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.4:
	ldr	w8, [x20, #8]
	ldr	w1, [x21, #4]
	cmp	w8, w1
	b.eq	LBB0_12
; %bb.5:
Lloh3:
	adrp	x8, _QLCNIC_RX_QUEUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLCNIC_RX_QUEUE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_qlcnic_validate_rings
	ldr	w8, [x21, #4]
	cbz	w0, LBB0_11
; %bb.6:
	mov	x22, x0
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_7:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
LBB0_8:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	mov	x0, x22
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_11:
	str	w8, [x20, #16]
LBB0_12:
	ldr	w8, [x20, #4]
	ldr	w1, [x21]
	cmp	w8, w1
	b.eq	LBB0_17
; %bb.13:
Lloh13:
	adrp	x8, _QLCNIC_TX_QUEUE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _QLCNIC_TX_QUEUE@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_qlcnic_validate_rings
	ldr	w8, [x21]
	cbz	w0, LBB0_16
; %bb.14:
	mov	x22, x0
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_15:
	mov	x0, x19
	bl	_netdev_err
	b	LBB0_9
LBB0_16:
	str	w8, [x20, #12]
LBB0_17:
Lloh18:
	adrp	x8, _QLCNIC_TSS_RSS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _QLCNIC_TSS_RSS@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	mov	x0, x20
	bl	_qlcnic_setup_rings
	mov	x21, x0
	ldp	w3, w2, [x20, #4]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
	mov	x0, x21
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_MSIX_ENABLED,4,2        ; @QLCNIC_MSIX_ENABLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No RSS/TSS support in non MSI-X mode\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QLCNIC_RX_QUEUE,4,2            ; @QLCNIC_RX_QUEUE
l_.str.1:                               ; @.str.1
	.asciz	"Unable to configure %u SDS rings\n"

	.comm	_QLCNIC_TX_QUEUE,4,2            ; @QLCNIC_TX_QUEUE
l_.str.2:                               ; @.str.2
	.asciz	"Unable to configure %u Tx rings\n"

	.comm	_QLCNIC_TSS_RSS,4,2             ; @QLCNIC_TSS_RSS
l_.str.3:                               ; @.str.3
	.asciz	"Allocated %d SDS rings and %d Tx rings\n"

	.no_dead_strip	_qlcnic_set_channels
.subsections_via_symbols
