	.file	"43064.c"
	.intel_syntax noprefix
	.text
	.globl	ring
	.bss
	.align 32
	.type	ring, @object
	.size	ring, 4104
ring:
	.zero	4104
	.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	eax, edi
	mov	BYTE PTR -20[rbp], al
	mov	eax, DWORD PTR ring[rip+4096]
	add	eax, 1
	cdq
	shr	edx, 20
	add	eax, edx
	and	eax, 4095
	sub	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR ring[rip+4100]
	cmp	DWORD PTR -4[rbp], eax
	jne	.L2
	mov	eax, -1
	jmp	.L3
.L2:
	mov	eax, DWORD PTR ring[rip+4096]
	cdqe
	lea	rcx, ring[rip]
	movzx	edx, BYTE PTR -20[rbp]
	mov	BYTE PTR [rax+rcx], dl
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR ring[rip+4096], eax
	mov	eax, 0
.L3:
	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	edx, DWORD PTR ring[rip+4096]
	mov	eax, DWORD PTR ring[rip+4100]
	cmp	edx, eax
	jne	.L5
	mov	eax, -1
	jmp	.L6
.L5:
	mov	eax, DWORD PTR ring[rip+4100]
	cdqe
	lea	rdx, ring[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR ring[rip+4100]
	cdqe
	lea	rdx, ring[rip]
	mov	BYTE PTR [rax+rdx], 0
	mov	eax, DWORD PTR ring[rip+4100]
	add	eax, 1
	cdq
	shr	edx, 20
	add	eax, edx
	and	eax, 4095
	sub	eax, edx
	mov	DWORD PTR ring[rip+4100], eax
	mov	eax, 0
.L6:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	pop, .-pop
	.globl	ring_init
	.type	ring_init, @function
ring_init:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR ring[rip+4096], 0
	mov	DWORD PTR ring[rip+4100], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	ring_init, .-ring_init
	.section	.rodata
.LC0:
	.string	"%d valore inserito: %d\n"
	.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	ring_init
	mov	edi, 10
	call	push
	test	eax, eax
	js	.L19
	mov	edi, 20
	call	push
	test	eax, eax
	js	.L20
	mov	edi, 50
	call	push
	test	eax, eax
	js	.L21
	mov	DWORD PTR -16[rbp], 0
	jmp	.L13
.L15:
	lea	rax, -17[rbp]
	mov	rdi, rax
	call	pop
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jne	.L14
	movzx	eax, BYTE PTR -17[rbp]
	movzx	edx, al
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L14:
	add	DWORD PTR -16[rbp], 1
.L13:
	cmp	DWORD PTR -16[rbp], 2
	jle	.L15
	mov	eax, 0
	jmp	.L17
.L19:
	nop
	jmp	.L10
.L20:
	nop
	jmp	.L10
.L21:
	nop
.L10:
	mov	eax, -1
.L17:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	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	"43064.c"
	.text
	.comm	ring,4104,4
	.align	2
	.global	push
	.syntax unified
	.arm
	.fpu softvfp
	.type	push, %function
push:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	mov	r3, r0
	strb	r3, [fp, #-13]
	ldr	r3, .L4
	add	r3, r3, #4096
	ldr	r3, [r3]
	add	r3, r3, #1
	rsbs	r2, r3, #0
	lsl	r3, r3, #20
	lsr	r3, r3, #20
	lsl	r2, r2, #20
	lsr	r2, r2, #20
	rsbpl	r3, r2, #0
	str	r3, [fp, #-8]
	ldr	r3, .L4
	add	r3, r3, #4096
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L2
	mvn	r3, #0
	b	.L3
.L2:
	ldr	r3, .L4
	add	r3, r3, #4096
	ldr	r3, [r3]
	ldr	r1, .L4
	ldrb	r2, [fp, #-13]
	strb	r2, [r1, r3]
	ldr	r3, .L4
	add	r3, r3, #4096
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	mov	r3, #0
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L5:
	.align	2
.L4:
	.word	ring
	.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, .L9
	add	r3, r3, #4096
	ldr	r2, [r3]
	ldr	r3, .L9
	add	r3, r3, #4096
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bne	.L7
	mvn	r3, #0
	b	.L8
.L7:
	ldr	r3, .L9
	add	r3, r3, #4096
	ldr	r3, [r3, #4]
	ldr	r2, .L9
	ldrb	r2, [r2, r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-8]
	strb	r2, [r3]
	ldr	r3, .L9
	add	r3, r3, #4096
	ldr	r3, [r3, #4]
	ldr	r2, .L9
	mov	r1, #0
	strb	r1, [r2, r3]
	ldr	r3, .L9
	add	r3, r3, #4096
	ldr	r3, [r3, #4]
	add	r3, r3, #1
	rsbs	r2, r3, #0
	lsl	r3, r3, #20
	lsr	r3, r3, #20
	lsl	r2, r2, #20
	lsr	r2, r2, #20
	rsbpl	r3, r2, #0
	ldr	r2, .L9
	add	r2, r2, #4096
	str	r3, [r2, #4]
	mov	r3, #0
.L8:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L10:
	.align	2
.L9:
	.word	ring
	.size	pop, .-pop
	.align	2
	.global	ring_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	ring_init, %function
ring_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L12
	add	r3, r3, #4096
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	ldr	r3, .L12
	add	r3, r3, #4096
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #4]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L13:
	.align	2
.L12:
	.word	ring
	.size	ring_init, .-ring_init
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d valore inserito: %d\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	ring_init
	mov	r0, #10
	bl	push
	mov	r3, r0
	cmp	r3, #0
	blt	.L25
	mov	r0, #20
	bl	push
	mov	r3, r0
	cmp	r3, #0
	blt	.L26
	mov	r0, #50
	bl	push
	mov	r3, r0
	cmp	r3, #0
	blt	.L27
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L19
.L21:
	sub	r3, fp, #17
	mov	r0, r3
	bl	pop
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L20
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, [fp, #-16]
	ldr	r0, .L28+4
	bl	printf
.L20:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L19:
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	ble	.L21
	mov	r3, #0
	b	.L23
.L25:
	nop
	b	.L16
.L26:
	nop
	b	.L16
.L27:
	nop
.L16:
	mvn	r3, #0
.L23:
	ldr	r2, .L28
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC1
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
