	.file	"1264455.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"0123456789abcdef"
	.text
	.globl	is_correct_number
	.type	is_correct_number, @function
is_correct_number:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -40[rbp], rax
	mov	BYTE PTR -46[rbp], 0
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -40[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	mov	BYTE PTR -32[rbp+rax], 0
	mov	DWORD PTR -44[rbp], 0
	jmp	.L2
.L8:
	mov	BYTE PTR -45[rbp], 0
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	lea	rax, -32[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	strchr@PLT
	test	rax, rax
	je	.L3
	mov	BYTE PTR -45[rbp], 1
.L3:
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 46
	jne	.L4
	cmp	BYTE PTR -46[rbp], 0
	je	.L5
	mov	eax, 0
	jmp	.L9
.L5:
	mov	BYTE PTR -46[rbp], 1
	mov	BYTE PTR -45[rbp], 1
.L4:
	movzx	eax, BYTE PTR -45[rbp]
	xor	eax, 1
	test	al, al
	je	.L7
	mov	eax, 0
	jmp	.L9
.L7:
	add	DWORD PTR -44[rbp], 1
.L2:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	DWORD PTR -44[rbp], eax
	jl	.L8
	mov	eax, 1
.L9:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	is_correct_number, .-is_correct_number
	.section	.rodata
.LC1:
	.string	"%d%d"
.LC2:
	.string	"can't read integer values"
.LC3:
	.string	"can't read a string value"
	.text
	.globl	get_input
	.type	get_input, @function
get_input:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	lea	rdx, -16[rbp]
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	test	eax, eax
	jne	.L12
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L20
.L12:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 1
	jle	.L14
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 16
	jg	.L14
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 1
	jle	.L14
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 16
	jle	.L15
.L14:
	mov	eax, -1
	jmp	.L20
.L15:
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_scanf@PLT
	test	eax, eax
	jne	.L16
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L20
.L16:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	tolower@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -12[rbp], 1
.L17:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	DWORD PTR -12[rbp], eax
	jl	.L18
	mov	eax, DWORD PTR -20[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	is_correct_number
	xor	eax, 1
	test	al, al
	je	.L19
	mov	eax, -1
	jmp	.L20
.L19:
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, 0
.L20:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	get_input, .-get_input
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"1264455.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"0123456789abcdef\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	is_correct_number
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_correct_number, %function
is_correct_number:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L11+4
	str	r3, [fp, #-32]
	mov	r3, #0
	strb	r3, [fp, #-38]
	ldr	r2, [fp, #-48]
	sub	r3, fp, #28
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	strncpy
	sub	r2, fp, #28
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L2
.L8:
	mov	r3, #0
	strb	r3, [fp, #-37]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	sub	r3, fp, #28
	mov	r1, r2
	mov	r0, r3
	bl	strchr
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	mov	r3, #1
	strb	r3, [fp, #-37]
.L3:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L4
	ldrb	r3, [fp, #-38]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L5
	mov	r3, #0
	b	.L9
.L5:
	mov	r3, #1
	strb	r3, [fp, #-38]
	mov	r3, #1
	strb	r3, [fp, #-37]
.L4:
	ldrb	r3, [fp, #-37]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L7
	mov	r3, #0
	b	.L9
.L7:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L2:
	ldr	r0, [fp, #-52]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-36]
	cmp	r3, r2
	blt	.L8
	mov	r3, #1
.L9:
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC1
	.word	.LC0
	.size	is_correct_number, .-is_correct_number
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%d%d\000"
	.align	2
.LC3:
	.ascii	"can't read integer values\000"
	.align	2
.LC4:
	.ascii	"can't read a string value\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_input
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_input, %function
get_input:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	sub	r2, fp, #16
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L24+4
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	ldr	r0, .L24+8
	bl	puts
	mov	r3, #1
	b	.L22
.L14:
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	ble	.L16
	ldr	r3, [fp, #-20]
	cmp	r3, #16
	bgt	.L16
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L16
	ldr	r3, [fp, #-16]
	cmp	r3, #16
	ble	.L17
.L16:
	mvn	r3, #0
	b	.L22
.L17:
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	ldr	r0, .L24+12
	bl	puts
	mov	r3, #1
	b	.L22
.L18:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L19
.L20:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r1, r0
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	and	r2, r1, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L19:
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-12]
	cmp	r3, r2
	blt	.L20
	ldr	r3, [fp, #-20]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	is_correct_number
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L21
	mvn	r3, #0
	b	.L22
.L21:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	mov	r3, #0
.L22:
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC5
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	get_input, .-get_input
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
