	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_setup_tc
_hclge_setup_tc:                        ## @hclge_setup_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	callq	_hclge_get_vport
	movq	(%rax), %r12
	movq	_HCLGE_FLAG_DCB_ENABLE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, (%r12)
	jne	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	callq	_hclge_dcb_common_validate
	testl	%eax, %eax
	je	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r12, %rdi
	callq	_hclge_notify_down_uinit
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_hclge_tm_schd_info_update
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_hclge_tm_prio_tc_info_update
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_hclge_tm_init_hw
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_hclge_client_setup_tc
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_8
LBB0_6:
	movq	%r12, %rdi
	callq	_hclge_notify_init_up
	jmp	LBB0_7
LBB0_8:
	movl	(%r13), %eax
	notl	%eax
	andl	(%r12), %eax
	movl	%eax, (%r12)
	movq	_HCLGE_FLAG_MQPRIO_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	notl	%edx
	andl	%eax, %edx
	orl	%ecx, %eax
	cmpl	$2, %r14d
	cmovll	%edx, %eax
	movl	%eax, (%r12)
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hclge_notify_init_up           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_FLAG_DCB_ENABLE,4,2      ## @HCLGE_FLAG_DCB_ENABLE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HCLGE_FLAG_MQPRIO_ENABLE,4,2   ## @HCLGE_FLAG_MQPRIO_ENABLE
	.no_dead_strip	_hclge_setup_tc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_setup_tc
_hclge_setup_tc:                        ; @hclge_setup_tc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x19, x1
	bl	_hclge_get_vport
	ldr	x20, [x0]
	ldr	w8, [x20]
Lloh0:
	adrp	x23, _HCLGE_FLAG_DCB_ENABLE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _HCLGE_FLAG_DCB_ENABLE@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_hclge_dcb_common_validate
	cbz	w0, LBB0_4
LBB0_2:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_3:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x20
	bl	_hclge_notify_down_uinit
	mov	x22, x0
	cbnz	w0, LBB0_3
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	bl	_hclge_tm_schd_info_update
	mov	x0, x20
	mov	x1, x21
	bl	_hclge_tm_prio_tc_info_update
	mov	x0, x20
	mov	w1, #0
	bl	_hclge_tm_init_hw
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_hclge_client_setup_tc
	mov	x22, x0
	cbz	w0, LBB0_8
LBB0_7:
	mov	x0, x20
	bl	_hclge_notify_init_up
	b	LBB0_3
LBB0_8:
	ldr	w8, [x23]
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
Lloh5:
	adrp	x9, _HCLGE_FLAG_MQPRIO_ENABLE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HCLGE_FLAG_MQPRIO_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	bic	w10, w8, w9
	orr	w8, w9, w8
	cmp	w19, #1
	csel	w8, w8, w10, gt
	str	w8, [x20]
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_hclge_notify_init_up
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_FLAG_DCB_ENABLE,4,2      ; @HCLGE_FLAG_DCB_ENABLE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HCLGE_FLAG_MQPRIO_ENABLE,4,2   ; @HCLGE_FLAG_MQPRIO_ENABLE
	.no_dead_strip	_hclge_setup_tc
.subsections_via_symbols
