	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_get_sset_count
_hns_get_sset_count:                    ## @hns_get_sset_count
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	(%rax), %rdi
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	_ETH_SS_TEST@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jne	LBB0_10
## %bb.4:
	movq	_ETH_GSTRING_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	cmpq	$4, %rcx
	ja	LBB0_5
## %bb.6:
	movl	$4, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	jmp	LBB0_2
LBB0_10:
	movq	_ETH_SS_STATS@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jne	LBB0_2
## %bb.11:
	movq	_HNS_NET_STATS_CNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movl	%ebx, %esi
	callq	*%rax
                                        ## kill: def $eax killed $eax def $rax
	addl	%r14d, %eax
	jmp	LBB0_12
LBB0_2:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_5:
	xorl	%eax, %eax
LBB0_7:
	movq	(%rdi), %rcx
	movq	_PHY_INTERFACE_MODE_XGMII@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpq	(%rdx), %rcx
	sete	%sil
	subl	%esi, %eax
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.8:
	cmpq	$0, (%rcx)
	je	LBB0_12
LBB0_9:
	decl	%eax
LBB0_12:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get_sset_count is null!\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ETH_SS_TEST,4,2                ## @ETH_SS_TEST
	.comm	_ETH_GSTRING_LEN,4,2            ## @ETH_GSTRING_LEN
	.comm	_PHY_INTERFACE_MODE_XGMII,8,3   ## @PHY_INTERFACE_MODE_XGMII
	.comm	_ETH_SS_STATS,4,2               ## @ETH_SS_STATS
	.comm	_HNS_NET_STATS_CNT,4,2          ## @HNS_NET_STATS_CNT
	.no_dead_strip	_hns_get_sset_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_get_sset_count
_hns_get_sset_count:                    ; @hns_get_sset_count
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_netdev_priv
	ldr	x0, [x0]
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.1:
Lloh0:
	adrp	x9, _ETH_SS_TEST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ETH_SS_TEST@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w20
	b.ne	LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _ETH_GSTRING_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_GSTRING_LEN@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	mov	w9, #4
	udiv	x8, x9, x8
Lloh6:
	adrp	x9, _PHY_INTERFACE_MODE_XGMII@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PHY_INTERFACE_MODE_XGMII@GOTPAGEOFF]
	ldr	x10, [x0]
Lloh8:
	ldr	x9, [x9]
	cmp	x10, x9
	cset	w9, eq
	sub	w0, w8, w9
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
LBB0_4:
	sub	w0, w0, #1
	b	LBB0_9
LBB0_5:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	b	LBB0_8
LBB0_6:
Lloh11:
	adrp	x9, _ETH_SS_STATS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ETH_SS_STATS@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w9, w20
	b.ne	LBB0_8
; %bb.7:
Lloh14:
	adrp	x9, _HNS_NET_STATS_CNT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _HNS_NET_STATS_CNT@GOTPAGEOFF]
Lloh16:
	ldr	w19, [x9]
	mov	x1, x20
	blr	x8
	add	w0, w0, w19
	b	LBB0_9
LBB0_8:
Lloh17:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get_sset_count is null!\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ETH_SS_TEST,4,2                ; @ETH_SS_TEST
	.comm	_ETH_GSTRING_LEN,4,2            ; @ETH_GSTRING_LEN
	.comm	_PHY_INTERFACE_MODE_XGMII,8,3   ; @PHY_INTERFACE_MODE_XGMII
	.comm	_ETH_SS_STATS,4,2               ; @ETH_SS_STATS
	.comm	_HNS_NET_STATS_CNT,4,2          ; @HNS_NET_STATS_CNT
	.no_dead_strip	_hns_get_sset_count
.subsections_via_symbols
