	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_qdisc_red_check_params
_mlxsw_sp_qdisc_red_check_params:       ## @mlxsw_sp_qdisc_red_check_params
	.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	%rdx, %rbx
	movq	(%rdi), %r12
	movq	(%rdx), %rdx
	movq	8(%rbx), %r15
	cmpq	%r15, %rdx
	jle	LBB0_2
## %bb.1:
	movq	(%r12), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_7
LBB0_2:
	movl	8(%r12), %edi
	movq	_MAX_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLXSW_CORE_RES_GET
	cmpq	%rax, %r15
	jle	LBB0_4
## %bb.3:
	movq	(%r12), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_7
LBB0_4:
	cmpq	$0, (%rbx)
	je	LBB0_6
## %bb.5:
	xorl	%r14d, %r14d
	cmpq	$0, 8(%rbx)
	jne	LBB0_8
LBB0_6:
	movq	(%r12), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dev_err
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"spectrum: RED: min %u is bigger then max %u\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MAX_BUFFER_SIZE,4,2            ## @MAX_BUFFER_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"spectrum: RED: max value %u is too big\n"

L_.str.2:                               ## @.str.2
	.asciz	"spectrum: RED: 0 value is illegal for min and max\n"

	.no_dead_strip	_mlxsw_sp_qdisc_red_check_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_qdisc_red_check_params
_mlxsw_sp_qdisc_red_check_params:       ; @mlxsw_sp_qdisc_red_check_params
	.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
	ldr	x20, [x0]
	ldp	x8, x21, [x2]
	cmp	x8, x21
	b.le	LBB0_2
; %bb.1:
	ldr	x9, [x20]
	ldr	w0, [x9]
	stp	x8, x21, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_2:
	mov	x19, x2
	ldr	w0, [x20, #8]
Lloh2:
	adrp	x8, _MAX_BUFFER_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_BUFFER_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_MLXSW_CORE_RES_GET
	cmp	x21, x0
	b.le	LBB0_4
; %bb.3:
	ldr	x8, [x20]
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	str	x8, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_4:
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.6:
	mov	w0, #0
	b	LBB0_9
LBB0_7:
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	bl	_dev_err
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"spectrum: RED: min %u is bigger then max %u\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MAX_BUFFER_SIZE,4,2            ; @MAX_BUFFER_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"spectrum: RED: max value %u is too big\n"

l_.str.2:                               ; @.str.2
	.asciz	"spectrum: RED: 0 value is illegal for min and max\n"

	.no_dead_strip	_mlxsw_sp_qdisc_red_check_params
.subsections_via_symbols
