	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_set_channels
_bnx2x_set_channels:                    ## @bnx2x_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	_netdev_priv
	movq	%rax, %r14
	movq	_BNX2X_MSG_ETHTOOL@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	24(%rbx), %rdx
	movq	16(%rbx), %rcx
	movq	(%rbx), %r9
	movq	8(%rbx), %r8
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_DP
	cmpq	$0, 24(%rbx)
	jne	LBB0_5
## %bb.1:
	cmpq	$0, 16(%rbx)
	jne	LBB0_5
## %bb.2:
	cmpq	$0, 8(%rbx)
	je	LBB0_3
LBB0_5:
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_BNX2X_MAX_RSS_COUNT
	cmpq	%rax, -48(%rbp)                 ## 8-byte Folded Reload
	jg	LBB0_5
## %bb.6:
	movq	(%rbx), %r15
	movq	%r14, %rdi
	callq	_BNX2X_NUM_ETH_QUEUES
	cmpq	%rax, %r15
	jne	LBB0_8
## %bb.7:
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_DP
	jmp	LBB0_10
LBB0_8:
	movq	%r12, %rdi
	callq	_netif_running
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_bnx2x_change_num_queues
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_11:
	movq	_UNLOAD_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_bnx2x_nic_unload
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_bnx2x_change_num_queues
	movq	_LOAD_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnx2x_nic_load                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2X_MSG_ETHTOOL,4,2          ## @BNX2X_MSG_ETHTOOL
	.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	"No change in active parameters\n"

	.comm	_UNLOAD_NORMAL,4,2              ## @UNLOAD_NORMAL
	.comm	_LOAD_NORMAL,4,2                ## @LOAD_NORMAL
	.no_dead_strip	_bnx2x_set_channels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_set_channels
_bnx2x_set_channels:                    ; @bnx2x_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
	mov	x21, x0
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x22, _BNX2X_MSG_ETHTOOL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BNX2X_MSG_ETHTOOL@GOTPAGEOFF]
	ldr	w0, [x22]
	ldp	x9, x8, [x20, #16]
	ldp	x11, x10, [x20]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
LBB0_3:
	ldr	w0, [x22]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	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:
	ldr	x23, [x20]
	cbz	x23, LBB0_3
; %bb.6:
	mov	x0, x19
	bl	_BNX2X_MAX_RSS_COUNT
	cmp	x23, x0
	b.gt	LBB0_3
; %bb.7:
	ldr	x23, [x20]
	mov	x0, x19
	bl	_BNX2X_NUM_ETH_QUEUES
	cmp	x23, x0
	b.ne	LBB0_9
; %bb.8:
	ldr	w0, [x22]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DP
	b	LBB0_11
LBB0_9:
	mov	x0, x21
	bl	_netif_running
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_12
; %bb.10:
	ldr	x1, [x20]
	mov	x0, x19
	bl	_bnx2x_change_num_queues
LBB0_11:
	mov	w0, #0
	b	LBB0_4
LBB0_12:
Lloh11:
	adrp	x8, _UNLOAD_NORMAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _UNLOAD_NORMAL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_bnx2x_nic_unload
	ldr	x1, [x20]
	mov	x0, x19
	bl	_bnx2x_change_num_queues
Lloh14:
	adrp	x8, _LOAD_NORMAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LOAD_NORMAL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_bnx2x_nic_load
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2X_MSG_ETHTOOL,4,2          ; @BNX2X_MSG_ETHTOOL
	.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	"No change in active parameters\n"

	.comm	_UNLOAD_NORMAL,4,2              ; @UNLOAD_NORMAL
	.comm	_LOAD_NORMAL,4,2                ; @LOAD_NORMAL
	.no_dead_strip	_bnx2x_set_channels
.subsections_via_symbols
