	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_abm_ctrl_stat
_nfp_abm_ctrl_stat:                     ## @nfp_abm_ctrl_stat
	.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
	movl	%r9d, %r14d
	movl	%r8d, %r15d
	movq	%rdi, %r13
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r12
	movq	_NFP_NET_MAX_RX_RINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	%r8d, %eax
	movl	(%rdi), %r8d
	addl	%r9d, %r8d
	addl	%eax, %r8d
	imull	%edx, %r8d
	addl	%ecx, %r8d
	cmpl	$0, 16(%rbp)
	je	LBB0_2
## %bb.1:
	leaq	-48(%rbp), %r9
	movq	%r12, %rdi
	movl	$3, %edx
	xorl	%ecx, %ecx
	callq	___nfp_rtsym_readq
	jmp	LBB0_3
LBB0_2:
	leaq	-44(%rbp), %r9
	movq	%r12, %rdi
	movl	$3, %edx
	xorl	%ecx, %ecx
	callq	___nfp_rtsym_readl
LBB0_3:
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	(%r13), %r9d
	movl	4(%r13), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	callq	_nfp_err
	jmp	LBB0_6
LBB0_5:
	movq	24(%rbp), %rax
	cmpl	$0, 16(%rbp)
	leaq	-44(%rbp), %rcx
	leaq	-48(%rbp), %rdx
	cmoveq	%rcx, %rdx
	movl	(%rdx), %ecx
	movl	%ecx, (%rax)
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_NET_MAX_RX_RINGS,4,2       ## @NFP_NET_MAX_RX_RINGS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RED offload reading stat failed on vNIC %d band %d queue %d (+ %d)\n"

	.no_dead_strip	_nfp_abm_ctrl_stat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_abm_ctrl_stat
_nfp_abm_ctrl_stat:                     ; @nfp_abm_ctrl_stat
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x7
	mov	x22, x6
	mov	x19, x5
	mov	x21, x4
	mov	x23, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _NFP_NET_MAX_RX_RINGS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NFP_NET_MAX_RX_RINGS@GOTPAGEOFF]
	ldr	x24, [x8]
Lloh2:
	ldr	w8, [x9]
	ldr	w9, [x0]
	add	w9, w9, w5
	madd	w8, w8, w4, w9
	madd	w4, w8, w2, w3
	cbz	w6, LBB0_3
; %bb.1:
	add	x5, sp, #12
	mov	x0, x24
	mov	w2, #3
	mov	w3, #0
	bl	___nfp_rtsym_readq
	mov	x25, x0
	cbz	w0, LBB0_4
LBB0_2:
	ldp	w5, w2, [x23]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	mov	x3, x21
	mov	x4, x19
	bl	_nfp_err
	b	LBB0_5
LBB0_3:
	add	x5, sp, #8
	mov	x0, x24
	mov	w2, #3
	mov	w3, #0
	bl	___nfp_rtsym_readl
	mov	x25, x0
	cbnz	w0, LBB0_2
LBB0_4:
	cmp	w22, #0
	add	x8, sp, #12
	add	x9, sp, #8
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_5:
	mov	x0, x25
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_NET_MAX_RX_RINGS,4,2       ; @NFP_NET_MAX_RX_RINGS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RED offload reading stat failed on vNIC %d band %d queue %d (+ %d)\n"

	.no_dead_strip	_nfp_abm_ctrl_stat
.subsections_via_symbols
