	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_get_sset_count
_niu_get_sset_count:                    ## @niu_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	callq	_netdev_priv
	movq	_ETH_SS_STATS@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jne	LBB0_1
## %bb.2:
	movq	_NIU_FLAGS_XMAC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_3
## %bb.4:
	movq	_NUM_BMAC_STAT_KEYS@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	jmp	LBB0_6
LBB0_3:
	movq	_NUM_XMAC_STAT_KEYS@GOTPCREL(%rip), %rcx
LBB0_5:
	movq	_NUM_RXCHAN_STAT_KEYS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	imull	4(%rax), %edx
	addl	(%rcx), %edx
	movq	_NUM_TXCHAN_STAT_KEYS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	8(%rax), %ecx
	addl	%edx, %ecx
LBB0_6:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_SS_STATS,4,2               ## @ETH_SS_STATS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NIU_FLAGS_XMAC,4,2             ## @NIU_FLAGS_XMAC
	.comm	_NUM_XMAC_STAT_KEYS,4,2         ## @NUM_XMAC_STAT_KEYS
	.comm	_NUM_BMAC_STAT_KEYS,4,2         ## @NUM_BMAC_STAT_KEYS
	.comm	_NUM_RXCHAN_STAT_KEYS,4,2       ## @NUM_RXCHAN_STAT_KEYS
	.comm	_NUM_TXCHAN_STAT_KEYS,4,2       ## @NUM_TXCHAN_STAT_KEYS
	.no_dead_strip	_niu_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 niu_get_sset_count
_niu_get_sset_count:                    ; @niu_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	x19, x1
	bl	_netdev_priv
Lloh0:
	adrp	x8, _ETH_SS_STATS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_SS_STATS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _NIU_FLAGS_XMAC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NIU_FLAGS_XMAC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _NUM_XMAC_STAT_KEYS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NUM_XMAC_STAT_KEYS@GOTPAGEOFF]
Lloh8:
	adrp	x10, _NUM_BMAC_STAT_KEYS@GOTPAGE
Lloh9:
	ldr	x10, [x10, _NUM_BMAC_STAT_KEYS@GOTPAGEOFF]
	ldp	w11, w12, [x0]
	tst	w8, w11
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _NUM_RXCHAN_STAT_KEYS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _NUM_RXCHAN_STAT_KEYS@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	madd	w8, w9, w12, w8
	ldr	w9, [x0, #8]
Lloh13:
	adrp	x10, _NUM_TXCHAN_STAT_KEYS@GOTPAGE
Lloh14:
	ldr	x10, [x10, _NUM_TXCHAN_STAT_KEYS@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	madd	w0, w10, w9, w8
	b	LBB0_3
LBB0_2:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_SS_STATS,4,2               ; @ETH_SS_STATS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NIU_FLAGS_XMAC,4,2             ; @NIU_FLAGS_XMAC
	.comm	_NUM_XMAC_STAT_KEYS,4,2         ; @NUM_XMAC_STAT_KEYS
	.comm	_NUM_BMAC_STAT_KEYS,4,2         ; @NUM_BMAC_STAT_KEYS
	.comm	_NUM_RXCHAN_STAT_KEYS,4,2       ; @NUM_RXCHAN_STAT_KEYS
	.comm	_NUM_TXCHAN_STAT_KEYS,4,2       ; @NUM_TXCHAN_STAT_KEYS
	.no_dead_strip	_niu_get_sset_count
.subsections_via_symbols
