	.file	"192329487.c"
	.intel_syntax noprefix
	.text
	.globl	STACK_FULL
	.type	STACK_FULL, @function
STACK_FULL:
.LFB6:
	.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	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	sub	eax, 1
	cmp	edx, eax
	jne	.L2
	mov	eax, 1
	jmp	.L3
.L2:
	mov	eax, 0
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	STACK_FULL, .-STACK_FULL
	.globl	PUSH
	.type	PUSH, @function
PUSH:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	STACK_FULL
	test	eax, eax
	jne	.L6
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR -12[rbp]
	mov	DWORD PTR 8[rax+rdx*4], ecx
.L6:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	PUSH, .-PUSH
	.section	.rodata
.LC0:
	.string	"-1"
.LC1:
	.string	"%d\n"
	.text
	.globl	POP
	.type	POP, @function
POP:
.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
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, -1
	jne	.L8
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L10
.L8:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR 8[rax+rdx*4]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
.L10:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	POP, .-POP
	.section	.rodata
.LC2:
	.string	"1"
	.text
	.globl	STACK_EMPTY
	.type	STACK_EMPTY, @function
STACK_EMPTY:
.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
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, -1
	jne	.L12
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L14
.L12:
	lea	rdi, .LC2[rip]
	call	puts@PLT
.L14:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	STACK_EMPTY, .-STACK_EMPTY
	.section	.rodata
.LC3:
	.string	"%d"
.LC4:
	.string	"%c"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -36864[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 3168
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -40020[rbp], 0
	mov	DWORD PTR -40016[rbp], -1
	lea	rax, -40016[rbp]
	add	rax, 4
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L16
.L21:
	lea	rax, -40025[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -40025[rbp]
	movsx	eax, al
	cmp	eax, 116
	je	.L17
	cmp	eax, 116
	jg	.L16
	cmp	eax, 105
	je	.L18
	cmp	eax, 105
	jg	.L16
	cmp	eax, 100
	je	.L19
	cmp	eax, 101
	je	.L20
	jmp	.L16
.L18:
	lea	rax, -40024[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -40024[rbp]
	lea	rax, -40016[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	PUSH
	jmp	.L16
.L19:
	lea	rax, -40016[rbp]
	mov	rdi, rax
	call	POP
	jmp	.L16
.L20:
	lea	rax, -40016[rbp]
	mov	rdi, rax
	call	STACK_EMPTY
	jmp	.L16
.L17:
	add	DWORD PTR -40020[rbp], 1
.L16:
	cmp	DWORD PTR -40020[rbp], 0
	jle	.L21
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"192329487.c"
	.text
	.align	2
	.global	STACK_FULL
	.syntax unified
	.arm
	.fpu softvfp
	.type	STACK_FULL, %function
STACK_FULL:
	@ 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, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	sub	r3, r3, #1
	cmp	r2, r3
	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
	.size	STACK_FULL, .-STACK_FULL
	.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]
	str	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	STACK_FULL
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r2, r2, #2
	ldr	r1, [fp, #-12]
	str	r1, [r3, r2, lsl #2]
.L6:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	PUSH, .-PUSH
	.section	.rodata
	.align	2
.LC0:
	.ascii	"-1\000"
	.align	2
.LC1:
	.ascii	"%d\012\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
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L8
	ldr	r0, .L11
	bl	puts
	b	.L10
.L8:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r2, r2, #2
	ldr	r3, [r3, r2, lsl #2]
	mov	r1, r3
	ldr	r0, .L11+4
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3]
.L10:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	.LC1
	.size	POP, .-POP
	.section	.rodata
	.align	2
.LC2:
	.ascii	"1\000"
	.text
	.align	2
	.global	STACK_EMPTY
	.syntax unified
	.arm
	.fpu softvfp
	.type	STACK_EMPTY, %function
STACK_EMPTY:
	@ 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, [fp, #-8]
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L14
	ldr	r0, .L17
	bl	puts
	b	.L16
.L14:
	ldr	r0, .L17+4
	bl	puts
.L16:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	.LC2
	.size	STACK_EMPTY, .-STACK_EMPTY
	.section	.rodata
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.ascii	"%c\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40024
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #39936
	sub	sp, sp, #88
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3152]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	mvn	r3, #0
	str	r3, [r2, #-3148]
	sub	r3, fp, #39936
	sub	r3, r3, #4
	sub	r3, r3, #76
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L30+4
	bl	__isoc99_scanf
	nop
	b	.L21
.L27:
	sub	r3, fp, #39936
	sub	r3, r3, #4
	sub	r3, r3, #85
	mov	r1, r3
	ldr	r0, .L30+8
	bl	__isoc99_scanf
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldrb	r3, [r3, #-3157]	@ zero_extendqisi2
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3152]
	str	r3, [r1, #-3152]
	sub	r3, r2, #100
	cmp	r3, #16
	ldrls	pc, [pc, r3, asl #2]
	b	.L21
.L23:
	.word	.L26
	.word	.L25
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L24
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L22
.L24:
	sub	r3, fp, #39936
	sub	r3, r3, #4
	sub	r3, r3, #84
	mov	r1, r3
	ldr	r0, .L30+4
	bl	__isoc99_scanf
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r2, [r3, #-3156]
	sub	r3, fp, #39936
	sub	r3, r3, #4
	sub	r3, r3, #76
	mov	r1, r2
	mov	r0, r3
	bl	PUSH
	b	.L21
.L26:
	sub	r3, fp, #39936
	sub	r3, r3, #4
	sub	r3, r3, #76
	mov	r0, r3
	bl	POP
	b	.L21
.L25:
	sub	r3, fp, #39936
	sub	r3, r3, #4
	sub	r3, r3, #76
	mov	r0, r3
	bl	STACK_EMPTY
	b	.L21
.L22:
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3152]
	add	r3, r3, #1
	str	r3, [r2, #-3152]
.L21:
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3152]
	cmp	r3, #0
	ble	.L27
	mov	r3, #0
	ldr	r2, .L30
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC5
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
