	.file	"extr_ip_gre.c_ipgre_netlink_parms.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ipgre_netlink_parms, @function
ipgre_netlink_parms:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, r8
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	call	netdev_priv@PLT
	mov	edx, 88
	xor	esi, esi
	mov	rdi, rbp
	mov	r12, rax
	call	memset@PLT
	mov	eax, DWORD PTR IPPROTO_GRE[rip]
	mov	DWORD PTR 40[rbp], eax
	test	rbx, rbx
	je	.L27
	mov	rax, QWORD PTR IFLA_GRE_LINK[rip]
	mov	rdi, QWORD PTR [rbx+rax*8]
	test	rdi, rdi
	je	.L4
	call	nla_get_u32@PLT
	mov	QWORD PTR 80[rbp], rax
.L4:
	mov	rax, QWORD PTR IFLA_GRE_IFLAGS[rip]
	mov	rdi, QWORD PTR [rbx+rax*8]
	test	rdi, rdi
	je	.L5
	call	nla_get_be16@PLT
	mov	edi, eax
	call	gre_flags_to_tnl_flags@PLT
	mov	QWORD PTR 72[rbp], rax
.L5:
	mov	rax, QWORD PTR IFLA_GRE_OFLAGS[rip]
	mov	rdi, QWORD PTR [rbx+rax*8]
	test	rdi, rdi
	je	.L6
	call	nla_get_be16@PLT
	mov	edi, eax
	call	gre_flags_to_tnl_flags@PLT
	mov	QWORD PTR 64[rbp], rax
.L6:
	mov	rax, QWORD PTR IFLA_GRE_IKEY[rip]
	mov	rdi, QWORD PTR [rbx+rax*8]
	test	rdi, rdi
	je	.L7
	call	nla_get_be32@PLT
	mov	QWORD PTR 56[rbp], rax
.L7:
	mov	rax, QWORD PTR IFLA_GRE_OKEY[rip]
	mov	rdi, QWORD PTR [rbx+rax*8]
	test	rdi, rdi
	je	.L8
	call	nla_get_be32@PLT
	mov	QWORD PTR 48[rbp], rax
.L8:
	mov	rax, QWORD PTR IFLA_GRE_LOCAL[rip]
	mov	rdi, QWORD PTR [rbx+rax*8]
	test	rdi, rdi
	je	.L9
	call	nla_get_in_addr@PLT
	mov	QWORD PTR 32[rbp], rax
.L9:
	mov	rax, QWORD PTR IFLA_GRE_REMOTE[rip]
	mov	rdi, QWORD PTR [rbx+rax*8]
	test	rdi, rdi
	je	.L10
	call	nla_get_in_addr@PLT
	mov	QWORD PTR 24[rbp], rax
.L10:
	mov	rax, QWORD PTR IFLA_GRE_TTL[rip]
	mov	rdi, QWORD PTR [rbx+rax*8]
	test	rdi, rdi
	je	.L11
	call	nla_get_u8@PLT
	mov	QWORD PTR 16[rbp], rax
.L11:
	mov	rax, QWORD PTR IFLA_GRE_TOS[rip]
	mov	rdi, QWORD PTR [rbx+rax*8]
	test	rdi, rdi
	je	.L12
	call	nla_get_u8@PLT
	mov	QWORD PTR 8[rbp], rax
.L12:
	mov	rax, QWORD PTR IFLA_GRE_PMTUDISC[rip]
	mov	rdi, QWORD PTR [rbx+rax*8]
	test	rdi, rdi
	je	.L16
	call	nla_get_u8@PLT
	test	rax, rax
	je	.L17
.L16:
	mov	eax, DWORD PTR [r12]
	test	eax, eax
	je	.L92
.L88:
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L92:
	.cfi_restore_state
	mov	edi, DWORD PTR IP_DF[rip]
	call	htons@PLT
	mov	DWORD PTR 0[rbp], eax
.L17:
	mov	rax, QWORD PTR IFLA_GRE_COLLECT_METADATA[rip]
	cmp	QWORD PTR [rbx+rax*8], 0
	je	.L19
	mov	DWORD PTR 4[r12], 1
	mov	rax, QWORD PTR ARPHRD_IPGRE[rip]
	cmp	QWORD PTR 0[r13], rax
	jne	.L19
	mov	rax, QWORD PTR ARPHRD_NONE[rip]
	mov	QWORD PTR 0[r13], rax
.L19:
	mov	rax, QWORD PTR IFLA_GRE_IGNORE_DF[rip]
	mov	rdi, QWORD PTR [rbx+rax*8]
	test	rdi, rdi
	je	.L21
	call	nla_get_u8@PLT
	test	rax, rax
	je	.L22
	mov	edi, DWORD PTR IP_DF[rip]
	mov	ebp, DWORD PTR 0[rbp]
	call	htons@PLT
	test	ebp, eax
	jne	.L88
