	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_ieee_setets
_hclge_ieee_setets:                     ## @hclge_ieee_setets
	.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	%rsi, %r14
	movq	%rdi, %r12
	callq	_hclge_get_vport
	movq	(%r12), %r13
	movq	(%rax), %r15
	movl	$0, -44(%rbp)
	movl	$0, -48(%rbp)
	movq	_DCB_CAP_DCBX_VER_IEEE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_2
## %bb.1:
	movq	_HCLGE_FLAG_MQPRIO_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r15)
	je	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_hclge_ets_validate
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.4:
	cmpl	$0, -44(%rbp)
	je	LBB0_6
## %bb.5:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_netif_dbg
	movq	%r15, %rdi
	callq	_hclge_notify_down_uinit
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
LBB0_6:
	movl	-48(%rbp), %esi
	movq	%r15, %rdi
	callq	_hclge_tm_schd_info_update
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_hclge_ieee_ets_to_tm_info
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
LBB0_12:
	cmpl	$0, -44(%rbp)
	je	LBB0_14
## %bb.13:
	movq	%r15, %rdi
	callq	_hclge_notify_init_up
	jmp	LBB0_14
LBB0_7:
	cmpl	$0, -44(%rbp)
	je	LBB0_11
## %bb.8:
	movq	%r15, %rdi
	callq	_hclge_map_update
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.9:
	movq	%r15, %rdi
	callq	_hclge_client_setup_tc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:
	movq	%r15, %rdi
	callq	_hclge_notify_init_up
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
LBB0_11:
	movq	%r15, %rdi
	callq	_hclge_tm_dwrr_cfg
	movl	%eax, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_DCB_CAP_DCBX_VER_IEEE,4,2      ## @DCB_CAP_DCBX_VER_IEEE
	.comm	_HCLGE_FLAG_MQPRIO_ENABLE,4,2   ## @HCLGE_FLAG_MQPRIO_ENABLE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set ets\n"

	.no_dead_strip	_hclge_ieee_setets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_ieee_setets
_hclge_ieee_setets:                     ; @hclge_ieee_setets
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x22, x0
	bl	_hclge_get_vport
	ldr	x23, [x22]
	ldr	x19, [x0]
	str	xzr, [sp, #8]
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _DCB_CAP_DCBX_VER_IEEE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DCB_CAP_DCBX_VER_IEEE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x19, #4]
Lloh3:
	adrp	x9, _HCLGE_FLAG_MQPRIO_ENABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HCLGE_FLAG_MQPRIO_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
LBB0_2:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_3:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
	add	x2, sp, #8
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_hclge_ets_validate
	mov	x21, x0
	cbnz	w0, LBB0_3
; %bb.5:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_7
; %bb.6:
Lloh9:
	adrp	x8, _drv@GOTPAGE
Lloh10:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x3, l_.str@PAGE
Lloh13:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	bl	_netif_dbg
	mov	x0, x19
	bl	_hclge_notify_down_uinit
	mov	x21, x0
	cbnz	w0, LBB0_3
LBB0_7:
	ldr	w1, [sp, #8]
	mov	x0, x19
	bl	_hclge_tm_schd_info_update
	mov	x0, x19
	mov	x1, x20
	bl	_hclge_ieee_ets_to_tm_info
	mov	x21, x0
	cbz	w0, LBB0_10
LBB0_8:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_3
; %bb.9:
	mov	x0, x19
	bl	_hclge_notify_init_up
	b	LBB0_3
LBB0_10:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_14
; %bb.11:
	mov	x0, x19
	bl	_hclge_map_update
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.12:
	mov	x0, x19
	bl	_hclge_client_setup_tc
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.13:
	mov	x0, x19
	bl	_hclge_notify_init_up
	mov	x21, x0
	cbnz	w0, LBB0_3
LBB0_14:
	mov	x0, x19
	bl	_hclge_tm_dwrr_cfg
	mov	x21, x0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DCB_CAP_DCBX_VER_IEEE,4,2      ; @DCB_CAP_DCBX_VER_IEEE
	.comm	_HCLGE_FLAG_MQPRIO_ENABLE,4,2   ; @HCLGE_FLAG_MQPRIO_ENABLE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set ets\n"

	.no_dead_strip	_hclge_ieee_setets
.subsections_via_symbols
