	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_tm_pri_dwrr_cfg
_hclge_tm_pri_dwrr_cfg:                 ## @hclge_tm_pri_dwrr_cfg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_HCLGE_FLAG_TC_BASE_SCH_MODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	callq	_hclge_tm_pri_tc_base_dwrr_cfg
	testl	%eax, %eax
	je	LBB0_2
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_hclge_tm_pri_vnet_base_dwrr_cfg ## TAILCALL
LBB0_2:
	movq	%rbx, %rdi
	callq	_hnae3_dev_dcb_supported
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_hclge_tm_ets_tc_dwrr_cfg
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	movl	%eax, %edx
	addl	(%rcx), %edx
	jne	LBB0_5
## %bb.4:
	movq	16(%rbx), %rdi
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	xorl	%eax, %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_FLAG_TC_BASE_SCH_MODE,8,3 ## @HCLGE_FLAG_TC_BASE_SCH_MODE
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fw %08x does't support ets tc weight cmd\n"

	.no_dead_strip	_hclge_tm_pri_dwrr_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_tm_pri_dwrr_cfg
_hclge_tm_pri_dwrr_cfg:                 ; @hclge_tm_pri_dwrr_cfg
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _HCLGE_FLAG_TC_BASE_SCH_MODE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HCLGE_FLAG_TC_BASE_SCH_MODE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_hclge_tm_pri_tc_base_dwrr_cfg
	cbz	w0, LBB0_4
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hclge_tm_pri_vnet_base_dwrr_cfg
LBB0_4:
	mov	x0, x19
	bl	_hnae3_dev_dcb_supported
	cbz	w0, LBB0_2
; %bb.5:
	mov	x0, x19
	bl	_hclge_tm_ets_tc_dwrr_cfg
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_2
; %bb.6:
	ldr	x0, [x19, #16]
	ldr	w2, [x19, #8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_FLAG_TC_BASE_SCH_MODE,8,3 ; @HCLGE_FLAG_TC_BASE_SCH_MODE
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fw %08x does't support ets tc weight cmd\n"

	.no_dead_strip	_hclge_tm_pri_dwrr_cfg
.subsections_via_symbols
