	.file	"237642847.c"
	.intel_syntax noprefix
	.text
	.globl	HEX
	.data
	.align 8
	.type	HEX, @object
	.size	HEX, 8
HEX:
	.quad	268435488
	.globl	red_LED_ptr
	.align 8
	.type	red_LED_ptr, @object
	.size	red_LED_ptr, 8
red_LED_ptr:
	.quad	268435456
	.globl	green_LED_ptr
	.align 8
	.type	green_LED_ptr, @object
	.size	green_LED_ptr, 8
green_LED_ptr:
	.quad	268435472
	.globl	SW_switch_ptr
	.align 8
	.type	SW_switch_ptr, @object
	.size	SW_switch_ptr, 8
SW_switch_ptr:
	.quad	268435520
	.globl	delay_count
	.bss
	.align 4
	.type	delay_count, @object
	.size	delay_count, 4
delay_count:
	.zero	4
	.globl	KEY_value
	.align 4
	.type	KEY_value, @object
	.size	KEY_value, 4
KEY_value:
	.zero	4
	.globl	KEY_ptr
	.data
	.align 8
	.type	KEY_ptr, @object
	.size	KEY_ptr, 8
KEY_ptr:
	.quad	268435536
	.globl	didStart
	.bss
	.align 2
	.type	didStart, @object
	.size	didStart, 2
didStart:
	.zero	2
	.globl	findWinner
	.align 2
	.type	findWinner, @object
	.size	findWinner, 2
findWinner:
	.zero	2
	.globl	rand1
	.align 4
	.type	rand1, @object
	.size	rand1, 4
rand1:
	.zero	4
	.globl	rand2
	.align 4
	.type	rand2, @object
	.size	rand2, 4
rand2:
	.zero	4
	.globl	rand3
	.align 4
	.type	rand3, @object
	.size	rand3, 4
rand3:
	.zero	4
	.text
	.globl	getRandom
	.type	getRandom, @function
