	.file	"747085.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%s\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, 1104
	mov	DWORD PTR -1092[rbp], edi
	mov	QWORD PTR -1104[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1072[rbp], 0
	mov	DWORD PTR -1068[rbp], 0
	jmp	.L2
.L17:
	mov	BYTE PTR -1079[rbp], 0
	mov	BYTE PTR -1078[rbp], 0
	mov	BYTE PTR -1077[rbp], 0
	mov	BYTE PTR -1076[rbp], 0
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -1048[rbp], rax
	mov	QWORD PTR -1064[rbp], 0
	jmp	.L3
.L15:
	lea	rdx, -1040[rbp]
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 91
	jne	.L4
	mov	BYTE PTR -1079[rbp], 1
	jmp	.L5
.L4:
	lea	rdx, -1040[rbp]
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 93
	jne	.L6
	mov	BYTE PTR -1079[rbp], 0
	jmp	.L5
.L6:
	lea	rdx, -1040[rbp]
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR -1040[rbp+rax]
	cmp	dl, al
	jne	.L7
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, 1
	movzx	edx, BYTE PTR -1040[rbp+rax]
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR -1040[rbp+rax]
	cmp	dl, al
	jne	.L7
	lea	rdx, -1040[rbp]
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR -1040[rbp+rax]
	cmp	dl, al
	je	.L7
	mov	rax, QWORD PTR -1048[rbp]
	sub	rax, 4
	cmp	QWORD PTR -1064[rbp], rax
	ja	.L7
	cmp	BYTE PTR -1079[rbp], 0
	je	.L8
	mov	BYTE PTR -1078[rbp], 1
	jmp	.L5
.L8:
	mov	BYTE PTR -1077[rbp], 1
	jmp	.L5
.L7:
	cmp	BYTE PTR -1079[rbp], 0
	jne	.L5
	lea	rdx, -1040[rbp]
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR -1040[rbp+rax]
	cmp	dl, al
	jne	.L5
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, 1
	movzx	edx, BYTE PTR -1040[rbp+rax]
	lea	rcx, -1040[rbp]
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	je	.L5
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR -1040[rbp+rax]
	cmp	al, 91
	je	.L5
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR -1040[rbp+rax]
	cmp	al, 93
	je	.L5
	cmp	BYTE PTR -1076[rbp], 0
	jne	.L5
	lea	rdx, -1040[rbp]
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -1074[rbp], al
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR -1040[rbp+rax]
	mov	BYTE PTR -1073[rbp], al
	mov	BYTE PTR -1075[rbp], 0
	mov	QWORD PTR -1056[rbp], 0
	jmp	.L10
.L14:
	lea	rdx, -1040[rbp]
	mov	rax, QWORD PTR -1056[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 91
	jne	.L11
	mov	BYTE PTR -1075[rbp], 1
	jmp	.L12
.L11:
	lea	rdx, -1040[rbp]
	mov	rax, QWORD PTR -1056[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 93
	jne	.L13
	mov	BYTE PTR -1075[rbp], 0
	jmp	.L12
.L13:
	cmp	BYTE PTR -1075[rbp], 0
	je	.L12
	lea	rdx, -1040[rbp]
	mov	rax, QWORD PTR -1056[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -1073[rbp], al
	jne	.L12
	mov	rax, QWORD PTR -1056[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR -1040[rbp+rax]
	cmp	BYTE PTR -1074[rbp], al
	jne	.L12
	lea	rdx, -1040[rbp]
	mov	rax, QWORD PTR -1056[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -1056[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR -1040[rbp+rax]
	cmp	dl, al
	jne	.L12
	mov	BYTE PTR -1076[rbp], 1
.L12:
	add	QWORD PTR -1056[rbp], 1
.L10:
	mov	rax, QWORD PTR -1048[rbp]
	sub	rax, 3
	cmp	QWORD PTR -1056[rbp], rax
	jbe	.L14
.L5:
	add	QWORD PTR -1064[rbp], 1
.L3:
	mov	rax, QWORD PTR -1048[rbp]
	sub	rax, 3
	cmp	QWORD PTR -1064[rbp], rax
	jbe	.L15
	cmp	BYTE PTR -1077[rbp], 0
	je	.L16
	cmp	BYTE PTR -1078[rbp], 0
	jne	.L16
	add	DWORD PTR -1072[rbp], 1
.L16:
	cmp	BYTE PTR -1076[rbp], 0
	je	.L2
	add	DWORD PTR -1068[rbp], 1
.L2:
	lea	rax, -1040[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, -1
	jne	.L17
	mov	eax, DWORD PTR -1072[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -1068[rbp]
	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	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.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	"747085.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s\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 = 1064
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1056
	sub	sp, sp, #8
	str	r0, [fp, #-1064]
	str	r1, [fp, #-1068]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1052]
	mov	r3, #0
	str	r3, [fp, #-1048]
	b	.L2
.L17:
	mov	r3, #0
	strb	r3, [fp, #-1059]
	mov	r3, #0
	strb	r3, [fp, #-1058]
	mov	r3, #0
	strb	r3, [fp, #-1057]
	mov	r3, #0
	strb	r3, [fp, #-1056]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	str	r0, [fp, #-1036]
	mov	r3, #0
	str	r3, [fp, #-1044]
	b	.L3
.L15:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1044]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #91
	bne	.L4
	mov	r3, #1
	strb	r3, [fp, #-1059]
	b	.L5
.L4:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1044]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #93
	bne	.L6
	mov	r3, #0
	strb	r3, [fp, #-1059]
	b	.L5
.L6:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1044]
	add	r3, r3, r2
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-1044]
	add	r3, r3, #3
	sub	r1, fp, #4
	add	r3, r1, r3
	ldrb	r3, [r3, #-1028]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L7
	ldr	r3, [fp, #-1044]
	add	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r2, [r3, #-1028]	@ zero_extendqisi2
	ldr	r3, [fp, #-1044]
	add	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldrb	r3, [r3, #-1028]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L7
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1044]
	add	r3, r3, r2
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-1044]
	add	r3, r3, #1
	sub	r1, fp, #4
	add	r3, r1, r3
	ldrb	r3, [r3, #-1028]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L7
	ldr	r3, [fp, #-1036]
	sub	r3, r3, #4
	ldr	r2, [fp, #-1044]
	cmp	r2, r3
	bhi	.L7
	ldrb	r3, [fp, #-1059]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L8
	mov	r3, #1
	strb	r3, [fp, #-1058]
	b	.L5
.L8:
	mov	r3, #1
	strb	r3, [fp, #-1057]
	b	.L5
.L7:
	ldrb	r3, [fp, #-1059]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L5
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1044]
	add	r3, r3, r2
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-1044]
	add	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldrb	r3, [r3, #-1028]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L5
	ldr	r3, [fp, #-1044]
	add	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r2, [r3, #-1028]	@ zero_extendqisi2
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [fp, #-1044]
	add	r3, r3, r1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L5
	ldr	r3, [fp, #-1044]
	add	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-1028]	@ zero_extendqisi2
	cmp	r3, #91
	beq	.L5
	ldr	r3, [fp, #-1044]
	add	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-1028]	@ zero_extendqisi2
	cmp	r3, #93
	beq	.L5
	ldrb	r3, [fp, #-1056]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L5
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1044]
	add	r3, r3, r2
	ldrb	r3, [r3]
	strb	r3, [fp, #-1054]
	ldr	r3, [fp, #-1044]
	add	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-1028]
	strb	r3, [fp, #-1053]
	mov	r3, #0
	strb	r3, [fp, #-1055]
	mov	r3, #0
	str	r3, [fp, #-1040]
	b	.L10
.L14:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1040]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #91
	bne	.L11
	mov	r3, #1
	strb	r3, [fp, #-1055]
	b	.L12
.L11:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1040]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #93
	bne	.L13
	mov	r3, #0
	strb	r3, [fp, #-1055]
	b	.L12
.L13:
	ldrb	r3, [fp, #-1055]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L12
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1040]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-1053]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L12
	ldr	r3, [fp, #-1040]
	add	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-1028]	@ zero_extendqisi2
	ldrb	r2, [fp, #-1054]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L12
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1040]
	add	r3, r3, r2
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-1040]
	add	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldrb	r3, [r3, #-1028]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L12
	mov	r3, #1
	strb	r3, [fp, #-1056]
.L12:
	ldr	r3, [fp, #-1040]
	add	r3, r3, #1
	str	r3, [fp, #-1040]
.L10:
	ldr	r3, [fp, #-1036]
	sub	r3, r3, #3
	ldr	r2, [fp, #-1040]
	cmp	r2, r3
	bls	.L14
.L5:
	ldr	r3, [fp, #-1044]
	add	r3, r3, #1
	str	r3, [fp, #-1044]
.L3:
	ldr	r3, [fp, #-1036]
	sub	r3, r3, #3
	ldr	r2, [fp, #-1044]
	cmp	r2, r3
	bls	.L15
	ldrb	r3, [fp, #-1057]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L16
	ldrb	r3, [fp, #-1058]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L16
	ldr	r3, [fp, #-1052]
	add	r3, r3, #1
	str	r3, [fp, #-1052]
.L16:
	ldrb	r3, [fp, #-1056]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-1048]
	add	r3, r3, #1
	str	r3, [fp, #-1048]
.L2:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L20+4
	bl	__isoc99_scanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L17
	ldr	r1, [fp, #-1052]
	ldr	r0, .L20+8
	bl	printf
	ldr	r1, [fp, #-1048]
	ldr	r0, .L20+8
	bl	printf
	mov	r3, #0
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
