	.file	"833317.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\n\nvoid pointer stuff\n"
.LC2:
	.string	"double value: %f\n"
.LC3:
	.string	"int value: %d\n"
	.text
	.globl	void_pointer_example
	.type	void_pointer_example, @function
void_pointer_example:
.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, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	DWORD PTR -56[rbp], 77
	movsd	xmm0, QWORD PTR .LC1[rip]
	movsd	QWORD PTR -48[rbp], xmm0
	lea	rax, -56[rbp]
	mov	QWORD PTR -40[rbp], rax
	lea	rax, -48[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	movsd	xmm0, QWORD PTR [rax]
	movsd	QWORD PTR -24[rbp], xmm0
	mov	rax, QWORD PTR -24[rbp]
	movq	xmm0, rax
	lea	rdi, .LC2[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L2
	call	__stack_chk_fail@PLT
.L2:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	void_pointer_example, .-void_pointer_example
	.section	.rodata
.LC4:
	.string	"\n\nmalloc stuff\n"
.LC5:
	.string	"data %d %d %d %d\n"
	.align 8
.LC6:
	.string	"unsafely accessing data out of bounds %d\n"
	.align 8
.LC7:
	.string	"unsafely accessing data after free %d %d %d %d\n"
	.text
	.globl	malloc_example
	.type	malloc_example, @function
malloc_example:
.LFB7:
	.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
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L4
	mov	edi, 77
	call	exit@PLT
.L4:
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -20[rbp]
	add	edx, 1
	mov	DWORD PTR [rax], edx
	add	DWORD PTR -20[rbp], 1
.L5:
	cmp	DWORD PTR -20[rbp], 3
	jle	.L6
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 12
	mov	esi, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 8
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 4
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 16
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 12
	mov	esi, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 8
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 4
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	malloc_example, .-malloc_example
	.section	.rodata
.LC8:
	.string	"calling example 1 %f %f\n"
	.text
	.globl	example_1
	.type	example_1, @function
example_1:
.LFB8:
	.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
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	QWORD PTR -16[rbp], xmm1
	movsd	xmm0, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC8[rip]
	mov	eax, 2
	call	printf@PLT
	mov	eax, 1
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	example_1, .-example_1
	.section	.rodata
.LC9:
	.string	"calling example 2 %f %f\n"
	.text
	.globl	example_2
	.type	example_2, @function
example_2:
.LFB9:
	.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
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	QWORD PTR -16[rbp], xmm1
	movsd	xmm0, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC9[rip]
	mov	eax, 2
	call	printf@PLT
	mov	eax, 2
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	example_2, .-example_2
	.section	.rodata
.LC10:
	.string	"example 3"
	.text
	.globl	example_3
	.type	example_3, @function
example_3:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC10[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	example_3, .-example_3
	.section	.rodata
.LC11:
	.string	"\n\function pointer stuff\n"
	.text
	.globl	function_pointer_example
	.type	function_pointer_example, @function
function_pointer_example:
.LFB11:
	.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
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rax, example_1[rip]
	mov	QWORD PTR -16[rbp], rax
	lea	rax, example_3[rip]
	mov	QWORD PTR -8[rbp], rax
	movsd	xmm0, QWORD PTR .LC12[rip]
	mov	rax, QWORD PTR .LC13[rip]
	mov	rdx, QWORD PTR -16[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	rdx
	mov	DWORD PTR -24[rbp], eax
	movsd	xmm0, QWORD PTR .LC12[rip]
	mov	rax, QWORD PTR .LC13[rip]
	mov	rdx, QWORD PTR -16[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	rdx
	mov	DWORD PTR -20[rbp], eax
	mov	rdx, QWORD PTR -8[rbp]
	mov	eax, 0
	call	rdx
	lea	rax, example_2[rip]
	mov	QWORD PTR -16[rbp], rax
	movsd	xmm0, QWORD PTR .LC12[rip]
	mov	rax, QWORD PTR .LC13[rip]
	mov	rdx, QWORD PTR -16[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	rdx
	mov	DWORD PTR -24[rbp], eax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	function_pointer_example, .-function_pointer_example
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	function_pointer_example
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1076953088
	.align 8
.LC12:
	.long	0
	.long	1075576832
	.align 8
.LC13:
	.long	0
	.long	1079017472
	.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	"833317.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012\012void pointer stuff\012\000"
	.align	2
.LC1:
	.ascii	"double value: %f\012\000"
	.align	2
.LC2:
	.ascii	"int value: %d\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	void_pointer_example
	.syntax unified
	.arm
	.fpu softvfp
	.type	void_pointer_example, %function
void_pointer_example:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	ldr	r3, .L3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L3+4
	bl	puts
	mov	r3, #77
	str	r3, [fp, #-48]
	mov	r2, #0
	ldr	r3, .L3+8
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	sub	r3, fp, #48
	str	r3, [fp, #-44]
	sub	r3, fp, #28
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r0, .L3+12
	bl	printf
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	ldr	r1, [fp, #-32]
	ldr	r0, .L3+16
	bl	printf
	nop
	ldr	r3, .L3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L2
	bl	__stack_chk_fail
.L2:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC3
	.word	.LC0
	.word	1076953088
	.word	.LC1
	.word	.LC2
	.size	void_pointer_example, .-void_pointer_example
	.section	.rodata
	.align	2
.LC4:
	.ascii	"\012\012malloc stuff\012\000"
	.align	2
.LC5:
	.ascii	"data %d %d %d %d\012\000"
	.align	2
.LC6:
	.ascii	"unsafely accessing data out of bounds %d\012\000"
	.align	2
.LC7:
	.ascii	"unsafely accessing data after free %d %d %d %d\012\000"
	.text
	.align	2
	.global	malloc_example
	.syntax unified
	.arm
	.fpu softvfp
	.type	malloc_example, %function
malloc_example:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r0, .L9
	bl	puts
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L6
	mov	r0, #77
	bl	exit
.L6:
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L7
.L8:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	add	r2, r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L7:
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	ble	.L8
	ldr	r3, [fp, #-8]
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #8
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #12
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L9+4
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L9+8
	bl	printf
	ldr	r0, [fp, #-12]
	bl	free
	ldr	r3, [fp, #-8]
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #8
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #12
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L9+12
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	malloc_example, .-malloc_example
	.section	.rodata
	.align	2
.LC8:
	.ascii	"calling example 1 %f %f\012\000"
	.text
	.align	2
	.global	example_1
	.syntax unified
	.arm
	.fpu softvfp
	.type	example_1, %function
example_1:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldr	r0, .L13
	bl	printf
	mov	r3, #1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC8
	.size	example_1, .-example_1
	.section	.rodata
	.align	2
.LC9:
	.ascii	"calling example 2 %f %f\012\000"
	.text
	.align	2
	.global	example_2
	.syntax unified
	.arm
	.fpu softvfp
	.type	example_2, %function
example_2:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldr	r0, .L17
	bl	printf
	mov	r3, #2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC9
	.size	example_2, .-example_2
	.section	.rodata
	.align	2
.LC10:
	.ascii	"example 3\000"
	.text
	.align	2
	.global	example_3
	.syntax unified
	.arm
	.fpu softvfp
	.type	example_3, %function
example_3:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L20
	bl	puts
	nop
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC10
	.size	example_3, .-example_3
	.section	.rodata
	.align	2
.LC11:
	.ascii	"\012\014unction pointer stuff\012\000"
	.text
	.align	2
	.global	function_pointer_example
	.syntax unified
	.arm
	.fpu softvfp
	.type	function_pointer_example, %function
function_pointer_example:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	ldr	r0, .L23
	bl	puts
	ldr	r3, .L23+4
	str	r3, [fp, #-28]
	ldr	r3, .L23+8
	str	r3, [fp, #-24]
	ldr	r4, [fp, #-28]
	mov	r2, #0
	ldr	r3, .L23+12
	mov	r0, #0
	ldr	r1, .L23+16
	blx	r4
	str	r0, [fp, #-20]
	ldr	r4, [fp, #-28]
	mov	r2, #0
	ldr	r3, .L23+12
	mov	r0, #0
	ldr	r1, .L23+16
	blx	r4
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-24]
	blx	r3
	ldr	r3, .L23+20
	str	r3, [fp, #-28]
	ldr	r4, [fp, #-28]
	mov	r2, #0
	ldr	r3, .L23+12
	mov	r0, #0
	ldr	r1, .L23+16
	blx	r4
	str	r0, [fp, #-20]
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC11
	.word	example_1
	.word	example_3
	.word	1075576832
	.word	1079017472
	.word	example_2
	.size	function_pointer_example, .-function_pointer_example
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	function_pointer_example
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
