	.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, %r12
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_BNX2X_MSG_ETHTOOL@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	24(%r12), %rdx
	movq	16(%r12), %rcx
	movq	(%r12), %r9
	movq	8(%r12), %r8
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DP
	movl	(%r14), %edi
	callq	_pci_num_vf
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_BNX2X_MSG_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	cmpq	$0, 24(%r12)
	jne	LBB0_5
## %bb.3:
	cmpq	$0, 16(%r12)
	jne	LBB0_5
## %bb.4:
	cmpq	$0, 8(%r12)
	je	LBB0_8
LBB0_5:
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DP
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_6:
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.9:
	movq	%r14, %rdi
	callq	_BNX2X_MAX_RSS_COUNT
	cmpq	%rax, %rbx
	jg	LBB0_5
## %bb.10:
	movq	(%r12), %rbx
	movq	%r14, %rdi
	callq	_BNX2X_NUM_ETH_QUEUES
	cmpq	%rax, %rbx
	jne	LBB0_12
## %bb.11:
	movl	(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DP
	jmp	LBB0_7
LBB0_12:
	movq	%r15, %rdi
	callq	_netif_running
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	(%r12), %rsi
	movq	%r14, %rdi
	callq	_bnx2x_change_num_queues
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_14:
	movq	_UNLOAD_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_bnx2x_nic_unload
	movq	(%r12), %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"

	.comm	_BNX2X_MSG_IOV,4,2              ## @BNX2X_MSG_IOV
L_.str.1:                               ## @.str.1
	.asciz	"VFs are enabled, can not set channels\n"

	.comm	_EPERM,4,2                      ## @EPERM
L_.str.2:                               ## @.str.2
	.asciz	"command parameters not supported\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.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	w0, [x19]
	bl	_pci_num_vf
	cbz	x0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _BNX2X_MSG_IOV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BNX2X_MSG_IOV@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
Lloh9:
	adrp	x8, _EPERM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_8
LBB0_5:
	ldr	w0, [x22]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DP
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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_8:
	ldr	x23, [x20]
	cbz	x23, LBB0_5
; %bb.9:
	mov	x0, x19
	bl	_BNX2X_MAX_RSS_COUNT
	cmp	x23, x0
	b.gt	LBB0_5
; %bb.10:
	ldr	x23, [x20]
	mov	x0, x19
	bl	_BNX2X_NUM_ETH_QUEUES
	cmp	x23, x0
	b.ne	LBB0_12
; %bb.11:
	ldr	w0, [x22]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_DP
	b	LBB0_14
LBB0_12:
	mov	x0, x21
	bl	_netif_running
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_15
; %bb.13:
	ldr	x1, [x20]
	mov	x0, x19
	bl	_bnx2x_change_num_queues
LBB0_14:
	mov	w0, #0
	b	LBB0_7
LBB0_15:
Lloh17:
	adrp	x8, _UNLOAD_NORMAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _UNLOAD_NORMAL@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_bnx2x_nic_unload
	ldr	x1, [x20]
	mov	x0, x19
	bl	_bnx2x_change_num_queues
Lloh20:
	adrp	x8, _LOAD_NORMAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LOAD_NORMAL@GOTPAGEOFF]
Lloh22:
	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 AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.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"

	.comm	_BNX2X_MSG_IOV,4,2              ; @BNX2X_MSG_IOV
l_.str.1:                               ; @.str.1
	.asciz	"VFs are enabled, can not set channels\n"

	.comm	_EPERM,4,2                      ; @EPERM
l_.str.2:                               ; @.str.2
	.asciz	"command parameters not supported\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.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
