	.file	"258552.c"
	.intel_syntax noprefix
	.text
	.globl	getseq
	.type	getseq, @function
getseq:
.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 -24[rbp], rdi
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 4
	jmp	.L2
.L9:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 116
	je	.L10
	cmp	eax, 116
	jg	.L4
	cmp	eax, 104
	je	.L5
	cmp	eax, 104
	jg	.L4
	cmp	eax, 72
	je	.L5
	cmp	eax, 84
	je	.L10
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -4[rbp]
	or	DWORD PTR -8[rbp], eax
	jmp	.L6
.L4:
	mov	eax, -1
	jmp	.L7
.L10:
	nop
.L6:
	sar	DWORD PTR -4[rbp]
.L2:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L8
	cmp	DWORD PTR -4[rbp], 0
	jne	.L9
.L8:
	mov	eax, DWORD PTR -8[rbp]
.L7:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getseq, .-getseq
	.globl	printseq
	.type	printseq, @function
printseq:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -4[rbp], 2
	jmp	.L12
.L15:
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	and	eax, 1
	test	eax, eax
	je	.L13
	mov	eax, 104
	jmp	.L14
.L13:
	mov	eax, 116
.L14:
	mov	edi, eax
	call	putchar@PLT
	sub	DWORD PTR -4[rbp], 1
.L12:
	cmp	DWORD PTR -4[rbp], 0
	jns	.L15
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	printseq, .-printseq
	.section	.rodata
	.align 8
.LC0:
	.string	"Enter your sequence of %d (h/t): "
.LC1:
	.string	"%3s"
	.align 8
.LC2:
	.string	"Please enter only h/t characters: "
	.text
	.globl	getuser
	.type	getuser, @function
getuser:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 3
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L20:
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 1
	je	.L17
	mov	edi, 1
	call	exit@PLT
.L17:
	lea	rax, -12[rbp]
	mov	rdi, rax
	call	getseq
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], -1
	je	.L18
	mov	eax, DWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L21
	jmp	.L22
.L18:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L20
.L22:
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	getuser, .-getuser
	.section	.rodata
.LC3:
	.string	"Computers sequence of %d is: "
	.text
	.globl	getai
	.type	getai, @function
getai:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	esi, 3
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -20[rbp], -1
	jne	.L24
	call	rand@PLT
	and	eax, 7
	mov	DWORD PTR -4[rbp], eax
	jmp	.L25
.L24:
	mov	eax, DWORD PTR -20[rbp]
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	not	eax
	add	eax, eax
	and	eax, 4
	or	eax, edx
	mov	DWORD PTR -4[rbp], eax
.L25:
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	printseq
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	getai, .-getai
	.section	.rodata
.LC4:
	.string	"Tossed sequence: "
.LC5:
	.string	"\nUser wins!"
.LC6:
	.string	"\nAi wins!"
	.text
	.globl	rungame
	.type	rungame, @function
rungame:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	call	rand@PLT
	and	eax, 7
	mov	DWORD PTR -20[rbp], eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	printseq
.L33:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jne	.L28
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L29
.L28:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jne	.L30
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L29
.L30:
	mov	eax, DWORD PTR -20[rbp]
	add	eax, eax
	and	eax, 6
	mov	ebx, eax
	call	rand@PLT
	and	eax, 1
	or	eax, ebx
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	and	eax, 1
	test	eax, eax
	je	.L31
	mov	eax, 104
	jmp	.L32
.L31:
	mov	eax, 116
.L32:
	mov	edi, eax
	call	putchar@PLT
	jmp	.L33
.L29:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	rungame, .-rungame
	.section	.rodata
	.align 8
.LC7:
	.string	"You have won %d out of %d games\n"
	.align 8
.LC8:
	.string	"================================="
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.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	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
.L37:
	mov	DWORD PTR -8[rbp], -1
	mov	DWORD PTR -4[rbp], -1
	mov	edi, 10
	call	putchar@PLT
	call	rand@PLT
	and	eax, 1
	test	eax, eax
	je	.L35
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	getai
	mov	DWORD PTR -4[rbp], eax
	call	getuser
	mov	DWORD PTR -8[rbp], eax
	jmp	.L36
.L35:
	call	getuser
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	getai
	mov	DWORD PTR -4[rbp], eax
.L36:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, edx
	mov	edi, eax
	call	rungame
	add	DWORD PTR -16[rbp], eax
	add	DWORD PTR -12[rbp], 1
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	jmp	.L37
	.cfi_endproc
.LFE11:
	.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	"258552.c"
	.text
	.align	2
	.global	getseq
	.syntax unified
	.arm
	.fpu softvfp
	.type	getseq, %function
