	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_fib4_entry_type_set
_mlxsw_sp_fib4_entry_type_set:          ## @mlxsw_sp_fib4_entry_type_set
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_fib_info_nh
	movq	(%rax), %r15
	movl	20(%r14), %edi
	callq	_htonl
	movl	%eax, %r12d
	movl	16(%r14), %edi
	callq	_mlxsw_sp_fix_tb_id
	movl	%eax, %r13d
	movl	(%r14), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_13
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_12:
	movq	_MLXSW_SP_FIB_ENTRY_TYPE_LOCAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_10:
	movq	8(%r14), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mlxsw_sp_fi_is_gateway
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movq	_MLXSW_SP_FIB_ENTRY_TYPE_REMOTE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	_MLXSW_SP_L3_PROTO_IPV4@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r12d, %ecx
	callq	_mlxsw_sp_ipip_entry_find_by_decap
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%rax), %rcx
	movq	_IFF_UP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	je	LBB0_4
## %bb.15:
	movq	_MLXSW_SP_FIB_ENTRY_TYPE_IPIP_DECAP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rcx, (%rsi)
	movq	%rbx, %rdi
	movq	%rax, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlxsw_sp_fib_entry_decap_init  ## TAILCALL
LBB0_9:
	movq	_MLXSW_SP_FIB_ENTRY_TYPE_BLACKHOLE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	callq	_mlxsw_sp_nve_ipv4_route_is_decap
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mlxsw_sp_nve_decap_tunnel_index_get
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 8(%rcx)
	movq	_MLXSW_SP_FIB_ENTRY_TYPE_NVE_DECAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_MLXSW_SP_FIB_ENTRY_TYPE_TRAP@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
LBB0_8:
	movq	%rax, (%rcx)
	xorl	%ebx, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_MLXSW_SP_L3_PROTO_IPV4,4,2     ## @MLXSW_SP_L3_PROTO_IPV4
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_MLXSW_SP_FIB_ENTRY_TYPE_IPIP_DECAP,8,3 ## @MLXSW_SP_FIB_ENTRY_TYPE_IPIP_DECAP
	.comm	_MLXSW_SP_FIB_ENTRY_TYPE_NVE_DECAP,8,3 ## @MLXSW_SP_FIB_ENTRY_TYPE_NVE_DECAP
	.comm	_MLXSW_SP_FIB_ENTRY_TYPE_TRAP,8,3 ## @MLXSW_SP_FIB_ENTRY_TYPE_TRAP
	.comm	_MLXSW_SP_FIB_ENTRY_TYPE_BLACKHOLE,8,3 ## @MLXSW_SP_FIB_ENTRY_TYPE_BLACKHOLE
	.comm	_MLXSW_SP_FIB_ENTRY_TYPE_LOCAL,8,3 ## @MLXSW_SP_FIB_ENTRY_TYPE_LOCAL
	.comm	_MLXSW_SP_FIB_ENTRY_TYPE_REMOTE,8,3 ## @MLXSW_SP_FIB_ENTRY_TYPE_REMOTE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mlxsw_sp_fib4_entry_type_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_fib4_entry_type_set
_mlxsw_sp_fib4_entry_type_set:          ; @mlxsw_sp_fib4_entry_type_set
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x2
	mov	x23, x1
	mov	x20, x0
	ldr	x0, [x1, #8]
	mov	w1, #0
	bl	_fib_info_nh
	ldr	x24, [x0]
	ldr	w0, [x23, #20]
	bl	_htonl
	mov	x21, x0
	ldr	w0, [x23, #16]
	bl	_mlxsw_sp_fix_tb_id
	ldr	w8, [x23]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_4
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	w0, #0
LBB0_3:
Lloh2:
	adrp	x8, _MLXSW_SP_FIB_ENTRY_TYPE_LOCAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MLXSW_SP_FIB_ENTRY_TYPE_LOCAL@GOTPAGEOFF]
	b	LBB0_14
LBB0_4:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_5:
	ldr	x1, [x23, #8]
	mov	x0, x20
	bl	_mlxsw_sp_fi_is_gateway
	cbz	w0, LBB0_3
; %bb.6:
	mov	w0, #0
Lloh7:
	adrp	x8, _MLXSW_SP_FIB_ENTRY_TYPE_REMOTE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MLXSW_SP_FIB_ENTRY_TYPE_REMOTE@GOTPAGEOFF]
	b	LBB0_14
LBB0_7:
	mov	x22, x0
Lloh9:
	adrp	x8, _MLXSW_SP_L3_PROTO_IPV4@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MLXSW_SP_L3_PROTO_IPV4@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	w3, w21
	mov	x0, x20
	mov	x1, x24
	bl	_mlxsw_sp_ipip_entry_find_by_decap
	cbz	x0, LBB0_11
; %bb.8:
	mov	x2, x0
	ldr	x8, [x0]
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _IFF_UP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IFF_UP@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.9:
Lloh15:
	adrp	x8, _MLXSW_SP_FIB_ENTRY_TYPE_IPIP_DECAP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MLXSW_SP_FIB_ENTRY_TYPE_IPIP_DECAP@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mlxsw_sp_fib_entry_decap_init
LBB0_10:
	mov	w0, #0
Lloh18:
	adrp	x8, _MLXSW_SP_FIB_ENTRY_TYPE_BLACKHOLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MLXSW_SP_FIB_ENTRY_TYPE_BLACKHOLE@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_mlxsw_sp_nve_ipv4_route_is_decap
	cbz	w0, LBB0_13
; %bb.12:
	mov	x0, x20
	bl	_mlxsw_sp_nve_decap_tunnel_index_get
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #8]
Lloh20:
	adrp	x8, _MLXSW_SP_FIB_ENTRY_TYPE_NVE_DECAP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MLXSW_SP_FIB_ENTRY_TYPE_NVE_DECAP@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
	mov	w0, #0
Lloh22:
	adrp	x8, _MLXSW_SP_FIB_ENTRY_TYPE_TRAP@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MLXSW_SP_FIB_ENTRY_TYPE_TRAP@GOTPAGEOFF]
LBB0_14:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.comm	_MLXSW_SP_L3_PROTO_IPV4,4,2     ; @MLXSW_SP_L3_PROTO_IPV4
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_MLXSW_SP_FIB_ENTRY_TYPE_IPIP_DECAP,8,3 ; @MLXSW_SP_FIB_ENTRY_TYPE_IPIP_DECAP
	.comm	_MLXSW_SP_FIB_ENTRY_TYPE_NVE_DECAP,8,3 ; @MLXSW_SP_FIB_ENTRY_TYPE_NVE_DECAP
	.comm	_MLXSW_SP_FIB_ENTRY_TYPE_TRAP,8,3 ; @MLXSW_SP_FIB_ENTRY_TYPE_TRAP
	.comm	_MLXSW_SP_FIB_ENTRY_TYPE_BLACKHOLE,8,3 ; @MLXSW_SP_FIB_ENTRY_TYPE_BLACKHOLE
	.comm	_MLXSW_SP_FIB_ENTRY_TYPE_LOCAL,8,3 ; @MLXSW_SP_FIB_ENTRY_TYPE_LOCAL
	.comm	_MLXSW_SP_FIB_ENTRY_TYPE_REMOTE,8,3 ; @MLXSW_SP_FIB_ENTRY_TYPE_REMOTE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mlxsw_sp_fib4_entry_type_set
.subsections_via_symbols