.L22:
	mov	rax, QWORD PTR IFLA_GRE_IGNORE_DF[rip]
	mov	rdi, QWORD PTR [rbx+rax*8]
	call	nla_get_u8@PLT
	test	rax, rax
	setne	al
	movzx	eax, al
	mov	DWORD PTR [r12], eax
.L21:
	mov	rax, QWORD PTR IFLA_GRE_FWMARK[rip]
	mov	rdi, QWORD PTR [rbx+rax*8]
	test	rdi, rdi
	je	.L23
	call	nla_get_u32@PLT
	mov	QWORD PTR [r14], rax
.L23:
	mov	rax, QWORD PTR IFLA_GRE_ERSPAN_VER[rip]
	mov	rdi, QWORD PTR [rbx+rax*8]
	test	rdi, rdi
	je	.L24
	call	nla_get_u8@PLT
	mov	DWORD PTR 8[r12], eax
	mov	edx, eax
	sub	eax, 1
	cmp	eax, 1
	ja	.L88
	cmp	edx, 1
	je	.L93
.L26:
	cmp	edx, 2
	je	.L94
.L27:
	xor	eax, eax
.L95:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L94:
	.cfi_restore_state
	mov	rax, QWORD PTR IFLA_GRE_ERSPAN_DIR[rip]
	mov	rdi, QWORD PTR [rbx+rax*8]
	test	rdi, rdi
	je	.L28
	call	nla_get_u8@PLT
	mov	ecx, DWORD PTR DIR_OFFSET[rip]
	mov	edx, DWORD PTR DIR_MASK[rip]
	mov	DWORD PTR 16[r12], eax
	sar	edx, cl
	not	edx
	test	edx, eax
	jne	.L88
.L28:
	mov	rax, QWORD PTR IFLA_GRE_ERSPAN_HWID[rip]
	mov	rdi, QWORD PTR [rbx+rax*8]
	test	rdi, rdi
	je	.L27
	call	nla_get_u16@PLT
	mov	ecx, DWORD PTR HWID_OFFSET[rip]
	mov	edx, DWORD PTR HWID_MASK[rip]
	mov	DWORD PTR 20[r12], eax
	sar	edx, cl
	not	edx
	test	edx, eax
	jne	.L88
	xor	eax, eax
	jmp	.L95
	.p2align 4,,10
	.p2align 3
.L24:
	mov	edx, DWORD PTR 8[r12]
	cmp	edx, 1
	jne	.L26
.L93:
	mov	rax, QWORD PTR IFLA_GRE_ERSPAN_INDEX[rip]
	mov	rdi, QWORD PTR [rbx+rax*8]
	test	rdi, rdi
	je	.L27
	call	nla_get_u32@PLT
	mov	edx, DWORD PTR INDEX_MASK[rip]
	mov	DWORD PTR 12[r12], eax
	not	edx
	test	edx, eax
	jne	.L88
	xor	eax, eax
	jmp	.L95
	.cfi_endproc
.LFE0:
	.size	ipgre_netlink_parms, .-ipgre_netlink_parms
	.comm	IP_DF,4,4
	.comm	IPPROTO_GRE,4,4
	.comm	INDEX_MASK,4,4
	.comm	IFLA_GRE_TTL,8,8
	.comm	IFLA_GRE_TOS,8,8
	.comm	IFLA_GRE_REMOTE,8,8
	.comm	IFLA_GRE_PMTUDISC,8,8
	.comm	IFLA_GRE_OKEY,8,8
	.comm	IFLA_GRE_OFLAGS,8,8
	.comm	IFLA_GRE_LOCAL,8,8
	.comm	IFLA_GRE_LINK,8,8
	.comm	IFLA_GRE_IKEY,8,8
	.comm	IFLA_GRE_IGNORE_DF,8,8
	.comm	IFLA_GRE_IFLAGS,8,8
	.comm	IFLA_GRE_FWMARK,8,8
	.comm	IFLA_GRE_ERSPAN_VER,8,8
	.comm	IFLA_GRE_ERSPAN_INDEX,8,8
	.comm	IFLA_GRE_ERSPAN_HWID,8,8
	.comm	IFLA_GRE_ERSPAN_DIR,8,8
	.comm	IFLA_GRE_COLLECT_METADATA,8,8
	.comm	HWID_OFFSET,4,4
	.comm	HWID_MASK,4,4
	.comm	EINVAL,4,4
	.comm	DIR_OFFSET,4,4
	.comm	DIR_MASK,4,4
	.comm	ARPHRD_NONE,8,8
	.comm	ARPHRD_IPGRE,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_ip_gre.c_ipgre_netlink_parms.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipgre_netlink_parms, %function
