	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_set_ringparam
_bnx2_set_ringparam:                    ## @bnx2_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_netdev_priv
	movl	4(%rbx), %esi
	movq	_BNX2_MAX_TOTAL_RX_DESC_CNT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %esi
	jg	LBB0_3
## %bb.1:
	movl	(%rbx), %edx
	movq	_BNX2_MAX_TX_DESC_CNT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jg	LBB0_3
## %bb.2:
	movq	_MAX_SKB_FRAGS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jle	LBB0_3
## %bb.4:
	movq	%rax, %rdi
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_bnx2_change_ring_size          ## TAILCALL
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2_MAX_TOTAL_RX_DESC_CNT,4,2 ## @BNX2_MAX_TOTAL_RX_DESC_CNT
	.comm	_BNX2_MAX_TX_DESC_CNT,4,2       ## @BNX2_MAX_TX_DESC_CNT
	.comm	_MAX_SKB_FRAGS,4,2              ## @MAX_SKB_FRAGS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_bnx2_set_ringparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2_set_ringparam
_bnx2_set_ringparam:                    ; @bnx2_set_ringparam
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_netdev_priv
	ldr	w1, [x19, #4]
Lloh0:
	adrp	x8, _BNX2_MAX_TOTAL_RX_DESC_CNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNX2_MAX_TOTAL_RX_DESC_CNT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w1, w8
	b.gt	LBB0_2
; %bb.1:
	ldr	w2, [x19]
Lloh3:
	adrp	x8, _BNX2_MAX_TX_DESC_CNT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BNX2_MAX_TX_DESC_CNT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _MAX_SKB_FRAGS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAX_SKB_FRAGS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w2, w8
	ccmp	w2, w9, #4, le
	b.gt	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	w3, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bnx2_change_ring_size
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2_MAX_TOTAL_RX_DESC_CNT,4,2 ; @BNX2_MAX_TOTAL_RX_DESC_CNT
	.comm	_BNX2_MAX_TX_DESC_CNT,4,2       ; @BNX2_MAX_TX_DESC_CNT
	.comm	_MAX_SKB_FRAGS,4,2              ; @MAX_SKB_FRAGS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_bnx2_set_ringparam
.subsections_via_symbols
