	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qede_set_channels
_qede_set_channels:                     ## @qede_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_NETIF_MSG_IFUP@GOTPCREL(%rip), %r15
	movq	_NETIF_MSG_IFDOWN@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	orl	(%r15), %esi
	movl	(%rbx), %ecx
	movl	4(%rbx), %r8d
	movq	16(%rbx), %r9
	movl	8(%rbx), %eax
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rdx
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.1:
	movl	(%r13), %esi
	orl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_2:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_DP_VERBOSE
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_21:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r15, %r12
	movl	(%rbx), %eax
	movl	4(%rbx), %r15d
	movl	8(%rbx), %ecx
	testl	%ecx, %ecx
	jne	LBB0_8
## %bb.5:
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	testl	%r15d, %r15d
	je	LBB0_7
LBB0_8:
	addl	%eax, %r15d
	addl	%ecx, %r15d
	movq	%r14, %rdi
	callq	_QEDE_MAX_RSS_CNT
	cmpl	%eax, %r15d
	jle	LBB0_10
## %bb.9:
	movl	(%r13), %ebx
	orl	(%r12), %ebx
	movq	%r14, %rdi
	callq	_QEDE_MAX_RSS_CNT
	leaq	L_.str.3(%rip), %rdx
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r15d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	jmp	LBB0_3
LBB0_10:
	movq	%r14, %rdi
	callq	_QEDE_QUEUE_CNT
	cmpl	%eax, %r15d
	jne	LBB0_14
## %bb.11:
	movl	4(%rbx), %eax
	cmpl	(%r14), %eax
	jne	LBB0_14
## %bb.12:
	movl	(%rbx), %eax
	cmpl	4(%r14), %eax
	jne	LBB0_14
## %bb.13:
	movl	(%r13), %esi
	orl	(%r12), %esi
	leaq	L_.str.4(%rip), %rdx
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	jmp	LBB0_21
LBB0_14:
	movl	28(%r14), %ecx
	movl	%r15d, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	LBB0_17
## %bb.15:
	movl	4(%rbx), %esi
	movl	%esi, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	LBB0_17
## %bb.16:
	movl	(%rbx), %edi
	movl	%edi, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	je	LBB0_18
LBB0_17:
	movl	(%r13), %esi
	orl	(%r12), %esi
	leaq	L_.str.5(%rip), %rdx
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	jmp	LBB0_3
LBB0_7:
	movl	(%r13), %esi
	orl	(%r12), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%r12d, %r12d
	jmp	LBB0_2
LBB0_18:
	movl	%r15d, 8(%r14)
	movl	%esi, 12(%r14)
	movl	%edi, 16(%r14)
	subl	%esi, %r15d
	movslq	%r15d, %rbx
	movq	%r14, %rdi
	callq	_QEDE_RSS_COUNT
	cmpq	%rbx, %rax
	je	LBB0_20
## %bb.19:
	movq	_QEDE_RSS_INDIR_INITED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 24(%r14)
	movl	20(%r14), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
LBB0_20:
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_qede_reload
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_MSG_IFUP,4,2             ## @NETIF_MSG_IFUP
	.comm	_NETIF_MSG_IFDOWN,4,2           ## @NETIF_MSG_IFDOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set-channels command parameters: rx = %d, tx = %d, other = %d, combined = %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"command parameters not supported\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"need to request at least one transmit and one receive channel\n"

L_.str.3:                               ## @.str.3
	.asciz	"requested channels = %d max supported channels = %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"No change in active parameters\n"

L_.str.5:                               ## @.str.5
	.asciz	"Number of channels must be divisible by %04x\n"

	.comm	_QEDE_RSS_INDIR_INITED,4,2      ## @QEDE_RSS_INDIR_INITED
	.no_dead_strip	_qede_set_channels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qede_set_channels
