	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_nexthop4_type_init
_mlxsw_sp_nexthop4_type_init:           ## @mlxsw_sp_nexthop4_type_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdx), %r15
	movq	%r15, %rsi
	callq	_mlxsw_sp_ipip_entry_find_by_ol_dev
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r12
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	_MLXSW_SP_L3_PROTO_IPV4@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	*(%rax)
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_MLXSW_SP_NEXTHOP_TYPE_IPIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_mlxsw_sp_nexthop_ipip_init
	xorl	%r15d, %r15d
	jmp	LBB0_6
LBB0_3:
	movq	_MLXSW_SP_NEXTHOP_TYPE_ETH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mlxsw_sp_rif_find_by_dev
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_mlxsw_sp_nexthop_rif_init
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mlxsw_sp_nexthop_neigh_init
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mlxsw_sp_nexthop_rif_fini
	movl	%ebx, %r15d
LBB0_6:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_SP_L3_PROTO_IPV4,4,2     ## @MLXSW_SP_L3_PROTO_IPV4
	.comm	_MLXSW_SP_NEXTHOP_TYPE_IPIP,4,2 ## @MLXSW_SP_NEXTHOP_TYPE_IPIP
	.comm	_MLXSW_SP_NEXTHOP_TYPE_ETH,4,2  ## @MLXSW_SP_NEXTHOP_TYPE_ETH
	.no_dead_strip	_mlxsw_sp_nexthop4_type_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_nexthop4_type_init
_mlxsw_sp_nexthop4_type_init:           ; @mlxsw_sp_nexthop4_type_init
	.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	x19, x1
	mov	x20, x0
	ldr	x21, [x2]
	mov	x1, x21
	bl	_mlxsw_sp_ipip_entry_find_by_ol_dev
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x9, [x0]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _MLXSW_SP_L3_PROTO_IPV4@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLXSW_SP_L3_PROTO_IPV4@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
	mov	x0, x20
	mov	x1, x21
	blr	x8
	cbz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _MLXSW_SP_NEXTHOP_TYPE_IPIP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLXSW_SP_NEXTHOP_TYPE_IPIP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_mlxsw_sp_nexthop_ipip_init
	b	LBB0_6
LBB0_3:
Lloh6:
	adrp	x8, _MLXSW_SP_NEXTHOP_TYPE_ETH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLXSW_SP_NEXTHOP_TYPE_ETH@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x20
	mov	x1, x21
	bl	_mlxsw_sp_rif_find_by_dev
	cbz	x0, LBB0_6
; %bb.4:
	mov	x1, x0
	mov	x0, x19
	bl	_mlxsw_sp_nexthop_rif_init
	mov	x0, x20
	mov	x1, x19
	bl	_mlxsw_sp_nexthop_neigh_init
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_mlxsw_sp_nexthop_rif_fini
	b	LBB0_7
LBB0_6:
	mov	w20, #0
LBB0_7:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_SP_L3_PROTO_IPV4,4,2     ; @MLXSW_SP_L3_PROTO_IPV4
	.comm	_MLXSW_SP_NEXTHOP_TYPE_IPIP,4,2 ; @MLXSW_SP_NEXTHOP_TYPE_IPIP
	.comm	_MLXSW_SP_NEXTHOP_TYPE_ETH,4,2  ; @MLXSW_SP_NEXTHOP_TYPE_ETH
	.no_dead_strip	_mlxsw_sp_nexthop4_type_init
.subsections_via_symbols
