	.file	"60577.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC1:
	.string	"pushed: %g\n"
.LC4:
	.string	"pop: %g\n"
.LC5:
	.string	"peek: %g\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, 16
	mov	rax, QWORD PTR .LC0[rip]
	movq	xmm0, rax
	call	push
	mov	rax, QWORD PTR .LC0[rip]
	movq	xmm0, rax
	lea	rdi, .LC1[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR .LC2[rip]
	movq	xmm0, rax
	call	push
	mov	rax, QWORD PTR .LC2[rip]
	movq	xmm0, rax
	lea	rdi, .LC1[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR .LC3[rip]
	movq	xmm0, rax
	call	push
	mov	rax, QWORD PTR .LC3[rip]
	movq	xmm0, rax
	lea	rdi, .LC1[rip]
	mov	eax, 1
	call	printf@PLT
	call	pop
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movq	xmm0, rax
	lea	rdi, .LC4[rip]
	mov	eax, 1
	call	printf@PLT
	call	peek
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movq	xmm0, rax
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
	call	peek
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movq	xmm0, rax
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
	call	pop
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movq	xmm0, rax
	lea	rdi, .LC4[rip]
	mov	eax, 1
	call	printf@PLT
	call	peek
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movq	xmm0, rax
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	sp
	.bss
	.align 4
	.type	sp, @object
	.size	sp, 4
sp:
	.zero	4
	.globl	val
	.align 32
	.type	val, @object
	.size	val, 800
val:
	.zero	800
	.section	.rodata
	.align 8
.LC6:
	.string	"error: stack full, can't push %g\n"
	.text
	.globl	push
	.type	push, @function
push:
.LFB1:
	.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
	mov	eax, DWORD PTR sp[rip]
	cmp	eax, 99
	jg	.L4
	mov	eax, DWORD PTR sp[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR sp[rip], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, val[rip]
	movsd	xmm0, QWORD PTR -8[rbp]
	movsd	QWORD PTR [rdx+rax], xmm0
	jmp	.L6
.L4:
	mov	rax, QWORD PTR -8[rbp]
	movq	xmm0, rax
	lea	rdi, .LC6[rip]
	mov	eax, 1
	call	printf@PLT
.L6:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	push, .-push
	.section	.rodata
.LC7:
	.string	"stack empty"
	.text
	.globl	pop
	.type	pop, @function
pop:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR sp[rip]
	test	eax, eax
	jle	.L8
	mov	eax, DWORD PTR sp[rip]
	sub	eax, 1
	mov	DWORD PTR sp[rip], eax
	mov	eax, DWORD PTR sp[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, val[rip]
	movsd	xmm0, QWORD PTR [rdx+rax]
	jmp	.L9
.L8:
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	pxor	xmm0, xmm0
.L9:
	movq	rax, xmm0
	movq	xmm0, rax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	pop, .-pop
	.globl	peek
	.type	peek, @function
peek:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR sp[rip]
	test	eax, eax
	jle	.L11
	mov	eax, DWORD PTR sp[rip]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, val[rip]
	movsd	xmm0, QWORD PTR [rdx+rax]
	jmp	.L12
.L11:
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	pxor	xmm0, xmm0
.L12:
	movq	rax, xmm0
	movq	xmm0, rax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	peek, .-peek
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1074266112
	.align 8
.LC2:
	.long	1717986918
	.long	1073112678
	.align 8
.LC3:
	.long	-1717986918
	.long	1075419545
	.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	"60577.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"pushed: %g\012\000"
	.align	2
.LC1:
	.ascii	"pop: %g\012\000"
	.align	2
.LC2:
	.ascii	"peek: %g\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r0, #0
	ldr	r1, .L3
	bl	push
	mov	r2, #0
	ldr	r3, .L3
	ldr	r0, .L3+4
	bl	printf
	ldr	r0, .L3+8
	ldr	r1, .L3+12
	bl	push
	ldr	r2, .L3+8
	ldr	r3, .L3+12
	ldr	r0, .L3+4
	bl	printf
	ldr	r0, .L3+16
	ldr	r1, .L3+20
	bl	push
	ldr	r2, .L3+16
	ldr	r3, .L3+20
	ldr	r0, .L3+4
	bl	printf
	bl	pop
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldr	r0, .L3+24
	bl	printf
	bl	peek
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldr	r0, .L3+28
	bl	printf
	bl	peek
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldr	r0, .L3+28
	bl	printf
	bl	pop
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldr	r0, .L3+24
	bl	printf
	bl	peek
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldr	r0, .L3+28
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	1074266112
	.word	.LC0
	.word	1717986918
	.word	1073112678
	.word	-1717986918
	.word	1075419545
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.global	sp
	.bss
	.align	2
	.type	sp, %object
	.size	sp, 4
sp:
	.space	4
	.comm	val,800,8
	.section	.rodata
	.align	2
.LC3:
	.ascii	"error: stack full, can't push %g\012\000"
	.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
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	ldr	r3, .L9
	ldr	r3, [r3]
	cmp	r3, #99
	bgt	.L6
	ldr	r3, .L9
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L9
	str	r2, [r1]
	ldr	r2, .L9+4
	lsl	r3, r3, #3
	add	r1, r2, r3
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	b	.L8
.L6:
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldr	r0, .L9+8
	bl	printf
.L8:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	sp
	.word	val
	.word	.LC3
	.size	push, .-push
	.section	.rodata
	.align	2
.LC4:
	.ascii	"stack empty\000"
	.text
	.align	2
	.global	pop
	.syntax unified
	.arm
	.fpu softvfp
	.type	pop, %function
pop:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L14
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L12
	ldr	r3, .L14
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L14
	str	r3, [r2]
	ldr	r3, .L14
	ldr	r3, [r3]
	ldr	r2, .L14+4
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	b	.L13
.L12:
	ldr	r0, .L14+8
	bl	printf
	mov	r2, #0
	mov	r3, #0
.L13:
	mov	r0, r2
	mov	r1, r3
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	sp
	.word	val
	.word	.LC4
	.size	pop, .-pop
	.align	2
	.global	peek
	.syntax unified
	.arm
	.fpu softvfp
	.type	peek, %function
peek:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L19
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L17
	ldr	r3, .L19
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L19+4
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	b	.L18
.L17:
	ldr	r0, .L19+8
	bl	printf
	mov	r2, #0
	mov	r3, #0
.L18:
	mov	r0, r2
	mov	r1, r3
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	sp
	.word	val
	.word	.LC4
	.size	peek, .-peek
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
