	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lio_fetch_stats                ## -- Begin function lio_fetch_stats
	.p2align	4, 0x90
_lio_fetch_stats:                       ## @lio_fetch_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r14
	movq	16(%r14), %r15
	movq	%r15, %rdi
	callq	_OCTEON_CN23XX_PF
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movl	(%r15), %ecx
	movq	_LIO_VFSTATS_POLL@GOTPCREL(%rip), %rsi
	movl	%ecx, %eax
	cltd
	idivl	(%rsi)
	testl	%edx, %edx
	jne	LBB0_5
## %bb.2:
	movq	_LIQUIDIO_SPOOFCHK_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%r15)
	je	LBB0_5
## %bb.3:
	cmpq	$0, 16(%r15)
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_lio_fetch_vf_stats
	movl	(%r15), %ecx
LBB0_5:
	incl	%ecx
	movl	%ecx, (%r15)
LBB0_6:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	xorl	%ecx, %ecx
	callq	_octeon_alloc_soft_command
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	movq	16(%rax), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%rbx, %rdi
	addq	$12, %rdi
	callq	_init_completion
	movq	_OCTEON_REQUEST_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	8(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_OPCODE_NIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_OPCODE_NIC_PORT_STATS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$0, (%rsp)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_octeon_prepare_soft_command
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_octeon_send_soft_command
	movq	_IQ_SEND_FAILED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_octeon_free_soft_command
	jmp	LBB0_13
LBB0_7:
	movq	8(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_13
LBB0_10:
	movq	_LIO_SC_MAX_TMO_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	%edx, %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_wait_for_sc_completion_timeout
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movq	8(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_13
LBB0_12:
	movl	4(%rbx), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_octnet_nic_stats_callback
	movl	(%rbx), %edi
	movl	$1, %esi
	callq	_WRITE_ONCE
LBB0_13:
	movq	_LIQUIDIO_NDEV_STATS_POLL_TIME_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rax, %rbx
	movq	_LIO_IFSTATE_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ifstate_check
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_schedule_delayed_work          ## TAILCALL
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LIO_VFSTATS_POLL,4,2           ## @LIO_VFSTATS_POLL
	.comm	_LIQUIDIO_SPOOFCHK_CAP,4,2      ## @LIQUIDIO_SPOOFCHK_CAP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Soft command allocation failed\n"

	.comm	_OCTEON_REQUEST_PENDING,4,2     ## @OCTEON_REQUEST_PENDING
	.comm	_OPCODE_NIC,4,2                 ## @OPCODE_NIC
	.comm	_OPCODE_NIC_PORT_STATS,4,2      ## @OPCODE_NIC_PORT_STATS
	.comm	_IQ_SEND_FAILED,4,2             ## @IQ_SEND_FAILED
	.comm	_LIO_SC_MAX_TMO_MS,4,2          ## @LIO_SC_MAX_TMO_MS
L_.str.1:                               ## @.str.1
	.asciz	"sc OPCODE_NIC_PORT_STATS command failed\n"

	.comm	_LIQUIDIO_NDEV_STATS_POLL_TIME_MS,4,2 ## @LIQUIDIO_NDEV_STATS_POLL_TIME_MS
	.comm	_LIO_IFSTATE_RUNNING,4,2        ## @LIO_IFSTATE_RUNNING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lio_fetch_stats                ; -- Begin function lio_fetch_stats
	.p2align	2
_lio_fetch_stats:                       ; @lio_fetch_stats
	.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
	ldr	x19, [x0]
	ldr	x20, [x19, #16]
	mov	x0, x20
	bl	_OCTEON_CN23XX_PF
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _LIO_VFSTATS_POLL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LIO_VFSTATS_POLL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sdiv	w10, w8, w9
	msub	w9, w10, w9, w8
	cbnz	w9, LBB0_5
; %bb.2:
	ldr	w9, [x20, #24]
Lloh3:
	adrp	x10, _LIQUIDIO_SPOOFCHK_CAP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _LIQUIDIO_SPOOFCHK_CAP@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_5
; %bb.3:
	ldr	x9, [x20, #16]
	cbz	x9, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_lio_fetch_vf_stats
	ldr	w8, [x20]
LBB0_5:
	add	w8, w8, #1
	str	w8, [x20]
LBB0_6:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #4
	mov	w3, #0
	bl	_octeon_alloc_soft_command
	cbz	x0, LBB0_9
; %bb.7:
	mov	x21, x0
	ldr	x0, [x0, #16]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x0, x21, #12
	bl	_init_completion
Lloh6:
	adrp	x8, _OCTEON_REQUEST_PENDING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OCTEON_REQUEST_PENDING@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	ldr	w9, [x9]
	stp	w8, w9, [x21, #4]
Lloh9:
	adrp	x8, _OPCODE_NIC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OPCODE_NIC@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _OPCODE_NIC_PORT_STATS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OPCODE_NIC_PORT_STATS@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	bl	_octeon_prepare_soft_command
	mov	x0, x20
	mov	x1, x21
	bl	_octeon_send_soft_command
Lloh15:
	adrp	x8, _IQ_SEND_FAILED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IQ_SEND_FAILED@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.8:
	mov	x0, x20
	mov	x1, x21
	bl	_octeon_free_soft_command
	b	LBB0_13
LBB0_9:
	ldr	x0, [x20, #8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_13
LBB0_10:
Lloh20:
	adrp	x8, _LIO_SC_MAX_TMO_MS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LIO_SC_MAX_TMO_MS@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	lsl	w2, w8, #1
	mov	x0, x20
	mov	x1, x21
	bl	_wait_for_sc_completion_timeout
	cbz	w0, LBB0_12
; %bb.11:
	ldr	x0, [x20, #8]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_13
LBB0_12:
	ldr	w1, [x21, #4]
	mov	x0, x20
	mov	x2, x21
	bl	_octnet_nic_stats_callback
	ldr	w0, [x21]
	mov	w1, #1
	bl	_WRITE_ONCE
LBB0_13:
Lloh25:
	adrp	x8, _LIQUIDIO_NDEV_STATS_POLL_TIME_MS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _LIQUIDIO_NDEV_STATS_POLL_TIME_MS@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x20, x0
Lloh28:
	adrp	x8, _LIO_IFSTATE_RUNNING@GOTPAGE
Lloh29:
	ldr	x8, [x8, _LIO_IFSTATE_RUNNING@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ifstate_check
	cbz	x0, LBB0_15
; %bb.14:
	mov	x0, x19
	mov	x1, x20
	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
	b	_schedule_delayed_work
LBB0_15:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_LIO_VFSTATS_POLL,4,2           ; @LIO_VFSTATS_POLL
	.comm	_LIQUIDIO_SPOOFCHK_CAP,4,2      ; @LIQUIDIO_SPOOFCHK_CAP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Soft command allocation failed\n"

	.comm	_OCTEON_REQUEST_PENDING,4,2     ; @OCTEON_REQUEST_PENDING
	.comm	_OPCODE_NIC,4,2                 ; @OPCODE_NIC
	.comm	_OPCODE_NIC_PORT_STATS,4,2      ; @OPCODE_NIC_PORT_STATS
	.comm	_IQ_SEND_FAILED,4,2             ; @IQ_SEND_FAILED
	.comm	_LIO_SC_MAX_TMO_MS,4,2          ; @LIO_SC_MAX_TMO_MS
l_.str.1:                               ; @.str.1
	.asciz	"sc OPCODE_NIC_PORT_STATS command failed\n"

	.comm	_LIQUIDIO_NDEV_STATS_POLL_TIME_MS,4,2 ; @LIQUIDIO_NDEV_STATS_POLL_TIME_MS
	.comm	_LIO_IFSTATE_RUNNING,4,2        ; @LIO_IFSTATE_RUNNING
.subsections_via_symbols
