	.file	"extr_lwtunnel.c_lwtunnel_valid_encap_type.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Unknown lwt encapsulation type"
	.align 8
.LC1:
	.string	"lwt encapsulation type not supported"
	.text
	.p2align 4
	.globl	lwtunnel_valid_encap_type
	.type	lwtunnel_valid_encap_type, @function
lwtunnel_valid_encap_type:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR LWTUNNEL_ENCAP_NONE[rip], rdi
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	je	.L2
	cmp	QWORD PTR LWTUNNEL_ENCAP_MAX[rip], rdi
	mov	rbx, rdi
	jnb	.L3
.L2:
	mov	r12d, DWORD PTR EINVAL[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	neg	r12d
	call	NL_SET_ERR_MSG@PLT
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	xor	eax, eax
	xor	r12d, r12d
	call	rcu_read_lock@PLT
	mov	rax, QWORD PTR lwtun_encaps[rip]
	mov	edi, DWORD PTR [rax+rbx*4]
	call	rcu_dereference@PLT
	mov	rbx, rax
	xor	eax, eax
	call	rcu_read_unlock@PLT
	test	rbx, rbx
	jne	.L1
	mov	eax, DWORD PTR EOPNOTSUPP[rip]
	mov	r12d, eax
	neg	r12d
	test	eax, eax
	jle	.L1
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	NL_SET_ERR_MSG@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	lwtunnel_valid_encap_type, .-lwtunnel_valid_encap_type
	.comm	lwtun_encaps,8,8
	.comm	LWTUNNEL_ENCAP_NONE,8,8
	.comm	LWTUNNEL_ENCAP_MAX,8,8
	.comm	EOPNOTSUPP,4,4
	.comm	EINVAL,4,4
	.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_lwtunnel.c_lwtunnel_valid_encap_type.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unknown lwt encapsulation type\000"
	.align	2
.LC1:
	.ascii	"lwt encapsulation type not supported\000"
	.text
	.align	2
	.global	lwtunnel_valid_encap_type
	.syntax unified
	.arm
	.fpu softvfp
	.type	lwtunnel_valid_encap_type, %function
lwtunnel_valid_encap_type:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L8
	push	{r4, r5, r6, lr}
	ldr	r3, [r3]
	mov	r5, r1
	cmp	r3, r0
	beq	.L2
	ldr	r3, .L8+4
	mov	r4, r0
	ldr	r3, [r3]
	cmp	r3, r0
	bcs	.L3
.L2:
	ldr	r3, .L8+8
	mov	r0, r5
	ldr	r4, [r3]
	ldr	r1, .L8+12
	rsb	r4, r4, #0
	bl	NL_SET_ERR_MSG
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L3:
	bl	rcu_read_lock
	ldr	r3, .L8+16
	ldr	r3, [r3]
	ldr	r0, [r3, r4, lsl #2]
	bl	rcu_dereference
	mov	r4, r0
	bl	rcu_read_unlock
	cmp	r4, #0
	movne	r4, #0
	bne	.L1
	ldr	r3, .L8+20
	ldr	r4, [r3]
	cmp	r4, #0
	rsb	r4, r4, #0
	ble	.L1
	mov	r0, r5
	ldr	r1, .L8+24
	bl	NL_SET_ERR_MSG
	b	.L1
.L9:
	.align	2
.L8:
	.word	LWTUNNEL_ENCAP_NONE
	.word	LWTUNNEL_ENCAP_MAX
	.word	EINVAL
	.word	.LC0
	.word	lwtun_encaps
	.word	EOPNOTSUPP
	.word	.LC1
	.size	lwtunnel_valid_encap_type, .-lwtunnel_valid_encap_type
	.comm	lwtun_encaps,4,4
	.comm	LWTUNNEL_ENCAP_NONE,4,4
	.comm	LWTUNNEL_ENCAP_MAX,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
