	.file	"45449099.c"
	.intel_syntax noprefix
	.text
	.globl	main
	.type	main, @function
main:
.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], 1
	jmp	.L2
.L3:
	mov	eax, 0
	call	dealCard
	mov	DWORD PTR -4[rbp], eax
.L2:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L3
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.string	"Input card name (X for exit): "
.LC1:
	.string	"%2s"
.LC2:
	.string	" (error)"
.LC3:
	.string	""
.LC4:
	.string	"Card's value is %i%s\n"
.LC5:
	.string	"Chance to win counter: %i\n"
	.text
	.globl	dealCard
	.type	dealCard, @function
dealCard:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -16[rbp], 0
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rax, -11[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -11[rbp]
	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	.L9
	cmp	eax, 65
	jl	.L7
	sub	eax, 74
	cmp	eax, 1
	ja	.L7
.L8:
	mov	DWORD PTR -16[rbp], 10
	jmp	.L10
.L9:
	mov	DWORD PTR -16[rbp], 11
	jmp	.L10
.L6:
	mov	eax, 0
	jmp	.L17
.L7:
	lea	rax, -11[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 10
	jg	.L12
	cmp	DWORD PTR -16[rbp], 1
	jg	.L10
.L12:
	mov	DWORD PTR -16[rbp], 0
.L10:
	cmp	DWORD PTR -16[rbp], 9
	jle	.L13
	mov	eax, DWORD PTR count.0[rip]
	add	eax, 1
	mov	DWORD PTR count.0[rip], eax
	jmp	.L14
.L13:
	cmp	DWORD PTR -16[rbp], 2
	jle	.L14
	cmp	DWORD PTR -16[rbp], 6
	jg	.L14
	mov	eax, DWORD PTR count.0[rip]
	sub	eax, 1
	mov	DWORD PTR count.0[rip], eax
.L14:
	cmp	DWORD PTR -16[rbp], 0
	jne	.L15
	lea	rax, .LC2[rip]
	jmp	.L16
.L15:
	lea	rax, .LC3[rip]
.L16:
	mov	ecx, DWORD PTR -16[rbp]
	mov	rdx, rax
	mov	esi, ecx
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR count.0[rip]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
.L17:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	dealCard, .-dealCard
	.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	"45449099.c"
	.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	r3, #1
	str	r3, [fp, #-8]
	b	.L2
.L3:
	bl	dealCard
	str	r0, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L3
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Input card name (X for exit): \000"
	.align	2
.LC1:
	.ascii	"%2s\000"
	.align	2
.LC2:
	.ascii	" (error)\000"
	.align	2
.LC3:
	.ascii	"\000"
	.align	2
.LC4:
	.ascii	"Card's value is %i%s\012\000"
	.align	2
.LC5:
	.ascii	"Chance to win counter: %i\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	dealCard
	.syntax unified
	.arm
	.fpu softvfp
	.type	dealCard, %function
dealCard:
	@ 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, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r0, .L20+4
	bl	puts
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L20+8
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	sub	r3, r3, #65
	cmp	r3, #23
	ldrls	pc, [pc, r3, asl #2]
	b	.L6
.L8:
	.word	.L10
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L9
	.word	.L9
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L9
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L7
.L9:
	mov	r3, #10
	str	r3, [fp, #-16]
	b	.L11
.L10:
	mov	r3, #11
	str	r3, [fp, #-16]
	b	.L11
.L7:
	mov	r3, #0
	b	.L18
.L6:
	sub	r3, fp, #12
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #10
	bgt	.L13
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bgt	.L11
.L13:
	mov	r3, #0
	str	r3, [fp, #-16]
.L11:
	ldr	r3, [fp, #-16]
	cmp	r3, #9
	ble	.L14
	ldr	r3, .L20+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L20+12
	str	r3, [r2]
	b	.L15
.L14:
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	ble	.L15
	ldr	r3, [fp, #-16]
	cmp	r3, #6
	bgt	.L15
	ldr	r3, .L20+12
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L20+12
	str	r3, [r2]
.L15:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L16
	ldr	r3, .L20+16
	b	.L17
.L16:
	ldr	r3, .L20+20
.L17:
	mov	r2, r3
	ldr	r1, [fp, #-16]
	ldr	r0, .L20+24
	bl	printf
	ldr	r3, .L20+12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L20+28
	bl	printf
	mov	r3, #1
.L18:
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	count.5125
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	dealCard, .-dealCard
	.local	count.5125
	.comm	count.5125,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