getseq:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #4
	str	r3, [fp, #-8]
	b	.L2
.L9:
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #116
	beq	.L10
	cmp	r3, #116
	bgt	.L4
	cmp	r3, #104
	beq	.L5
	cmp	r3, #104
	bgt	.L4
	cmp	r3, #72
	beq	.L5
	cmp	r3, #84
	beq	.L10
	b	.L4
.L5:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	orr	r3, r2, r3
	str	r3, [fp, #-12]
	b	.L6
.L4:
	mvn	r3, #0
	b	.L7
.L10:
	nop
.L6:
	ldr	r3, [fp, #-8]
	asr	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L9
.L8:
	ldr	r3, [fp, #-12]
.L7:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	getseq, .-getseq
	.align	2
	.global	printseq
	.syntax unified
	.arm
	.fpu softvfp
	.type	printseq, %function
printseq:
	@ 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, #2
	str	r3, [fp, #-8]
	b	.L12
.L15:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	asr	r3, r2, r3
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L13
	mov	r3, #104
	b	.L14
.L13:
	mov	r3, #116
.L14:
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L12:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L15
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	printseq, .-printseq
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter your sequence of %d (h/t): \000"
	.align	2
.LC1:
	.ascii	"%3s\000"
	.align	2
.LC2:
	.ascii	"Please enter only h/t characters: \000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getuser
	.syntax unified
	.arm
	.fpu softvfp
	.type	getuser, %function
getuser:
	@ 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, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #3
	ldr	r0, .L23+4
	bl	printf
.L20:
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L23+8
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L17
	mov	r0, #1
	bl	exit
.L17:
	sub	r3, fp, #12
	mov	r0, r3
	bl	getseq
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	beq	.L18
	ldr	r3, [fp, #-16]
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	b	.L22
.L18:
	ldr	r0, .L23+12
	bl	printf
	b	.L20
.L22:
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	getuser, .-getuser
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Computers sequence of %d is: \000"
	.text
	.align	2
	.global	getai
	.syntax unified
	.arm
	.fpu softvfp
	.type	getai, %function
getai:
	@ 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	r1, #3
	ldr	r0, .L29
	bl	printf
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L26
	bl	rand
	mov	r3, r0
	and	r3, r3, #7
	str	r3, [fp, #-8]
	b	.L27
.L26:
	ldr	r3, [fp, #-16]
	asr	r2, r3, #1
	ldr	r3, [fp, #-16]
	mvn	r3, r3
	lsl	r3, r3, #1
	and	r3, r3, #4
	orr	r3, r2, r3
	str	r3, [fp, #-8]
.L27:
	ldr	r0, [fp, #-8]
	bl	printseq
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC4
	.size	getai, .-getai
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Tossed sequence: \000"
	.align	2
.LC6:
	.ascii	"\012User wins!\000"
	.align	2
.LC7:
	.ascii	"\012Ai wins!\000"
	.text
	.align	2
	.global	rungame
	.syntax unified
	.arm
	.fpu softvfp
	.type	rungame, %function
rungame:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	bl	rand
	mov	r3, r0
	and	r3, r3, #7
	str	r3, [fp, #-16]
	ldr	r0, .L38
	bl	printf
	ldr	r0, [fp, #-16]
	bl	printseq
.L37:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bne	.L32
	ldr	r0, .L38+4
	bl	puts
	mov	r3, #1
	b	.L33
.L32:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bne	.L34
	ldr	r0, .L38+8
	bl	puts
	mov	r3, #0
	b	.L33
.L34:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	and	r4, r3, #6
	bl	rand
	mov	r3, r0
	and	r3, r3, #1
	orr	r3, r4, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L35
	mov	r3, #104
	b	.L36
.L35:
	mov	r3, #116
.L36:
	mov	r0, r3
	bl	putchar
	b	.L37
.L33:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L39:
	.align	2
.L38:
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	rungame, .-rungame
	.section	.rodata
	.align	2
.LC8:
	.ascii	"You have won %d out of %d games\012\000"
	.align	2
.LC9:
	.ascii	"=================================\000"
	.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
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
.L43:
	mvn	r3, #0
	str	r3, [fp, #-12]
	mvn	r3, #0
	str	r3, [fp, #-8]
	mov	r0, #10
	bl	putchar
	bl	rand
	mov	r3, r0
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L41
	ldr	r0, [fp, #-12]
	bl	getai
	str	r0, [fp, #-8]
	bl	getuser
	str	r0, [fp, #-12]
	b	.L42
.L41:
	bl	getuser
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	getai
	str	r0, [fp, #-8]
.L42:
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	rungame
	mov	r2, r0
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-20]
	ldr	r0, .L44
	bl	printf
	ldr	r0, .L44+4
	bl	puts
	b	.L43
.L45:
	.align	2
.L44:
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
