	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_ae_update_stats
_hns_ae_update_stats:                   ## @hns_ae_update_stats
	.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	$88, %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, %rbx
	callq	_hns_ae_get_vf_cb
	movq	%rax, %r15
	movl	16(%rbx), %edi
	callq	_hns_ae_get_dsaf_dev
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%r14, -128(%rbp)                ## 8-byte Spill
	movslq	(%r15), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_hns_get_ppe_cb
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_hns_get_mac_cb
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	cmpl	$0, (%rbx)
	jle	LBB0_2
## %bb.3:
	xorl	%r13d, %r13d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax,%r13,8), %rbx
	movq	%rbx, %rdi
	callq	_hns_rcb_update_stats
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	48(%rbx), %rcx
	addq	40(%rbx), %rdx
	addq	32(%rbx), %r14
	addq	24(%rbx), %r12
	movq	8(%rbx), %rax
	addq	16(%rbx), %rax
	addq	(%rbx), %rax
	addq	%rax, %r15
	incq	%r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	jl	LBB0_4
	jmp	LBB0_5
LBB0_2:
	xorl	%ecx, %ecx
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
LBB0_5:
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_hns_ppe_update_stats
	movq	(%rbx), %rdx
	movq	16(%rbx), %r12
	addq	8(%rbx), %rdx
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movq	(%rbx), %rax
	movq	_HNAE_PORT_SERVICE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_6
## %bb.7:
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movl	%r15d, %esi
	callq	_hns_dsaf_update_stats
	movq	(%r14), %rax
	leaq	(%r15,%r15,2), %rcx
	shlq	$4, %rcx
	addq	40(%rax,%rcx), %r12
	addq	32(%rax,%rcx), %r12
	addq	24(%rax,%rcx), %r12
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	_DSAF_PPE_INODE_BASE@GOTPCREL(%rip), %rax
	movslq	(%rax), %r13
	addq	%r15, %r13
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_hns_dsaf_update_stats
	movq	(%r14), %rax
	leaq	(,%r13,2), %rcx
	addq	%r13, %rcx
	shlq	$4, %rcx
	movq	40(%rax,%rcx), %r13
	addq	32(%rax,%rcx), %r13
	addq	24(%rax,%rcx), %r13
	addq	16(%rax,%rcx), %r13
	addq	8(%rax,%rcx), %r13
	addq	(%rax,%rcx), %r13
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_6:
	xorl	%r13d, %r13d
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
LBB0_8:
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_hns_mac_update_stats
	movq	16(%rbx), %rax
	movq	56(%rbx), %rcx
	addq	64(%rbx), %rcx
	addq	48(%rbx), %rcx
	addq	40(%rbx), %rcx
	addq	32(%rbx), %rcx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addq	%rax, %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	addq	%rcx, %rdi
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	movq	%r14, 88(%rdx)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 80(%rdx)
	movq	%r12, 72(%rdx)
	movq	$0, 64(%rdx)
	movq	%r15, 56(%rdx)
	movq	%rsi, 48(%rdx)
	movq	%rdi, 40(%rdx)
	movq	%r13, 32(%rdx)
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 24(%rdx)
	movl	28(%rbx), %ecx
	movl	%ecx, 20(%rdx)
	movl	24(%rbx), %ecx
	movl	%ecx, 16(%rdx)
	movq	%rax, 8(%rdx)
	movl	12(%rbx), %eax
	movl	%eax, 4(%rdx)
	movl	8(%rbx), %eax
	movl	%eax, (%rdx)
LBB0_9:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HNAE_PORT_SERVICE,8,3          ## @HNAE_PORT_SERVICE
	.comm	_DSAF_PPE_INODE_BASE,4,2        ## @DSAF_PPE_INODE_BASE
	.no_dead_strip	_hns_ae_update_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_ae_update_stats
