	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lio_fetch_vf_stats
_lio_fetch_vf_stats:                    ## @lio_fetch_vf_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	8(%rdi), %r14
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	xorl	%ecx, %ecx
	callq	_octeon_alloc_soft_command
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	24(%rax), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	%r12, %rdi
	addq	$16, %rdi
	callq	_init_completion
	movq	_OCTEON_REQUEST_PENDING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movq	(%r13), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	_OPCODE_NIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_OPCODE_NIC_VF_PORT_STATS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$0, (%rsp)
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_octeon_prepare_soft_command
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_octeon_send_soft_command
	movl	%eax, %ebx
	movq	_IQ_SEND_FAILED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_octeon_free_soft_command
	jmp	LBB0_11
LBB0_1:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_4:
	movq	_LIO_SC_MAX_TMO_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	%edx, %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_wait_for_sc_completion_timeout
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_11
LBB0_6:
	movq	(%r12), %rax
	movq	_OCTEON_REQUEST_TIMEOUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.7:
	cmpl	$0, 8(%r15)
	jne	LBB0_10
## %bb.8:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_octeon_swap_8B_data
	movq	(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.9:
	movq	(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_warn
LBB0_10:
	movl	8(%r12), %edi
	movl	$1, %esi
	callq	_WRITE_ONCE
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Soft command allocation failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_OCTEON_REQUEST_PENDING,8,3     ## @OCTEON_REQUEST_PENDING
	.comm	_OPCODE_NIC,4,2                 ## @OPCODE_NIC
	.comm	_OPCODE_NIC_VF_PORT_STATS,4,2   ## @OPCODE_NIC_VF_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_VF_PORT_STATS command failed\n"

	.comm	_OCTEON_REQUEST_TIMEOUT,8,3     ## @OCTEON_REQUEST_TIMEOUT
L_.str.2:                               ## @.str.2
	.asciz	"%llu Spoofed packets detected\n"

	.no_dead_strip	_lio_fetch_vf_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lio_fetch_vf_stats
_lio_fetch_vf_stats:                    ; @lio_fetch_vf_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
	mov	x22, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #16
	mov	w3, #0
	bl	_octeon_alloc_soft_command
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	x21, [x0, #24]
	mov	x0, x21
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	add	x0, x20, #16
	bl	_init_completion
Lloh0:
	adrp	x8, _OCTEON_REQUEST_PENDING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OCTEON_REQUEST_PENDING@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x20]
	ldr	x8, [x22]
	ldr	w8, [x8]
	str	w8, [x20, #12]
Lloh3:
	adrp	x8, _OPCODE_NIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OPCODE_NIC@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _OPCODE_NIC_VF_PORT_STATS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OPCODE_NIC_VF_PORT_STATS@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	bl	_octeon_prepare_soft_command
	mov	x0, x19
	mov	x1, x20
	bl	_octeon_send_soft_command
Lloh9:
	adrp	x8, _IQ_SEND_FAILED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IQ_SEND_FAILED@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.2:
	mov	x22, x0
	mov	x0, x19
	mov	x1, x20
	bl	_octeon_free_soft_command
	b	LBB0_11
LBB0_3:
	ldr	x0, [x19]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_11
LBB0_4:
Lloh17:
	adrp	x8, _LIO_SC_MAX_TMO_MS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LIO_SC_MAX_TMO_MS@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	lsl	w2, w8, #1
	mov	x0, x19
	mov	x1, x20
	bl	_wait_for_sc_completion_timeout
	cbz	w0, LBB0_6
; %bb.5:
	mov	x22, x0
	ldr	x0, [x19]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_11
LBB0_6:
	ldr	x8, [x20]
Lloh22:
	adrp	x9, _OCTEON_REQUEST_TIMEOUT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _OCTEON_REQUEST_TIMEOUT@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.7:
	ldr	w8, [x21, #8]
	cbnz	w8, LBB0_10
; %bb.8:
	mov	x0, x21
	mov	w1, #0
	bl	_octeon_swap_8B_data
	ldr	x2, [x21]
	cbz	x2, LBB0_10
; %bb.9:
	ldr	x0, [x19]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
LBB0_10:
	ldr	w0, [x20, #8]
	mov	w1, #1
	bl	_WRITE_ONCE
	mov	w22, #0
LBB0_11:
	mov	x0, x22
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Soft command allocation failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_OCTEON_REQUEST_PENDING,8,3     ; @OCTEON_REQUEST_PENDING
	.comm	_OPCODE_NIC,4,2                 ; @OPCODE_NIC
	.comm	_OPCODE_NIC_VF_PORT_STATS,4,2   ; @OPCODE_NIC_VF_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_VF_PORT_STATS command failed\n"

	.comm	_OCTEON_REQUEST_TIMEOUT,8,3     ; @OCTEON_REQUEST_TIMEOUT
l_.str.2:                               ; @.str.2
	.asciz	"%llu Spoofed packets detected\n"

	.no_dead_strip	_lio_fetch_vf_stats
.subsections_via_symbols
