	.file	"489861.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Current count: %i\n"
	.text
	.globl	changeCount
	.type	changeCount, @function
changeCount:
.LFB6:
	.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
	cmp	DWORD PTR -4[rbp], 2
	jle	.L2
	cmp	DWORD PTR -4[rbp], 6
	jg	.L2
	mov	eax, DWORD PTR count.0[rip]
	add	eax, 1
	mov	DWORD PTR count.0[rip], eax
	jmp	.L3
.L2:
	cmp	DWORD PTR -4[rbp], 10
	jne	.L3
	mov	eax, DWORD PTR count.0[rip]
	sub	eax, 1
	mov	DWORD PTR count.0[rip], eax
.L3:
	mov	eax, DWORD PTR count.0[rip]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	changeCount, .-changeCount
	.section	.rodata
	.align 8
.LC1:
	.string	"Enter the card name or 'X' to quit: "
.LC2:
	.string	"%2s"
	.text
	.globl	userOutput
	.type	userOutput, @function
userOutput:
.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
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	userOutput, .-userOutput
	.section	.rodata
	.align 8
.LC3:
	.string	"I don't understand that value!"
	.text
	.globl	checkType
	.type	checkType, @function
checkType:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 88
	je	.L6
	cmp	eax, 88
	jg	.L7
	cmp	eax, 81
	je	.L8
	cmp	eax, 81
	jg	.L7
	cmp	eax, 65
	je	.L13
	cmp	eax, 65
	jl	.L7
	sub	eax, 74
	cmp	eax, 1
	ja	.L7
.L8:
	mov	DWORD PTR -4[rbp], 10
	jmp	.L10
.L6:
	mov	DWORD PTR -4[rbp], -1
	jmp	.L10
.L7:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jle	.L11
	cmp	DWORD PTR -4[rbp], 10
	jle	.L10
.L11:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L10
.L13:
	nop
.L10:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	checkType, .-checkType
	.globl	main
	.type	main, @function
main:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L15
.L17:
	lea	rax, -11[rbp]
	mov	rdi, rax
	call	userOutput
	lea	rax, -11[rbp]
	mov	rdi, rax
	call	checkType
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], -1
	jne	.L16
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	changeCount
.L15:
	movzx	eax, BYTE PTR -11[rbp]
	cmp	al, 88
	jne	.L17
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.local	count.0
	.comm	count.0,4,4
	.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	"489861.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Current count: %i\012\000"
	.text
	.align	2
	.global	changeCount
	.syntax unified
	.arm
	.fpu softvfp
	.type	changeCount, %function
changeCount:
	@ 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]
	cmp	r3, #2
	ble	.L2
	ldr	r3, [fp, #-8]
	cmp	r3, #6
	bgt	.L2
	ldr	r3, .L4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L4
	str	r3, [r2]
	b	.L3
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	bne	.L3
	ldr	r3, .L4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L4
	str	r3, [r2]
.L3:
	ldr	r3, .L4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L4+4
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	count.5118
	.word	.LC0
	.size	changeCount, .-changeCount
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Enter the card name or 'X' to quit: \000"
	.align	2
.LC2:
	.ascii	"%2s\000"
	.text
	.align	2
	.global	userOutput
	.syntax unified
	.arm
	.fpu softvfp
	.type	userOutput, %function
userOutput:
	@ 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	r0, .L7
	bl	puts
	ldr	r1, [fp, #-8]
	ldr	r0, .L7+4
	bl	__isoc99_scanf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC1
	.word	.LC2
	.size	userOutput, .-userOutput
	.section	.rodata
	.align	2
.LC3:
	.ascii	"I don't understand that value!\000"
	.text
	.align	2
	.global	checkType
	.syntax unified
	.arm
	.fpu softvfp
	.type	checkType, %function
checkType:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #65
	cmp	r3, #23
	ldrls	pc, [pc, r3, asl #2]
	b	.L10
.L12:
	.word	.L18
	.word	.L10
	.word	.L10
	.word	.L10
	.word	.L10
	.word	.L10
	.word	.L10
	.word	.L10
	.word	.L10
	.word	.L13
	.word	.L13
	.word	.L10
	.word	.L10
	.word	.L10
	.word	.L10
	.word	.L10
	.word	.L13
	.word	.L10
	.word	.L10
	.word	.L10
	.word	.L10
	.word	.L10
	.word	.L10
	.word	.L11
.L13:
	mov	r3, #10
	str	r3, [fp, #-8]
	b	.L15
.L11:
	mvn	r3, #0
	str	r3, [fp, #-8]
	b	.L15
.L10:
	ldr	r0, [fp, #-16]
	bl	atoi
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L16
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	ble	.L15
.L16:
	ldr	r0, .L19
	bl	puts
	b	.L15
.L18:
	nop
.L15:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC3
	.size	checkType, .-checkType
	.section	.rodata
	.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 = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L22
.L24:
	sub	r3, fp, #12
	mov	r0, r3
	bl	userOutput
	sub	r3, fp, #12
	mov	r0, r3
	bl	checkType
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L23
	b	.L22
.L23:
	ldr	r0, [fp, #-16]
	bl	changeCount
.L22:
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L24
	mov	r3, #0
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC4
	.size	main, .-main
	.local	count.5118
	.comm	count.5118,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
