	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_router_nve_promote_decap ## -- Begin function mlxsw_sp_router_nve_promote_decap
	.p2align	4, 0x90
_mlxsw_sp_router_nve_promote_decap:     ## @mlxsw_sp_router_nve_promote_decap
	.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	%r8d, %r12d
	movq	%rdi, %r14
	movq	_MLXSW_SP_FIB_ENTRY_TYPE_TRAP@GOTPCREL(%rip), %r13
	movl	(%r13), %r8d
	callq	_mlxsw_sp_router_ip2me_fib_entry_find
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movl	%r12d, 8(%rax)
	movq	_MLXSW_SP_FIB_ENTRY_TYPE_NVE_DECAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mlxsw_sp_fib_entry_update
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r12d
	movq	(%r13), %rax
	movq	%rax, (%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mlxsw_sp_fib_entry_update
	movl	%r12d, %r15d
LBB0_3:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_SP_FIB_ENTRY_TYPE_TRAP,8,3 ## @MLXSW_SP_FIB_ENTRY_TYPE_TRAP
	.comm	_MLXSW_SP_FIB_ENTRY_TYPE_NVE_DECAP,8,3 ## @MLXSW_SP_FIB_ENTRY_TYPE_NVE_DECAP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_router_nve_promote_decap ; -- Begin function mlxsw_sp_router_nve_promote_decap
	.p2align	2
_mlxsw_sp_router_nve_promote_decap:     ; @mlxsw_sp_router_nve_promote_decap
	.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	x21, x4
	mov	x19, x0
Lloh0:
	adrp	x22, _MLXSW_SP_FIB_ENTRY_TYPE_TRAP@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MLXSW_SP_FIB_ENTRY_TYPE_TRAP@GOTPAGEOFF]
	ldr	w4, [x22]
	bl	_mlxsw_sp_router_ip2me_fib_entry_find
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	str	w21, [x0, #8]
Lloh2:
	adrp	x8, _MLXSW_SP_FIB_ENTRY_TYPE_NVE_DECAP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MLXSW_SP_FIB_ENTRY_TYPE_NVE_DECAP@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x0]
	mov	x0, x19
	mov	x1, x20
	bl	_mlxsw_sp_fib_entry_update
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.2:
	ldr	x8, [x22]
	str	x8, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_mlxsw_sp_fib_entry_update
	b	LBB0_4
LBB0_3:
	mov	w21, #0
LBB0_4:
	mov	x0, x21
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_SP_FIB_ENTRY_TYPE_TRAP,8,3 ; @MLXSW_SP_FIB_ENTRY_TYPE_TRAP
	.comm	_MLXSW_SP_FIB_ENTRY_TYPE_NVE_DECAP,8,3 ; @MLXSW_SP_FIB_ENTRY_TYPE_NVE_DECAP
.subsections_via_symbols