ipgre_netlink_parms:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r3
	mov	r4, r1
	mov	r7, r0
	bl	netdev_priv
	mov	r2, #44
	mov	r6, r0
	mov	r1, #0
	mov	r0, r5
	bl	memset
	ldr	r3, .L93
	cmp	r4, #0
	ldr	r3, [r3]
	str	r3, [r5, #20]
	beq	.L27
	ldr	r3, .L93+4
	ldr	r3, [r3]
	ldr	r0, [r4, r3, lsl #2]
	cmp	r0, #0
	beq	.L4
	bl	nla_get_u32
	str	r0, [r5, #40]
.L4:
	ldr	r3, .L93+8
	ldr	r3, [r3]
	ldr	r0, [r4, r3, lsl #2]
	cmp	r0, #0
	beq	.L5
	bl	nla_get_be16
	bl	gre_flags_to_tnl_flags
	str	r0, [r5, #36]
.L5:
	ldr	r3, .L93+12
	ldr	r3, [r3]
	ldr	r0, [r4, r3, lsl #2]
	cmp	r0, #0
	beq	.L6
	bl	nla_get_be16
	bl	gre_flags_to_tnl_flags
	str	r0, [r5, #32]
.L6:
	ldr	r3, .L93+16
	ldr	r3, [r3]
	ldr	r0, [r4, r3, lsl #2]
	cmp	r0, #0
	beq	.L7
	bl	nla_get_be32
	str	r0, [r5, #28]
.L7:
	ldr	r3, .L93+20
	ldr	r3, [r3]
	ldr	r0, [r4, r3, lsl #2]
	cmp	r0, #0
	beq	.L8
	bl	nla_get_be32
	str	r0, [r5, #24]
.L8:
	ldr	r3, .L93+24
	ldr	r3, [r3]
	ldr	r0, [r4, r3, lsl #2]
	cmp	r0, #0
	beq	.L9
	bl	nla_get_in_addr
	str	r0, [r5, #16]
.L9:
	ldr	r3, .L93+28
	ldr	r3, [r3]
	ldr	r0, [r4, r3, lsl #2]
	cmp	r0, #0
	beq	.L10
	bl	nla_get_in_addr
	str	r0, [r5, #12]
.L10:
	ldr	r3, .L93+32
	ldr	r3, [r3]
	ldr	r0, [r4, r3, lsl #2]
	cmp	r0, #0
	beq	.L11
	bl	nla_get_u8
	str	r0, [r5, #8]
.L11:
	ldr	r3, .L93+36
	ldr	r3, [r3]
	ldr	r0, [r4, r3, lsl #2]
	cmp	r0, #0
	beq	.L12
	bl	nla_get_u8
	str	r0, [r5, #4]
.L12:
	ldr	r3, .L93+40
	ldr	r3, [r3]
	ldr	r0, [r4, r3, lsl #2]
	cmp	r0, #0
	beq	.L16
	bl	nla_get_u8
	cmp	r0, #0
	beq	.L17
.L16:
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L90
.L88:
	ldr	r3, .L93+44
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L90:
	ldr	r3, .L93+48
	ldr	r0, [r3]
	bl	htons
	str	r0, [r5]
.L17:
	ldr	r3, .L93+52
	ldr	r3, [r3]
	ldr	r3, [r4, r3, lsl #2]
	cmp	r3, #0
	beq	.L19
	mov	r1, #1
	ldr	r3, .L93+56
	ldr	r2, [r7]
	ldr	r3, [r3]
	str	r1, [r6, #4]
	cmp	r2, r3
	ldreq	r3, .L93+60
	ldreq	r3, [r3]
	streq	r3, [r7]
.L19:
	ldr	r7, .L93+64
	ldr	r3, [r7]
	ldr	r0, [r4, r3, lsl #2]
	cmp	r0, #0
	beq	.L21
	bl	nla_get_u8
	cmp	r0, #0
	beq	.L22
	ldr	r3, .L93+48
	ldr	r5, [r5]
	ldr	r0, [r3]
	bl	htons
	tst	r5, r0
	bne	.L88
.L22:
	ldr	r3, [r7]
	ldr	r0, [r4, r3, lsl #2]
	bl	nla_get_u8
	subs	r0, r0, #0
	movne	r0, #1
	str	r0, [r6]
.L21:
	ldr	r3, .L93+68
	ldr	r3, [r3]
	ldr	r0, [r4, r3, lsl #2]
	cmp	r0, #0
	beq	.L23
	bl	nla_get_u32
	ldr	r3, [sp, #24]
	str	r0, [r3]
.L23:
	ldr	r3, .L93+72
	ldr	r3, [r3]
	ldr	r0, [r4, r3, lsl #2]
	cmp	r0, #0
	beq	.L24
	bl	nla_get_u8
	sub	r3, r0, #1
	cmp	r3, #1
	str	r0, [r6, #8]
	bhi	.L88
	cmp	r0, #1
	beq	.L91
.L26:
	cmp	r0, #2
	beq	.L92
.L27:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L92:
	ldr	r3, .L93+76
	ldr	r3, [r3]
	ldr	r0, [r4, r3, lsl #2]
	cmp	r0, #0
	beq	.L28
	bl	nla_get_u8
	ldr	r2, .L93+80
	ldr	r3, .L93+84
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r0, [r6, #16]
	bics	r3, r0, r2, asr r3
	bne	.L88
.L28:
	ldr	r3, .L93+88
	ldr	r3, [r3]
	ldr	r0, [r4, r3, lsl #2]
	cmp	r0, #0
	beq	.L27
	bl	nla_get_u16
	ldr	r2, .L93+92
	ldr	r3, .L93+96
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r0, [r6, #20]
	bics	r3, r0, r2, asr r3
	beq	.L27
	b	.L88
.L24:
	ldr	r0, [r6, #8]
	cmp	r0, #1
	bne	.L26
.L91:
	ldr	r3, .L93+100
	ldr	r3, [r3]
	ldr	r0, [r4, r3, lsl #2]
	cmp	r0, #0
	beq	.L27
	bl	nla_get_u32
	ldr	r3, .L93+104
	str	r0, [r6, #12]
	ldr	r3, [r3]
	bics	r3, r0, r3
	beq	.L27
	b	.L88
.L94:
	.align	2
.L93:
	.word	IPPROTO_GRE
	.word	IFLA_GRE_LINK
	.word	IFLA_GRE_IFLAGS
	.word	IFLA_GRE_OFLAGS
	.word	IFLA_GRE_IKEY
	.word	IFLA_GRE_OKEY
	.word	IFLA_GRE_LOCAL
	.word	IFLA_GRE_REMOTE
	.word	IFLA_GRE_TTL
	.word	IFLA_GRE_TOS
	.word	IFLA_GRE_PMTUDISC
	.word	EINVAL
	.word	IP_DF
	.word	IFLA_GRE_COLLECT_METADATA
	.word	ARPHRD_IPGRE
	.word	ARPHRD_NONE
	.word	IFLA_GRE_IGNORE_DF
	.word	IFLA_GRE_FWMARK
	.word	IFLA_GRE_ERSPAN_VER
	.word	IFLA_GRE_ERSPAN_DIR
	.word	DIR_MASK
	.word	DIR_OFFSET
	.word	IFLA_GRE_ERSPAN_HWID
	.word	HWID_MASK
	.word	HWID_OFFSET
	.word	IFLA_GRE_ERSPAN_INDEX
	.word	INDEX_MASK
	.size	ipgre_netlink_parms, .-ipgre_netlink_parms
	.comm	IP_DF,4,4
	.comm	IPPROTO_GRE,4,4
	.comm	INDEX_MASK,4,4
	.comm	IFLA_GRE_TTL,4,4
	.comm	IFLA_GRE_TOS,4,4
	.comm	IFLA_GRE_REMOTE,4,4
	.comm	IFLA_GRE_PMTUDISC,4,4
	.comm	IFLA_GRE_OKEY,4,4
	.comm	IFLA_GRE_OFLAGS,4,4
	.comm	IFLA_GRE_LOCAL,4,4
	.comm	IFLA_GRE_LINK,4,4
	.comm	IFLA_GRE_IKEY,4,4
	.comm	IFLA_GRE_IGNORE_DF,4,4
	.comm	IFLA_GRE_IFLAGS,4,4
	.comm	IFLA_GRE_FWMARK,4,4
	.comm	IFLA_GRE_ERSPAN_VER,4,4
	.comm	IFLA_GRE_ERSPAN_INDEX,4,4
	.comm	IFLA_GRE_ERSPAN_HWID,4,4
	.comm	IFLA_GRE_ERSPAN_DIR,4,4
	.comm	IFLA_GRE_COLLECT_METADATA,4,4
	.comm	HWID_OFFSET,4,4
	.comm	HWID_MASK,4,4
	.comm	EINVAL,4,4
	.comm	DIR_OFFSET,4,4
	.comm	DIR_MASK,4,4
	.comm	ARPHRD_NONE,4,4
	.comm	ARPHRD_IPGRE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
