	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_roce_get_qp_tc
_qed_roce_get_qp_tc:                    ## @qed_roce_get_qp_tc
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	_VLAN_PRIO_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	movq	_VLAN_PRIO_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %esi
	movq	%r14, %rdi
	callq	_qed_dcbx_get_priority_tc
	movl	%eax, %r15d
	cmpl	$0, (%rbx)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %r9
	cmoveq	%rax, %r9
	jmp	LBB0_3
LBB0_1:
	xorl	%r15d, %r15d
	leaq	L_.str.2(%rip), %r9
LBB0_3:
	movq	_QED_MSG_SP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %r8d
	callq	_DP_VERBOSE
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VLAN_PRIO_MASK,4,2             ## @VLAN_PRIO_MASK
	.comm	_VLAN_PRIO_SHIFT,4,2            ## @VLAN_PRIO_SHIFT
	.comm	_QED_MSG_SP,4,2                 ## @QED_MSG_SP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"qp icid %u tc: %u (vlan priority %s)\n"

L_.str.1:                               ## @.str.1
	.asciz	"enabled"

L_.str.2:                               ## @.str.2
	.asciz	"disabled"

	.no_dead_strip	_qed_roce_get_qp_tc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_roce_get_qp_tc
_qed_roce_get_qp_tc:                    ; @qed_roce_get_qp_tc
	.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	x20, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x19, l_.str.2@PAGE
Lloh1:
	add	x19, x19, l_.str.2@PAGEOFF
	cbz	w8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x9, _VLAN_PRIO_MASK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VLAN_PRIO_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh5:
	adrp	x9, _VLAN_PRIO_SHIFT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _VLAN_PRIO_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	asr	w1, w8, w9
	mov	x0, x20
	bl	_qed_dcbx_get_priority_tc
	mov	x22, x0
	ldr	w8, [x21]
Lloh8:
	adrp	x9, l_.str.1@PAGE
Lloh9:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w8, #0
	csel	x19, x19, x9, eq
	b	LBB0_3
LBB0_2:
	mov	w22, #0
LBB0_3:
Lloh10:
	adrp	x8, _QED_MSG_SP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _QED_MSG_SP@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w3, [x21, #4]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x4, x22
	mov	x5, x19
	bl	_DP_VERBOSE
	mov	x0, x22
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_VLAN_PRIO_MASK,4,2             ; @VLAN_PRIO_MASK
	.comm	_VLAN_PRIO_SHIFT,4,2            ; @VLAN_PRIO_SHIFT
	.comm	_QED_MSG_SP,4,2                 ; @QED_MSG_SP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"qp icid %u tc: %u (vlan priority %s)\n"

l_.str.1:                               ; @.str.1
	.asciz	"enabled"

l_.str.2:                               ; @.str.2
	.asciz	"disabled"

	.no_dead_strip	_qed_roce_get_qp_tc
.subsections_via_symbols
