	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_ieee_setpfc
_hclge_ieee_setpfc:                     ## @hclge_ieee_setpfc
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_hclge_get_vport
	movq	(%rax), %r15
	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_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%rbx), %r8
	xorl	%eax, %eax
	cmpq	8(%r15), %r8
	je	LBB0_3
## %bb.5:
	movq	(%r14), %rdx
	cmpq	$0, 24(%r15)
	je	LBB0_6
## %bb.7:
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	16(%r15), %r14
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rdi
	callq	_BIT
	orq	%rax, -48(%rbp)                 ## 8-byte Folded Spill
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r12
	movq	24(%r15), %rax
	cmpq	%rax, %r12
	jae	LBB0_16
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	_HNAE3_MAX_USER_PRIO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=2
	incq	%r13
	cmpq	%rax, %r13
	jae	LBB0_14
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%r12, (%r14,%r13,8)
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	(%rbx), %r15
	movq	%r13, %rdi
	callq	_BIT
	testq	%r15, %rax
	jne	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	_HNAE3_MAX_USER_PRIO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_13
LBB0_16:
	movq	(%rbx), %r8
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	jmp	LBB0_17
LBB0_6:
	xorl	%r9d, %r9d
	xorl	%eax, %eax
LBB0_17:
	movq	%r9, 32(%r15)
	movq	%r8, 8(%r15)
	movq	_drv@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, (%rsp)
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_netif_dbg
	movq	%r15, %rdi
	callq	_hclge_tm_pfc_info_update
	movq	%r15, %rdi
	xorl	%esi, %esi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hclge_pause_setup_hw           ## TAILCALL
	.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	_HNAE3_MAX_USER_PRIO,8,3        ## @HNAE3_MAX_USER_PRIO
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set pfc: pfc_en=%x, pfc_map=%x, num_tc=%u\n"

	.no_dead_strip	_hclge_ieee_setpfc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_ieee_setpfc
_hclge_ieee_setpfc:                     ; @hclge_ieee_setpfc
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x20, x0
	bl	_hclge_get_vport
	ldr	x19, [x0]
	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	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x4, [x21]
	ldr	x8, [x19, #8]
	cmp	x4, x8
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_3
LBB0_6:
	ldr	x22, [x20]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_17
; %bb.7:
	mov	x23, #0
	mov	x24, #0
	ldr	x26, [x19, #16]
Lloh9:
	adrp	x27, _HNAE3_MAX_USER_PRIO@GOTPAGE
Lloh10:
	ldr	x27, [x27, _HNAE3_MAX_USER_PRIO@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x24
	bl	_BIT
	orr	x23, x0, x23
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x24, x24, #1
	ldr	x6, [x19, #24]
	cmp	x24, x6
	b.hs	LBB0_16
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	ldr	x8, [x27]
	cbz	x8, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x25, #0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	add	x25, x25, #1
	cmp	x25, x8
	b.hs	LBB0_9
LBB0_13:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x26, x25, lsl #3]
	cmp	x9, x24
	b.ne	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x28, [x21]
	mov	x0, x25
	bl	_BIT
	tst	x0, x28
	b.ne	LBB0_8
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [x27]
	b	LBB0_12
LBB0_16:
	ldr	x4, [x21]
	b	LBB0_18
LBB0_17:
	mov	x23, #0
	mov	x6, #0
LBB0_18:
	str	x23, [x19, #32]
	str	x4, [x19, #8]
Lloh11:
	adrp	x8, _drv@GOTPAGE
Lloh12:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x3, l_.str@PAGE
Lloh15:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	mov	x5, x23
	bl	_netif_dbg
	mov	x0, x19
	bl	_hclge_tm_pfc_info_update
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_hclge_pause_setup_hw
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.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	_HNAE3_MAX_USER_PRIO,8,3        ; @HNAE3_MAX_USER_PRIO
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set pfc: pfc_en=%x, pfc_map=%x, num_tc=%u\n"

	.no_dead_strip	_hclge_ieee_setpfc
.subsections_via_symbols
