	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_ieee_getpfc
_hclge_ieee_getpfc:                     ## @hclge_ieee_getpfc
	.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, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_HNAE3_MAX_TC@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shlq	$3, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_hclge_get_vport
	movq	(%rax), %r15
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	24(%r15), %eax
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, 24(%r14)
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	(%r15), %r14
	movq	8(%r15), %r12
	movq	_HNAE3_MAX_USER_PRIO@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	xorl	%ebx, %ebx
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	16(%r15), %rax
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%rax, %rbx
	jae	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	incq	%r15
	movq	(%r13), %rcx
	cmpq	%rcx, %r15
	jae	LBB0_9
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rbx, (%r14,%r15,8)
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%rbx, %rdi
	callq	_BIT
	testq	%r12, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%r15, %rdi
	callq	_BIT
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	orq	%rax, (%rcx)
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_10
LBB0_11:
	movq	%r15, %rdi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_hclge_pfc_tx_stats_get
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jne	LBB0_20
## %bb.12:
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_hclge_pfc_rx_stats_get
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	je	LBB0_13
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_22
## %bb.21:
                                        ## kill: def $eax killed $eax killed $rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_HCLGE_MAX_TC_NUM@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	xorl	%eax, %eax
	testq	%r8, %r8
	je	LBB0_20
## %bb.14:
	cmpq	$1, %r8
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	jne	LBB0_16
## %bb.15:
	xorl	%edx, %edx
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	jmp	LBB0_18
LBB0_16:
	movq	%r8, %rsi
	andq	$-2, %rsi
	xorl	%edx, %edx
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rdx,8), %rdi
	movq	16(%rcx), %rbx
	movq	%rdi, (%rbx,%rdx,8)
	movq	(%r9,%rdx,8), %rdi
	movq	8(%rcx), %rbx
	movq	%rdi, (%rbx,%rdx,8)
	movq	8(%r14,%rdx,8), %rdi
	movq	16(%rcx), %rbx
	movq	%rdi, 8(%rbx,%rdx,8)
	movq	8(%r9,%rdx,8), %rdi
	movq	8(%rcx), %rbx
	movq	%rdi, 8(%rbx,%rdx,8)
	addq	$2, %rdx
	cmpq	%rdx, %rsi
	jne	LBB0_17
LBB0_18:
	testb	$1, %r8b
	je	LBB0_20
## %bb.19:
	movq	(%r14,%rdx,8), %rdi
	movq	16(%rcx), %rsi
	movq	%rdi, (%rsi,%rdx,8)
	movq	(%r9,%rdx,8), %rdi
	movq	8(%rcx), %rsi
	movq	%rdi, (%rsi,%rdx,8)
	jmp	LBB0_20
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HNAE3_MAX_TC,4,2               ## @HNAE3_MAX_TC
	.comm	_HNAE3_MAX_USER_PRIO,8,3        ## @HNAE3_MAX_USER_PRIO
	.comm	_HCLGE_MAX_TC_NUM,8,3           ## @HCLGE_MAX_TC_NUM
	.no_dead_strip	_hclge_ieee_getpfc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_ieee_getpfc
_hclge_ieee_getpfc:                     ; @hclge_ieee_getpfc
	.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
	sub	sp, sp, #16
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _HNAE3_MAX_TC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HNAE3_MAX_TC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0xffffffff0
	sub	x20, x9, x12
	mov	sp, x20
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x21, x8, x12
	mov	sp, x21
	bl	_hclge_get_vport
	ldr	x22, [x0]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	w8, [x22, #24]
	str	w8, [x19, #24]
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_10
; %bb.1:
	mov	x23, #0
	ldp	x25, x26, [x22]
Lloh10:
	adrp	x27, _HNAE3_MAX_USER_PRIO@GOTPAGE
Lloh11:
	ldr	x27, [x27, _HNAE3_MAX_USER_PRIO@GOTPAGEOFF]
	ldr	x9, [x27]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22, #16]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	cmp	x23, x8
	b.hs	LBB0_10
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cbz	x9, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x24, x24, #1
	ldr	x9, [x27]
	cmp	x24, x9
	b.hs	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x25, x24, lsl #3]
	cmp	x8, x23
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x23
	bl	_BIT
	tst	x0, x26
	b.eq	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x24
	bl	_BIT
	ldr	x8, [x19]
	orr	x8, x8, x0
	str	x8, [x19]
	b	LBB0_6
LBB0_10:
	mov	x0, x22
	mov	x1, x20
	bl	_hclge_pfc_tx_stats_get
	cbnz	w0, LBB0_16
; %bb.11:
	mov	x0, x22
	mov	x1, x21
	bl	_hclge_pfc_rx_stats_get
	cbnz	w0, LBB0_16
; %bb.12:
Lloh12:
	adrp	x8, _HCLGE_MAX_TC_NUM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HCLGE_MAX_TC_NUM@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.13:
	mov	x9, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	lsl	x10, x9, #3
	ldr	x11, [x20, x10]
	ldr	x12, [x19, #16]
	str	x11, [x12, x10]
	ldr	x11, [x21, x10]
	ldr	x12, [x19, #8]
	str	x11, [x12, x10]
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_14
LBB0_15:
	mov	w0, #0
LBB0_16:
	ldur	x8, [x29, #-88]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	sub	sp, x29, #80
	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_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_HNAE3_MAX_TC,4,2               ; @HNAE3_MAX_TC
	.comm	_HNAE3_MAX_USER_PRIO,8,3        ; @HNAE3_MAX_USER_PRIO
	.comm	_HCLGE_MAX_TC_NUM,8,3           ; @HCLGE_MAX_TC_NUM
	.no_dead_strip	_hclge_ieee_getpfc
.subsections_via_symbols
