	.file	"extr_flow_netlink.c_validate_and_copy_set_tun.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	validate_and_copy_set_tun, @function
validate_and_copy_set_tun:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	ecx, ecx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	mov	edx, 1
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	lea	r14, 28[rsp]
	lea	r13, 32[rsp]
	mov	rsi, r13
	mov	rdi, r14
	call	ovs_match_init@PLT
	mov	rdi, r12
	call	nla_data@PLT
	mov	ecx, ebx
	xor	edx, edx
	mov	rsi, r14
	mov	rdi, rax
	call	ip_tun_from_nlattr@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	r14, QWORD PTR 40[rsp]
	test	r14, r14
	je	.L3
	cmp	eax, 129
	je	.L4
	mov	r14, QWORD PTR TUNNEL_ERSPAN_OPT[rip]
	cmp	eax, 130
	je	.L3
	cmp	eax, 128
	mov	r14d, 0
	cmove	r14, QWORD PTR TUNNEL_VXLAN_OPT[rip]
.L3:
	mov	esi, DWORD PTR OVS_ACTION_ATTR_SET[rip]
	mov	edx, ebx
	mov	rdi, rbp
	call	add_nested_action_start@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, DWORD PTR METADATA_IP_TUNNEL[rip]
	mov	rdi, QWORD PTR 40[rsp]
	call	metadata_dst_alloc@PLT
	mov	r15, rax
	test	rax, rax
	je	.L19
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	lea	rdi, 12[rax]
	call	dst_cache_init@PLT
	test	eax, eax
	jne	.L20
	mov	esi, DWORD PTR OVS_KEY_ATTR_TUNNEL_INFO[rip]
	mov	r8d, ebx
	xor	edx, edx
	mov	rdi, rbp
	mov	ecx, 8
	call	__add_action@PLT
	mov	rdi, rax
	mov	rbx, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L21
	mov	rdi, rbx
	call	nla_data@PLT
	mov	rdx, QWORD PTR 32[rsp]
	cmp	rdx, QWORD PTR AF_INET6[rip]
	mov	QWORD PTR [rax], r15
	mov	eax, DWORD PTR IP_TUNNEL_INFO_TX[rip]
	mov	DWORD PTR 8[r15], eax
	je	.L22
	cmp	rdx, QWORD PTR AF_INET[rip]
	je	.L23
.L11:
	mov	rax, QWORD PTR 48[rsp]
	mov	rbx, QWORD PTR 40[rsp]
	mov	rdi, r13
	mov	QWORD PTR [r15], rax
	mov	rsi, rbx
	call	TUN_METADATA_OPTS@PLT
	mov	rcx, r14
	mov	rdx, rbx
	mov	rdi, r15
	mov	esi, eax
	call	ip_tunnel_info_opts_set@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	esi, r12d
	xor	r12d, r12d
	call	add_nested_action_end@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	rdi, r15
	mov	DWORD PTR 12[rsp], eax
	call	dst_release@PLT
	mov	edx, DWORD PTR 12[rsp]
	mov	r12d, edx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, r13
	call	validate_geneve_opts@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	r14, QWORD PTR TUNNEL_GENEVE_OPT[rip]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, r15
	call	dst_release@PLT
	mov	rdi, rbx
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	or	eax, DWORD PTR IP_TUNNEL_INFO_IPV6[rip]
	mov	DWORD PTR 8[r15], eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L23:
	cmp	QWORD PTR 48[rsp], 0
	jne	.L11
	or	eax, DWORD PTR IP_TUNNEL_INFO_BRIDGE[rip]
	mov	DWORD PTR 8[r15], eax
	jmp	.L11
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	validate_and_copy_set_tun, .-validate_and_copy_set_tun
	.comm	TUNNEL_VXLAN_OPT,8,8
	.comm	TUNNEL_GENEVE_OPT,8,8
	.comm	TUNNEL_ERSPAN_OPT,8,8
	.comm	OVS_KEY_ATTR_TUNNEL_INFO,4,4
	.comm	OVS_ACTION_ATTR_SET,4,4
	.comm	METADATA_IP_TUNNEL,4,4
	.comm	IP_TUNNEL_INFO_TX,4,4
	.comm	IP_TUNNEL_INFO_IPV6,4,4
	.comm	IP_TUNNEL_INFO_BRIDGE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	AF_INET6,8,8
	.comm	AF_INET,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_flow_netlink.c_validate_and_copy_set_tun.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	validate_and_copy_set_tun, %function
