	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp2_check_ringparam_valid
_mvpp2_check_ringparam_valid:           ## @mvpp2_check_ringparam_valid
	.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), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r12
	movq	8(%rsi), %r14
	testq	%r14, %r14
	je	LBB0_2
## %bb.3:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_MVPP2_MAX_RXD_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	cmpq	%r15, %rbx
	jg	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_IS_ALIGNED
	movq	%rbx, %r15
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	(%r12), %rdi
	movl	$16, %esi
	callq	_ALIGN
	movq	%rax, %r15
LBB0_6:
	movq	8(%r12), %rdi
	movq	_MVPP2_MAX_TXD_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	cmpq	%r13, %rdi
	jg	LBB0_9
## %bb.7:
	movl	$32, %esi
	callq	_IS_ALIGNED
	movq	%r14, %r13
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	8(%r12), %rdi
	movl	$32, %esi
	callq	_ALIGN
	movq	%rax, %r13
LBB0_9:
	movq	_MVPP2_MAX_SKB_DESCS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	cmpq	%rdi, %r13
	jge	LBB0_11
## %bb.10:
	movl	$32, %esi
	callq	_ALIGN
	movq	%rax, %r13
LBB0_11:
	movq	(%r12), %rdx
	cmpq	%r15, %rdx
	je	LBB0_13
## %bb.12:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rcx
	callq	_netdev_info
	movq	%r15, (%r12)
LBB0_13:
	movq	8(%r12), %rdx
	xorl	%ebx, %ebx
	cmpq	%r13, %rdx
	je	LBB0_15
## %bb.14:
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rcx
	callq	_netdev_info
	movq	%r13, 8(%r12)
	jmp	LBB0_15
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MVPP2_MAX_RXD_MAX,8,3          ## @MVPP2_MAX_RXD_MAX
	.comm	_MVPP2_MAX_TXD_MAX,8,3          ## @MVPP2_MAX_TXD_MAX
	.comm	_MVPP2_MAX_SKB_DESCS,8,3        ## @MVPP2_MAX_SKB_DESCS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"illegal Rx ring size value %d, round to %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"illegal Tx ring size value %d, round to %d\n"

	.no_dead_strip	_mvpp2_check_ringparam_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvpp2_check_ringparam_valid
_mvpp2_check_ringparam_valid:           ; @mvpp2_check_ringparam_valid
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldp	x22, x23, [x1]
	cmp	x22, #0
	ccmp	x23, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_2:
	mov	x19, x1
	mov	x20, x0
Lloh3:
	adrp	x8, _MVPP2_MAX_RXD_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MVPP2_MAX_RXD_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x21, [x8]
	cmp	x22, x21
	b.gt	LBB0_5
; %bb.3:
	mov	x0, x22
	mov	w1, #16
	bl	_IS_ALIGNED
	mov	x21, x22
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	x0, [x19]
	mov	w1, #16
	bl	_ALIGN
	mov	x21, x0
LBB0_5:
	ldr	x0, [x19, #8]
Lloh6:
	adrp	x8, _MVPP2_MAX_TXD_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MVPP2_MAX_TXD_MAX@GOTPAGEOFF]
Lloh8:
	ldr	x22, [x8]
	cmp	x0, x22
	b.gt	LBB0_8
; %bb.6:
	mov	w1, #32
	bl	_IS_ALIGNED
	mov	x22, x23
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	x0, [x19, #8]
	mov	w1, #32
	bl	_ALIGN
	mov	x22, x0
LBB0_8:
Lloh9:
	adrp	x8, _MVPP2_MAX_SKB_DESCS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MVPP2_MAX_SKB_DESCS@GOTPAGEOFF]
Lloh11:
	ldr	x0, [x8]
	cmp	x22, x0
	b.ge	LBB0_10
; %bb.9:
	mov	w1, #32
	bl	_ALIGN
	mov	x22, x0
LBB0_10:
	ldr	x2, [x19]
	cmp	x2, x21
	b.eq	LBB0_12
; %bb.11:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x21
	bl	_netdev_info
	str	x21, [x19]
LBB0_12:
	ldr	x2, [x19, #8]
	cmp	x2, x22
	b.ne	LBB0_14
; %bb.13:
	mov	w0, #0
	b	LBB0_15
LBB0_14:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x3, x22
	bl	_netdev_info
	mov	w0, #0
	str	x22, [x19, #8]
LBB0_15:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MVPP2_MAX_RXD_MAX,8,3          ; @MVPP2_MAX_RXD_MAX
	.comm	_MVPP2_MAX_TXD_MAX,8,3          ; @MVPP2_MAX_TXD_MAX
	.comm	_MVPP2_MAX_SKB_DESCS,8,3        ; @MVPP2_MAX_SKB_DESCS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"illegal Rx ring size value %d, round to %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"illegal Tx ring size value %d, round to %d\n"

	.no_dead_strip	_mvpp2_check_ringparam_valid
.subsections_via_symbols
