	.file	"104827333.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"clubs"
.LC1:
	.string	"spades"
.LC2:
	.string	"diamonds"
.LC3:
	.string	"hearts"
.LC4:
	.string	"Two"
.LC5:
	.string	"Three"
.LC6:
	.string	"Four"
.LC7:
	.string	"Five"
.LC8:
	.string	"Six"
.LC9:
	.string	"Seven"
.LC10:
	.string	"Eigth"
.LC11:
	.string	"Nine"
.LC12:
	.string	"Ten"
.LC13:
	.string	"Jack"
.LC14:
	.string	"Queen"
.LC15:
	.string	"King"
.LC16:
	.string	"Ace"
	.align 8
.LC17:
	.string	"Enter number of cards in hand: "
.LC18:
	.string	"%d"
.LC19:
	.string	"----Your hand----"
.LC20:
	.string	"%s of %s\n"
	.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, 224
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	DWORD PTR -128[rbp], 0
	lea	rax, .LC0[rip]
	mov	QWORD PTR -208[rbp], rax
	lea	rax, .LC1[rip]
	mov	QWORD PTR -200[rbp], rax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -192[rbp], rax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -184[rbp], rax
	lea	rax, .LC4[rip]
	mov	QWORD PTR -112[rbp], rax
	lea	rax, .LC5[rip]
	mov	QWORD PTR -104[rbp], rax
	lea	rax, .LC6[rip]
	mov	QWORD PTR -96[rbp], rax
	lea	rax, .LC7[rip]
	mov	QWORD PTR -88[rbp], rax
	lea	rax, .LC8[rip]
	mov	QWORD PTR -80[rbp], rax
	lea	rax, .LC9[rip]
	mov	QWORD PTR -72[rbp], rax
	lea	rax, .LC10[rip]
	mov	QWORD PTR -64[rbp], rax
	lea	rax, .LC11[rip]
	mov	QWORD PTR -56[rbp], rax
	lea	rax, .LC12[rip]
	mov	QWORD PTR -48[rbp], rax
	lea	rax, .LC13[rip]
	mov	QWORD PTR -40[rbp], rax
	lea	rax, .LC14[rip]
	mov	QWORD PTR -32[rbp], rax
	lea	rax, .LC15[rip]
	mov	QWORD PTR -24[rbp], rax
	lea	rax, .LC16[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -220[rbp]
	mov	rsi, rax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC19[rip]
	call	puts@PLT
	jmp	.L2
.L3:
	call	rand@PLT
	cdq
	shr	edx, 30
	add	eax, edx
	and	eax, 3
	sub	eax, edx
	mov	DWORD PTR -216[rbp], eax
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1321528399
	shr	rax, 32
	sar	eax, 2
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	DWORD PTR -212[rbp], eax
	mov	ecx, DWORD PTR -212[rbp]
	mov	eax, ecx
	add	eax, eax
	add	eax, ecx
	sal	eax, 2
	add	eax, ecx
	sub	edx, eax
	mov	DWORD PTR -212[rbp], edx
	mov	eax, DWORD PTR -212[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -216[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rbp
	add	rax, rcx
	sub	rax, 176
	movzx	eax, BYTE PTR [rax]
	xor	eax, 1
	test	al, al
	je	.L2
	mov	eax, DWORD PTR -212[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -216[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rbp
	add	rax, rcx
	sub	rax, 176
	mov	BYTE PTR [rax], 1
	mov	eax, DWORD PTR -220[rbp]
	sub	eax, 1
	mov	DWORD PTR -220[rbp], eax
	mov	eax, DWORD PTR -216[rbp]
	cdqe
	mov	rdx, QWORD PTR -208[rbp+rax*8]
	mov	eax, DWORD PTR -212[rbp]
	cdqe
	mov	rax, QWORD PTR -112[rbp+rax*8]
	mov	rsi, rax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
.L2:
	mov	eax, DWORD PTR -220[rbp]
	test	eax, eax
	jg	.L3
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"104827333.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"clubs\000"
	.align	2
.LC1:
	.ascii	"spades\000"
	.align	2
.LC2:
	.ascii	"diamonds\000"
	.align	2
.LC3:
	.ascii	"hearts\000"
	.align	2
.LC5:
	.ascii	"Two\000"
	.align	2
.LC6:
	.ascii	"Three\000"
	.align	2
.LC7:
	.ascii	"Four\000"
	.align	2
.LC8:
	.ascii	"Five\000"
	.align	2
.LC9:
	.ascii	"Six\000"
	.align	2
.LC10:
	.ascii	"Seven\000"
	.align	2
.LC11:
	.ascii	"Eigth\000"
	.align	2
.LC12:
	.ascii	"Nine\000"
	.align	2
.LC13:
	.ascii	"Ten\000"
	.align	2
.LC14:
	.ascii	"Jack\000"
	.align	2
.LC15:
	.ascii	"Queen\000"
	.align	2
.LC16:
	.ascii	"King\000"
	.align	2
.LC17:
	.ascii	"Ace\000"
	.text
	.section	.rodata
	.align	2
.LC21:
	.ascii	"Enter number of cards in hand: \000"
	.align	2
.LC22:
	.ascii	"%d\000"
	.align	2
.LC23:
	.ascii	"----Your hand----\000"
	.align	2
.LC24:
	.ascii	"%s of %s\012\000"
	.align	2
.LC19:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.align	2
.LC20:
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.align	2
.LC25:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #112
	mov	r2, #52
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L6+4
	sub	ip, fp, #128
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, .L6+8
	sub	ip, fp, #60
	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}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	ldr	r0, .L6+12
	bl	printf
	sub	r3, fp, #140
	mov	r1, r3
	ldr	r0, .L6+16
	bl	__isoc99_scanf
	ldr	r0, .L6+20
	bl	puts
	b	.L2
.L3:
	bl	rand
	mov	r3, r0
	rsbs	r2, r3, #0
	and	r3, r3, #3
	and	r2, r2, #3
	rsbpl	r3, r2, #0
	str	r3, [fp, #-136]
	bl	rand
	mov	r2, r0
	ldr	r3, .L6+24
	smull	r1, r3, r2, r3
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	sub	r3, r2, r3
	str	r3, [fp, #-132]
	ldr	r2, [fp, #-136]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-132]
	add	r3, r2, r3
	sub	r3, r3, #108
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L2
	ldr	r2, [fp, #-136]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-132]
	add	r3, r2, r3
	sub	r3, r3, #108
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, [fp, #-140]
	sub	r3, r3, #1
	str	r3, [fp, #-140]
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r1, [r3, #-56]
	ldr	r3, [fp, #-136]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-124]
	mov	r2, r3
	ldr	r0, .L6+28
	bl	printf
.L2:
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	bgt	.L3
	mov	r3, #0
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC25
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	1321528399
	.word	.LC24
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
