	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_ipip_ol_netdev_change_gre4
_mlxsw_sp_ipip_ol_netdev_change_gre4:   ## @mlxsw_sp_ipip_ol_netdev_change_gre4
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r12
	movl	8(%rsi), %edi
	callq	_mlxsw_sp_ipip_netdev_parms4
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_mlxsw_sp_ipip_parms4_saddr
	movl	%eax, -48(%rbp)
	movq	(%r13), %rdi
	callq	_mlxsw_sp_ipip_parms4_saddr
	movl	%eax, -72(%rbp)
	movq	%r14, %rdi
	callq	_mlxsw_sp_ipip_parms4_daddr
	movl	%eax, -56(%rbp)
	movq	(%r13), %rdi
	callq	_mlxsw_sp_ipip_parms4_daddr
	movl	%eax, -64(%rbp)
	leaq	-48(%rbp), %rdi
	leaq	-72(%rbp), %rsi
	callq	_mlxsw_sp_l3addr_eq
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	(%r13), %rdi
	callq	_mlxsw_sp_ipip_parms4_okey
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_mlxsw_sp_ipip_parms4_okey
	cmpq	%rax, %rbx
	jne	LBB0_8
## %bb.2:
	cmpq	%r14, (%r13)
	jne	LBB0_8
## %bb.3:
	leaq	-56(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	callq	_mlxsw_sp_l3addr_eq
	testl	%eax, %eax
	je	LBB0_13
## %bb.4:
	movq	(%r13), %rdi
	callq	_mlxsw_sp_ipip_parms4_ikey
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_mlxsw_sp_ipip_parms4_ikey
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	%rcx, %rbx
	je	LBB0_11
## %bb.5:
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	jmp	LBB0_10
LBB0_6:
	movl	8(%r13), %edi
	callq	_mlxsw_sp_ipip_dev_ul_tb_id
	movq	_MLXSW_SP_L3_PROTO_IPV4@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	-48(%rbp), %edx
	movq	%r12, %rdi
	movl	%eax, %ecx
	movq	%r13, %r8
	callq	_mlxsw_sp_ipip_demote_tunnel_by_saddr
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_mlxsw_sp_ipip_entry_demote_tunnel
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_8:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	movl	$1, %ecx
LBB0_9:
	movl	$1, %r8d
LBB0_10:
	movq	%r15, %r9
	callq	___mlxsw_sp_ipip_entry_update_tunnel
LBB0_11:
	movq	%r14, (%r13)
LBB0_12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_SP_L3_PROTO_IPV4,4,2     ## @MLXSW_SP_L3_PROTO_IPV4
	.no_dead_strip	_mlxsw_sp_ipip_ol_netdev_change_gre4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_ipip_ol_netdev_change_gre4
_mlxsw_sp_ipip_ol_netdev_change_gre4:   ; @mlxsw_sp_ipip_ol_netdev_change_gre4
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x2
	mov	x19, x1
	mov	x22, x0
	ldr	w0, [x1, #8]
	bl	_mlxsw_sp_ipip_netdev_parms4
	mov	x20, x0
	bl	_mlxsw_sp_ipip_parms4_saddr
	str	w0, [sp, #16]
	ldr	x0, [x19]
	bl	_mlxsw_sp_ipip_parms4_saddr
	str	w0, [sp, #24]
	mov	x0, x20
	bl	_mlxsw_sp_ipip_parms4_daddr
	str	w0, [sp]
	ldr	x0, [x19]
	bl	_mlxsw_sp_ipip_parms4_daddr
	str	w0, [sp, #8]
	add	x0, sp, #16
	add	x1, sp, #24
	bl	_mlxsw_sp_l3addr_eq
	cbz	w0, LBB0_6
; %bb.1:
	ldr	x0, [x19]
	bl	_mlxsw_sp_ipip_parms4_okey
	mov	x23, x0
	mov	x0, x20
	bl	_mlxsw_sp_ipip_parms4_okey
	cmp	x23, x0
	b.ne	LBB0_8
; %bb.2:
	ldr	x8, [x19]
	cmp	x8, x20
	b.ne	LBB0_8
; %bb.3:
	mov	x0, sp
	add	x1, sp, #8
	bl	_mlxsw_sp_l3addr_eq
	cbz	w0, LBB0_13
; %bb.4:
	ldr	x0, [x19]
	bl	_mlxsw_sp_ipip_parms4_ikey
	mov	x23, x0
	mov	x0, x20
	bl	_mlxsw_sp_ipip_parms4_ikey
	cmp	x23, x0
	b.ne	LBB0_14
; %bb.5:
	mov	w0, #0
	b	LBB0_11
LBB0_6:
	ldr	w0, [x19, #8]
	bl	_mlxsw_sp_ipip_dev_ul_tb_id
	mov	x3, x0
Lloh0:
	adrp	x8, _MLXSW_SP_L3_PROTO_IPV4@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLXSW_SP_L3_PROTO_IPV4@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [sp, #16]
	mov	x0, x22
	mov	x4, x19
	bl	_mlxsw_sp_ipip_demote_tunnel_by_saddr
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x22
	mov	x1, x19
	bl	_mlxsw_sp_ipip_entry_demote_tunnel
	mov	w0, #0
	b	LBB0_12
LBB0_8:
	mov	x0, x22
	mov	x1, x19
	mov	w2, #1
	mov	w3, #1
LBB0_9:
	mov	w4, #1
LBB0_10:
	mov	x5, x21
	bl	___mlxsw_sp_ipip_entry_update_tunnel
LBB0_11:
	str	x20, [x19]
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_13:
	mov	x0, x22
	mov	x1, x19
	mov	w2, #0
	mov	w3, #0
	b	LBB0_9
LBB0_14:
	mov	x0, x22
	mov	x1, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_SP_L3_PROTO_IPV4,4,2     ; @MLXSW_SP_L3_PROTO_IPV4
	.no_dead_strip	_mlxsw_sp_ipip_ol_netdev_change_gre4
.subsections_via_symbols
