	.file	"extr_wext.c_validate_key_index.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	validate_key_index, @function
validate_key_index:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdx, rdx
	je	.L6
	test	rcx, rcx
	je	.L6
	test	esi, esi
	jle	.L5
	cmp	esi, 4
	jg	.L6
	sub	esi, 1
	xor	eax, eax
	mov	DWORD PTR [rdx], esi
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	mov	DWORD PTR [rdx], edi
	xor	eax, eax
	mov	DWORD PTR [rcx], 1
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	validate_key_index, .-validate_key_index
	.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_wext.c_validate_key_index.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	validate_key_index, %function
validate_key_index:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	clz	ip, r3
	cmp	r2, #0
	lsr	ip, ip, #5
	moveq	ip, #1
	cmp	ip, #0
	bne	.L5
	cmp	r1, #0
	ble	.L4
	cmp	r1, #4
	bgt	.L5
	sub	r1, r1, #1
	mov	r0, ip
	str	r1, [r2]
	bx	lr
.L4:
	str	lr, [sp, #-4]!
	mov	r1, #1
	mov	lr, r0
	mov	r0, ip
	str	lr, [r2]
	str	r1, [r3]
	ldr	pc, [sp], #4
.L5:
	ldr	r3, .L10
	ldr	ip, [r3]
	rsb	r0, ip, #0
	bx	lr
.L11:
	.align	2
.L10:
	.word	EINVAL
	.size	validate_key_index, .-validate_key_index
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
