	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hinic_get_ethtool_stats
_hinic_get_ethtool_stats:               ## @hinic_get_ethtool_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movl	$0, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%rax, %rdi
	callq	_hinic_get_vport_stats
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_netif_err
LBB0_2:
	movq	_hinic_function_stats@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_LEN
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	movslq	(%rdi,%rbx,8), %rax
	movl	-48(%rbp,%rax), %eax
	movl	%eax, (%r12,%rbx,4)
	incq	%rbx
	callq	_ARRAY_LEN
	cmpq	%rax, %rbx
	jb	LBB0_3
LBB0_4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r13
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_hinic_get_phy_port_stats
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_netif_err
LBB0_8:
	movq	_hinic_port_stats@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_LEN
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%rbx,4), %r12
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	movslq	(%rdi,%r14,8), %rax
	movl	(%r13,%rax), %eax
	movl	%eax, (%r12,%r14,4)
	incq	%r14
	callq	_ARRAY_LEN
	cmpq	%rax, %r14
	jb	LBB0_10
## %bb.11:
	addq	%r14, %rbx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_12:
	movq	%r13, %rdi
	callq	_kfree
	jmp	LBB0_13
LBB0_5:
	leaq	(%r12,%rbx,4), %r15
	movq	%r14, %r13
	movq	_hinic_port_stats@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_LEN
	leal	(,%rax,4), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	(%r14), %rdi
	movq	%r13, %r14
	callq	_ARRAY_LEN
	addq	%rax, %rbx
LBB0_13:
	leaq	(%r12,%rbx,4), %rsi
	movq	%r14, %rdi
	callq	_get_drv_queue_stats
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get vport stats from firmware\n"

	.comm	_hinic_function_stats,8,3       ## @hinic_function_stats
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_hinic_port_stats,8,3           ## @hinic_port_stats
L_.str.1:                               ## @.str.1
	.asciz	"Failed to get port stats from firmware\n"

	.no_dead_strip	_hinic_get_ethtool_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hinic_get_ethtool_stats
_hinic_get_ethtool_stats:               ; @hinic_get_ethtool_stats
	.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, x2
	mov	x21, x0
	bl	_netdev_priv
	mov	x20, x0
	str	wzr, [sp, #8]
	add	x1, sp, #8
	bl	_hinic_get_vport_stats
Lloh0:
	adrp	x24, _drv@GOTPAGE
Lloh1:
	ldr	x24, [x24, _drv@GOTPAGEOFF]
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w1, [x24]
Lloh2:
	adrp	x3, l_.str@PAGE
Lloh3:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_netif_err
LBB0_2:
Lloh4:
	adrp	x22, _hinic_function_stats@GOTPAGE
Lloh5:
	ldr	x22, [x22, _hinic_function_stats@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_LEN
	cbz	x0, LBB0_5
; %bb.3:
	mov	x25, #0
	mov	x23, #0
	add	x26, sp, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	ldrsw	x8, [x0, x25]
	ldr	w8, [x26, x8]
	str	w8, [x19, x23, lsl #2]
	add	x23, x23, #1
	bl	_ARRAY_LEN
	add	x25, x25, #8
	cmp	x23, x0
	b.lo	LBB0_4
	b	LBB0_6
LBB0_5:
	mov	x23, #0
LBB0_6:
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_14
; %bb.7:
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_hinic_get_phy_port_stats
	cbz	w0, LBB0_9
; %bb.8:
	ldr	w1, [x24]
Lloh9:
	adrp	x3, l_.str.1@PAGE
Lloh10:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_netif_err
LBB0_9:
Lloh11:
	adrp	x21, _hinic_port_stats@GOTPAGE
Lloh12:
	ldr	x21, [x21, _hinic_port_stats@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_LEN
	cbz	x0, LBB0_13
; %bb.10:
	mov	x25, #0
	mov	x24, #0
	add	x26, x19, x23, lsl #2
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	ldrsw	x8, [x0, x25]
	ldr	w8, [x22, x8]
	str	w8, [x26, x24, lsl #2]
	add	x24, x24, #1
	bl	_ARRAY_LEN
	add	x25, x25, #8
	cmp	x24, x0
	b.lo	LBB0_11
; %bb.12:
	add	x23, x23, x24
LBB0_13:
	mov	x0, x22
	bl	_kfree
	b	LBB0_15
LBB0_14:
	add	x21, x19, x23, lsl #2
Lloh13:
	adrp	x22, _hinic_port_stats@GOTPAGE
Lloh14:
	ldr	x22, [x22, _hinic_port_stats@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_LEN
	lsl	w2, w0, #2
	mov	x0, x21
	mov	w1, #0
	bl	_memset
	ldr	x0, [x22]
	bl	_ARRAY_LEN
	add	x23, x0, x23
LBB0_15:
	add	x1, x19, x23, lsl #2
	mov	x0, x20
	bl	_get_drv_queue_stats
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get vport stats from firmware\n"

	.comm	_hinic_function_stats,8,3       ; @hinic_function_stats
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_hinic_port_stats,8,3           ; @hinic_port_stats
l_.str.1:                               ; @.str.1
	.asciz	"Failed to get port stats from firmware\n"

	.no_dead_strip	_hinic_get_ethtool_stats
.subsections_via_symbols
