	.file	"extr_crypto.c_ascii2keydirection.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Unknown key direction '%s' -- must be '0' or '1'"
	.text
	.p2align 4
	.globl	ascii2keydirection
	.type	ascii2keydirection, @function
ascii2keydirection:
.LFB0:
	.cfi_startproc
	endbr64
	test	rsi, rsi
	je	.L12
	movzx	eax, BYTE PTR [rsi]
	cmp	eax, 48
	jne	.L5
	cmp	BYTE PTR 1[rsi], 0
	jne	.L5
	mov	eax, DWORD PTR KEY_DIRECTION_NORMAL[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	eax, 49
	jne	.L7
	cmp	BYTE PTR 1[rsi], 0
	jne	.L7
	mov	eax, DWORD PTR KEY_DIRECTION_INVERSE[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, DWORD PTR KEY_DIRECTION_BIDIRECTIONAL[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	rdx, rsi
	lea	rsi, .LC0[rip]
	call	msg@PLT
	mov	eax, -1
	add	rsp, 8
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ascii2keydirection, .-ascii2keydirection
	.comm	KEY_DIRECTION_NORMAL,4,4
	.comm	KEY_DIRECTION_INVERSE,4,4
	.comm	KEY_DIRECTION_BIDIRECTIONAL,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_crypto.c_ascii2keydirection.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unknown key direction '%s' -- must be '0' or '1'\000"
	.text
	.align	2
	.global	ascii2keydirection
	.syntax unified
	.arm
	.fpu softvfp
	.type	ascii2keydirection, %function
ascii2keydirection:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	beq	.L12
	ldrb	r3, [r1]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L5
	ldrb	r2, [r1, #1]	@ zero_extendqisi2
	cmp	r2, #0
	bne	.L5
	ldr	r3, .L13
	ldr	r0, [r3]
	bx	lr
.L5:
	cmp	r3, #49
	bne	.L7
	ldrb	r3, [r1, #1]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L13+4
	ldr	r0, [r3]
	bx	lr
.L12:
	ldr	r3, .L13+8
	ldr	r0, [r3]
	bx	lr
.L7:
	mov	r2, r1
	push	{r4, lr}
	ldr	r1, .L13+12
	bl	msg
	mvn	r0, #0
	pop	{r4, pc}
.L14:
	.align	2
.L13:
	.word	KEY_DIRECTION_NORMAL
	.word	KEY_DIRECTION_INVERSE
	.word	KEY_DIRECTION_BIDIRECTIONAL
	.word	.LC0
	.size	ascii2keydirection, .-ascii2keydirection
	.comm	KEY_DIRECTION_NORMAL,4,4
	.comm	KEY_DIRECTION_INVERSE,4,4
	.comm	KEY_DIRECTION_BIDIRECTIONAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
