	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_dpipe_table_erif_entries_dump
_mlxsw_sp_dpipe_table_erif_entries_dump: ## @mlxsw_sp_dpipe_table_erif_entries_dump
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, -100(%rbp)                ## 4-byte Spill
	movq	%rdi, %r12
	movl	$0, -88(%rbp)
	movl	$0, -80(%rbp)
	movl	$0, -48(%rbp)
	leaq	-96(%rbp), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leaq	-104(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leaq	-80(%rbp), %rbx
	leaq	-88(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mlxsw_sp_erif_match_action_prepare
	leaq	-48(%rbp), %rdi
	leaq	-96(%rbp), %rsi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	movq	%r14, %r8
	callq	_mlxsw_sp_erif_entry_prepare
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.1:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movl	(%r12), %edi
	movq	_MAX_RIFS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLXSW_CORE_RES_GET
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_devlink_dpipe_entry_ctx_close
	cmpl	-52(%rbp), %r15d                ## 4-byte Folded Reload
	je	LBB0_17
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	%rbx, %rdi
	callq	_devlink_dpipe_entry_ctx_prepare
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	-52(%rbp), %r15d                ## 4-byte Folded Reload
	jae	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	incl	%r15d
	cmpl	%r15d, -52(%rbp)                ## 4-byte Folded Reload
	je	LBB0_16
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r15d, %esi
	callq	_mlxsw_sp_rif_by_index
	testq	%rax, %rax
	je	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_mlxsw_sp_rif_dev
	testl	%eax, %eax
	je	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	-48(%rbp), %r13
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movl	-100(%rbp), %ecx                ## 4-byte Reload
	callq	_mlxsw_sp_erif_entry_get
	testl	%eax, %eax
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_devlink_dpipe_entry_ctx_append
	testl	%eax, %eax
	jne	LBB0_11
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=2
	incl	%r12d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r14d
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	jne	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%r12d, %r12d
	jne	LBB0_13
	jmp	LBB0_18
LBB0_16:
	movq	%r14, %rdi
	callq	_devlink_dpipe_entry_ctx_close
LBB0_17:
	xorl	%r14d, %r14d
	jmp	LBB0_18
LBB0_9:
	movl	%eax, %r14d
LBB0_18:
	xorl	%eax, %eax
	callq	_rtnl_unlock
	leaq	-48(%rbp), %rdi
	callq	_devlink_dpipe_entry_clear
LBB0_19:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%eax, %r14d
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_RIFS,4,2                   ## @MAX_RIFS
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.no_dead_strip	_mlxsw_sp_dpipe_table_erif_entries_dump
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_dpipe_table_erif_entries_dump
_mlxsw_sp_dpipe_table_erif_entries_dump: ; @mlxsw_sp_dpipe_table_erif_entries_dump
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	str	wzr, [sp, #24]
	str	wzr, [sp, #16]
	str	wzr, [sp, #8]
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x0, sp, #16
	add	x1, sp, #24
	bl	_mlxsw_sp_erif_match_action_prepare
	add	x0, sp, #8
	add	x1, sp, #40
	add	x2, sp, #16
	add	x3, sp, #32
	add	x4, sp, #24
	bl	_mlxsw_sp_erif_entry_prepare
	mov	x24, x0
	cbnz	w0, LBB0_17
; %bb.1:
	ldr	w0, [x21]
Lloh0:
	adrp	x8, _MAX_RIFS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_RIFS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_MLXSW_CORE_RES_GET
	mov	x22, x0
	bl	_rtnl_lock
	mov	w23, #0
Lloh3:
	adrp	x25, _EMSGSIZE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _EMSGSIZE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x0
	ldr	w8, [x25]
	cmn	w0, w8
	ccmp	w26, #0, #4, eq
	b.eq	LBB0_16
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_devlink_dpipe_entry_ctx_close
	cmp	w23, w22
	b.eq	LBB0_14
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mov	x0, x19
	bl	_devlink_dpipe_entry_ctx_prepare
	cbnz	w0, LBB0_18
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w23, w22
	b.hs	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w26, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	w23, w23, #1
	cmp	w22, w23
	b.eq	LBB0_13
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	mov	x1, x23
	bl	_mlxsw_sp_rif_by_index
	cbz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x24, x0
	bl	_mlxsw_sp_rif_dev
	cbz	w0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, x24
	mov	x3, x20
	bl	_mlxsw_sp_erif_entry_get
	cbnz	w0, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	add	x1, sp, #8
	mov	x0, x19
	bl	_devlink_dpipe_entry_ctx_append
	cbnz	w0, LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=2
	add	w26, w26, #1
	b	LBB0_7
LBB0_13:
	mov	x0, x19
	bl	_devlink_dpipe_entry_ctx_close
LBB0_14:
	mov	w24, #0
	b	LBB0_16
LBB0_15:
	mov	x24, x0
LBB0_16:
	bl	_rtnl_unlock
	add	x0, sp, #8
	bl	_devlink_dpipe_entry_clear
LBB0_17:
	mov	x0, x24
	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
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_18:
	mov	x24, x0
	b	LBB0_17
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_RIFS,4,2                   ; @MAX_RIFS
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.no_dead_strip	_mlxsw_sp_dpipe_table_erif_entries_dump
.subsections_via_symbols
