	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_net_set_ringparam
_nfp_net_set_ringparam:                 ## @nfp_net_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_netdev_priv
	cmpq	$0, 16(%rbx)
	jne	LBB0_2
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rax, %r12
	movl	4(%rbx), %edi
	callq	_roundup_pow_of_two
	movq	%rax, %r14
	movl	(%rbx), %edi
	callq	_roundup_pow_of_two
	movq	%rax, %r15
	movq	_NFP_NET_MIN_RX_DESCS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jl	LBB0_2
## %bb.4:
	movq	_NFP_NET_MAX_RX_DESCS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jg	LBB0_2
## %bb.5:
	movq	_NFP_NET_MIN_TX_DESCS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jl	LBB0_2
## %bb.6:
	movq	_NFP_NET_MAX_TX_DESCS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jg	LBB0_2
## %bb.7:
	movq	(%r12), %rdx
	movq	8(%r12), %r8
	cmpq	%r14, %rdx
	jne	LBB0_10
## %bb.8:
	xorl	%eax, %eax
	cmpq	%r15, %r8
	je	LBB0_9
LBB0_10:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%r14, %rcx
	movq	%r15, %r9
	callq	_nn_dbg
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nfp_net_set_ring_size          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NFP_NET_MIN_RX_DESCS,8,3       ## @NFP_NET_MIN_RX_DESCS
	.comm	_NFP_NET_MAX_RX_DESCS,8,3       ## @NFP_NET_MAX_RX_DESCS
	.comm	_NFP_NET_MIN_TX_DESCS,8,3       ## @NFP_NET_MIN_TX_DESCS
	.comm	_NFP_NET_MAX_TX_DESCS,8,3       ## @NFP_NET_MAX_TX_DESCS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Change ring size: RxQ %u->%u, TxQ %u->%u\n"

	.no_dead_strip	_nfp_net_set_ringparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_net_set_ringparam
_nfp_net_set_ringparam:                 ; @nfp_net_set_ringparam
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x1
	bl	_netdev_priv
	ldr	x8, [x21, #16]
	cbnz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_3
; %bb.2:
	mov	x19, x0
	ldr	w0, [x21, #4]
	bl	_roundup_pow_of_two
	mov	x20, x0
	ldr	w0, [x21]
	bl	_roundup_pow_of_two
Lloh0:
	adrp	x8, _NFP_NET_MIN_RX_DESCS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFP_NET_MIN_RX_DESCS@GOTPAGEOFF]
Lloh2:
	adrp	x9, _NFP_NET_MAX_RX_DESCS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NFP_NET_MAX_RX_DESCS@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _NFP_NET_MIN_TX_DESCS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _NFP_NET_MIN_TX_DESCS@GOTPAGEOFF]
Lloh8:
	adrp	x11, _NFP_NET_MAX_TX_DESCS@GOTPAGE
Lloh9:
	ldr	x11, [x11, _NFP_NET_MAX_TX_DESCS@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
Lloh11:
	ldr	x11, [x11]
	cmp	x20, x8
	ccmp	x20, x9, #0, ge
	ccmp	x0, x10, #8, le
	ccmp	x0, x11, #0, ge
	b.le	LBB0_5
LBB0_3:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x21, x0
	ldp	x2, x4, [x19]
	cmp	x2, x20
	b.ne	LBB0_8
; %bb.6:
	cmp	x4, x21
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #0
	b	LBB0_4
LBB0_8:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	mov	x5, x21
	bl	_nn_dbg
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_nfp_net_set_ring_size
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NFP_NET_MIN_RX_DESCS,8,3       ; @NFP_NET_MIN_RX_DESCS
	.comm	_NFP_NET_MAX_RX_DESCS,8,3       ; @NFP_NET_MAX_RX_DESCS
	.comm	_NFP_NET_MIN_TX_DESCS,8,3       ; @NFP_NET_MIN_TX_DESCS
	.comm	_NFP_NET_MAX_TX_DESCS,8,3       ; @NFP_NET_MAX_TX_DESCS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Change ring size: RxQ %u->%u, TxQ %u->%u\n"

	.no_dead_strip	_nfp_net_set_ringparam
.subsections_via_symbols
