	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cn23xx_get_vf_stats            ## -- Begin function cn23xx_get_vf_stats
	.p2align	4, 0x90
_cn23xx_get_vf_stats:                   ## @cn23xx_get_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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	8(%rdi), %rcx
	movl	$-1, %eax
	btq	%r14, %rcx
	jae	LBB0_6
## %bb.1:
	movq	%rdi, %r15
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	$0, -64(%rbp)
	movq	_OCTEON_MBOX_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -80(%rbp)
	movq	_OCTEON_GET_VF_STATS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movl	16(%rdi), %eax
	imull	%r14d, %eax
	movl	%eax, -120(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -96(%rbp)
	movq	_cn23xx_get_vf_stats_callback@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -104(%rbp)
	movq	%rdx, -48(%rbp)
	leaq	-56(%rbp), %r12
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	%r12, -112(%rbp)
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leaq	-120(%rbp), %rsi
	movq	%r15, %rdi
	callq	_octeon_mbox_write
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_schedule_timeout_uninterruptible
	movq	%r12, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%rbx), %rax
	cmpq	%r13, %rbx
	movq	%rax, %rbx
	jl	LBB0_2
LBB0_4:
	leaq	-56(%rbp), %rdi
	callq	_atomic_read
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_octeon_mbox_cancel
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_err
	movl	$-1, %eax
LBB0_6:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HZ,8,3                         ## @HZ
	.comm	_OCTEON_MBOX_REQUEST,4,2        ## @OCTEON_MBOX_REQUEST
	.comm	_OCTEON_GET_VF_STATS,4,2        ## @OCTEON_GET_VF_STATS
	.comm	_cn23xx_get_vf_stats_callback,8,3 ## @cn23xx_get_vf_stats_callback
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to get stats from VF-%d, timedout\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cn23xx_get_vf_stats            ; -- Begin function cn23xx_get_vf_stats
	.p2align	2
_cn23xx_get_vf_stats:                   ; @cn23xx_get_vf_stats
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x1
	ldr	x8, [x0, #8]
	lsr	x8, x8, x19
	tbz	w8, #0, LBB0_7
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _HZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	str	xzr, [sp, #72]
Lloh3:
	adrp	x8, _OCTEON_MBOX_REQUEST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OCTEON_MBOX_REQUEST@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _OCTEON_GET_VF_STATS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OCTEON_GET_VF_STATS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #64]
	movi.2s	v0, #1
	str	d0, [sp, #56]
	ldr	w8, [x0, #16]
	mul	w8, w8, w19
	str	w8, [sp, #16]
	str	xzr, [sp, #48]
Lloh9:
	adrp	x8, _cn23xx_get_vf_stats_callback@GOTPAGE
Lloh10:
	ldr	x8, [x8, _cn23xx_get_vf_stats_callback@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	stp	x8, xzr, [sp, #32]
	str	x2, [sp, #8]
	mov	x22, sp
	mov	x0, sp
	mov	w1, #0
	bl	_atomic_set
	str	x22, [sp, #24]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x1, sp, #16
	mov	x0, x20
	bl	_octeon_mbox_write
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_schedule_timeout_uninterruptible
	mov	x0, sp
	bl	_atomic_read
	cbnz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x22, #1
	cmp	x22, x21
	mov	x22, x8
	b.lt	LBB0_2
LBB0_4:
	mov	x0, sp
	bl	_atomic_read
	cbz	x0, LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
	mov	x0, x20
	mov	w1, #0
	bl	_octeon_mbox_cancel
	ldr	x0, [x20]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_err
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_HZ,8,3                         ; @HZ
	.comm	_OCTEON_MBOX_REQUEST,4,2        ; @OCTEON_MBOX_REQUEST
	.comm	_OCTEON_GET_VF_STATS,4,2        ; @OCTEON_GET_VF_STATS
	.comm	_cn23xx_get_vf_stats_callback,8,3 ; @cn23xx_get_vf_stats_callback
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to get stats from VF-%d, timedout\n"

.subsections_via_symbols