getRandom:
.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 -16[rbp], 7
	mov	eax, 2147483647
	cdq
	idiv	DWORD PTR -16[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	imul	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -8[rbp], eax
.L2:
	call	rand@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jge	.L2
	mov	eax, DWORD PTR -4[rbp]
	cdq
	idiv	DWORD PTR -12[rbp]
	add	eax, 1
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getRandom, .-getRandom
	.globl	binToHex
	.type	binToHex, @function
binToHex:
.LFB7:
	.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 -40[rbp], rdi
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 1
	jmp	.L5
.L6:
	mov	rcx, QWORD PTR -40[rbp]
	movabs	rdx, 7378697629483820647
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 2
	mov	rsi, rcx
	sar	rsi, 63
	sub	rax, rsi
	mov	rdx, rax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	sub	rcx, rax
	mov	rdx, rcx
	mov	QWORD PTR -8[rbp], rdx
	mov	rax, QWORD PTR -8[rbp]
	imul	rax, QWORD PTR -16[rbp]
	add	QWORD PTR -24[rbp], rax
	sal	QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	movabs	rdx, 7378697629483820647
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 2
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	mov	QWORD PTR -40[rbp], rax
.L5:
	cmp	QWORD PTR -40[rbp], 0
	jne	.L6
	mov	rax, QWORD PTR -24[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	binToHex, .-binToHex
	.globl	prepareBinary
	.type	prepareBinary, @function
prepareBinary:
.LFB8:
	.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	rcx, QWORD PTR -24[rbp]
	movabs	rdx, 6189700196426901375
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 25
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	imul	rdx, rax, 100000000
	mov	rax, rcx
	sub	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	prepareBinary, .-prepareBinary
	.globl	combine
	.type	combine, @function
combine:
.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, 56
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	prepareBinary
	mov	rdi, rax
	call	binToHex
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	prepareBinary
	mov	rdi, rax
	call	binToHex
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	prepareBinary
	mov	rdi, rax
	call	binToHex
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	sal	QWORD PTR -8[rbp], 8
	mov	rax, QWORD PTR -24[rbp]
	add	QWORD PTR -8[rbp], rax
	sal	QWORD PTR -8[rbp], 8
	mov	rax, QWORD PTR -16[rbp]
	add	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	combine, .-combine
	.globl	start
	.type	start, @function
start:
.LFB10:
	.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	rax, QWORD PTR SW_switch_ptr[rip]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
	mov	WORD PTR didStart[rip], 1
	movzx	eax, WORD PTR findWinner[rip]
	cmp	ax, 30
	jle	.L13
	cmp	DWORD PTR -12[rbp], 0
	je	.L14
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 56
	mov	rax, QWORD PTR [rax]
	jmp	.L16
.L14:
	mov	eax, DWORD PTR rand1[rip]
	jmp	.L16
.L13:
	mov	eax, 0
	call	getRandom
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
.L16:
	mov	DWORD PTR rand1[rip], eax
	movzx	eax, WORD PTR findWinner[rip]
	cmp	ax, 15
	jle	.L17
	cmp	DWORD PTR -12[rbp], 0
	je	.L18
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 56
	mov	rax, QWORD PTR [rax]
	jmp	.L20
.L18:
	mov	eax, DWORD PTR rand2[rip]
	jmp	.L20
.L17:
	mov	eax, 0
	call	getRandom
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
.L20:
	mov	DWORD PTR rand2[rip], eax
	movzx	eax, WORD PTR findWinner[rip]
	cmp	ax, 1
	jle	.L21
	cmp	DWORD PTR -12[rbp], 0
	je	.L22
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 56
	mov	rax, QWORD PTR [rax]
	jmp	.L24
.L22:
	mov	eax, DWORD PTR rand3[rip]
	jmp	.L24
.L21:
	mov	eax, 0
	call	getRandom
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
.L24:
	mov	DWORD PTR rand3[rip], eax
	mov	eax, DWORD PTR rand3[rip]
	movsx	rdx, eax
	mov	eax, DWORD PTR rand2[rip]
	movsx	rcx, eax
	mov	eax, DWORD PTR rand1[rip]
	cdqe
	mov	rsi, rcx
	mov	rdi, rax
	call	combine
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR HEX[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	movzx	eax, WORD PTR findWinner[rip]
	test	ax, ax
	jle	.L25
	movzx	eax, WORD PTR findWinner[rip]
	add	eax, 1
	mov	WORD PTR findWinner[rip], ax
.L25:
	mov	DWORD PTR delay_count[rip], 2000000
	jmp	.L26
.L27:
	mov	eax, DWORD PTR delay_count[rip]
	sub	eax, 1
	mov	DWORD PTR delay_count[rip], eax
.L26:
	mov	eax, DWORD PTR delay_count[rip]
	test	eax, eax
	jne	.L27
	movzx	eax, WORD PTR findWinner[rip]
	cmp	ax, 30
	jle	.L31
	mov	edx, DWORD PTR rand1[rip]
	mov	eax, DWORD PTR rand2[rip]
	and	edx, eax
	mov	eax, DWORD PTR rand3[rip]
	and	edx, eax
	mov	eax, DWORD PTR rand1[rip]
	cmp	edx, eax
	je	.L29
	cmp	DWORD PTR -12[rbp], 0
	je	.L30
.L29:
	mov	rax, QWORD PTR green_LED_ptr[rip]
	mov	DWORD PTR [rax], 255
	jmp	.L31
.L30:
	mov	rax, QWORD PTR red_LED_ptr[rip]
	mov	DWORD PTR [rax], -1
.L31:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	start, .-start
	.globl	getWinner
	.type	getWinner, @function
getWinner:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	movzx	eax, WORD PTR findWinner[rip]
	test	ax, ax
	jne	.L34
	mov	WORD PTR findWinner[rip], 1
.L34:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	getWinner, .-getWinner
	.globl	restart
	.type	restart, @function
restart:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 24
	mov	QWORD PTR -24[rbp], rdi
	mov	WORD PTR didStart[rip], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
	mov	WORD PTR findWinner[rip], 0
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	mov	rsi, rcx
	mov	rdi, rax
	call	combine
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR HEX[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR green_LED_ptr[rip]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR red_LED_ptr[rip]
	mov	DWORD PTR [rax], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	restart, .-restart
	.globl	main
	.type	main, @function
main:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -96[rbp], 500111111
	mov	QWORD PTR -88[rbp], 500000110
	mov	QWORD PTR -80[rbp], 501011011
	mov	QWORD PTR -72[rbp], 501001111
	mov	QWORD PTR -64[rbp], 501100110
	mov	QWORD PTR -56[rbp], 501101101
	mov	QWORD PTR -48[rbp], 501111101
	mov	QWORD PTR -40[rbp], 500000111
	mov	QWORD PTR -32[rbp], 501111111
	mov	QWORD PTR -24[rbp], 501100111
.L44:
	mov	rax, QWORD PTR KEY_ptr[rip]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR KEY_value[rip], eax
	mov	eax, DWORD PTR KEY_value[rip]
	test	eax, eax
	je	.L37
	mov	eax, DWORD PTR KEY_value[rip]
	cmp	eax, 2
	jne	.L38
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	start
	jmp	.L46
.L38:
	mov	eax, DWORD PTR KEY_value[rip]
	cmp	eax, 4
	jne	.L40
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	restart
	jmp	.L46
.L40:
	mov	eax, DWORD PTR KEY_value[rip]
	cmp	eax, 8
	jne	.L46
	mov	eax, 0
	call	getWinner
.L46:
	nop
.L41:
	mov	rax, QWORD PTR KEY_ptr[rip]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L41
.L37:
	movzx	eax, WORD PTR didStart[rip]
	cmp	ax, 1
	jne	.L42
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	start
	jmp	.L44
.L42:
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	restart
	jmp	.L44
	.cfi_endproc
.LFE13:
	.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	"237642847.c"
	.text
	.global	HEX
	.data
	.align	2
	.type	HEX, %object
	.size	HEX, 4
HEX:
	.word	268435488
	.global	red_LED_ptr
	.align	2
	.type	red_LED_ptr, %object
	.size	red_LED_ptr, 4
red_LED_ptr:
	.word	268435456
	.global	green_LED_ptr
	.align	2
	.type	green_LED_ptr, %object
	.size	green_LED_ptr, 4
green_LED_ptr:
	.word	268435472
	.global	SW_switch_ptr
	.align	2
	.type	SW_switch_ptr, %object
	.size	SW_switch_ptr, 4
SW_switch_ptr:
	.word	268435520
	.comm	delay_count,4,4
	.comm	KEY_value,4,4
	.global	KEY_ptr
	.align	2
	.type	KEY_ptr, %object
	.size	KEY_ptr, 4
KEY_ptr:
	.word	268435536
	.global	didStart
	.bss
	.align	1
	.type	didStart, %object
	.size	didStart, 2
didStart:
	.space	2
	.global	findWinner
	.align	1
	.type	findWinner, %object
	.size	findWinner, 2
findWinner:
	.space	2
	.comm	rand1,4,4
	.comm	rand2,4,4
	.comm	rand3,4,4
	.global	__aeabi_idiv
	.text
	.align	2
	.global	getRandom
	.syntax unified
	.arm
	.fpu softvfp
	.type	getRandom, %function
getRandom:
	@ 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	r3, #7
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-20]
	mvn	r0, #-2147483648
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	mul	r3, r2, r3
	str	r3, [fp, #-12]
.L2:
	bl	rand
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bge	.L2
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	__aeabi_idiv
	mov	r3, r0
	add	r3, r3, #1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	getRandom, .-getRandom
	.align	2
	.global	binToHex
	.syntax unified
	.arm
	.fpu softvfp
	.type	binToHex, %function
binToHex:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L5
.L6:
	ldr	r2, [fp, #-24]
	ldr	r3, .L8
	smull	r1, r3, r2, r3
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	mul	r3, r2, r3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	ldr	r2, .L8
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-24]
.L5:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-16]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L9:
	.align	2
.L8:
	.word	1717986919
	.size	binToHex, .-binToHex
	.align	2
	.global	prepareBinary
	.syntax unified
	.arm
	.fpu softvfp
	.type	prepareBinary, %function
prepareBinary:
	@ 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]
	ldr	r3, [fp, #-16]
	ldr	r2, .L12
	smull	r1, r2, r3, r2
	asr	r1, r2, #25
	asr	r2, r3, #31
	sub	r2, r1, r2
	ldr	r1, .L12+4
	mul	r2, r1, r2
	sub	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L13:
	.align	2
.L12:
	.word	1441151881
	.word	100000000
	.size	prepareBinary, .-prepareBinary
	.align	2
	.global	combine
	.syntax unified
	.arm
	.fpu softvfp
	.type	combine, %function
combine:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #40
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	ldr	r0, [fp, #-48]
	bl	prepareBinary
	mov	r3, r0
	mov	r0, r3
	bl	binToHex
	str	r0, [fp, #-40]
	ldr	r0, [fp, #-52]
	bl	prepareBinary
	mov	r3, r0
	mov	r0, r3
	bl	binToHex
	str	r0, [fp, #-36]
	ldr	r0, [fp, #-56]
	bl	prepareBinary
	mov	r3, r0
	mov	r0, r3
	bl	binToHex
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-40]
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #8
	orr	r3, r3, r0, lsr #24
	lsl	r2, r0, #8
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-36]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	adds	r6, r0, r2
	adc	r7, r1, r3
	str	r6, [fp, #-28]
	str	r7, [fp, #-24]
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #8
	orr	r3, r3, r0, lsr #24
	lsl	r2, r0, #8
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	adds	r4, r0, r2
	adc	r5, r1, r3
	str	r4, [fp, #-28]
	str	r5, [fp, #-24]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
	.size	combine, .-combine
	.align	2
	.global	start
	.syntax unified
	.arm
	.fpu softvfp
	.type	start, %function
start:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L36
	ldr	r3, [r3]
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r3, .L36+4
	mov	r2, #1
	strh	r2, [r3]	@ movhi
	ldr	r3, .L36+8
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	asr	r3, r3, #16
	cmp	r3, #30
	ble	.L17
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-24]
	add	r3, r3, #28
	ldr	r3, [r3]
	b	.L20
.L18:
	ldr	r3, .L36+12
	ldr	r3, [r3]
	b	.L20
.L17:
	bl	getRandom
	mov	r3, r0
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
.L20:
	ldr	r2, .L36+12
	str	r3, [r2]
	ldr	r3, .L36+8
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	asr	r3, r3, #16
	cmp	r3, #15
	ble	.L21
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L22
	ldr	r3, [fp, #-24]
	add	r3, r3, #28
	ldr	r3, [r3]
	b	.L24
.L22:
	ldr	r3, .L36+16
	ldr	r3, [r3]
	b	.L24
.L21:
	bl	getRandom
	mov	r3, r0
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
.L24:
	ldr	r2, .L36+16
	str	r3, [r2]
	ldr	r3, .L36+8
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	asr	r3, r3, #16
	cmp	r3, #1
	ble	.L25
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L26
	ldr	r3, [fp, #-24]
	add	r3, r3, #28
	ldr	r3, [r3]
	b	.L28
.L26:
	ldr	r3, .L36+20
	ldr	r3, [r3]
	b	.L28
.L25:
	bl	getRandom
	mov	r3, r0
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
.L28:
	ldr	r2, .L36+20
	str	r3, [r2]
	ldr	r3, .L36+12
	ldr	r3, [r3]
	ldr	r2, .L36+16
	ldr	r1, [r2]
	ldr	r2, .L36+20
	ldr	r2, [r2]
	mov	r0, r3
	bl	combine
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	ldr	r3, .L36+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, .L36+8
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	asr	r3, r3, #16
	cmp	r3, #0
	ble	.L29
	ldr	r3, .L36+8
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	asr	r3, r3, #16
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	asr	r3, r3, #16
	ldr	r2, .L36+8
	strh	r3, [r2]	@ movhi
.L29:
	ldr	r3, .L36+28
	ldr	r2, .L36+32
	str	r2, [r3]
	b	.L30
.L31:
	ldr	r3, .L36+28
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L36+28
	str	r3, [r2]
.L30:
	ldr	r3, .L36+28
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L31
	ldr	r3, .L36+8
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	asr	r3, r3, #16
	cmp	r3, #30
	ble	.L35
	ldr	r3, .L36+12
	ldr	r2, [r3]
	ldr	r3, .L36+16
	ldr	r3, [r3]
	and	r2, r2, r3
	ldr	r3, .L36+20
	ldr	r3, [r3]
	and	r2, r2, r3
	ldr	r3, .L36+12
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L33
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L34
.L33:
	ldr	r3, .L36+36
	ldr	r3, [r3]
	mov	r2, #255
	str	r2, [r3]
	b	.L35
.L34:
	ldr	r3, .L36+40
	ldr	r3, [r3]
	mvn	r2, #0
	str	r2, [r3]
.L35:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	SW_switch_ptr
	.word	didStart
	.word	findWinner
	.word	rand1
	.word	rand2
	.word	rand3
	.word	HEX
	.word	delay_count
	.word	2000000
	.word	green_LED_ptr
	.word	red_LED_ptr
	.size	start, .-start
	.align	2
	.global	getWinner
	.syntax unified
	.arm
	.fpu softvfp
	.type	getWinner, %function
getWinner:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L41
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	asr	r3, r3, #16
	cmp	r3, #0
	bne	.L40
	ldr	r3, .L41
	mov	r2, #1
	strh	r2, [r3]	@ movhi
.L40:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L42:
	.align	2
.L41:
	.word	findWinner
	.size	getWinner, .-getWinner
	.align	2
	.global	restart
	.syntax unified
	.arm
	.fpu softvfp
	.type	restart, %function
restart:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L44
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r3, .L44+4
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	combine
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	ldr	r3, .L44+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, .L44+12
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L44+16
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L45:
	.align	2
.L44:
	.word	didStart
	.word	findWinner
	.word	HEX
	.word	green_LED_ptr
	.word	red_LED_ptr
	.size	restart, .-restart
	.section	.rodata
	.align	2
.LC0:
	.word	500111111
	.word	500000110
	.word	501011011
	.word	501001111
	.word	501100110
	.word	501101101
	.word	501111101
	.word	500000111
	.word	501111111
	.word	501100111
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	ldr	r3, .L57
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L57+4
	sub	ip, fp, #48
	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}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
.L54:
	ldr	r3, .L57+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	ldr	r2, .L57+12
	str	r3, [r2]
	ldr	r3, .L57+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L47
	ldr	r3, .L57+12
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L48
	sub	r3, fp, #48
	mov	r0, r3
	bl	start
	b	.L56
.L48:
	ldr	r3, .L57+12
	ldr	r3, [r3]
	cmp	r3, #4
	bne	.L50
	sub	r3, fp, #48
	mov	r0, r3
	bl	restart
	b	.L56
.L50:
	ldr	r3, .L57+12
	ldr	r3, [r3]
	cmp	r3, #8
	bne	.L56
	bl	getWinner
.L56:
	nop
.L51:
	ldr	r3, .L57+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L51
.L47:
	ldr	r3, .L57+16
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	asr	r3, r3, #16
	cmp	r3, #1
	bne	.L52
	sub	r3, fp, #48
	mov	r0, r3
	bl	start
	b	.L54
.L52:
	sub	r3, fp, #48
	mov	r0, r3
	bl	restart
	b	.L54
.L58:
	.align	2
.L57:
	.word	.LC1
	.word	.LC0
	.word	KEY_ptr
	.word	KEY_value
	.word	didStart
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
