	.file	"531944.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"pointer value, dereferenced poiner, poineter address:"
	.align 8
.LC1:
	.string	"ptr1 = %p, *ptr1 = %d, &ptr1 = %p\n"
.LC2:
	.string	"\naddind an int it a poiner:"
	.align 8
.LC3:
	.string	"ptr1 + 4 = %p, *(ptr1 + 3) = %d"
.LC4:
	.string	"values after ptr1++"
.LC5:
	.string	"values after ptr2--"
	.align 8
.LC6:
	.string	"ptr2 = %p, *ptr2 = %d, &ptr2 = %p\n"
	.align 8
.LC7:
	.string	"Pointers reset to original values:"
	.align 8
.LC8:
	.string	"ptr1 = %p, *ptr1 = %d, &ptr1 = %p,\n ptr2 = %p, *ptr2 = %d, &ptr2 = %p\n"
	.align 8
.LC9:
	.string	"Substraction one poiter from another:"
	.align 8
.LC10:
	.string	"ptr1 = %p, ptr2 = %p, ptr2 - ptr1 = %td\n"
	.align 8
.LC11:
	.string	"ptr1 = %p, ptr2 = %p, ptr1 - ptr2 = %td\n"
	.align 8
.LC12:
	.string	"Substracting int from a pointer:"
.LC13:
	.string	"ptr3 = %p, ptr3 - 2 = %p\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, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -32[rbp], 100
	mov	DWORD PTR -28[rbp], 200
	mov	DWORD PTR -24[rbp], 300
	mov	DWORD PTR -20[rbp], 400
	mov	DWORD PTR -16[rbp], 500
	lea	rax, -32[rbp]
	mov	QWORD PTR -56[rbp], rax
	lea	rax, -32[rbp]
	add	rax, 8
	mov	QWORD PTR -48[rbp], rax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	lea	rcx, -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 16
	mov	QWORD PTR -40[rbp], rax
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 12
	mov	eax, DWORD PTR [rax]
	mov	rdx, QWORD PTR -56[rbp]
	lea	rcx, 16[rdx]
	mov	edx, eax
	mov	rsi, rcx
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 4
	mov	QWORD PTR -56[rbp], rax
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	lea	rcx, -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -48[rbp]
	sub	rax, 4
	mov	QWORD PTR -48[rbp], rax
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	lea	rcx, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 4
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, 4
	mov	QWORD PTR -56[rbp], rax
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	r8d, DWORD PTR [rax]
	mov	rdi, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	lea	rcx, -56[rbp]
	sub	rsp, 8
	lea	rsi, -48[rbp]
	push	rsi
	mov	r9d, r8d
	mov	r8, rdi
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 16
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	sub	rax, rdx
	sar	rax, 2
	mov	rcx, rax
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	sub	rax, rdx
	sar	rax, 2
	mov	rcx, rax
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	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	"531944.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"pointer value, dereferenced poiner, poineter addres"
	.ascii	"s:\000"
	.align	2
.LC2:
	.ascii	"ptr1 = %p, *ptr1 = %d, &ptr1 = %p\012\000"
	.align	2
.LC3:
	.ascii	"\012addind an int it a poiner:\000"
	.align	2
.LC4:
	.ascii	"ptr1 + 4 = %p, *(ptr1 + 3) = %d\000"
	.align	2
.LC5:
	.ascii	"values after ptr1++\000"
	.align	2
.LC6:
	.ascii	"values after ptr2--\000"
	.align	2
.LC7:
	.ascii	"ptr2 = %p, *ptr2 = %d, &ptr2 = %p\012\000"
	.align	2
.LC8:
	.ascii	"Pointers reset to original values:\000"
	.align	2
.LC9:
	.ascii	"ptr1 = %p, *ptr1 = %d, &ptr1 = %p,\012 ptr2 = %p, *"
	.ascii	"ptr2 = %d, &ptr2 = %p\012\000"
	.align	2
.LC10:
	.ascii	"Substraction one poiter from another:\000"
	.align	2
.LC11:
	.ascii	"ptr1 = %p, ptr2 = %p, ptr2 - ptr1 = %td\012\000"
	.align	2
.LC12:
	.ascii	"ptr1 = %p, ptr2 = %p, ptr1 - ptr2 = %td\012\000"
	.align	2
.LC13:
	.ascii	"Substracting int from a pointer:\000"
	.align	2
.LC14:
	.ascii	"ptr3 = %p, ptr3 - 2 = %p\012\000"
	.align	2
.LC0:
	.word	100
	.word	200
	.word	300
	.word	400
	.word	500
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L4+4
	sub	ip, fp, #28
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	sub	r3, fp, #28
	str	r3, [fp, #-40]
	sub	r3, fp, #28
	add	r3, r3, #8
	str	r3, [fp, #-36]
	ldr	r0, .L4+8
	bl	puts
	ldr	r1, [fp, #-40]
	ldr	r3, [fp, #-40]
	ldr	r2, [r3]
	sub	r3, fp, #40
	ldr	r0, .L4+12
	bl	printf
	ldr	r3, [fp, #-40]
	add	r3, r3, #16
	str	r3, [fp, #-32]
	ldr	r0, .L4+16
	bl	puts
	ldr	r3, [fp, #-40]
	add	r1, r3, #16
	ldr	r3, [fp, #-40]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L4+20
	bl	printf
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-40]
	add	r3, r3, #4
	str	r3, [fp, #-40]
	ldr	r0, .L4+24
	bl	puts
	ldr	r1, [fp, #-40]
	ldr	r3, [fp, #-40]
	ldr	r2, [r3]
	sub	r3, fp, #40
	ldr	r0, .L4+12
	bl	printf
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-36]
	sub	r3, r3, #4
	str	r3, [fp, #-36]
	ldr	r0, .L4+28
	bl	puts
	ldr	r1, [fp, #-36]
	ldr	r3, [fp, #-36]
	ldr	r2, [r3]
	sub	r3, fp, #36
	ldr	r0, .L4+32
	bl	printf
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-40]
	sub	r3, r3, #4
	str	r3, [fp, #-40]
	mov	r0, #10
	bl	putchar
	ldr	r0, .L4+36
	bl	puts
	ldr	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	ldr	ip, [r3]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-36]
	ldr	r2, [r2]
	sub	lr, fp, #40
	sub	r1, fp, #36
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	mov	r2, ip
	mov	r1, r0
	ldr	r0, .L4+40
	bl	printf
	mov	r0, #10
	bl	putchar
	ldr	r0, .L4+44
	bl	puts
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-36]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	sub	r3, r2, r3
	asr	r3, r3, #2
	mov	r2, r0
	ldr	r0, .L4+48
	bl	printf
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-36]
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-36]
	sub	r3, r2, r3
	asr	r3, r3, #2
	mov	r2, r0
	ldr	r0, .L4+52
	bl	printf
	mov	r0, #10
	bl	putchar
	ldr	r0, .L4+56
	bl	puts
	ldr	r3, [fp, #-32]
	sub	r3, r3, #8
	mov	r2, r3
	ldr	r1, [fp, #-32]
	ldr	r0, .L4+60
	bl	printf
	mov	r3, #0
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC15
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