validate_and_copy_set_tun:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, r0
	mov	r6, r2
	sub	sp, sp, #36
	ldr	ip, .L24
	mov	r3, #0
	mov	r2, #1
	mov	r7, r1
	add	r0, sp, #12
	add	r1, sp, #16
	ldr	ip, [ip]
	str	ip, [sp, #28]
	mov	ip,#0
	bl	ovs_match_init
	mov	r0, r4
	bl	nla_data
	mov	r3, r6
	mov	r2, #0
	add	r1, sp, #12
	bl	ip_tun_from_nlattr
	subs	r4, r0, #0
	blt	.L1
	ldr	r8, [sp, #20]
	cmp	r8, #0
	beq	.L3
	cmp	r4, #129
	beq	.L4
	cmp	r4, #130
	beq	.L5
	cmp	r4, #128
	movne	r8, #0
	beq	.L18
.L3:
	ldr	r3, .L24+4
	mov	r2, r6
	mov	r0, r7
	ldr	r1, [r3]
	bl	add_nested_action_start
	subs	r4, r0, #0
	blt	.L1
	ldr	r3, .L24+8
	ldr	r9, .L24+12
	ldr	r1, [r3]
	ldr	r2, [r9]
	ldr	r0, [sp, #20]
	bl	metadata_dst_alloc
	subs	r5, r0, #0
	beq	.L19
	ldr	r1, [r9]
	add	r0, r5, #8
	bl	dst_cache_init
	subs	r9, r0, #0
	bne	.L20
	ldr	r3, .L24+16
	str	r6, [sp]
	ldr	r1, [r3]
	mov	r2, r9
	mov	r3, #4
	mov	r0, r7
	bl	__add_action
	mov	r6, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L21
	mov	r0, r6
	bl	nla_data
	ldr	r2, .L24+20
	ldr	r3, .L24+24
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, [sp, #16]
	str	r5, [r0]
	cmp	r3, r1
	str	r2, [r5, #4]
	beq	.L22
	ldr	r1, .L24+28
	ldr	r1, [r1]
	cmp	r3, r1
	bne	.L11
	ldr	r3, [sp, #24]
	cmp	r3, #0
	ldreq	r3, .L24+32
	ldreq	r3, [r3]
	orreq	r2, r3, r2
	streq	r2, [r5, #4]
.L11:
	ldr	r3, [sp, #24]
	ldr	r1, [sp, #20]
	str	r3, [r5]
	add	r0, sp, #16
	bl	TUN_METADATA_OPTS
	mov	r3, r8
	mov	r1, r0
	ldr	r2, [sp, #20]
	mov	r0, r5
	bl	ip_tunnel_info_opts_set
	mov	r1, r4
	ldr	r0, [r7]
	bl	add_nested_action_end
	mov	r4, #0
.L1:
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	mov	r0, r4
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L18:
	ldr	r3, .L24+36
	ldr	r8, [r3]
	b	.L3
.L20:
	mov	r0, r5
	bl	dst_release
	mov	r4, r9
	b	.L1
.L19:
	ldr	r3, .L24+40
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L1
.L5:
	ldr	r3, .L24+44
	ldr	r8, [r3]
	b	.L3
.L4:
	add	r0, sp, #16
	bl	validate_geneve_opts
	subs	r4, r0, #0
	blt	.L1
	ldr	r3, .L24+48
	ldr	r8, [r3]
	b	.L3
.L21:
	mov	r0, r5
	bl	dst_release
	mov	r0, r6
	bl	PTR_ERR
	mov	r4, r0
	b	.L1
.L22:
	ldr	r3, .L24+52
	ldr	r3, [r3]
	orr	r2, r3, r2
	str	r2, [r5, #4]
	b	.L11
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	.LC0
	.word	OVS_ACTION_ATTR_SET
	.word	METADATA_IP_TUNNEL
	.word	GFP_KERNEL
	.word	OVS_KEY_ATTR_TUNNEL_INFO
	.word	AF_INET6
	.word	IP_TUNNEL_INFO_TX
	.word	AF_INET
	.word	IP_TUNNEL_INFO_BRIDGE
	.word	TUNNEL_VXLAN_OPT
	.word	ENOMEM
	.word	TUNNEL_ERSPAN_OPT
	.word	TUNNEL_GENEVE_OPT
	.word	IP_TUNNEL_INFO_IPV6
	.size	validate_and_copy_set_tun, .-validate_and_copy_set_tun
	.comm	TUNNEL_VXLAN_OPT,4,4
	.comm	TUNNEL_GENEVE_OPT,4,4
	.comm	TUNNEL_ERSPAN_OPT,4,4
	.comm	OVS_KEY_ATTR_TUNNEL_INFO,4,4
	.comm	OVS_ACTION_ATTR_SET,4,4
	.comm	METADATA_IP_TUNNEL,4,4
	.comm	IP_TUNNEL_INFO_TX,4,4
	.comm	IP_TUNNEL_INFO_IPV6,4,4
	.comm	IP_TUNNEL_INFO_BRIDGE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	AF_INET6,4,4
	.comm	AF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
