	.file	"841266.c"
	.intel_syntax noprefix
	.text
	.globl	getChar
	.type	getChar, @function
getChar:
.LFB0:
	.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 -8[rbp], 8712
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	getChar, .-getChar
	.globl	getActive
	.type	getActive, @function
getActive:
.LFB1:
	.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 -8[rbp], 8708
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	and	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	getActive, .-getActive
	.globl	hasChar
	.type	hasChar, @function
hasChar:
.LFB2:
	.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 -8[rbp], 8704
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	and	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	hasChar, .-hasChar
	.globl	updateSev
	.type	updateSev, @function
updateSev:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -8[rbp], 8448
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	updateSev, .-updateSev
	.globl	updateLed
	.type	updateLed, @function
updateLed:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -8[rbp], 8192
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	updateLed, .-updateLed
	.globl	main
	.type	main, @function
main:
.LFB5:
	.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 -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	mov	eax, 0
	call	getActive
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	updateLed
	mov	DWORD PTR -16[rbp], 0
	jmp	.L12
.L13:
	add	DWORD PTR -16[rbp], 1
.L12:
	cmp	DWORD PTR -16[rbp], 39999999
	jle	.L13
	mov	DWORD PTR -8[rbp], 0
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	updateLed
	mov	DWORD PTR -16[rbp], 0
	jmp	.L14
.L15:
	add	DWORD PTR -16[rbp], 1
.L14:
	cmp	DWORD PTR -16[rbp], 79999
	jle	.L15
.L23:
	mov	DWORD PTR -8[rbp], 0
	mov	eax, 0
	call	hasChar
	add	eax, eax
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	updateLed
	cmp	DWORD PTR -8[rbp], 2
	jne	.L16
	mov	eax, 0
	call	getChar
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	updateSev
	mov	DWORD PTR -16[rbp], 0
	jmp	.L17
.L20:
	mov	eax, 0
	call	hasChar
	add	eax, eax
	or	ah, -128
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	updateLed
	mov	DWORD PTR -12[rbp], 0
	jmp	.L18
.L19:
	add	DWORD PTR -12[rbp], 1
.L18:
	cmp	DWORD PTR -12[rbp], 799
	jle	.L19
	add	DWORD PTR -16[rbp], 1
.L17:
	cmp	DWORD PTR -16[rbp], 39999999
	jle	.L20
	mov	DWORD PTR -4[rbp], 0
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	updateSev
.L16:
	mov	DWORD PTR -16[rbp], 0
	jmp	.L21
.L22:
	add	DWORD PTR -16[rbp], 1
.L21:
	cmp	DWORD PTR -16[rbp], 799
	jle	.L22
	jmp	.L23
	.cfi_endproc
.LFE5:
	.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	"841266.c"
	.text
	.align	2
	.global	getChar
	.syntax unified
	.arm
	.fpu softvfp
	.type	getChar, %function
getChar:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	ldr	r3, .L3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L4:
	.align	2
.L3:
	.word	8712
	.size	getChar, .-getChar
	.align	2
	.global	getActive
	.syntax unified
	.arm
	.fpu softvfp
	.type	getActive, %function
getActive:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	ldr	r3, .L7
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	and	r3, r3, #1
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L8:
	.align	2
.L7:
	.word	8708
	.size	getActive, .-getActive
	.align	2
	.global	hasChar
	.syntax unified
	.arm
	.fpu softvfp
	.type	hasChar, %function
hasChar:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, #8704
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	and	r3, r3, #1
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	hasChar, .-hasChar
	.align	2
	.global	updateSev
	.syntax unified
	.arm
	.fpu softvfp
	.type	updateSev, %function
updateSev:
	@ 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, #8448
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	updateSev, .-updateSev
	.align	2
	.global	updateLed
	.syntax unified
	.arm
	.fpu softvfp
	.type	updateLed, %function
updateLed:
	@ 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, #8192
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	updateLed, .-updateLed
	.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	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	bl	getActive
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	updateLed
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L16
.L17:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L16:
	ldr	r3, [fp, #-20]
	ldr	r2, .L28
	cmp	r3, r2
	ble	.L17
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	updateLed
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L18
.L19:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L18:
	ldr	r3, [fp, #-20]
	ldr	r2, .L28+4
	cmp	r3, r2
	ble	.L19
.L27:
	mov	r3, #0
	str	r3, [fp, #-12]
	bl	hasChar
	mov	r3, r0
	lsl	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	updateLed
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	bne	.L20
	bl	getChar
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	updateSev
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L21
.L24:
	bl	hasChar
	mov	r3, r0
	lsl	r3, r3, #1
	orr	r3, r3, #32768
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	updateLed
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L22
.L23:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L22:
	ldr	r3, [fp, #-16]
	cmp	r3, #800
	blt	.L23
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L21:
	ldr	r3, [fp, #-20]
	ldr	r2, .L28
	cmp	r3, r2
	ble	.L24
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	updateSev
.L20:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L25
.L26:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L25:
	ldr	r3, [fp, #-20]
	cmp	r3, #800
	blt	.L26
	b	.L27
.L29:
	.align	2
.L28:
	.word	39999999
	.word	79999
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