_hns_ae_update_stats:                   ; @hns_ae_update_stats
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x1
	mov	x24, x0
	bl	_hns_ae_get_vf_cb
	mov	x20, x0
	ldr	w0, [x24, #16]
	bl	_hns_ae_get_dsaf_dev
	cbz	x0, LBB0_9
; %bb.1:
	ldrsw	x8, [x20]
	stp	x8, x0, [sp, #8]                ; 16-byte Folded Spill
	mov	x0, x24
	bl	_hns_get_ppe_cb
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	mov	x0, x24
	bl	_hns_get_mac_cb
	mov	x20, x0
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x22, #0
	mov	x23, #0
	mov	x26, #0
	mov	x28, #0
	mov	x27, #0
	mov	x21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #8]
	ldr	x25, [x8, x22, lsl #3]
	mov	x0, x25
	bl	_hns_rcb_update_stats
	ldr	x8, [x25, #48]
	add	x21, x21, x8
	ldp	x9, x8, [x25, #32]
	add	x28, x28, x8
	add	x27, x27, x9
	ldp	x9, x8, [x25, #16]
	add	x26, x26, x8
	ldp	x10, x8, [x25]
	add	x8, x8, x9
	add	x8, x8, x10
	add	x23, x23, x8
	add	x22, x22, #1
	ldrsw	x8, [x24]
	cmp	x22, x8
	b.lt	LBB0_3
	b	LBB0_5
LBB0_4:
	mov	x21, #0
	mov	x27, #0
	mov	x28, #0
	mov	x26, #0
	mov	x23, #0
LBB0_5:
	ldr	x22, [sp, #24]                  ; 8-byte Folded Reload
	mov	x0, x22
	bl	_hns_ppe_update_stats
	ldp	x8, x24, [x22, #8]
	ldr	x9, [x22]
	add	x25, x9, x8
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _HNAE_PORT_SERVICE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HNAE_PORT_SERVICE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	str	x25, [sp, #24]                  ; 8-byte Folded Spill
	ldp	x22, x25, [sp, #8]              ; 16-byte Folded Reload
	mov	x0, x25
	mov	x1, x22
	bl	_hns_dsaf_update_stats
	ldr	x8, [x25]
	mov	w9, #48
	madd	x8, x22, x9, x8
	ldp	x10, x9, [x8, #32]
	ldr	x8, [x8, #24]
	add	x9, x24, x9
	add	x9, x9, x10
	add	x24, x9, x8
Lloh3:
	adrp	x8, _DSAF_PPE_INODE_BASE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DSAF_PPE_INODE_BASE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w22, w8, w22
	mov	x0, x25
	mov	x1, x22
	bl	_hns_dsaf_update_stats
	ldr	x8, [x25]
	ldr	x25, [sp, #24]                  ; 8-byte Folded Reload
	mov	w9, #48
	smaddl	x8, w22, w9, x8
	ldp	x10, x9, [x8, #32]
	ldp	x12, x11, [x8, #16]
	add	x9, x9, x10
	add	x9, x9, x11
	ldp	x8, x10, [x8]
	add	x9, x9, x12
	add	x9, x9, x10
	add	x22, x9, x8
	b	LBB0_8
LBB0_7:
	mov	x22, #0
LBB0_8:
	mov	x0, x20
	bl	_hns_mac_update_stats
	ldr	x8, [x20, #16]
	add	x9, x23, x8
	ldp	x11, x10, [x20, #56]
	ldr	x12, [x20, #48]
	add	x10, x11, x10
	add	x10, x10, x12
	ldp	x12, x11, [x20, #32]
	add	x10, x10, x11
	add	x10, x10, x12
	add	x10, x25, x10
	stp	x28, x21, [x19, #80]
	stp	xzr, x27, [x19, #64]
	stp	x9, x26, [x19, #48]
	stp	x22, x10, [x19, #32]
	str	x24, [x19, #24]
	ldr	d0, [x20, #24]
	str	d0, [x19, #16]
	str	x8, [x19, #8]
	ldr	d0, [x20, #8]
	str	d0, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HNAE_PORT_SERVICE,8,3          ; @HNAE_PORT_SERVICE
	.comm	_DSAF_PPE_INODE_BASE,4,2        ; @DSAF_PPE_INODE_BASE
	.no_dead_strip	_hns_ae_update_stats
.subsections_via_symbols
