	.file	"381549.c"
	.intel_syntax noprefix
	.text
	.globl	set_rand_seed
	.type	set_rand_seed, @function
set_rand_seed:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	set_rand_seed, .-set_rand_seed
	.section	.rodata
.LC0:
	.string	"\033[32m1) Heads."
.LC1:
	.string	"\033[32m2) Tails."
.LC2:
	.string	"\033[32mHeads or Tails: "
.LC3:
	.string	"%d"
.LC4:
	.string	"\033[32mHeads"
.LC5:
	.string	"\033[32m:)"
.LC6:
	.string	"\033[32mSorry Pal"
.LC7:
	.string	"\033[32mTails"
	.align 8
.LC8:
	.string	"\033[31mERROR: handling for Letter (or values of 0 or less) input not implemented yet, exiting!"
	.text
	.globl	flip
	.type	flip, @function
flip:
.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	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	call	rand@PLT
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	mov	DWORD PTR -12[rbp], eax
	add	DWORD PTR -12[rbp], 1
	cmp	DWORD PTR -12[rbp], 1
	jne	.L3
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 1
	jne	.L3
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L3:
	cmp	DWORD PTR -12[rbp], 1
	jne	.L5
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 2
	jne	.L5
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L5:
	cmp	DWORD PTR -12[rbp], 2
	jne	.L6
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 2
	jne	.L6
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L6:
	cmp	DWORD PTR -12[rbp], 2
	jne	.L4
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 1
	jne	.L4
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L4:
	mov	eax, DWORD PTR -16[rbp]
	test	eax, eax
	jne	.L7
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 2
	call	exit@PLT
.L7:
	mov	edi, 10
	call	putchar@PLT
	nop
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	flip, .-flip
	.section	.rodata
.LC9:
	.string	"\033[32m1) Yes."
.LC10:
	.string	"\033[32m2) No."
.LC11:
	.string	"\033[32mFlip Again: "
.LC12:
	.string	"\033[32m\nGoodbye!"
	.text
	.globl	main
	.type	main, @function
main:
.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	eax, 0
	call	set_rand_seed
	mov	eax, 0
	call	flip
	mov	BYTE PTR -13[rbp], 1
	mov	DWORD PTR -12[rbp], 0
	jmp	.L10
.L13:
	mov	DWORD PTR -12[rbp], 0
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	jne	.L11
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 2
	call	exit@PLT
.L11:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 1
	jne	.L12
	mov	eax, 0
	call	flip
	jmp	.L10
.L12:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 2
	jne	.L10
	mov	BYTE PTR -13[rbp], 0
.L10:
	cmp	BYTE PTR -13[rbp], 0
	jne	.L13
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"381549.c"
	.text
	.align	2
	.global	set_rand_seed
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_rand_seed, %function
set_rand_seed:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	nop
	mov	r0, r3
	pop	{fp, pc}
	.size	set_rand_seed, .-set_rand_seed
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\033[32m1) Heads.\000"
	.align	2
.LC1:
	.ascii	"\033[32m2) Tails.\000"
	.align	2
.LC2:
	.ascii	"\033[32mHeads or Tails: \000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.ascii	"\033[32mHeads\000"
	.align	2
.LC5:
	.ascii	"\033[32m:)\000"
	.align	2
.LC6:
	.ascii	"\033[32mSorry Pal\000"
	.align	2
.LC7:
	.ascii	"\033[32mTails\000"
	.align	2
.LC8:
	.ascii	"\033[31mERROR: handling for Letter (or values of 0 "
	.ascii	"or less) input not implemented yet, exiting!\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	flip
	.syntax unified
	.arm
	.fpu softvfp
	.type	flip, %function
flip:
	@ 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, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r0, .L9+4
	bl	puts
	ldr	r0, .L9+8
	bl	puts
	ldr	r0, .L9+12
	bl	printf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L9+16
	bl	__isoc99_scanf
	bl	rand
	mov	r3, r0
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L3
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L3
	ldr	r0, .L9+20
	bl	puts
	ldr	r0, .L9+24
	bl	printf
	b	.L4
.L3:
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L5
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bne	.L5
	ldr	r0, .L9+20
	bl	puts
	ldr	r0, .L9+28
	bl	printf
	b	.L4
.L5:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	bne	.L6
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bne	.L6
	ldr	r0, .L9+32
	bl	puts
	ldr	r0, .L9+24
	bl	printf
	b	.L4
.L6:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	bne	.L4
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L4
	ldr	r0, .L9+32
	bl	puts
	ldr	r0, .L9+28
	bl	printf
.L4:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L9+36
	bl	printf
	mov	r0, #2
	bl	exit
.L7:
	mov	r0, #10
	bl	putchar
	nop
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	flip, .-flip
	.section	.rodata
	.align	2
.LC10:
	.ascii	"\033[32m1) Yes.\000"
	.align	2
.LC11:
	.ascii	"\033[32m2) No.\000"
	.align	2
.LC12:
	.ascii	"\033[32mFlip Again: \000"
	.align	2
.LC13:
	.ascii	"\033[32m\012Goodbye!\000"
	.align	2
.LC14:
	.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, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	set_rand_seed
	bl	flip
	mov	r3, #1
	strb	r3, [fp, #-13]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L12
.L15:
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r0, .L18+4
	bl	puts
	ldr	r0, .L18+8
	bl	puts
	ldr	r0, .L18+12
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L18+16
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L13
	ldr	r0, .L18+20
	bl	printf
	mov	r0, #2
	bl	exit
.L13:
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L14
	bl	flip
	b	.L12
.L14:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	bne	.L12
	mov	r3, #0
	strb	r3, [fp, #-13]
.L12:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L15
	ldr	r0, .L18+24
	bl	printf
	mov	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC14
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC3
	.word	.LC8
	.word	.LC13
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
