	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lio_ethtool_set_channels
_lio_ethtool_set_channels:              ## @lio_ethtool_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
	movq	%rdi, %r12
	callq	_GET_LIO
	movq	%rax, %r14
	movq	8(%rax), %r13
	movl	24(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	movq	16(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_6
LBB0_2:
	movl	(%rbx), %r15d
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.3:
	cmpq	$0, 24(%rbx)
	jne	LBB0_6
## %bb.4:
	cmpq	$0, 16(%rbx)
	jne	LBB0_6
## %bb.5:
	cmpq	$0, 8(%rbx)
	je	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r13, %rdi
	callq	_OCTEON_CN23XX_PF
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	cmpq	$0, 8(%r13)
	je	LBB0_12
## %bb.9:
	movl	(%r14), %eax
	jmp	LBB0_13
LBB0_10:
	movq	%r13, %rdi
	callq	_OCTEON_CN23XX_VF
	testq	%rax, %rax
	je	LBB0_6
## %bb.11:
	xorl	%edi, %edi
	callq	_CN23XX_VF_SLI_IQ_PKT_CONTROL64
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_octeon_read_csr64
	movq	_CN23XX_PKT_INPUT_CTL_RPVF_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_CN23XX_PKT_INPUT_CTL_RPVF_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jmp	LBB0_13
LBB0_12:
	movq	_cn23xx_pf@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_CHIP_CONF
	movq	%rax, %rdi
	callq	_CFG_GET_IQ_MAX_Q
LBB0_13:
	testl	%r15d, %r15d
	jle	LBB0_6
## %bb.14:
	cmpl	%eax, %r15d
	jg	LBB0_6
## %bb.15:
	xorl	%ebx, %ebx
	cmpl	(%r13), %r15d
	je	LBB0_21
## %bb.16:
	movq	_LIO_IFSTATE_RESETTING@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_ifstate_set
	movq	%r12, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movq	(%r12), %rax
	movq	%r12, %rdi
	callq	*8(%rax)
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_lio_reset_queues
	testq	%rax, %rax
	jne	LBB0_6
## %bb.19:
	movq	(%r12), %rax
	movq	%r12, %rdi
	callq	*(%rax)
	jmp	LBB0_20
LBB0_17:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_lio_reset_queues
	testq	%rax, %rax
	jne	LBB0_6
LBB0_20:
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_ifstate_reset
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"1.6.1"

L_.str.1:                               ## @.str.1
	.asciz	"Minimum firmware version required is 1.6.1\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_cn23xx_pf,4,2                  ## @cn23xx_pf
	.comm	_CN23XX_PKT_INPUT_CTL_RPVF_POS,4,2 ## @CN23XX_PKT_INPUT_CTL_RPVF_POS
	.comm	_CN23XX_PKT_INPUT_CTL_RPVF_MASK,4,2 ## @CN23XX_PKT_INPUT_CTL_RPVF_MASK
	.comm	_LIO_IFSTATE_RESETTING,4,2      ## @LIO_IFSTATE_RESETTING
	.no_dead_strip	_lio_ethtool_set_channels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lio_ethtool_set_channels
_lio_ethtool_set_channels:              ; @lio_ethtool_set_channels
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x1
	mov	x20, x0
	bl	_GET_LIO
	mov	x19, x0
	ldr	x22, [x0, #8]
	ldr	w0, [x22, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	tbz	x0, #63, LBB0_2
; %bb.1:
	ldr	x0, [x22, #16]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_6
LBB0_2:
	ldr	w21, [x23]
	cbz	w21, LBB0_6
; %bb.3:
	ldr	x8, [x23, #24]
	cbnz	x8, LBB0_6
; %bb.4:
	ldr	x8, [x23, #16]
	cbnz	x8, LBB0_6
; %bb.5:
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_8
LBB0_6:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x22
	bl	_OCTEON_CN23XX_PF
	cbz	x0, LBB0_11
; %bb.9:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_13
; %bb.10:
	ldr	w0, [x19]
	b	LBB0_14
LBB0_11:
	mov	x0, x22
	bl	_OCTEON_CN23XX_VF
	cbz	x0, LBB0_6
; %bb.12:
	mov	w0, #0
	bl	_CN23XX_VF_SLI_IQ_PKT_CONTROL64
	mov	x1, x0
	mov	x0, x22
	bl	_octeon_read_csr64
Lloh7:
	adrp	x8, _CN23XX_PKT_INPUT_CTL_RPVF_POS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CN23XX_PKT_INPUT_CTL_RPVF_POS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	asr	w8, w0, w8
Lloh10:
	adrp	x9, _CN23XX_PKT_INPUT_CTL_RPVF_MASK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CN23XX_PKT_INPUT_CTL_RPVF_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	and	w0, w8, w9
	b	LBB0_14
LBB0_13:
Lloh13:
	adrp	x8, _cn23xx_pf@GOTPAGE
Lloh14:
	ldr	x8, [x8, _cn23xx_pf@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_CHIP_CONF
	bl	_CFG_GET_IQ_MAX_Q
LBB0_14:
	cmp	w21, #1
	b.lt	LBB0_6
; %bb.15:
	cmp	w21, w0
	b.gt	LBB0_6
; %bb.16:
	ldr	w8, [x22]
	cmp	w21, w8
	b.eq	LBB0_22
; %bb.17:
Lloh16:
	adrp	x22, _LIO_IFSTATE_RESETTING@GOTPAGE
Lloh17:
	ldr	x22, [x22, _LIO_IFSTATE_RESETTING@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_ifstate_set
	mov	x0, x20
	bl	_netif_running
	cbz	x0, LBB0_20
; %bb.18:
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	mov	x0, x20
	blr	x8
	mov	x0, x20
	mov	x1, x21
	bl	_lio_reset_queues
	cbnz	x0, LBB0_6
; %bb.19:
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	b	LBB0_21
LBB0_20:
	mov	x0, x20
	mov	x1, x21
	bl	_lio_reset_queues
	cbnz	x0, LBB0_6
LBB0_21:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_ifstate_reset
LBB0_22:
	mov	w0, #0
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"1.6.1"

l_.str.1:                               ; @.str.1
	.asciz	"Minimum firmware version required is 1.6.1\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_cn23xx_pf,4,2                  ; @cn23xx_pf
	.comm	_CN23XX_PKT_INPUT_CTL_RPVF_POS,4,2 ; @CN23XX_PKT_INPUT_CTL_RPVF_POS
	.comm	_CN23XX_PKT_INPUT_CTL_RPVF_MASK,4,2 ; @CN23XX_PKT_INPUT_CTL_RPVF_MASK
	.comm	_LIO_IFSTATE_RESETTING,4,2      ; @LIO_IFSTATE_RESETTING
	.no_dead_strip	_lio_ethtool_set_channels
.subsections_via_symbols
