	.file	"566317.c"
	.intel_syntax noprefix
	.text
	.globl	push
	.type	push, @function
push:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	eax, esi
	mov	BYTE PTR -12[rbp], al
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 100[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 100[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 100[rax]
	mov	rdx, QWORD PTR -8[rbp]
	cdqe
	movzx	ecx, BYTE PTR -12[rbp]
	mov	BYTE PTR [rdx+rax], cl
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	push, .-push
	.globl	pop
	.type	pop, @function
pop:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 100[rax]
	lea	ecx, -1[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	DWORD PTR 100[rdx], ecx
	mov	rdx, QWORD PTR -8[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	pop, .-pop
	.section	.rodata
.LC0:
	.string	"\nthe reversed string is\n%s\n"
	.text
	.globl	stringrev
	.type	stringrev, @function
stringrev:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 152
	.cfi_offset 3, -24
	mov	QWORD PTR -152[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -136[rbp]
	mov	DWORD PTR 100[rax], -1
	mov	DWORD PTR -140[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -140[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -140[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	mov	rax, QWORD PTR -136[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	push
.L5:
	mov	eax, DWORD PTR -140[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L6
	mov	DWORD PTR -140[rbp], 0
	jmp	.L7
.L8:
	mov	ebx, DWORD PTR -140[rbp]
	lea	eax, 1[rbx]
	mov	DWORD PTR -140[rbp], eax
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	pop
	movsx	rdx, ebx
	mov	BYTE PTR -128[rbp+rdx], al
.L7:
	mov	rax, QWORD PTR -136[rbp]
	mov	eax, DWORD PTR 100[rax]
	cmp	eax, -1
	jne	.L8
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	mov	BYTE PTR -128[rbp+rax], 0
	lea	rax, -128[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	stringrev, .-stringrev
	.section	.rodata
.LC1:
	.string	"\nenter the string"
.LC2:
	.string	"%[^\n]s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	stringrev
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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	"566317.c"
	.text
	.align	2
	.global	push
	.syntax unified
	.arm
	.fpu softvfp
	.type	push, %function
push:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	mov	r3, r1
	strb	r3, [fp, #-9]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #100]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3, #100]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #100]
	ldr	r2, [fp, #-8]
	ldrb	r1, [fp, #-9]
	strb	r1, [r2, r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	push, .-push
	.align	2
	.global	pop
	.syntax unified
	.arm
	.fpu softvfp
	.type	pop, %function
pop:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #100]
	sub	r1, r3, #1
	ldr	r2, [fp, #-8]
	str	r1, [r2, #100]
	ldr	r2, [fp, #-8]
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	pop, .-pop
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012the reversed string is\012%s\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	stringrev
	.syntax unified
	.arm
	.fpu softvfp
	.type	stringrev, %function
stringrev:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #124
	str	r0, [fp, #-128]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-120]
	mvn	r2, #0
	str	r2, [r3, #100]
	mov	r3, #0
	str	r3, [fp, #-124]
	b	.L5
.L6:
	ldr	r3, [fp, #-124]
	add	r2, r3, #1
	str	r2, [fp, #-124]
	mov	r2, r3
	ldr	r3, [fp, #-128]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, [fp, #-120]
	bl	push
.L5:
	ldr	r3, [fp, #-124]
	ldr	r2, [fp, #-128]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L6
	mov	r3, #0
	str	r3, [fp, #-124]
	b	.L7
.L8:
	ldr	r4, [fp, #-124]
	add	r3, r4, #1
	str	r3, [fp, #-124]
	ldr	r0, [fp, #-120]
	bl	pop
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	add	r3, r3, r4
	strb	r2, [r3, #-104]
.L7:
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #100]
	cmn	r3, #1
	bne	.L8
	sub	r2, fp, #116
	ldr	r3, [fp, #-124]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #116
	mov	r1, r3
	ldr	r0, .L10+4
	bl	printf
	nop
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC1
	.word	.LC0
	.size	stringrev, .-stringrev
	.section	.rodata
	.align	2
.LC2:
	.ascii	"\012enter the string\000"
	.align	2
.LC3:
	.ascii	"%[^\012]s\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L15+4
	bl	puts
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L15+8
	bl	__isoc99_scanf
	sub	r3, fp, #108
	mov	r0, r3
	bl	stringrev
	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	.LC4
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
