	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_dbg_get_m7_stats_info
_hclge_dbg_get_m7_stats_info:           ## @hclge_dbg_get_m7_stats_info
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	_HCLGE_OPC_M7_STATS_BD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_hclge_cmd_setup_basic_desc
	movq	-64(%rbp), %r14
	leaq	8(%r13), %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_hclge_cmd_send
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
LBB0_2:
	xorl	%eax, %eax
	callq	_dev_err
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	(%r14), %edi
	callq	_le32_to_cpu
	movl	%eax, %r15d
	leal	(,%r15,8), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	_HCLGE_OPC_M7_STATS_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r13, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	movl	%r15d, %ecx
	callq	_hclge_dbg_cmd_send
	testl	%eax, %eax
	je	LBB0_6
## %bb.11:
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_kfree
	movq	(%r13), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edx
	jmp	LBB0_2
LBB0_4:
	movq	(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_10
LBB0_6:
	testl	%r15d, %r15d
	jle	LBB0_9
## %bb.7:
	movl	%r15d, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%r14,%r12,8), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	movq	(%r14,%r12,8), %rax
	movl	4(%rax), %edi
	callq	_le32_to_cpu
	movl	%eax, %r15d
	movq	(%r14,%r12,8), %rax
	movl	8(%rax), %edi
	callq	_le32_to_cpu
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	%eax, %r8d
	callq	_dev_info
	movq	(%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%r14,%r12,8), %rax
	movl	12(%rax), %edi
	callq	_le32_to_cpu
	movl	%eax, %r15d
	movq	(%r14,%r12,8), %rax
	movl	16(%rax), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	movq	(%r14,%r12,8), %rax
	movl	20(%rax), %edi
	callq	_le32_to_cpu
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	_dev_info
	incq	%r12
	cmpl	%r12d, -56(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_8
LBB0_9:
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_OPC_M7_STATS_BD,4,2      ## @HCLGE_OPC_M7_STATS_BD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get firmware statistics bd number failed, ret = %d\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"allocate desc for get_m7_stats failed\n"

	.comm	_HCLGE_OPC_M7_STATS_INFO,4,2    ## @HCLGE_OPC_M7_STATS_INFO
L_.str.2:                               ## @.str.2
	.asciz	"get firmware statistics failed, ret = %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"0x%08x  0x%08x  0x%08x\n"

	.no_dead_strip	_hclge_dbg_get_m7_stats_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_dbg_get_m7_stats_info
_hclge_dbg_get_m7_stats_info:           ; @hclge_dbg_get_m7_stats_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _HCLGE_OPC_M7_STATS_BD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HCLGE_OPC_M7_STATS_BD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #1
	bl	_hclge_cmd_setup_basic_desc
	ldr	x20, [sp, #8]
	add	x0, x19, #8
	add	x1, sp, #8
	mov	w2, #1
	bl	_hclge_cmd_send
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x19]
	str	x0, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
LBB0_2:
	bl	_dev_err
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
	add	sp, sp, #96
	ret
LBB0_4:
	ldr	w0, [x20]
	bl	_le32_to_cpu
	mov	x20, x0
	lsl	w0, w0, #3
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.5:
	mov	x21, x0
Lloh8:
	adrp	x8, _HCLGE_OPC_M7_STATS_INFO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HCLGE_OPC_M7_STATS_INFO@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	mov	x3, x20
	bl	_hclge_dbg_cmd_send
	cbz	w0, LBB0_8
; %bb.6:
	mov	x22, x0
	mov	x0, x21
	bl	_kfree
	ldr	x0, [x19]
	str	x22, [sp]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_7:
	ldr	x0, [x19]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_8:
	cmp	w20, #1
	b.lt	LBB0_11
; %bb.9:
Lloh15:
	adrp	x22, l_.str.3@PAGE
Lloh16:
	add	x22, x22, l_.str.3@PAGEOFF
	mov	x26, x21
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x19]
	ldr	x8, [x26]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	mov	x24, x0
	ldr	x8, [x26]
	ldr	w0, [x8, #4]
	bl	_le32_to_cpu
	mov	x25, x0
	ldr	x8, [x26]
	ldr	w0, [x8, #8]
	bl	_le32_to_cpu
	mov	x4, x0
	mov	x0, x23
	mov	x1, x22
	mov	x2, x24
	mov	x3, x25
	bl	_dev_info
	ldr	x23, [x19]
	ldr	x8, [x26]
	ldr	w0, [x8, #12]
	bl	_le32_to_cpu
	mov	x24, x0
	ldr	x8, [x26]
	ldr	w0, [x8, #16]
	bl	_le32_to_cpu
	mov	x25, x0
	ldr	x8, [x26], #8
	ldr	w0, [x8, #20]
	bl	_le32_to_cpu
	mov	x4, x0
	mov	x0, x23
	mov	x1, x22
	mov	x2, x24
	mov	x3, x25
	bl	_dev_info
	subs	w20, w20, #1
	b.ne	LBB0_10
LBB0_11:
	mov	x0, x21
	bl	_kfree
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_OPC_M7_STATS_BD,4,2      ; @HCLGE_OPC_M7_STATS_BD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get firmware statistics bd number failed, ret = %d\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"allocate desc for get_m7_stats failed\n"

	.comm	_HCLGE_OPC_M7_STATS_INFO,4,2    ; @HCLGE_OPC_M7_STATS_INFO
l_.str.2:                               ; @.str.2
	.asciz	"get firmware statistics failed, ret = %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"0x%08x  0x%08x  0x%08x\n"

	.no_dead_strip	_hclge_dbg_get_m7_stats_info
.subsections_via_symbols
