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