	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_pfc_stats_get
_hclge_pfc_stats_get:                   ## @hclge_pfc_stats_get
	.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	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_HCLGE_TM_PFC_PKT_GET_CMD_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	shlq	$4, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rcx
	movq	_HCLGE_OPC_QUERY_PFC_RX_PKT_CNT@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_HCLGE_OPC_QUERY_PFC_TX_PKT_CNT@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	je	LBB0_2
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_17
LBB0_2:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	cmpl	$2, %ebx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	jl	LBB0_3
## %bb.5:
	xorl	%r14d, %r14d
	movq	_HCLGE_CMD_FLAG_NEXT@GOTPCREL(%rip), %r13
	movq	%rcx, %rbx
	movq	_HCLGE_TM_PFC_PKT_GET_CMD_NUM@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	$1, %edx
	callq	_hclge_cmd_setup_basic_desc
	movl	(%r13), %edi
	callq	_cpu_to_le16
	orl	%eax, 8(%rbx)
	incq	%r14
	movslq	(%r15), %rax
	decq	%rax
	addq	$16, %rbx
	cmpq	%rax, %r14
	jl	LBB0_6
	jmp	LBB0_7
LBB0_3:
	xorl	%r14d, %r14d
	movq	_HCLGE_TM_PFC_PKT_GET_CMD_NUM@GOTPCREL(%rip), %r15
LBB0_7:
	shlq	$4, %r14
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	addq	%r14, %rdi
	movl	%r12d, %esi
	movl	$1, %edx
	callq	_hclge_cmd_setup_basic_desc
	movl	(%r15), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_hclge_cmd_send
	testl	%eax, %eax
	jne	LBB0_17
## %bb.8:
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_16
## %bb.9:
	movq	%r15, %rsi
	movq	_HCLGE_TM_PFC_NUM_GET_PER_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	movq	_HCLGE_MAX_TC_NUM@GOTPCREL(%rip), %r14
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	movslq	%ecx, %rdx
	cmpq	%rdx, %rbx
	jge	LBB0_16
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	testl	%eax, %eax
	jle	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdx
	shlq	$4, %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi,%rdx), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=2
	incq	%r13
	movslq	%eax, %rdx
	movl	(%rsi), %ecx
	cmpq	%rdx, %r13
	jge	LBB0_15
LBB0_12:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	imull	%ebx, %ecx
	addl	%r13d, %ecx
	movslq	%ecx, %r15
	cmpq	%r15, (%r14)
	jbe	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	(%r12), %rax
	movl	(%rax,%r13,4), %edi
	callq	_le64_to_cpu
	movq	_HCLGE_TM_PFC_PKT_GET_CMD_NUM@GOTPCREL(%rip), %rsi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r15,4)
	movq	_HCLGE_TM_PFC_NUM_GET_PER_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_14
LBB0_16:
	xorl	%eax, %eax
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_19
## %bb.18:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_TM_PFC_PKT_GET_CMD_NUM,4,2 ## @HCLGE_TM_PFC_PKT_GET_CMD_NUM
	.comm	_HCLGE_OPC_QUERY_PFC_RX_PKT_CNT,4,2 ## @HCLGE_OPC_QUERY_PFC_RX_PKT_CNT
	.comm	_HCLGE_OPC_QUERY_PFC_TX_PKT_CNT,4,2 ## @HCLGE_OPC_QUERY_PFC_TX_PKT_CNT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HCLGE_CMD_FLAG_NEXT,4,2        ## @HCLGE_CMD_FLAG_NEXT
	.comm	_HCLGE_TM_PFC_NUM_GET_PER_CMD,4,2 ## @HCLGE_TM_PFC_NUM_GET_PER_CMD
	.comm	_HCLGE_MAX_TC_NUM,8,3           ## @HCLGE_MAX_TC_NUM
	.no_dead_strip	_hclge_pfc_stats_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_pfc_stats_get
_hclge_pfc_stats_get:                   ; @hclge_pfc_stats_get
	.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, x2
	mov	x22, x1
	mov	x21, x0
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	x24, _HCLGE_TM_PFC_PKT_GET_CMD_NUM@GOTPAGE
Lloh4:
	ldr	x24, [x24, _HCLGE_TM_PFC_PKT_GET_CMD_NUM@GOTPAGEOFF]
	ldr	w12, [x24]
	lsl	x8, x12, #4
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x20, x9, x8
	mov	sp, x20
