	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_netdevice_ipip_ol_reg_event
_mlxsw_sp_netdevice_ipip_ol_reg_event:  ## @mlxsw_sp_netdevice_ipip_ol_reg_event
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-44(%rbp), %rdx
	callq	_mlxsw_sp_netdev_ipip_type
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mlxsw_sp_netdevice_ipip_can_offload
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_mlxsw_sp_ipip_dev_ul_tb_id
	movl	%eax, %r12d
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	-44(%rbp), %ecx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %r13d
	movl	%r13d, %edi
	movq	%r14, %rsi
	callq	_mlxsw_sp_ipip_netdev_saddr
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	movl	%r12d, %ecx
	xorl	%r8d, %r8d
	callq	_mlxsw_sp_ipip_demote_tunnel_by_saddr
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movl	-44(%rbp), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_mlxsw_sp_ipip_entry_create
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	jmp	LBB0_5
LBB0_1:
	xorl	%r15d, %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mlxsw_sp_netdevice_ipip_ol_reg_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_netdevice_ipip_ol_reg_event
_mlxsw_sp_netdevice_ipip_ol_reg_event:  ; @mlxsw_sp_netdevice_ipip_ol_reg_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	add	x2, sp, #12
	bl	_mlxsw_sp_netdev_ipip_type
	ldr	w2, [sp, #12]
	mov	x0, x20
	mov	x1, x19
	bl	_mlxsw_sp_netdevice_ipip_can_offload
	cbz	x0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_mlxsw_sp_ipip_dev_ul_tb_id
	mov	x21, x0
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w9, [sp, #12]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w22, [x8]
	mov	x0, x22
	mov	x1, x19
	bl	_mlxsw_sp_ipip_netdev_saddr
	mov	w2, w0
	mov	x0, x20
	mov	x1, x22
	mov	x3, x21
	mov	x4, #0
	bl	_mlxsw_sp_ipip_demote_tunnel_by_saddr
	cbz	w0, LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_5
LBB0_3:
	ldr	w1, [sp, #12]
	mov	x0, x20
	mov	x2, x19
	bl	_mlxsw_sp_ipip_entry_create
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_PTR_ERR
LBB0_5:
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mlxsw_sp_netdevice_ipip_ol_reg_event
.subsections_via_symbols
