	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_setup_tc_red          ## -- Begin function mlxsw_sp_setup_tc_red
	.p2align	4, 0x90
_mlxsw_sp_setup_tc_red:                 ## @mlxsw_sp_setup_tc_red
	.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
	movq	%rdi, %r14
	movl	20(%rsi), %esi
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	callq	_mlxsw_sp_qdisc_find
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	_TC_RED_REPLACE@GOTPCREL(%rip), %rax
	movl	(%rbx), %ecx
	movl	12(%rbx), %esi
	cmpl	(%rax), %ecx
	jne	LBB0_3
## %bb.12:
	addq	$16, %rbx
	movq	_mlxsw_sp_qdisc_ops_red@GOTPCREL(%rip), %rcx
	movq	%r14, %rdi
	movq	%r15, %rdx
	movq	%rbx, %r8
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlxsw_sp_qdisc_replace         ## TAILCALL
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_3:
	movq	_MLXSW_SP_QDISC_RED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_mlxsw_sp_qdisc_compare
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	movl	(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_8
## %bb.5:
	cmpl	$129, %eax
	je	LBB0_9
## %bb.6:
	cmpl	$130, %eax
	jne	LBB0_10
## %bb.7:
	movq	%r14, %rdi
	movq	%r15, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlxsw_sp_qdisc_destroy         ## TAILCALL
LBB0_10:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
LBB0_11:
	subl	(%rax), %r12d
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	8(%rbx), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlxsw_sp_qdisc_get_xstats      ## TAILCALL
LBB0_9:
	addq	$4, %rbx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlxsw_sp_qdisc_get_stats       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_TC_RED_REPLACE,4,2             ## @TC_RED_REPLACE
	.comm	_mlxsw_sp_qdisc_ops_red,4,2     ## @mlxsw_sp_qdisc_ops_red
	.comm	_MLXSW_SP_QDISC_RED,4,2         ## @MLXSW_SP_QDISC_RED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_setup_tc_red          ; -- Begin function mlxsw_sp_setup_tc_red
	.p2align	2
_mlxsw_sp_setup_tc_red:                 ; @mlxsw_sp_setup_tc_red
	.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
	mov	x19, x0
	ldr	w1, [x1, #20]
	mov	w2, #0
	bl	_mlxsw_sp_qdisc_find
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _TC_RED_REPLACE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TC_RED_REPLACE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w1, [x21, #12]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x3, _mlxsw_sp_qdisc_ops_red@GOTPAGE
Lloh4:
	ldr	x3, [x3, _mlxsw_sp_qdisc_ops_red@GOTPAGEOFF]
	add	x4, x21, #16
	mov	x0, x19
	mov	x2, x20
	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	_mlxsw_sp_qdisc_replace
LBB0_3:
Lloh5:
	adrp	x8, _MLXSW_SP_QDISC_RED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MLXSW_SP_QDISC_RED@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_mlxsw_sp_qdisc_compare
	cbz	w0, LBB0_8
; %bb.4:
	ldr	w8, [x21]
	cmp	w8, #128
	b.eq	LBB0_9
; %bb.5:
	cmp	w8, #129
	b.eq	LBB0_10
; %bb.6:
	cmp	w8, #130
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x19
	mov	x1, x20
	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	_mlxsw_sp_qdisc_destroy
LBB0_8:
Lloh8:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	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_9:
	ldr	w2, [x21, #8]
	mov	x0, x19
	mov	x1, x20
	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	_mlxsw_sp_qdisc_get_xstats
LBB0_10:
	add	x2, x21, #4
	mov	x0, x19
	mov	x1, x20
	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	_mlxsw_sp_qdisc_get_stats
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_TC_RED_REPLACE,4,2             ; @TC_RED_REPLACE
	.comm	_mlxsw_sp_qdisc_ops_red,4,2     ; @mlxsw_sp_qdisc_ops_red
	.comm	_MLXSW_SP_QDISC_RED,4,2         ; @MLXSW_SP_QDISC_RED
.subsections_via_symbols