Lloh7:
	adrp	x8, _HCLGE_OPC_QUERY_PFC_RX_PKT_CNT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HCLGE_OPC_QUERY_PFC_RX_PKT_CNT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _HCLGE_OPC_QUERY_PFC_TX_PKT_CNT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _HCLGE_OPC_QUERY_PFC_TX_PKT_CNT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w8, w1
	ccmp	w9, w1, #4, ne
	b.ne	LBB0_4
; %bb.1:
	cmp	w12, #2
	b.lt	LBB0_5
; %bb.2:
	mov	x25, #0
Lloh13:
	adrp	x26, _HCLGE_CMD_FLAG_NEXT@GOTPAGE
Lloh14:
	ldr	x26, [x26, _HCLGE_CMD_FLAG_NEXT@GOTPAGEOFF]
	mov	x23, x20
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	w2, #1
	bl	_hclge_cmd_setup_basic_desc
	ldr	w0, [x26]
	bl	_cpu_to_le16
	ldr	w8, [x23, #8]
	orr	w8, w8, w0
	str	w8, [x23, #8]
	add	x25, x25, #1
	ldrsw	x8, [x24]
	sub	x8, x8, #1
	add	x23, x23, #16
	cmp	x25, x8
	b.lt	LBB0_3
	b	LBB0_6
LBB0_4:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_5:
	mov	x25, #0
LBB0_6:
	add	x0, x20, x25, lsl #4
	mov	x1, x22
	mov	w2, #1
	bl	_hclge_cmd_setup_basic_desc
	ldr	w2, [x24]
	mov	x0, x21
	mov	x1, x20
	bl	_hclge_cmd_send
	cbnz	w0, LBB0_16
; %bb.7:
	ldr	w9, [x24]
	cmp	w9, #1
	b.lt	LBB0_15
; %bb.8:
	mov	x21, #0
Lloh18:
	adrp	x22, _HCLGE_TM_PFC_NUM_GET_PER_CMD@GOTPAGE
Lloh19:
	ldr	x22, [x22, _HCLGE_TM_PFC_NUM_GET_PER_CMD@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh20:
	adrp	x23, _HCLGE_MAX_TC_NUM@GOTPAGE
Lloh21:
	ldr	x23, [x23, _HCLGE_MAX_TC_NUM@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x21, x21, #1
	cmp	x21, w9, sxtw
	b.ge	LBB0_15
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x25, #0
	lsl	x10, x21, #4
	ldr	x26, [x20, x10]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	add	x25, x25, #1
	ldr	w9, [x24]
	cmp	x25, w8, sxtw
	b.ge	LBB0_9
LBB0_13:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	madd	w9, w21, w9, w25
	sxtw	x27, w9
	ldr	x9, [x23]
	cmp	x9, x27
	b.ls	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [x26]
	ldr	w0, [x8, x25, lsl #2]
	bl	_le64_to_cpu
	str	w0, [x19, x27, lsl #2]
	ldr	w8, [x22]
	b	LBB0_12
LBB0_15:
	mov	w0, #0
LBB0_16:
	ldur	x8, [x29, #-88]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	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 AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_TM_PFC_PKT_GET_CMD_NUM,4,2 ; @HCLGE_TM_PFC_PKT_GET_CMD_NUM
	.comm	_HCLGE_OPC_QUERY_PFC_RX_PKT_CNT,4,2 ; @HCLGE_OPC_QUERY_PFC_RX_PKT_CNT
	.comm	_HCLGE_OPC_QUERY_PFC_TX_PKT_CNT,4,2 ; @HCLGE_OPC_QUERY_PFC_TX_PKT_CNT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HCLGE_CMD_FLAG_NEXT,4,2        ; @HCLGE_CMD_FLAG_NEXT
	.comm	_HCLGE_TM_PFC_NUM_GET_PER_CMD,4,2 ; @HCLGE_TM_PFC_NUM_GET_PER_CMD
	.comm	_HCLGE_MAX_TC_NUM,8,3           ; @HCLGE_MAX_TC_NUM
	.no_dead_strip	_hclge_pfc_stats_get
.subsections_via_symbols
