	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_fib6_entry_type_set
_mlxsw_sp_fib6_entry_type_set:          ## @mlxsw_sp_fib6_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movl	(%rdx), %eax
	movq	_RTF_LOCAL@GOTPCREL(%rip), %rcx
	movq	_RTF_ANYCAST@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rcx), %esi
	testl	%eax, %esi
	je	LBB0_2
## %bb.1:
	movq	_MLXSW_SP_FIB_ENTRY_TYPE_TRAP@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	movq	8(%rdx), %rcx
	movq	_RTN_BLACKHOLE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_4
## %bb.3:
	movq	_MLXSW_SP_FIB_ENTRY_TYPE_BLACKHOLE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movq	_RTF_REJECT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.5:
	movq	%rdx, %rsi
	callq	_mlxsw_sp_rt6_is_gateway
	testq	%rax, %rax
	jne	LBB0_6
LBB0_7:
	movq	_MLXSW_SP_FIB_ENTRY_TYPE_LOCAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_MLXSW_SP_FIB_ENTRY_TYPE_REMOTE@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTF_LOCAL,4,2                  ## @RTF_LOCAL
	.comm	_RTF_ANYCAST,4,2                ## @RTF_ANYCAST
	.comm	_MLXSW_SP_FIB_ENTRY_TYPE_TRAP,8,3 ## @MLXSW_SP_FIB_ENTRY_TYPE_TRAP
	.comm	_RTN_BLACKHOLE,8,3              ## @RTN_BLACKHOLE
	.comm	_MLXSW_SP_FIB_ENTRY_TYPE_BLACKHOLE,8,3 ## @MLXSW_SP_FIB_ENTRY_TYPE_BLACKHOLE
	.comm	_RTF_REJECT,4,2                 ## @RTF_REJECT
	.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
	.no_dead_strip	_mlxsw_sp_fib6_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_fib6_entry_type_set
_mlxsw_sp_fib6_entry_type_set:          ; @mlxsw_sp_fib6_entry_type_set
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	w8, [x2]
Lloh0:
	adrp	x9, _RTF_LOCAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RTF_LOCAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _RTF_ANYCAST@GOTPAGE
Lloh4:
	ldr	x10, [x10, _RTF_ANYCAST@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x20, _MLXSW_SP_FIB_ENTRY_TYPE_TRAP@GOTPAGE
Lloh7:
	ldr	x20, [x20, _MLXSW_SP_FIB_ENTRY_TYPE_TRAP@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
	ldr	x9, [x2, #8]
Lloh8:
	adrp	x10, _RTN_BLACKHOLE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _RTN_BLACKHOLE@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
Lloh11:
	adrp	x20, _MLXSW_SP_FIB_ENTRY_TYPE_BLACKHOLE@GOTPAGE
Lloh12:
	ldr	x20, [x20, _MLXSW_SP_FIB_ENTRY_TYPE_BLACKHOLE@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh13:
	adrp	x9, _RTF_REJECT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _RTF_REJECT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x20, _MLXSW_SP_FIB_ENTRY_TYPE_LOCAL@GOTPAGE
Lloh17:
	ldr	x20, [x20, _MLXSW_SP_FIB_ENTRY_TYPE_LOCAL@GOTPAGEOFF]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.5:
	mov	x1, x2
	bl	_mlxsw_sp_rt6_is_gateway
Lloh18:
	adrp	x8, _MLXSW_SP_FIB_ENTRY_TYPE_REMOTE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MLXSW_SP_FIB_ENTRY_TYPE_REMOTE@GOTPAGEOFF]
	cmp	x0, #0
	csel	x20, x20, x8, eq
LBB0_6:
	ldr	x8, [x20]
	str	x8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_RTF_LOCAL,4,2                  ; @RTF_LOCAL
	.comm	_RTF_ANYCAST,4,2                ; @RTF_ANYCAST
	.comm	_MLXSW_SP_FIB_ENTRY_TYPE_TRAP,8,3 ; @MLXSW_SP_FIB_ENTRY_TYPE_TRAP
	.comm	_RTN_BLACKHOLE,8,3              ; @RTN_BLACKHOLE
	.comm	_MLXSW_SP_FIB_ENTRY_TYPE_BLACKHOLE,8,3 ; @MLXSW_SP_FIB_ENTRY_TYPE_BLACKHOLE
	.comm	_RTF_REJECT,4,2                 ; @RTF_REJECT
	.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
	.no_dead_strip	_mlxsw_sp_fib6_entry_type_set
.subsections_via_symbols
