	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sja1105_get_sset_count         ## -- Begin function sja1105_get_sset_count
	.p2align	4, 0x90
_sja1105_get_sset_count:                ## @sja1105_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rdi, %r14
	movq	_sja1105_port_stats@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ARRAY_SIZE
	movl	%eax, %ebx
	movq	_ETH_SS_STATS@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_SJA1105PR_DEVICE_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_SJA1105QS_DEVICE_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_4:
	movq	_sja1105pqrs_extra_port_stats@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ARRAY_SIZE
	addl	%eax, %ebx
	jmp	LBB0_5
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sja1105_port_stats,4,2         ## @sja1105_port_stats
	.comm	_ETH_SS_STATS,4,2               ## @ETH_SS_STATS
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_SJA1105PR_DEVICE_ID,8,3        ## @SJA1105PR_DEVICE_ID
	.comm	_SJA1105QS_DEVICE_ID,8,3        ## @SJA1105QS_DEVICE_ID
	.comm	_sja1105pqrs_extra_port_stats,4,2 ## @sja1105pqrs_extra_port_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sja1105_get_sset_count         ; -- Begin function sja1105_get_sset_count
	.p2align	2
_sja1105_get_sset_count:                ; @sja1105_get_sset_count
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _sja1105_port_stats@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sja1105_port_stats@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ARRAY_SIZE
Lloh3:
	adrp	x8, _ETH_SS_STATS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_SS_STATS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _SJA1105PR_DEVICE_ID@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SJA1105PR_DEVICE_ID@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _SJA1105QS_DEVICE_ID@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SJA1105QS_DEVICE_ID@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.2:
Lloh12:
	adrp	x8, _sja1105pqrs_extra_port_stats@GOTPAGE
Lloh13:
	ldr	x8, [x8, _sja1105pqrs_extra_port_stats@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_ARRAY_SIZE
	add	w19, w0, w19
	b	LBB0_4
LBB0_3:
Lloh15:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_sja1105_port_stats,4,2         ; @sja1105_port_stats
	.comm	_ETH_SS_STATS,4,2               ; @ETH_SS_STATS
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_SJA1105PR_DEVICE_ID,8,3        ; @SJA1105PR_DEVICE_ID
	.comm	_SJA1105QS_DEVICE_ID,8,3        ; @SJA1105QS_DEVICE_ID
	.comm	_sja1105pqrs_extra_port_stats,4,2 ; @sja1105pqrs_extra_port_stats
.subsections_via_symbols
