	.file	"477792.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC1:
	.string	"BG"
.LC2:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -128[rbp]
	mov	eax, 0
	mov	ecx, 15
	mov	rdi, rdx
	rep stosq
	mov	DWORD PTR -128[rbp], 1
	movss	xmm0, DWORD PTR .LC0[rip]
	movss	DWORD PTR -124[rbp], xmm0
	mov	WORD PTR -120[rbp], 18242
	mov	DWORD PTR -116[rbp], 2
	movss	xmm0, DWORD PTR .LC0[rip]
	movss	DWORD PTR -112[rbp], xmm0
	mov	WORD PTR -108[rbp], 20037
	mov	DWORD PTR -104[rbp], 3
	movss	xmm0, DWORD PTR .LC0[rip]
	movss	DWORD PTR -100[rbp], xmm0
	mov	WORD PTR -96[rbp], 17732
	mov	DWORD PTR -92[rbp], 4
	movss	xmm0, DWORD PTR .LC0[rip]
	movss	DWORD PTR -88[rbp], xmm0
	mov	WORD PTR -84[rbp], 18242
	mov	DWORD PTR -80[rbp], 5
	movss	xmm0, DWORD PTR .LC0[rip]
	movss	DWORD PTR -76[rbp], xmm0
	mov	WORD PTR -72[rbp], 18242
	lea	rax, -128[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	how_many_available
	mov	DWORD PTR -132[rbp], eax
	mov	eax, DWORD PTR -132[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	is_game_available
	.type	is_game_available, @function
is_game_available:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rcx, rdi
	mov	eax, esi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -16[rbp], rcx
	mov	DWORD PTR -8[rbp], eax
	movzx	edx, BYTE PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L5
	movzx	edx, BYTE PTR -7[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L5
	mov	eax, 1
	jmp	.L6
.L5:
	mov	eax, 0
.L6:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	is_game_available, .-is_game_available
	.globl	how_many_available
	.type	how_many_available, @function
how_many_available:
.LFB2:
	.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	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L8
.L12:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L14
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR 8[rax]
	mov	rdi, rcx
	mov	esi, eax
	call	is_game_available
	test	eax, eax
	je	.L11
	add	DWORD PTR -8[rbp], 1
.L11:
	add	DWORD PTR -4[rbp], 1
.L8:
	cmp	DWORD PTR -4[rbp], 9
	jle	.L12
	jmp	.L10
.L14:
	nop
.L10:
	mov	eax, DWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	how_many_available, .-how_many_available
	.section	.rodata
	.align 4
.LC0:
	.long	1073741824
	.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	"477792.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"BG\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #128
	mov	r2, #120
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	str	r3, [fp, #-128]
	mov	r3, #1073741824
	str	r3, [fp, #-124]	@ float
	ldr	r3, .L4+4
	strh	r3, [fp, #-120]	@ movhi
	mov	r3, #2
	str	r3, [fp, #-116]
	mov	r3, #1073741824
	str	r3, [fp, #-112]	@ float
	ldr	r3, .L4+8
	strh	r3, [fp, #-108]	@ movhi
	mov	r3, #3
	str	r3, [fp, #-104]
	mov	r3, #1073741824
	str	r3, [fp, #-100]	@ float
	ldr	r3, .L4+12
	strh	r3, [fp, #-96]	@ movhi
	mov	r3, #4
	str	r3, [fp, #-92]
	mov	r3, #1073741824
	str	r3, [fp, #-88]	@ float
	ldr	r3, .L4+4
	strh	r3, [fp, #-84]	@ movhi
	mov	r3, #5
	str	r3, [fp, #-80]
	mov	r3, #1073741824
	str	r3, [fp, #-76]	@ float
	ldr	r3, .L4+4
	strh	r3, [fp, #-72]	@ movhi
	sub	r3, fp, #128
	ldr	r1, .L4+16
	mov	r0, r3
	bl	how_many_available
	str	r0, [fp, #-132]
	ldr	r1, [fp, #-132]
	ldr	r0, .L4+20
	bl	printf
	mov	r3, #0
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC2
	.word	18242
	.word	20037
	.word	17732
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.align	2
	.global	is_game_available
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_game_available, %function
is_game_available:
	@ 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
	sub	ip, fp, #16
	stm	ip, {r0, r1, r2}
	str	r3, [fp, #-20]
	ldrb	r2, [fp, #-8]	@ zero_extendqisi2
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L7
	ldrb	r2, [fp, #-7]	@ zero_extendqisi2
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L7
	mov	r3, #1
	b	.L8
.L7:
	mov	r3, #0
.L8:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	is_game_available, .-is_game_available
	.align	2
	.global	how_many_available
	.syntax unified
	.arm
	.fpu softvfp
	.type	how_many_available, %function
how_many_available:
	@ 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]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L10
.L14:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L16
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r2, r3, r2
	ldr	r3, [fp, #-20]
	ldm	r2, {r0, r1, r2}
	bl	is_game_available
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L13:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L10:
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	ble	.L14
	b	.L12
.L16:
	nop
.L12:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	how_many_available, .-how_many_available
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
