	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_fib4_entry_offload_set
_mlxsw_sp_fib4_entry_offload_set:       ## @mlxsw_sp_fib4_entry_offload_set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	_MLXSW_SP_FIB_ENTRY_TYPE_LOCAL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_10
## %bb.1:
	movq	_MLXSW_SP_FIB_ENTRY_TYPE_BLACKHOLE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_10
## %bb.2:
	movq	_MLXSW_SP_FIB_ENTRY_TYPE_IPIP_DECAP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_10
## %bb.3:
	movq	_MLXSW_SP_FIB_ENTRY_TYPE_NVE_DECAP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_10
## %bb.4:
	movl	(%rcx), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.5:
	movq	8(%rcx), %rcx
	shlq	$4, %rax
	xorl	%edx, %edx
	movq	_RTNH_F_OFFLOAD@GOTPCREL(%rip), %r8
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=1
	notl	%edi
	movq	(%rcx,%rdx), %rsi
	andl	%edi, (%rsi)
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	addq	$16, %rdx
	cmpq	%rdx, %rax
	je	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 8(%rcx,%rdx)
	movl	(%r8), %edi
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	(%rcx,%rdx), %rsi
	orl	%edi, (%rsi)
	jmp	LBB0_7
LBB0_10:
	movq	_RTNH_F_OFFLOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rcx), %rcx
	movq	(%rcx), %rcx
	orl	%eax, (%rcx)
LBB0_11:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_SP_FIB_ENTRY_TYPE_LOCAL,8,3 ## @MLXSW_SP_FIB_ENTRY_TYPE_LOCAL
	.comm	_MLXSW_SP_FIB_ENTRY_TYPE_BLACKHOLE,8,3 ## @MLXSW_SP_FIB_ENTRY_TYPE_BLACKHOLE
	.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	_RTNH_F_OFFLOAD,4,2             ## @RTNH_F_OFFLOAD
	.no_dead_strip	_mlxsw_sp_fib4_entry_offload_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_offload_set
_mlxsw_sp_fib4_entry_offload_set:       ; @mlxsw_sp_fib4_entry_offload_set
	.cfi_startproc
; %bb.0:
	ldp	x8, x9, [x0]
Lloh0:
	adrp	x10, _MLXSW_SP_FIB_ENTRY_TYPE_LOCAL@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MLXSW_SP_FIB_ENTRY_TYPE_LOCAL@GOTPAGEOFF]
Lloh2:
	adrp	x11, _MLXSW_SP_FIB_ENTRY_TYPE_BLACKHOLE@GOTPAGE
Lloh3:
	ldr	x11, [x11, _MLXSW_SP_FIB_ENTRY_TYPE_BLACKHOLE@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
Lloh5:
	ldr	x11, [x11]
Lloh6:
	adrp	x12, _MLXSW_SP_FIB_ENTRY_TYPE_IPIP_DECAP@GOTPAGE
Lloh7:
	ldr	x12, [x12, _MLXSW_SP_FIB_ENTRY_TYPE_IPIP_DECAP@GOTPAGEOFF]
Lloh8:
	adrp	x13, _MLXSW_SP_FIB_ENTRY_TYPE_NVE_DECAP@GOTPAGE
Lloh9:
	ldr	x13, [x13, _MLXSW_SP_FIB_ENTRY_TYPE_NVE_DECAP@GOTPAGEOFF]
Lloh10:
	ldr	x12, [x12]
Lloh11:
	ldr	x13, [x13]
	cmp	x8, x10
	ccmp	x8, x11, #4, ne
	ccmp	x8, x12, #4, ne
	ccmp	x8, x13, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _RTNH_F_OFFLOAD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RTNH_F_OFFLOAD@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	x9, [x9, #8]
	ldr	x9, [x9]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	ret
LBB0_2:
	ldr	w8, [x9]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	ldr	x9, [x9, #8]
Lloh15:
	adrp	x10, _RTNH_F_OFFLOAD@GOTPAGE
Lloh16:
	ldr	x10, [x10, _RTNH_F_OFFLOAD@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x12, [x9]
	ldr	w13, [x12]
	bic	w11, w13, w11
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	w11, [x12]
	add	x9, x9, #16
	subs	x8, x8, #1
	b.eq	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x9, #8]
	ldr	w11, [x10]
	cbz	x12, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x12, [x9]
	ldr	w13, [x12]
	orr	w11, w13, w11
	b	LBB0_5
LBB0_8:
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_SP_FIB_ENTRY_TYPE_LOCAL,8,3 ; @MLXSW_SP_FIB_ENTRY_TYPE_LOCAL
	.comm	_MLXSW_SP_FIB_ENTRY_TYPE_BLACKHOLE,8,3 ; @MLXSW_SP_FIB_ENTRY_TYPE_BLACKHOLE
	.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	_RTNH_F_OFFLOAD,4,2             ; @RTNH_F_OFFLOAD
	.no_dead_strip	_mlxsw_sp_fib4_entry_offload_set
.subsections_via_symbols
