	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_qdisc_prio_graft
_mlxsw_sp_qdisc_prio_graft:             ## @mlxsw_sp_qdisc_prio_graft
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movq	(%rdx), %rdi
	callq	_MLXSW_SP_PRIO_BAND_TO_TCLASS
	movq	(%rbx), %rcx
	movq	_IEEE_8021QAZ_MAX_TCS@GOTPCREL(%rip), %rdx
	movslq	%eax, %r15
	cmpq	(%rdx), %rcx
	jge	LBB0_1
## %bb.2:
	movq	(%r14), %rcx
	movq	8(%rbx), %rsi
	xorl	%eax, %eax
	cmpq	%rsi, (%rcx,%r15,8)
	jne	LBB0_3
	jmp	LBB0_6
LBB0_1:
	movq	8(%rbx), %rsi
LBB0_3:
	movq	%r14, %rdi
	callq	_mlxsw_sp_qdisc_find_by_handle
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_mlxsw_sp_qdisc_destroy
LBB0_5:
	shlq	$3, %r15
	addq	(%r14), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mlxsw_sp_qdisc_destroy
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE_8021QAZ_MAX_TCS,8,3       ## @IEEE_8021QAZ_MAX_TCS
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_mlxsw_sp_qdisc_prio_graft
.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_prio_graft
_mlxsw_sp_qdisc_prio_graft:             ; @mlxsw_sp_qdisc_prio_graft
	.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, x2
	mov	x19, x0
	ldr	x0, [x2]
	bl	_MLXSW_SP_PRIO_BAND_TO_TCLASS
	mov	x20, x0
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _IEEE_8021QAZ_MAX_TCS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE_8021QAZ_MAX_TCS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_3
; %bb.1:
	ldr	x8, [x19]
	ldr	x8, [x8, w20, sxtw #3]
	ldr	x1, [x21, #8]
	cmp	x8, x1
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_7
LBB0_3:
	ldr	x1, [x21, #8]
LBB0_4:
	mov	x0, x19
	bl	_mlxsw_sp_qdisc_find_by_handle
	cbz	x0, LBB0_6
; %bb.5:
	mov	x1, x0
	mov	x0, x19
	bl	_mlxsw_sp_qdisc_destroy
LBB0_6:
	ldr	x8, [x19]
	add	x1, x8, w20, sxtw #3
	mov	x0, x19
	bl	_mlxsw_sp_qdisc_destroy
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE_8021QAZ_MAX_TCS,8,3       ; @IEEE_8021QAZ_MAX_TCS
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_mlxsw_sp_qdisc_prio_graft
.subsections_via_symbols
