	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_mac_update_stats_complete
_hclge_mac_update_stats_complete:       ## @hclge_mac_update_stats_complete
	.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	%rsi, %r15
	movq	%rdi, %rbx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rsi, %rdi
	movl	$8, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	_HCLGE_OPC_STATS_MAC_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_hclge_cmd_setup_basic_desc
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_hclge_cmd_send
	testl	%eax, %eax
	je	LBB0_3
## %bb.15:
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_14
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_14
LBB0_3:
	testq	%r15, %r15
	movq	%r14, %rdi
	je	LBB0_13
## %bb.4:
	addq	$4, %rbx
	xorl	%ecx, %ecx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rcx
	cmpq	%r15, %rcx
	je	LBB0_13
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%rdi,%rcx,8), %r13
	movq	_HCLGE_RD_OTHER_STATS_NUM@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rdi), %r13
	movq	_HCLGE_RD_FIRST_STATS_NUM@GOTPCREL(%rip), %rax
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rax), %r14
	testq	%r14, %r14
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13,%r12,4), %edi
	callq	_le64_to_cpu
	addl	%eax, (%rbx,%r12,4)
	incq	%r12
	addq	$-4, %r15
	cmpq	%r12, %r14
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	subq	%r15, %rbx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_13:
	callq	_kfree
	xorl	%r12d, %r12d
LBB0_14:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HCLGE_OPC_STATS_MAC_ALL,4,2    ## @HCLGE_OPC_STATS_MAC_ALL
	.comm	_HCLGE_RD_FIRST_STATS_NUM,8,3   ## @HCLGE_RD_FIRST_STATS_NUM
	.comm	_HCLGE_RD_OTHER_STATS_NUM,8,3   ## @HCLGE_RD_OTHER_STATS_NUM
	.no_dead_strip	_hclge_mac_update_stats_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_mac_update_stats_complete
_hclge_mac_update_stats_complete:       ; @hclge_mac_update_stats_complete
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x1
	mov	w1, #8
	bl	_kcalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _HCLGE_OPC_STATS_MAC_ALL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HCLGE_OPC_STATS_MAC_ALL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_hclge_cmd_setup_basic_desc
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_hclge_cmd_send
	cbz	w0, LBB0_4
; %bb.2:
	mov	x22, x0
	mov	x0, x20
	bl	_kfree
	b	LBB0_12
LBB0_3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_12
LBB0_4:
	cbz	x19, LBB0_11
; %bb.5:
	mov	x22, #0
	add	x21, x21, #4
Lloh9:
	adrp	x23, _HCLGE_RD_FIRST_STATS_NUM@GOTPAGE
Lloh10:
	ldr	x23, [x23, _HCLGE_RD_FIRST_STATS_NUM@GOTPAGEOFF]
Lloh11:
	adrp	x24, _HCLGE_RD_OTHER_STATS_NUM@GOTPAGE
Lloh12:
	ldr	x24, [x24, _HCLGE_RD_OTHER_STATS_NUM@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x22, #1
	cmp	x22, x19
	b.eq	LBB0_11
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	cbz	x22, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x25, x20, x22, lsl #3
	mov	x8, x24
	ldr	x26, [x8]
	cbnz	x26, LBB0_10
	b	LBB0_6
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x25, [x20]
	mov	x8, x23
	ldr	x26, [x8]
	cbz	x26, LBB0_6
LBB0_10:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x25], #4
	bl	_le64_to_cpu
	ldr	w8, [x21]
	add	w8, w8, w0
	str	w8, [x21], #4
	subs	x26, x26, #1
	b.ne	LBB0_10
	b	LBB0_6
LBB0_11:
	mov	x0, x20
	bl	_kfree
	mov	w22, #0
LBB0_12:
	mov	x0, x22
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HCLGE_OPC_STATS_MAC_ALL,4,2    ; @HCLGE_OPC_STATS_MAC_ALL
	.comm	_HCLGE_RD_FIRST_STATS_NUM,8,3   ; @HCLGE_RD_FIRST_STATS_NUM
	.comm	_HCLGE_RD_OTHER_STATS_NUM,8,3   ; @HCLGE_RD_OTHER_STATS_NUM
	.no_dead_strip	_hclge_mac_update_stats_complete
.subsections_via_symbols
