	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_erif_entry_get
_mlxsw_sp_erif_entry_get:               ## @mlxsw_sp_erif_entry_get
	.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	%ecx, %r12d
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	24(%rsi), %rax
	movq	(%rax), %r13
	movq	%rdx, %rdi
	callq	_mlxsw_sp_rif_index
	movl	%eax, (%r13)
	movq	%r14, %rdi
	callq	_mlxsw_sp_rif_dev_ifindex
	movq	24(%rbx), %rcx
	movl	%eax, 12(%rcx)
	movl	$1, 8(%rcx)
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movl	$1, (%rax)
	movq	$0, (%rbx)
	movq	%r14, %rdi
	callq	_mlxsw_sp_rif_index
	movq	%rax, 8(%rbx)
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.1:
	movq	_MLXSW_SP_RIF_COUNTER_EGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mlxsw_sp_rif_counter_value_get
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movl	-44(%rbp), %eax
	movl	%eax, 4(%rbx)
	movl	$1, (%rbx)
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_SP_RIF_COUNTER_EGRESS,4,2 ## @MLXSW_SP_RIF_COUNTER_EGRESS
	.no_dead_strip	_mlxsw_sp_erif_entry_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_erif_entry_get
_mlxsw_sp_erif_entry_get:               ; @mlxsw_sp_erif_entry_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x3
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x1, #24]
	ldr	x23, [x8]
	mov	x0, x2
	bl	_mlxsw_sp_rif_index
	str	w0, [x23]
	mov	x0, x20
	bl	_mlxsw_sp_rif_dev_ifindex
	mov	w8, #1
	ldp	x10, x9, [x19, #16]
	stp	w8, w0, [x9, #8]
	ldr	x9, [x10]
	str	w8, [x9]
	str	xzr, [x19]
	mov	x0, x20
	bl	_mlxsw_sp_rif_index
	str	x0, [x19, #8]
	cbz	w22, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _MLXSW_SP_RIF_COUNTER_EGRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLXSW_SP_RIF_COUNTER_EGRESS@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x21
	mov	x1, x20
	bl	_mlxsw_sp_rif_counter_value_get
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	w8, [sp, #12]
	mov	w9, #1
	stp	w9, w8, [x19]
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_SP_RIF_COUNTER_EGRESS,4,2 ; @MLXSW_SP_RIF_COUNTER_EGRESS
	.no_dead_strip	_mlxsw_sp_erif_entry_get
.subsections_via_symbols
