	.file	"387458.c"
	.intel_syntax noprefix
	.text
	.globl	stack
	.bss
	.align 32
	.type	stack, @object
	.size	stack, 256
stack:
	.zero	256
	.globl	top
	.data
	.align 4
	.type	top, @object
	.size	top, 4
top:
	.long	-1
	.section	.rodata
.LC0:
	.string	"stack is full"
	.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
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR top[rip]
	cmp	eax, 62
	jg	.L2
	mov	eax, DWORD PTR top[rip]
	add	eax, 1
	mov	DWORD PTR top[rip], eax
	mov	eax, DWORD PTR top[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, stack[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	jmp	.L4
.L2:
	lea	rdi, .LC0[rip]
	call	puts@PLT
.L4:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	push, .-push
	.section	.rodata
.LC1:
	.string	"stack is empty"
	.text
	.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
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], -2147483648
	mov	eax, DWORD PTR top[rip]
	test	eax, eax
	js	.L6
	mov	eax, DWORD PTR top[rip]
	lea	edx, -1[rax]
	mov	DWORD PTR top[rip], edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, stack[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L7
.L6:
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L7:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	pop, .-pop
	.globl	peek
	.type	peek, @function
peek:
.LFB2:
	.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	DWORD PTR -4[rbp], -2147483648
	mov	eax, DWORD PTR top[rip]
	test	eax, eax
	js	.L10
	mov	eax, DWORD PTR top[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, stack[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L11
.L10:
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L11:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	peek, .-peek
	.globl	size
	.type	size, @function
size:
.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 top[rip]
	add	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	size, .-size
	.section	.rodata
.LC2:
	.string	"the_stack_data/387458.c"
.LC3:
	.string	"2 == pop()"
.LC4:
	.string	"1 == pop()"
.LC5:
	.string	"INT_MIN == pop()"
.LC6:
	.string	"3 == pop()"
	.text
	.globl	test
	.type	test, @function
test:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 1
	call	push
	mov	edi, 2
	call	push
	mov	eax, 0
	call	pop
	cmp	eax, 2
	je	.L16
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 53
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L16:
	mov	eax, 0
	call	pop
	cmp	eax, 1
	je	.L17
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 54
	lea	rsi, .LC2[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L17:
	mov	eax, 0
	call	pop
	cmp	eax, -2147483648
	je	.L18
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 55
	lea	rsi, .LC2[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L18:
	mov	edi, 3
	call	push
	mov	eax, 0
	call	pop
	cmp	eax, 3
	je	.L19
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 57
	lea	rsi, .LC2[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L19:
	mov	eax, 0
	call	pop
	cmp	eax, -2147483648
	je	.L21
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 58
	lea	rsi, .LC2[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L21:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	test, .-test
	.section	.rodata
.LC7:
	.string	"peek: %d\n"
.LC8:
	.string	"pop : %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB5:
	.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
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -4[rbp], 0
	mov	eax, 0
	call	test
	mov	edi, 1
	call	push
	mov	edi, 2
	call	push
	mov	edi, 3
	call	push
	mov	edi, 4
	call	push
	mov	edi, 5
	call	push
	mov	edi, 6
	call	push
	mov	edi, 7
	call	push
	mov	edi, 8
	call	push
	mov	eax, 0
	call	peek
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	pop
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	pop
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	pop
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	pop
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	pop
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 70
	call	push
	mov	edi, 80
	call	push
	mov	eax, 0
	call	pop
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	pop
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	pop
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	pop
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	pop
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	pop
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"test"
	.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	"387458.c"
	.text
	.comm	stack,256,4
	.global	top
	.data
	.align	2
	.type	top, %object
	.size	top, 4
top:
	.word	-1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"stack is full\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, #-8]
	ldr	r3, .L5
	ldr	r3, [r3]
	cmp	r3, #62
	bgt	.L2
	ldr	r3, .L5
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L5
	str	r3, [r2]
	ldr	r3, .L5
	ldr	r3, [r3]
	ldr	r1, .L5+4
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	b	.L4
.L2:
	ldr	r0, .L5+8
	bl	puts
.L4:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	top
	.word	stack
	.word	.LC0
	.size	push, .-push
	.section	.rodata
	.align	2
.LC1:
	.ascii	"stack is empty\000"
	.text
	.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
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #-2147483648
	str	r3, [fp, #-8]
	ldr	r3, .L11
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L8
	ldr	r3, .L11
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r1, .L11
	str	r2, [r1]
	ldr	r2, .L11+4
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
	b	.L9
.L8:
	ldr	r0, .L11+8
	bl	puts
.L9:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	top
	.word	stack
	.word	.LC1
	.size	pop, .-pop
	.align	2
	.global	peek
	.syntax unified
	.arm
	.fpu softvfp
	.type	peek, %function
peek:
	@ 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	r3, #-2147483648
	str	r3, [fp, #-8]
	ldr	r3, .L17
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L14
	ldr	r3, .L17
	ldr	r3, [r3]
	ldr	r2, .L17+4
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
	b	.L15
.L14:
	ldr	r0, .L17+8
	bl	puts
.L15:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	top
	.word	stack
	.word	.LC1
	.size	peek, .-peek
	.align	2
	.global	size
	.syntax unified
	.arm
	.fpu softvfp
	.type	size, %function
size:
	@ 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, .L21
	ldr	r3, [r3]
	add	r3, r3, #1
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L22:
	.align	2
.L21:
	.word	top
	.size	size, .-size
	.section	.rodata
	.align	2
.LC2:
	.ascii	"the_stack_data/387458.c\000"
	.align	2
.LC3:
	.ascii	"2 == pop()\000"
	.align	2
.LC4:
	.ascii	"1 == pop()\000"
	.align	2
.LC5:
	.ascii	"INT_MIN == pop()\000"
	.align	2
.LC6:
	.ascii	"3 == pop()\000"
	.text
	.align	2
	.global	test
	.syntax unified
	.arm
	.fpu softvfp
	.type	test, %function
test:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #1
	bl	push
	mov	r0, #2
	bl	push
	bl	pop
	mov	r3, r0
	cmp	r3, #2
	beq	.L24
	ldr	r3, .L30
	mov	r2, #53
	ldr	r1, .L30+4
	ldr	r0, .L30+8
	bl	__assert_fail
.L24:
	bl	pop
	mov	r3, r0
	cmp	r3, #1
	beq	.L25
	ldr	r3, .L30
	mov	r2, #54
	ldr	r1, .L30+4
	ldr	r0, .L30+12
	bl	__assert_fail
.L25:
	bl	pop
	mov	r3, r0
	cmp	r3, #-2147483648
	beq	.L26
	ldr	r3, .L30
	mov	r2, #55
	ldr	r1, .L30+4
	ldr	r0, .L30+16
	bl	__assert_fail
.L26:
	mov	r0, #3
	bl	push
	bl	pop
	mov	r3, r0
	cmp	r3, #3
	beq	.L27
	ldr	r3, .L30
	mov	r2, #57
	ldr	r1, .L30+4
	ldr	r0, .L30+20
	bl	__assert_fail
.L27:
	bl	pop
	mov	r3, r0
	cmp	r3, #-2147483648
	beq	.L29
	ldr	r3, .L30
	mov	r2, #58
	ldr	r1, .L30+4
	ldr	r0, .L30+16
	bl	__assert_fail
.L29:
	nop
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	__PRETTY_FUNCTION__.4627
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	test, .-test
	.section	.rodata
	.align	2
.LC7:
	.ascii	"peek: %d\012\000"
	.align	2
.LC8:
	.ascii	"pop : %d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	bl	test
	mov	r0, #1
	bl	push
	mov	r0, #2
	bl	push
	mov	r0, #3
	bl	push
	mov	r0, #4
	bl	push
	mov	r0, #5
	bl	push
	mov	r0, #6
	bl	push
	mov	r0, #7
	bl	push
	mov	r0, #8
	bl	push
	bl	peek
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L34
	bl	printf
	bl	pop
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L34+4
	bl	printf
	bl	pop
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L34+4
	bl	printf
	bl	pop
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L34+4
	bl	printf
	bl	pop
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L34+4
	bl	printf
	bl	pop
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L34+4
	bl	printf
	mov	r0, #70
	bl	push
	mov	r0, #80
	bl	push
	bl	pop
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L34+4
	bl	printf
	bl	pop
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L34+4
	bl	printf
	bl	pop
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L34+4
	bl	printf
	bl	pop
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L34+4
	bl	printf
	bl	pop
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L34+4
	bl	printf
	bl	pop
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L34+4
	bl	printf
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.4627, %object
	.size	__PRETTY_FUNCTION__.4627, 5
__PRETTY_FUNCTION__.4627:
	.ascii	"test\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
