	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_set_ringparam
_bnx2x_set_ringparam:                   ## @bnx2x_set_ringparam
	.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, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_BNX2X_MSG_ETHTOOL@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	(%r12), %rdx
	movq	8(%r12), %rcx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DP
	movq	(%r15), %rax
	movq	_BNX2X_RECOVERY_DONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	(%r12), %rax
	movq	_MAX_RX_AVAIL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_12
## %bb.3:
	cmpq	$0, 24(%r15)
	jne	LBB0_4
## %bb.5:
	movq	_MIN_RX_SIZE_TPA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_7
	jmp	LBB0_12
LBB0_1:
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_4:
	movq	_MIN_RX_SIZE_NONTPA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_12
LBB0_7:
	movq	8(%r12), %rbx
	movq	%r15, %rdi
	callq	_IS_MF_FCOE_AFEX
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:
	movq	_MAX_TX_AVAIL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rbx
	jle	LBB0_11
	jmp	LBB0_12
LBB0_8:
	xorl	%eax, %eax
	cmpq	%rax, %rbx
	jg	LBB0_12
LBB0_11:
	movq	8(%r12), %rax
	movq	_MAX_SKB_FRAGS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	$4, %rcx
	cmpq	%rcx, %rax
	jle	LBB0_12
## %bb.14:
	movq	(%r12), %rcx
	movq	%rcx, 8(%r15)
	movq	%rax, 16(%r15)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnx2x_reload_if_running        ## TAILCALL
LBB0_12:
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DP
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_13:
	subl	(%rax), %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2X_MSG_ETHTOOL,4,2          ## @BNX2X_MSG_ETHTOOL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set ring params command parameters: rx_pending = %d, tx_pending = %d\n"

	.comm	_BNX2X_RECOVERY_DONE,8,3        ## @BNX2X_RECOVERY_DONE
L_.str.1:                               ## @.str.1
	.asciz	"Handling parity error recovery. Try again later\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_MAX_RX_AVAIL,8,3               ## @MAX_RX_AVAIL
	.comm	_MIN_RX_SIZE_NONTPA,8,3         ## @MIN_RX_SIZE_NONTPA
	.comm	_MIN_RX_SIZE_TPA,8,3            ## @MIN_RX_SIZE_TPA
	.comm	_MAX_TX_AVAIL,8,3               ## @MAX_TX_AVAIL
	.comm	_MAX_SKB_FRAGS,8,3              ## @MAX_SKB_FRAGS
L_.str.2:                               ## @.str.2
	.asciz	"Command parameters not supported\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_bnx2x_set_ringparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_set_ringparam
_bnx2x_set_ringparam:                   ; @bnx2x_set_ringparam
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	bl	_netdev_priv
	mov	x21, x0
Lloh0:
	adrp	x22, _BNX2X_MSG_ETHTOOL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BNX2X_MSG_ETHTOOL@GOTPAGEOFF]
	ldr	w0, [x22]
	ldp	x8, x9, [x20]
	stp	x8, x9, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
	ldr	x8, [x21]
Lloh4:
	adrp	x9, _BNX2X_RECOVERY_DONE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _BNX2X_RECOVERY_DONE@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	ldr	x8, [x20]
Lloh7:
	adrp	x9, _MAX_RX_AVAIL@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MAX_RX_AVAIL@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_7
; %bb.2:
	ldr	x9, [x21, #24]
Lloh10:
	adrp	x10, _MIN_RX_SIZE_NONTPA@GOTPAGE
Lloh11:
	ldr	x10, [x10, _MIN_RX_SIZE_NONTPA@GOTPAGEOFF]
Lloh12:
	adrp	x11, _MIN_RX_SIZE_TPA@GOTPAGE
Lloh13:
	ldr	x11, [x11, _MIN_RX_SIZE_TPA@GOTPAGEOFF]
	cmp	x9, #0
	csel	x9, x11, x10, eq
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_7
; %bb.3:
	ldr	x23, [x20, #8]
	mov	x0, x21
	bl	_IS_MF_FCOE_AFEX
Lloh14:
	adrp	x8, _MAX_TX_AVAIL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MAX_TX_AVAIL@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x8, x8, xzr, eq
	cmp	x23, x8
	b.gt	LBB0_7
; %bb.4:
	ldr	x8, [x20, #8]
Lloh17:
	adrp	x9, _MAX_SKB_FRAGS@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MAX_SKB_FRAGS@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	add	x9, x9, #4
	cmp	x8, x9
	b.le	LBB0_7
; %bb.5:
	ldr	x9, [x20]
	stp	x9, x8, [x21, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_bnx2x_reload_if_running
LBB0_6:
	ldr	w0, [x22]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
Lloh22:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	ldr	w0, [x22]
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DP
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2X_MSG_ETHTOOL,4,2          ; @BNX2X_MSG_ETHTOOL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set ring params command parameters: rx_pending = %d, tx_pending = %d\n"

	.comm	_BNX2X_RECOVERY_DONE,8,3        ; @BNX2X_RECOVERY_DONE
l_.str.1:                               ; @.str.1
	.asciz	"Handling parity error recovery. Try again later\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_MAX_RX_AVAIL,8,3               ; @MAX_RX_AVAIL
	.comm	_MIN_RX_SIZE_NONTPA,8,3         ; @MIN_RX_SIZE_NONTPA
	.comm	_MIN_RX_SIZE_TPA,8,3            ; @MIN_RX_SIZE_TPA
	.comm	_MAX_TX_AVAIL,8,3               ; @MAX_TX_AVAIL
	.comm	_MAX_SKB_FRAGS,8,3              ; @MAX_SKB_FRAGS
l_.str.2:                               ; @.str.2
	.asciz	"Command parameters not supported\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_bnx2x_set_ringparam
.subsections_via_symbols
