	.file	"785131.c"
	.intel_syntax noprefix
	.text
	.globl	s_top
	.bss
	.align 8
	.type	s_top, @object
	.size	s_top, 8
s_top:
	.zero	8
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 4096
s:
	.zero	4096
	.text
	.globl	stack_empty
	.type	stack_empty, @function
stack_empty:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR s_top[rip]
	test	rax, rax
	jne	.L2
	mov	eax, 1
	jmp	.L3
.L2:
	mov	eax, 0
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	stack_empty, .-stack_empty
	.section	.rodata
	.align 8
.LC0:
	.string	"Could not retrieve data, 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
	call	stack_empty
	test	ax, ax
	jne	.L5
	mov	rax, QWORD PTR s_top[rip]
	lea	rdx, 0[0+rax*4]
	lea	rax, s[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR s_top[rip]
	sub	rax, 1
	mov	QWORD PTR s_top[rip], rax
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L4
.L5:
	lea	rdi, .LC0[rip]
	call	puts@PLT
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	pop, .-pop
	.globl	push
	.type	push, @function
push:
.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 -4[rbp], edi
	mov	rax, QWORD PTR s_top[rip]
	add	rax, 1
	mov	QWORD PTR s_top[rip], rax
	mov	rax, QWORD PTR s_top[rip]
	lea	rcx, 0[0+rax*4]
	lea	rdx, s[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	push, .-push
	.section	.rodata
.LC1:
	.string	"pushing %d\n"
.LC2:
	.string	"pop %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, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -48[rbp], 52
	mov	DWORD PTR -44[rbp], -29
	mov	DWORD PTR -40[rbp], 36
	mov	DWORD PTR -36[rbp], 65
	mov	DWORD PTR -32[rbp], 72
	mov	DWORD PTR -28[rbp], 10
	mov	DWORD PTR -24[rbp], 55
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -16[rbp], 43
	mov	DWORD PTR -12[rbp], 59
	mov	QWORD PTR -56[rbp], 0
	jmp	.L9
.L10:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -48[rbp+rax*4]
	mov	edi, eax
	call	push
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -48[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	QWORD PTR -56[rbp], 1
.L9:
	cmp	QWORD PTR -56[rbp], 10
	jne	.L10
	jmp	.L11
.L12:
	mov	eax, 0
	call	pop
	mov	DWORD PTR -60[rbp], eax
	mov	eax, DWORD PTR -60[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L11:
	call	stack_empty
	test	ax, ax
	je	.L12
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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	"785131.c"
	.text
	.global	s_top
	.bss
	.align	2
	.type	s_top, %object
	.size	s_top, 4
s_top:
	.space	4
	.comm	s,4096,4
	.text
	.align	2
	.global	stack_empty
	.syntax unified
	.arm
	.fpu softvfp
	.type	stack_empty, %function
stack_empty:
	@ 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, .L4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
	mov	r3, #1
	b	.L3
.L2:
	mov	r3, #0
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L5:
	.align	2
.L4:
	.word	s_top
	.size	stack_empty, .-stack_empty
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Could not retrieve data, 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
	bl	stack_empty
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L9
	ldr	r3, [r3]
	ldr	r2, .L9+4
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
	ldr	r3, .L9
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L9
	str	r3, [r2]
	ldr	r3, [fp, #-8]
	b	.L6
.L7:
	ldr	r0, .L9+8
	bl	puts
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	s_top
	.word	s
	.word	.LC1
	.size	pop, .-pop
	.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
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, .L12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L12
	str	r3, [r2]
	ldr	r3, .L12
	ldr	r3, [r3]
	ldr	r1, .L12+4
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	nop
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L13:
	.align	2
.L12:
	.word	s_top
	.word	s
	.size	push, .-push
	.section	.rodata
	.align	2
.LC2:
	.ascii	"pushing %d\012\000"
	.align	2
.LC3:
	.ascii	"pop %d\012\000"
	.align	2
.LC0:
	.word	52
	.word	-29
	.word	36
	.word	65
	.word	72
	.word	10
	.word	55
	.word	0
	.word	43
	.word	59
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L21+4
	sub	ip, fp, #48
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L15
.L16:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	mov	r0, r3
	bl	push
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	mov	r1, r3
	ldr	r0, .L21+8
	bl	printf
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L15:
	ldr	r3, [fp, #-56]
	cmp	r3, #10
	bne	.L16
	b	.L17
.L18:
	bl	pop
	str	r0, [fp, #-52]
	ldr	r1, [fp, #-52]
	ldr	r0, .L21+12
	bl	printf
.L17:
	bl	stack_empty
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	mov	r3, #0
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC4
	.word	.LC0
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