_qede_set_channels:                     ; @qede_set_channels
	.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	x20, x1
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x22, _NETIF_MSG_IFUP@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NETIF_MSG_IFUP@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x21, _NETIF_MSG_IFDOWN@GOTPAGE
Lloh3:
	ldr	x21, [x21, _NETIF_MSG_IFDOWN@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w1, w9, w8
	ldr	x8, [x20, #16]
	ldp	w9, w10, [x20]
	ldr	w11, [x20, #8]
	stp	x8, x11, [sp, #16]
	stp	x9, x10, [sp]
Lloh4:
	adrp	x2, l_.str@PAGE
Lloh5:
	add	x2, x2, l_.str@PAGEOFF
	bl	_DP_VERBOSE
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	w8, [x22]
	ldr	w9, [x21]
	orr	w1, w9, w8
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_2:
	mov	x0, x19
LBB0_3:
	bl	_DP_VERBOSE
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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_5:
	ldp	w8, w9, [x20]
	ldr	w10, [x20, #8]
	cbnz	w10, LBB0_8
; %bb.6:
	cbz	w8, LBB0_18
; %bb.7:
	cbz	w9, LBB0_18
LBB0_8:
	add	w8, w9, w8
	add	w23, w8, w10
	mov	x0, x19
	bl	_QEDE_MAX_RSS_CNT
	cmp	w23, w0
	b.le	LBB0_10
; %bb.9:
	ldr	w8, [x22]
	ldr	w9, [x21]
	orr	w20, w9, w8
	mov	x0, x19
	bl	_QEDE_MAX_RSS_CNT
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x0, [sp]
Lloh11:
	adrp	x2, l_.str.3@PAGE
Lloh12:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	b	LBB0_3
LBB0_10:
	mov	x0, x19
	bl	_QEDE_QUEUE_CNT
	cmp	w23, w0
	b.ne	LBB0_14
; %bb.11:
	ldr	w8, [x20, #4]
	ldr	w9, [x19]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.12:
	ldr	w8, [x20]
	ldr	w9, [x19, #4]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.13:
	ldr	w8, [x22]
	ldr	w9, [x21]
	orr	w1, w9, w8
Lloh13:
	adrp	x2, l_.str.4@PAGE
Lloh14:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_DP_VERBOSE
	b	LBB0_22
LBB0_14:
	ldr	w8, [x19, #28]
	sdiv	w9, w23, w8
	msub	w9, w9, w8, w23
	cbnz	w9, LBB0_17
; %bb.15:
	ldr	w9, [x20, #4]
	sdiv	w10, w9, w8
	msub	w10, w10, w8, w9
	cbnz	w10, LBB0_17
; %bb.16:
	ldr	w10, [x20]
	sdiv	w11, w10, w8
	msub	w11, w11, w8, w10
	cbz	w11, LBB0_19
LBB0_17:
	ldr	w9, [x22]
	ldr	w10, [x21]
	orr	w1, w10, w9
	str	x8, [sp]
Lloh15:
	adrp	x2, l_.str.5@PAGE
Lloh16:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_2
LBB0_18:
	ldr	w8, [x22]
	ldr	w9, [x21]
	orr	w1, w9, w8
Lloh17:
	adrp	x2, l_.str.2@PAGE
Lloh18:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_19:
	stp	w23, w9, [x19, #8]
	sub	w20, w23, w9
	str	w10, [x19, #16]
	mov	x0, x19
	bl	_QEDE_RSS_COUNT
	cmp	x0, w20, sxtw
	b.eq	LBB0_21
; %bb.20:
Lloh19:
	adrp	x8, _QEDE_RSS_INDIR_INITED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _QEDE_RSS_INDIR_INITED@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldp	w0, w9, [x19, #20]
	bic	w8, w9, w8
	str	w8, [x19, #24]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
LBB0_21:
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	bl	_qede_reload
LBB0_22:
	mov	w0, #0
	b	LBB0_4
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_MSG_IFUP,4,2             ; @NETIF_MSG_IFUP
	.comm	_NETIF_MSG_IFDOWN,4,2           ; @NETIF_MSG_IFDOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set-channels command parameters: rx = %d, tx = %d, other = %d, combined = %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"command parameters not supported\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"need to request at least one transmit and one receive channel\n"

l_.str.3:                               ; @.str.3
	.asciz	"requested channels = %d max supported channels = %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"No change in active parameters\n"

l_.str.5:                               ; @.str.5
	.asciz	"Number of channels must be divisible by %04x\n"

	.comm	_QEDE_RSS_INDIR_INITED,4,2      ; @QEDE_RSS_INDIR_INITED
	.no_dead_strip	_qede_set_channels
.subsections_via_symbols
