	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qede_set_ringparam
_qede_set_ringparam:                    ## @qede_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_NETIF_MSG_IFUP@GOTPCREL(%rip), %r15
	movq	_NETIF_MSG_IFDOWN@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	orl	(%r15), %esi
	movq	(%rbx), %rcx
	movq	8(%rbx), %r8
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	movq	(%rbx), %rax
	movq	_NUM_RX_BDS_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	movq	_NUM_RX_BDS_MIN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%r8, %rax
	jg	LBB0_2
## %bb.1:
	cmpq	%rcx, %rax
	jl	LBB0_2
## %bb.3:
	movq	8(%rbx), %rsi
	movq	_NUM_TX_BDS_MAX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_NUM_TX_BDS_MIN@GOTPCREL(%rip), %rdi
	movq	(%rdi), %r9
	cmpq	%rdx, %rsi
	jg	LBB0_5
## %bb.4:
	cmpq	%r9, %rsi
	jl	LBB0_5
## %bb.6:
	movq	%rax, (%r14)
	movq	%rsi, 8(%r14)
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_qede_reload
	jmp	LBB0_7
LBB0_2:
	movq	_NUM_TX_BDS_MIN@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	_NUM_TX_BDS_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
LBB0_5:
	movl	(%r12), %esi
	orl	(%r15), %esi
	movq	%rdx, (%rsp)
	leaq	L_.str.1(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_MSG_IFUP,4,2             ## @NETIF_MSG_IFUP
	.comm	_NETIF_MSG_IFDOWN,4,2           ## @NETIF_MSG_IFDOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set ring params command parameters: rx_pending = %d, tx_pending = %d\n"

	.comm	_NUM_RX_BDS_MAX,8,3             ## @NUM_RX_BDS_MAX
	.comm	_NUM_RX_BDS_MIN,8,3             ## @NUM_RX_BDS_MIN
	.comm	_NUM_TX_BDS_MAX,8,3             ## @NUM_TX_BDS_MAX
	.comm	_NUM_TX_BDS_MIN,8,3             ## @NUM_TX_BDS_MIN
L_.str.1:                               ## @.str.1
	.asciz	"Can only support Rx Buffer size [0%08x,...,0x%08x] and Tx Buffer size [0x%08x,...,0x%08x]\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qede_set_ringparam
_qede_set_ringparam:                    ; @qede_set_ringparam
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x21, _NETIF_MSG_IFUP@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NETIF_MSG_IFUP@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x22, _NETIF_MSG_IFDOWN@GOTPAGE
Lloh3:
	ldr	x22, [x22, _NETIF_MSG_IFDOWN@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w1, w9, w8
	ldp	x3, x4, [x20]
Lloh4:
	adrp	x2, l_.str@PAGE
Lloh5:
	add	x2, x2, l_.str@PAGEOFF
	bl	_DP_VERBOSE
	ldr	x10, [x20]
Lloh6:
	adrp	x8, _NUM_RX_BDS_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NUM_RX_BDS_MAX@GOTPAGEOFF]
Lloh8:
	ldr	x4, [x8]
Lloh9:
	adrp	x8, _NUM_RX_BDS_MIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NUM_RX_BDS_MIN@GOTPAGEOFF]
Lloh11:
	ldr	x3, [x8]
	cmp	x10, x4
	ccmp	x10, x3, #8, le
	b.ge	LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _NUM_TX_BDS_MIN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NUM_TX_BDS_MIN@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _NUM_TX_BDS_MAX@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NUM_TX_BDS_MAX@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	b	LBB0_3
LBB0_2:
	ldr	x11, [x20, #8]
Lloh18:
	adrp	x8, _NUM_TX_BDS_MAX@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NUM_TX_BDS_MAX@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x8]
Lloh21:
	adrp	x8, _NUM_TX_BDS_MIN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NUM_TX_BDS_MIN@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x11, x9
	ccmp	x11, x8, #8, le
	b.ge	LBB0_4
LBB0_3:
	ldr	w10, [x21]
	ldr	w11, [x22]
	orr	w1, w11, w10
Lloh24:
	adrp	x2, l_.str.1@PAGE
Lloh25:
	add	x2, x2, l_.str.1@PAGEOFF
	stp	x8, x9, [sp]
	mov	x0, x19
	bl	_DP_VERBOSE
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	stp	x10, x11, [x19]
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	bl	_qede_reload
	mov	w0, #0
LBB0_5:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_MSG_IFUP,4,2             ; @NETIF_MSG_IFUP
	.comm	_NETIF_MSG_IFDOWN,4,2           ; @NETIF_MSG_IFDOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set ring params command parameters: rx_pending = %d, tx_pending = %d\n"

	.comm	_NUM_RX_BDS_MAX,8,3             ; @NUM_RX_BDS_MAX
	.comm	_NUM_RX_BDS_MIN,8,3             ; @NUM_RX_BDS_MIN
	.comm	_NUM_TX_BDS_MAX,8,3             ; @NUM_TX_BDS_MAX
	.comm	_NUM_TX_BDS_MIN,8,3             ; @NUM_TX_BDS_MIN
l_.str.1:                               ; @.str.1
	.asciz	"Can only support Rx Buffer size [0%08x,...,0x%08x] and Tx Buffer size [0x%08x,...,0x%08x]\n"

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