	.file	"9567.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%[^\n]"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdx, -32[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	inspector
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	inspector
	.type	inspector, @function
inspector:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -4[rbp], 0
	mov	BYTE PTR -10[rbp], 0
	mov	BYTE PTR -9[rbp], 0
	mov	DWORD PTR -8[rbp], 1
	jmp	.L5
.L10:
	movzx	eax, BYTE PTR -10[rbp]
	xor	eax, 1
	test	al, al
	je	.L6
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rcx, rax
	mov	edx, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	converter
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcmp@PLT
	test	eax, eax
	jne	.L6
	add	DWORD PTR -4[rbp], 1
	mov	BYTE PTR -10[rbp], 1
.L6:
	movzx	eax, BYTE PTR -9[rbp]
	xor	eax, 1
	test	al, al
	je	.L7
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rcx, rax
	mov	edx, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	converter
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	add	DWORD PTR -4[rbp], 2
	mov	BYTE PTR -9[rbp], 0
.L7:
	cmp	BYTE PTR -10[rbp], 0
	je	.L8
	cmp	BYTE PTR -9[rbp], 0
	jne	.L12
.L8:
	add	DWORD PTR -8[rbp], 1
.L5:
	cmp	DWORD PTR -8[rbp], 10
	jle	.L10
	jmp	.L9
.L12:
	nop
.L9:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	inspector, .-inspector
	.globl	converter
	.type	converter, @function
converter:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1088
	mov	QWORD PTR -1064[rbp], rdi
	mov	QWORD PTR -1072[rbp], rsi
	mov	DWORD PTR -1076[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -1064[rbp]
	mov	QWORD PTR -1040[rbp], rax
	lea	rax, -1024[rbp]
	mov	QWORD PTR -1032[rbp], rax
	mov	DWORD PTR -1048[rbp], 0
	jmp	.L14
.L17:
	mov	edx, DWORD PTR -1048[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	rax, QWORD PTR -1040[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	add	eax, edx
	mov	DWORD PTR -1048[rbp], eax
	add	QWORD PTR -1040[rbp], 1
.L15:
	mov	rax, QWORD PTR -1040[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jle	.L16
	mov	rax, QWORD PTR -1040[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 57
	jle	.L17
.L16:
	cmp	DWORD PTR -1048[rbp], 0
	je	.L18
	mov	DWORD PTR -1044[rbp], 0
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -1048[rbp]
	lea	ecx, 64[rax]
	mov	rax, QWORD PTR -1032[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -1032[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -1044[rbp], 1
.L19:
	mov	eax, DWORD PTR -1044[rbp]
	cmp	eax, DWORD PTR -1076[rbp]
	jl	.L20
	mov	DWORD PTR -1048[rbp], 0
.L18:
	mov	rax, QWORD PTR -1040[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 64
	jle	.L21
	mov	rax, QWORD PTR -1040[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 90
	jg	.L21
	mov	rax, QWORD PTR -1040[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	edx, eax
	mov	eax, DWORD PTR -1076[rbp]
	lea	ecx, [rdx+rax]
	mov	rax, QWORD PTR -1032[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -1032[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	jmp	.L22
.L21:
	mov	rax, QWORD PTR -1040[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 96
	jle	.L23
	mov	rax, QWORD PTR -1040[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 122
	jg	.L23
	mov	rax, QWORD PTR -1040[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	edx, eax
	mov	eax, DWORD PTR -1076[rbp]
	mov	ecx, edx
	sub	ecx, eax
	mov	rax, QWORD PTR -1032[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -1032[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	jmp	.L22
.L23:
	mov	rax, QWORD PTR -1040[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jle	.L24
	mov	rax, QWORD PTR -1040[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 57
	jle	.L22
.L24:
	mov	rax, QWORD PTR -1040[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L22
	mov	rax, QWORD PTR -1032[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -1032[rbp], rdx
	mov	BYTE PTR [rax], 32
.L22:
	add	QWORD PTR -1040[rbp], 1
.L14:
	mov	rdx, QWORD PTR -1064[rbp]
	mov	rax, QWORD PTR -1072[rbp]
	add	rax, rdx
	cmp	QWORD PTR -1040[rbp], rax
	jbe	.L15
	mov	rax, QWORD PTR -1032[rbp]
	mov	BYTE PTR [rax], 0
	lea	rax, -1024[rbp]
	mov	QWORD PTR -1032[rbp], rax
	mov	rax, QWORD PTR -1032[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	converter, .-converter
	.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	"9567.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%[^\012]\000"
	.align	2
.LC1:
	.ascii	"%d\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #56
	mov	r1, r3
	ldr	r0, .L4+4
	bl	__isoc99_scanf
	bl	getchar
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, .L4+4
	bl	__isoc99_scanf
	sub	r2, fp, #32
	sub	r3, fp, #56
	mov	r1, r2
	mov	r0, r3
	bl	inspector
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L4+8
	bl	printf
	mov	r3, #0
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.align	2
	.global	inspector
	.syntax unified
	.arm
	.fpu softvfp
	.type	inspector, %function
inspector:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	strb	r3, [fp, #-14]
	mov	r3, #0
	strb	r3, [fp, #-13]
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L7
.L12:
	ldrb	r3, [fp, #-14]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L8
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	ldr	r2, [fp, #-12]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	converter
	mov	r3, r0
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	mov	r3, #1
	strb	r3, [fp, #-14]
.L8:
	ldrb	r3, [fp, #-13]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L9
	ldr	r0, [fp, #-28]
	bl	strlen
	mov	r3, r0
	ldr	r2, [fp, #-12]
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	converter
	mov	r3, r0
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	str	r3, [fp, #-8]
	mov	r3, #0
	strb	r3, [fp, #-13]
.L9:
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L10
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L14
.L10:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L7:
	ldr	r3, [fp, #-12]
	cmp	r3, #10
	ble	.L12
	b	.L11
.L14:
	nop
.L11:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	inspector, .-inspector
	.section	.rodata
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	converter
	.syntax unified
	.arm
	.fpu softvfp
	.type	converter, %function
converter:
	@ args = 0, pretend = 0, frame = 1040
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1040
	str	r0, [fp, #-1032]
	str	r1, [fp, #-1036]
	str	r2, [fp, #-1040]
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-1032]
	str	r3, [fp, #-1028]
	sub	r3, fp, #1012
	str	r3, [fp, #-1024]
	mov	r3, #0
	str	r3, [fp, #-1020]
	b	.L16
.L19:
	ldr	r2, [fp, #-1020]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-1028]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	add	r3, r2, r3
	str	r3, [fp, #-1020]
	ldr	r3, [fp, #-1028]
	add	r3, r3, #1
	str	r3, [fp, #-1028]
.L17:
	ldr	r3, [fp, #-1028]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L18
	ldr	r3, [fp, #-1028]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #57
	bls	.L19
.L18:
	ldr	r3, [fp, #-1020]
	cmp	r3, #0
	beq	.L20
	mov	r3, #0
	str	r3, [fp, #-1016]
	b	.L21
.L22:
	ldr	r3, [fp, #-1020]
	and	r2, r3, #255
	ldr	r3, [fp, #-1024]
	add	r1, r3, #1
	str	r1, [fp, #-1024]
	add	r2, r2, #64
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-1016]
	add	r3, r3, #1
	str	r3, [fp, #-1016]
.L21:
	ldr	r2, [fp, #-1016]
	ldr	r3, [fp, #-1040]
	cmp	r2, r3
	blt	.L22
	mov	r3, #0
	str	r3, [fp, #-1020]
.L20:
	ldr	r3, [fp, #-1028]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L23
	ldr	r3, [fp, #-1028]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #90
	bhi	.L23
	ldr	r3, [fp, #-1028]
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-1040]
	and	r2, r3, #255
	ldr	r3, [fp, #-1024]
	add	r0, r3, #1
	str	r0, [fp, #-1024]
	add	r2, r1, r2
	and	r2, r2, #255
	strb	r2, [r3]
	b	.L24
.L23:
	ldr	r3, [fp, #-1028]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L25
	ldr	r3, [fp, #-1028]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #122
	bhi	.L25
	ldr	r3, [fp, #-1028]
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-1040]
	and	r2, r3, #255
	ldr	r3, [fp, #-1024]
	add	r0, r3, #1
	str	r0, [fp, #-1024]
	sub	r2, r1, r2
	and	r2, r2, #255
	strb	r2, [r3]
	b	.L24
.L25:
	ldr	r3, [fp, #-1028]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L26
	ldr	r3, [fp, #-1028]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #57
	bls	.L24
.L26:
	ldr	r3, [fp, #-1028]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L24
	ldr	r3, [fp, #-1024]
	add	r2, r3, #1
	str	r2, [fp, #-1024]
	mov	r2, #32
	strb	r2, [r3]
.L24:
	ldr	r3, [fp, #-1028]
	add	r3, r3, #1
	str	r3, [fp, #-1028]
.L16:
	ldr	r2, [fp, #-1032]
	ldr	r3, [fp, #-1036]
	add	r3, r2, r3
	ldr	r2, [fp, #-1028]
	cmp	r2, r3
	bls	.L17
	ldr	r3, [fp, #-1024]
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #1012
	str	r3, [fp, #-1024]
	ldr	r3, [fp, #-1024]
	ldr	r2, .L30
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC3
	.size	converter, .-converter
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
