	.file	"1044962.c"
	.intel_syntax noprefix
	.text
	.globl	strrev
	.type	strrev, @function
strrev:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -4[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -40[rbp]
	sub	rdx, rcx
	lea	rcx, -1[rdx]
	mov	rdx, QWORD PTR -32[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	cmp	QWORD PTR -40[rbp], rax
	ja	.L3
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	strrev, .-strrev
	.section	.rodata
	.align 8
.LC0:
	.string	"The string '%s' contains %i palindromes.\n"
.LC1:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r12
	push	rbx
	sub	rsp, 1216
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1136[rbp], 0
	jmp	.L6
.L27:
	mov	rax, rsp
	mov	r12, rax
	lea	rax, -1072[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -1132[rbp], eax
	mov	eax, DWORD PTR -1132[rbp]
	add	eax, 1
	mov	DWORD PTR -1128[rbp], eax
	mov	edx, DWORD PTR -1132[rbp]
	movsx	rax, edx
	sub	rax, 1
	mov	QWORD PTR -1120[rbp], rax
	movsx	rax, edx
	mov	r14, rax
	mov	r15d, 0
	movsx	rax, edx
	mov	QWORD PTR -1184[rbp], rax
	mov	QWORD PTR -1176[rbp], 0
	movsx	rax, edx
	sal	rax, 10
	mov	rdx, rax
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rdx, rax, 16
	mov	rax, rdx
	and	rax, -4096
	mov	rcx, rsp
	sub	rcx, rax
.L7:
	cmp	rsp, rcx
	je	.L8
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L7
.L8:
	mov	rax, rdx
	and	eax, 4095
	sub	rsp, rax
	mov	rax, rdx
	and	eax, 4095
	test	rax, rax
	je	.L9
	mov	rax, rdx
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L9:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -1112[rbp], rax
	mov	DWORD PTR -1140[rbp], 0
	jmp	.L10
.L24:
	mov	DWORD PTR -1144[rbp], 0
	jmp	.L11
.L23:
	mov	rax, rsp
	mov	rbx, rax
	mov	edx, DWORD PTR -1128[rbp]
	movsx	rax, edx
	sub	rax, 1
	mov	QWORD PTR -1104[rbp], rax
	movsx	rax, edx
	mov	QWORD PTR -1200[rbp], rax
	mov	QWORD PTR -1192[rbp], 0
	movsx	rax, edx
	mov	QWORD PTR -1216[rbp], rax
	mov	QWORD PTR -1208[rbp], 0
	movsx	rdx, edx
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rdx, rax, 16
	mov	rax, rdx
	and	rax, -4096
	mov	rcx, rsp
	sub	rcx, rax
.L12:
	cmp	rsp, rcx
	je	.L13
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L12
.L13:
	mov	rax, rdx
	and	eax, 4095
	sub	rsp, rax
	mov	rax, rdx
	and	eax, 4095
	test	rax, rax
	je	.L14
	mov	rax, rdx
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L14:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -1096[rbp], rax
	mov	edx, DWORD PTR -1128[rbp]
	movsx	rax, edx
	sub	rax, 1
	mov	QWORD PTR -1088[rbp], rax
	movsx	rax, edx
	mov	QWORD PTR -1232[rbp], rax
	mov	QWORD PTR -1224[rbp], 0
	movsx	rax, edx
	mov	QWORD PTR -1248[rbp], rax
	mov	QWORD PTR -1240[rbp], 0
	movsx	rdx, edx
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rdx, rax, 16
	mov	rax, rdx
	and	rax, -4096
	mov	rcx, rsp
	sub	rcx, rax
.L15:
	cmp	rsp, rcx
	je	.L16
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L15
.L16:
	mov	rax, rdx
	and	eax, 4095
	sub	rsp, rax
	mov	rax, rdx
	and	eax, 4095
	test	rax, rax
	je	.L17
	mov	rax, rdx
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L17:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -1080[rbp], rax
	mov	eax, DWORD PTR -1128[rbp]
	cdqe
	mov	rcx, QWORD PTR -1096[rbp]
	mov	rdx, rax
	mov	esi, 0
	mov	rdi, rcx
	call	memset@PLT
	mov	eax, DWORD PTR -1128[rbp]
	cdqe
	mov	rcx, QWORD PTR -1080[rbp]
	mov	rdx, rax
	mov	esi, 0
	mov	rdi, rcx
	call	memset@PLT
	mov	eax, DWORD PTR -1144[rbp]
	add	eax, 1
	movsx	rsi, eax
	lea	rdx, -1072[rbp]
	mov	eax, DWORD PTR -1140[rbp]
	cdqe
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -1096[rbp]
	mov	rdx, rsi
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -1096[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -1124[rbp], eax
	mov	eax, DWORD PTR -1124[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -1080[rbp]
	mov	rax, QWORD PTR -1096[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strrev
	mov	eax, DWORD PTR -1124[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -1080[rbp]
	mov	rax, QWORD PTR -1096[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L18
	mov	DWORD PTR -1148[rbp], 0
	mov	DWORD PTR -1152[rbp], 0
	jmp	.L19
.L22:
	mov	eax, DWORD PTR -1124[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -1152[rbp]
	cdqe
	sal	rax, 10
	mov	rdx, rax
	mov	rax, QWORD PTR -1112[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -1096[rbp]
	mov	rdx, rsi
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L20
	mov	DWORD PTR -1148[rbp], 1
.L20:
	add	DWORD PTR -1152[rbp], 1
.L19:
	mov	eax, DWORD PTR -1152[rbp]
	cmp	eax, DWORD PTR -1136[rbp]
	jge	.L21
	cmp	DWORD PTR -1148[rbp], 0
	je	.L22
.L21:
	cmp	DWORD PTR -1148[rbp], 0
	jne	.L18
	mov	eax, DWORD PTR -1124[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -1136[rbp]
	cdqe
	sal	rax, 10
	mov	rdx, rax
	mov	rax, QWORD PTR -1112[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -1096[rbp]
	mov	rdx, rsi
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	add	DWORD PTR -1136[rbp], 1
.L18:
	mov	rsp, rbx
	add	DWORD PTR -1144[rbp], 1
.L11:
	mov	eax, DWORD PTR -1144[rbp]
	cmp	eax, DWORD PTR -1132[rbp]
	jl	.L23
	add	DWORD PTR -1140[rbp], 1
.L10:
	mov	eax, DWORD PTR -1140[rbp]
	cmp	eax, DWORD PTR -1132[rbp]
	jl	.L24
	mov	eax, DWORD PTR -1136[rbp]
	lea	rcx, -1072[rbp]
	mov	edx, eax
	mov	rsi, rcx
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -1072[rbp]
	mov	edx, 1024
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -1156[rbp], 0
	jmp	.L25
.L26:
	mov	eax, DWORD PTR -1156[rbp]
	cdqe
	sal	rax, 10
	mov	rdx, rax
	mov	rax, QWORD PTR -1112[rbp]
	add	rax, rdx
	mov	edx, 1024
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	add	DWORD PTR -1156[rbp], 1
.L25:
	mov	eax, DWORD PTR -1156[rbp]
	cmp	eax, DWORD PTR -1136[rbp]
	jl	.L26
	mov	DWORD PTR -1136[rbp], 0
	mov	rsp, r12
.L6:
	lea	rax, -1072[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, -1
	jne	.L27
	mov	eax, 0
	mov	rbx, QWORD PTR -40[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	lea	rsp, -32[rbp]
	pop	rbx
	pop	r12
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"1044962.c"
	.text
	.align	2
	.global	strrev
	.syntax unified
	.arm
	.fpu softvfp
	.type	strrev, %function
strrev:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-24]
	sub	r3, r1, r3
	sub	r3, r3, #1
	ldr	r1, [fp, #-20]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bhi	.L3
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	strrev, .-strrev
	.section	.rodata
	.align	2
.LC0:
	.ascii	"The string '%s' contains %i palindromes.\012\000"
	.align	2
.LC1:
	.ascii	"%s\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 = 1088
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #1088
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1080]
	b	.L6
.L18:
	mov	r3, sp
	mov	r4, r3
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-1076]
	ldr	r3, [fp, #-1076]
	add	r3, r3, #1
	str	r3, [fp, #-1072]
	ldr	ip, [fp, #-1076]
	sub	r3, ip, #1
	str	r3, [fp, #-1068]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #13
	orr	r3, r3, r0, lsr #19
	lsl	r2, r0, #13
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #13
	orr	r3, r3, r0, lsr #19
	lsl	r2, r0, #13
	mov	r3, ip
	lsl	r3, r3, #10
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-1064]
	mov	r3, #0
	str	r3, [fp, #-1084]
	b	.L7
.L15:
	mov	r3, #0
	str	r3, [fp, #-1088]
	b	.L8
.L14:
	mov	r3, sp
	mov	r5, r3
	ldr	ip, [fp, #-1072]
	sub	r3, ip, #1
	str	r3, [fp, #-1060]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-1056]
	ldr	ip, [fp, #-1072]
	sub	r3, ip, #1
	str	r3, [fp, #-1052]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-1048]
	ldr	r3, [fp, #-1072]
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-1056]
	bl	memset
	ldr	r3, [fp, #-1072]
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-1048]
	bl	memset
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-1084]
	add	r1, r3, r2
	ldr	r3, [fp, #-1088]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r0, [fp, #-1056]
	bl	memcpy
	ldr	r0, [fp, #-1056]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-1044]
	ldr	r3, [fp, #-1044]
	mov	r2, r3
	ldr	r1, [fp, #-1048]
	ldr	r0, [fp, #-1056]
	bl	strrev
	ldr	r3, [fp, #-1044]
	mov	r2, r3
	ldr	r1, [fp, #-1048]
	ldr	r0, [fp, #-1056]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	mov	r3, #0
	str	r3, [fp, #-1092]
	mov	r3, #0
	str	r3, [fp, #-1096]
	b	.L10
.L13:
	ldr	r3, [fp, #-1096]
	lsl	r3, r3, #10
	ldr	r2, [fp, #-1064]
	add	r3, r2, r3
	ldr	r2, [fp, #-1044]
	mov	r1, r3
	ldr	r0, [fp, #-1056]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	mov	r3, #1
	str	r3, [fp, #-1092]
.L11:
	ldr	r3, [fp, #-1096]
	add	r3, r3, #1
	str	r3, [fp, #-1096]
.L10:
	ldr	r2, [fp, #-1096]
	ldr	r3, [fp, #-1080]
	cmp	r2, r3
	bge	.L12
	ldr	r3, [fp, #-1092]
	cmp	r3, #0
	beq	.L13
.L12:
	ldr	r3, [fp, #-1092]
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-1080]
	lsl	r3, r3, #10
	ldr	r2, [fp, #-1064]
	add	r3, r2, r3
	ldr	r2, [fp, #-1044]
	ldr	r1, [fp, #-1056]
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-1080]
	add	r3, r3, #1
	str	r3, [fp, #-1080]
.L9:
	mov	sp, r5
	ldr	r3, [fp, #-1088]
	add	r3, r3, #1
	str	r3, [fp, #-1088]
.L8:
	ldr	r2, [fp, #-1088]
	ldr	r3, [fp, #-1076]
	cmp	r2, r3
	blt	.L14
	ldr	r3, [fp, #-1084]
	add	r3, r3, #1
	str	r3, [fp, #-1084]
.L7:
	ldr	r2, [fp, #-1084]
	ldr	r3, [fp, #-1076]
	cmp	r2, r3
	blt	.L15
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-1080]
	mov	r1, r3
	ldr	r0, .L21+4
	bl	printf
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-1100]
	b	.L16
.L17:
	ldr	r3, [fp, #-1100]
	lsl	r3, r3, #10
	ldr	r2, [fp, #-1064]
	add	r3, r2, r3
	mov	r2, #1024
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-1100]
	add	r3, r3, #1
	str	r3, [fp, #-1100]
.L16:
	ldr	r2, [fp, #-1100]
	ldr	r3, [fp, #-1080]
	cmp	r2, r3
	blt	.L17
	mov	r3, #0
	str	r3, [fp, #-1080]
	mov	sp, r4
.L6:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L21+8
	bl	__isoc99_scanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L18
	mov	r3, #0
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L22:
	.align	2
.L21:
	.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
