	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_qdisc_find
_mlxsw_sp_qdisc_find:                   ## @mlxsw_sp_qdisc_find
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_TC_H_ROOT@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	8(%r14), %rax
	jmp	LBB0_4
LBB0_2:
	testl	%edx, %edx
	je	LBB0_5
LBB0_3:
	xorl	%eax, %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	cmpl	$0, 8(%rax)
	je	LBB0_3
## %bb.7:
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_TC_H_MAJ
	movq	8(%r14), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.8:
	movq	%rbx, %rdi
	callq	_TC_H_MIN
	movq	_IEEE_8021QAZ_MAX_TCS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_3
## %bb.13:
	movq	%rbx, %rdi
	callq	_TC_H_MIN
	movl	%eax, %edi
	callq	_MLXSW_SP_PRIO_CHILD_TO_TCLASS
	cltq
	shlq	$4, %rax
	addq	(%r14), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_TC_H_ROOT,8,3                  ## @TC_H_ROOT
	.comm	_IEEE_8021QAZ_MAX_TCS,4,2       ## @IEEE_8021QAZ_MAX_TCS
	.no_dead_strip	_mlxsw_sp_qdisc_find
.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_find
_mlxsw_sp_qdisc_find:                   ; @mlxsw_sp_qdisc_find
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _TC_H_ROOT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TC_H_ROOT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [x19, #8]
	b	LBB0_4
LBB0_2:
	cbz	w2, LBB0_5
LBB0_3:
	mov	x0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.6:
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_3
; %bb.7:
	mov	x20, x1
	mov	x0, x1
	bl	_TC_H_MAJ
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.8:
	mov	x0, x20
	bl	_TC_H_MIN
Lloh3:
	adrp	x8, _IEEE_8021QAZ_MAX_TCS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE_8021QAZ_MAX_TCS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.gt	LBB0_3
; %bb.9:
	mov	x0, x20
	bl	_TC_H_MIN
	bl	_MLXSW_SP_PRIO_CHILD_TO_TCLASS
	ldr	x8, [x19]
	add	x0, x8, w0, sxtw #4
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TC_H_ROOT,8,3                  ; @TC_H_ROOT
	.comm	_IEEE_8021QAZ_MAX_TCS,4,2       ; @IEEE_8021QAZ_MAX_TCS
	.no_dead_strip	_mlxsw_sp_qdisc_find
.subsections_via_symbols
