	.file	"905124.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"A   3  HIL JM O   2TUVWXY51SE Z  8 "
	.text
	.globl	reverse
	.type	reverse, @function
reverse:
.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, 32
	mov	eax, edi
	mov	BYTE PTR -20[rbp], al
	lea	rax, .LC0[rip]
	mov	QWORD PTR -8[rbp], rax
	cmp	BYTE PTR -20[rbp], 64
	jle	.L2
	cmp	BYTE PTR -20[rbp], 90
	jg	.L2
	movsx	rax, BYTE PTR -20[rbp]
	lea	rdx, -65[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	jmp	.L3
.L2:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movsx	rax, BYTE PTR -20[rbp]
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L4
	movsx	eax, BYTE PTR -20[rbp]
	sub	eax, 48
	cdqe
	lea	rdx, 25[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	jmp	.L3
.L4:
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	reverse, .-reverse
	.section	.rodata
.LC1:
	.string	"is not a palindrome"
.LC2:
	.string	"is a regular palindrome"
.LC3:
	.string	"is a mirrored string"
.LC4:
	.string	"is a mirrored palindrome"
.LC5:
	.string	"%s -- %s.\n\n"
.LC6:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.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, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC1[rip]
	mov	QWORD PTR -64[rbp], rax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -56[rbp], rax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -48[rbp], rax
	lea	rax, .LC4[rip]
	mov	QWORD PTR -40[rbp], rax
	jmp	.L6
.L13:
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -68[rbp], eax
	mov	DWORD PTR -80[rbp], 0
	mov	DWORD PTR -76[rbp], 1
	mov	eax, DWORD PTR -76[rbp]
	mov	DWORD PTR -72[rbp], eax
	jmp	.L7
.L12:
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	movzx	edx, BYTE PTR -32[rbp+rax]
	mov	eax, DWORD PTR -68[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -80[rbp]
	cdqe
	movzx	eax, BYTE PTR -32[rbp+rax]
	cmp	dl, al
	je	.L8
	mov	DWORD PTR -72[rbp], 0
.L8:
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	movzx	eax, BYTE PTR -32[rbp+rax]
	movsx	eax, al
	mov	edi, eax
	call	reverse
	mov	edx, DWORD PTR -68[rbp]
	sub	edx, 1
	sub	edx, DWORD PTR -80[rbp]
	movsx	rdx, edx
	movzx	edx, BYTE PTR -32[rbp+rdx]
	cmp	al, dl
	je	.L9
	mov	DWORD PTR -76[rbp], 0
.L9:
	cmp	DWORD PTR -76[rbp], 0
	jne	.L10
	cmp	DWORD PTR -72[rbp], 0
	je	.L16
.L10:
	add	DWORD PTR -80[rbp], 1
.L7:
	mov	eax, DWORD PTR -68[rbp]
	add	eax, 1
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cmp	DWORD PTR -80[rbp], eax
	jl	.L12
	jmp	.L11
.L16:
	nop
.L11:
	mov	eax, DWORD PTR -76[rbp]
	lea	edx, [rax+rax]
	mov	eax, DWORD PTR -72[rbp]
	add	eax, edx
	cdqe
	mov	rdx, QWORD PTR -64[rbp+rax*8]
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L6:
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, -1
	jne	.L13
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"905124.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"is not a palindrome\000"
	.align	2
.LC1:
	.ascii	"is a regular palindrome\000"
	.align	2
.LC2:
	.ascii	"is a mirrored string\000"
	.align	2
.LC3:
	.ascii	"is a mirrored palindrome\000"
	.text
	.section	.rodata
	.align	2
.LC5:
	.ascii	"A   3  HIL JM O   2TUVWXY51SE Z  8 \000"
	.text
	.align	2
	.global	reverse
	.syntax unified
	.arm
	.fpu softvfp
	.type	reverse, %function
reverse:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, r0
	strb	r3, [fp, #-13]
	ldr	r3, .L5
	str	r3, [fp, #-8]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L2
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #90
	bhi	.L2
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	sub	r3, r3, #65
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	b	.L3
.L2:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L4
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	sub	r3, r3, #23
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	b	.L3
.L4:
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC5
	.size	reverse, .-reverse
	.section	.rodata
	.align	2
.LC7:
	.ascii	"%s -- %s.\012\012\000"
	.align	2
.LC8:
	.ascii	"%s\000"
	.align	2
.LC6:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.align	2
.LC9:
	.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, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L19+4
	sub	ip, fp, #44
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	b	.L8
.L15:
	sub	r3, fp, #28
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #1
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-52]
	b	.L9
.L14:
	sub	r2, fp, #28
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-48]
	sub	r1, r3, #1
	ldr	r3, [fp, #-60]
	sub	r3, r1, r3
	sub	r1, fp, #4
	add	r3, r1, r3
	ldrb	r3, [r3, #-24]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L10
	mov	r3, #0
	str	r3, [fp, #-52]
.L10:
	sub	r2, fp, #28
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	reverse
	mov	r3, r0
	mov	r1, r3
	ldr	r3, [fp, #-48]
	sub	r2, r3, #1
	ldr	r3, [fp, #-60]
	sub	r3, r2, r3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-24]	@ zero_extendqisi2
	cmp	r1, r3
	beq	.L11
	mov	r3, #0
	str	r3, [fp, #-56]
.L11:
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L12
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L18
.L12:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L9:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-60]
	cmp	r3, r2
	blt	.L14
	b	.L13
.L18:
	nop
.L13:
	ldr	r3, [fp, #-56]
	lsl	r2, r3, #1
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-40]
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L19+8
	bl	printf
.L8:
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L19+12
	bl	__isoc99_scanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L15
	mov	r3, #0
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC9
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
