	.cpu arm7tdmi
	.fpu softvfp
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 1
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"main.c"
	.text
	.align	2
	.global	initializeMemory
	.type	initializeMemory, %function
initializeMemory:
	@ Function supports interworking.
	@ 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, .L6
	str	r3, [fp, #-8]
	ldr	r3, .L6+4
	str	r3, [fp, #-12]
	b	.L2
.L3:
	ldr	r3, [fp, #-8]
	ldrb	r2, [r3, #0]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	strb	r2, [r3, #0]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r2, [fp, #-12]
	ldr	r3, .L6+8
	cmp	r2, r3
	bcc	.L3
	ldr	r3, .L6+12
	str	r3, [fp, #-12]
	b	.L4
.L5:
	ldr	r3, [fp, #-12]
	mov	r2, #0
	strb	r2, [r3, #0]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L4:
	ldr	r2, [fp, #-12]
	ldr	r3, .L6+16
	cmp	r2, r3
	bcc	.L5
	add	sp, fp, #0
	ldmfd	sp!, {fp}
	bx	lr
.L7:
	.align	2
.L6:
	.word	etext
	.word	sdata
	.word	edata
	.word	sbss
	.word	ebss
	.size	initializeMemory, .-initializeMemory
	.bss
	.align	2
out:
	.space	4
	.text
	.align	2
	.global	main
	.type	main, %function
main:
	@ Function supports interworking.
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	stmfd	sp!, {fp, lr}
	add	fp, sp, #4
	bl	initializeHardware
	bl	getDipSwitchValue
	mov	r2, r0
	ldr	r3, .L10
	str	r2, [r3, #0]
.L9:
	b	.L9
.L11:
	.align	2
.L10:
	.word	out
	.size	main, .-main
	.align	2
	.global	initializeHardware
	.type	initializeHardware, %function
initializeHardware:
	@ Function supports interworking.
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	stmfd	sp!, {fp, lr}
	add	fp, sp, #4
	ldr	r3, .L13
	ldr	r2, .L13
	ldr	r2, [r2, #0]
	orr	r2, r2, #1
	str	r2, [r3, #0]
	ldr	r3, .L13+4
	mov	r2, #262144
	str	r2, [r3, #0]
	ldr	r3, .L13+4
	mov	r2, #0
	str	r2, [r3, #16]
	ldr	r3, .L13+8
	mov	r2, #0
	str	r2, [r3, #0]
	ldr	r3, .L13+12
	ldr	r2, .L13+16
	str	r2, [r3, #0]
	ldr	r3, .L13+20
	ldr	r2, .L13+16
	str	r2, [r3, #0]
	ldr	r3, .L13+24
	mov	r2, #0
	str	r2, [r3, #0]
	ldr	r3, .L13+28
	mov	r2, #240
	str	r2, [r3, #12]
	ldr	r3, .L13+28
	mov	r2, #48
	str	r2, [r3, #20]
	ldr	r3, .L13+28
	mov	r2, #192
	str	r2, [r3, #16]
	ldr	r3, .L13+32
	ldr	r2, .L13+32
	ldr	r2, [r2, #12]
	bic	r2, r2, #131072
	str	r2, [r3, #12]
	ldr	r3, .L13+32
	ldr	r2, .L13+32
	ldr	r2, [r2, #16]
	orr	r2, r2, #131072
	str	r2, [r3, #16]
	ldr	r3, .L13+36
	ldr	r2, .L13+36
	ldr	r2, [r2, #4]
	orr	r2, r2, #4096
	str	r2, [r3, #4]
	ldr	r3, .L13+40
	ldr	r2, .L13+40
	ldr	r2, [r2, #4]
	bic	r2, r2, #50331648
	orr	r2, r2, #16777216
	str	r2, [r3, #4]
	ldr	r3, .L13+44
	ldr	r2, .L13+44
	ldr	r2, [r2, #4]
	bic	r2, r2, #49152
	orr	r2, r2, #16384
	str	r2, [r3, #4]
	ldr	r1, .L13+48
	ldr	r3, .L13+48
	ldr	r3, [r3, #0]
	ldr	r2, .L13+52
	and	r2, r3, r2
	ldr	r3, .L13+56
	orr	r3, r2, r3
	str	r3, [r1, #0]
	ldr	r3, .L13+40
	ldr	r2, .L13+40
	ldr	r2, [r2, #4]
	bic	r2, r2, #12
	str	r2, [r3, #4]
	ldr	r3, .L13+60
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, .L13+60
	mov	r2, #1000
	str	r2, [r3, #24]
	ldr	r3, .L13+60
	mov	r2, #3
	str	r2, [r3, #20]
	ldr	r3, .L13+60
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, .L13+32
	ldr	r2, .L13+32
	ldr	r2, [r2, #12]
	bic	r2, r2, #16
	str	r2, [r3, #12]
	ldr	r3, .L13+32
	ldr	r2, .L13+32
	ldr	r2, [r2, #16]
	orr	r2, r2, #16
	str	r2, [r3, #16]
	bl	enableInterrupt
	sub	sp, fp, #4
	ldmfd	sp!, {fp, lr}
	bx	lr
.L14:
	.align	2
.L13:
	.word	-534789728
	.word	1073725472
	.word	1073725568
	.word	1073725536
	.word	65535
	.word	1073725504
	.word	1073725440
	.word	-536706944
	.word	-4096
	.word	-534789952
	.word	-534789724
	.word	-536690688
	.word	-536657920
	.word	-2101504
	.word	2101249
	.word	-536854528
	.size	initializeHardware, .-initializeHardware
	.align	2
	.global	getDipSwitchValue
	.type	getDipSwitchValue, %function
getDipSwitchValue:
	@ Function supports interworking.
	@ 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, .L17
	ldr	r3, [r3, #20]
	mvn	r3, r3
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	ldmfd	sp!, {fp}
	bx	lr
.L18:
	.align	2
.L17:
	.word	1073725568
	.size	getDipSwitchValue, .-getDipSwitchValue
	.global	digit7seg
	.data
	.align	2
	.type	digit7seg, %object
	.size	digit7seg, 18
digit7seg:
	.byte	-64
	.byte	-7
	.byte	-92
	.byte	-80
	.byte	-103
	.byte	-110
	.byte	-126
	.byte	-8
	.byte	-128
	.byte	-104
	.byte	-120
	.byte	-125
	.byte	-58
	.byte	-95
	.byte	-122
	.byte	-114
	.byte	127
	.byte	-1
	.text
	.align	2
	.global	put7segLED
	.type	put7segLED, %function
put7segLED:
	@ Function supports interworking.
	@ 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
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L20
	ldr	r3, [fp, #-8]
	cmp	r3, #255
	bgt	.L20
	ldr	r2, .L22
	ldr	r3, [fp, #-8]
	add	r1, r3, #15
	cmp	r3, #0
	movlt	r3, r1
	mov	r3, r3, asr #4
	and	r3, r3, #15
	ldr	r1, .L22+4
	ldrb	r3, [r1, r3]	@ zero_extendqisi2
	str	r3, [r2, #20]
	ldr	r1, .L22+8
	ldr	r2, [fp, #-8]
	mov	r3, r2, asr #31
	mov	r3, r3, lsr #28
	add	r2, r2, r3
	and	r2, r2, #15
	rsb	r3, r3, r2
	ldr	r2, .L22+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	str	r3, [r1, #20]
	b	.L19
.L20:
	ldr	r3, .L22
	mov	r2, #255
	str	r2, [r3, #20]
	ldr	r3, .L22+8
	mov	r2, #255
	str	r2, [r3, #20]
.L19:
	add	sp, fp, #0
	ldmfd	sp!, {fp}
	bx	lr
.L23:
	.align	2
.L22:
	.word	1073725504
	.word	digit7seg
	.word	1073725536
	.size	put7segLED, .-put7segLED
	.align	2
	.global	get7segLED
	.type	get7segLED, %function
get7segLED:
	@ Function supports interworking.
	@ 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, .L27
	ldr	r3, [r3, #20]
	and	r3, r3, #255
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #255
	bne	.L25
	mov	r3, #0
	str	r3, [fp, #-8]
.L25:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	ldmfd	sp!, {fp}
	bx	lr
.L28:
	.align	2
.L27:
	.word	1073725504
	.size	get7segLED, .-get7segLED
	.align	2
	.global	getAD0Value
	.type	getAD0Value, %function
getAD0Value:
	@ Function supports interworking.
	@ 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, .L32
	ldr	r2, .L32
	ldr	r2, [r2, #0]
	bic	r2, r2, #117440512
	orr	r2, r2, #16777216
	str	r2, [r3, #0]
.L30:
	ldr	r3, .L32
	ldr	r3, [r3, #16]
	cmp	r3, #0
	bge	.L30
	ldr	r3, .L32
	ldr	r3, [r3, #16]
	mov	r3, r3, lsr #8
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	ldmfd	sp!, {fp}
	bx	lr
.L33:
	.align	2
.L32:
	.word	-536657920
	.size	getAD0Value, .-getAD0Value
	.bss
	.align	2
state:
	.space	4
	.align	2
waitTimer:
	.space	4
	.text
	.align	2
	.global	timer0Interrupt
	.type	timer0Interrupt, %function
timer0Interrupt:
	@ Function supports interworking.
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	stmfd	sp!, {fp, lr}
	add	fp, sp, #4
	ldr	r3, .L42
	mov	r2, #1
	str	r2, [r3, #0]
	ldr	r3, .L42+4
	ldr	r3, [r3, #0]
	cmp	r3, #0
	ble	.L35
	ldr	r3, .L42+4
	ldr	r3, [r3, #0]
	sub	r2, r3, #1
	ldr	r3, .L42+4
	str	r2, [r3, #0]
.L35:
	ldr	r3, .L42+8
	ldr	r3, [r3, #0]
	ldr	r2, .L42+12
	cmp	r3, r2
	movgt	r2, #0
	movle	r2, #1
	and	r2, r2, #255
	add	r1, r3, #1
	ldr	r3, .L42+8
	str	r1, [r3, #0]
	cmp	r2, #0
	bne	.L41
.L36:
	ldr	r3, .L42+8
	mov	r2, #0
	str	r2, [r3, #0]
	ldr	r3, .L42+16
	ldr	r2, .L42+16
	ldr	r2, [r2, #20]
	eor	r2, r2, #262144
	str	r2, [r3, #20]
	ldr	r3, .L42+20
	ldr	r3, [r3, #0]
	cmp	r3, #0
	beq	.L38
	ldr	r3, .L42+24
	ldr	r3, [r3, #0]
	mov	r2, r3
	add	r1, r3, #1
	ldr	r3, .L42+24
	str	r1, [r3, #0]
	mov	r0, r2
	bl	put7segLED
	b	.L39
.L38:
	bl	get7segLED
	mov	r3, r0
	cmp	r3, #0
	beq	.L40
	mvn	r0, #0
	bl	put7segLED
	b	.L39
.L40:
	ldr	r3, .L42+24
	ldr	r3, [r3, #0]
	mov	r0, r3
	bl	put7segLED
.L39:
	ldr	r3, .L42+24
	ldr	r3, [r3, #0]
	cmp	r3, #255
	ble	.L34
	ldr	r3, .L42+24
	mov	r2, #0
	str	r2, [r3, #0]
	b	.L34
.L41:
	mov	r0, r0	@ nop
.L34:
	sub	sp, fp, #4
	ldmfd	sp!, {fp, lr}
	bx	lr
.L43:
	.align	2
.L42:
	.word	-536854528
	.word	waitTimer
	.word	count.4187
	.word	499
	.word	1073725472
	.word	state
	.word	out
	.size	timer0Interrupt, .-timer0Interrupt
	.align	2
	.global	interruptRequest0
	.type	interruptRequest0, %function
interruptRequest0:
	@ Function supports interworking.
	@ 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, .L46
	ldr	r3, [r3, #0]
	cmp	r3, #0
	bgt	.L45
	ldr	r3, .L46+4
	ldr	r3, [r3, #0]
	cmp	r3, #0
	movne	r3, #0
	moveq	r3, #1
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, .L46+4
	str	r2, [r3, #0]
	ldr	r3, .L46
	mov	r2, #500
	str	r2, [r3, #0]
.L45:
	ldr	r3, .L46+8
	mov	r2, #16
	str	r2, [r3, #12]
	add	sp, fp, #0
	ldmfd	sp!, {fp}
	bx	lr
.L47:
	.align	2
.L46:
	.word	waitTimer
	.word	state
	.word	-536706944
	.size	interruptRequest0, .-interruptRequest0
	.align	2
	.global	interruptRequest1
	.type	interruptRequest1, %function
interruptRequest1:
	@ Function supports interworking.
	@ 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, .L49
	mov	r2, #0
	str	r2, [r3, #0]
	ldr	r3, .L49+4
	mov	r2, #0
	str	r2, [r3, #0]
	ldr	r3, .L49+8
	mov	r2, #32
	str	r2, [r3, #12]
	add	sp, fp, #0
	ldmfd	sp!, {fp}
	bx	lr
.L50:
	.align	2
.L49:
	.word	state
	.word	out
	.word	-536706944
	.size	interruptRequest1, .-interruptRequest1
	.align	2
	.global	interruptRequest2
	.type	interruptRequest2, %function
interruptRequest2:
	@ Function supports interworking.
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	stmfd	sp!, {fp, lr}
	add	fp, sp, #4
	ldr	r3, .L52
	mov	r2, #0
	str	r2, [r3, #0]
	bl	getDipSwitchValue
	mov	r2, r0
	ldr	r3, .L52+4
	str	r2, [r3, #0]
	ldr	r3, .L52+8
	mov	r2, #64
	str	r2, [r3, #12]
	sub	sp, fp, #4
	ldmfd	sp!, {fp, lr}
	bx	lr
.L53:
	.align	2
.L52:
	.word	state
	.word	out
	.word	-536706944
	.size	interruptRequest2, .-interruptRequest2
	.align	2
	.global	interruptRequest3
	.type	interruptRequest3, %function
interruptRequest3:
	@ Function supports interworking.
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	stmfd	sp!, {fp, lr}
	add	fp, sp, #4
	ldr	r3, .L55
	mov	r2, #0
	str	r2, [r3, #0]
	bl	getAD0Value
	mov	r2, r0
	ldr	r3, .L55+4
	str	r2, [r3, #0]
	ldr	r3, .L55+8
	mov	r2, #128
	str	r2, [r3, #12]
	sub	sp, fp, #4
	ldmfd	sp!, {fp, lr}
	bx	lr
.L56:
	.align	2
.L55:
	.word	state
	.word	out
	.word	-536706944
	.size	interruptRequest3, .-interruptRequest3
	.align	2
	.global	interrupt
	.type	interrupt, %function
interrupt:
	@ Interrupt Service Routine.
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	lr, lr, #4
	stmfd	sp!, {r0, r1, r2, r3, r4, fp, ip, lr}
	add	fp, sp, #28
	ldr	r3, .L63
	ldr	r3, [r3, #0]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L58
	bl	timer0Interrupt
.L58:
	ldr	r3, .L63+4
	ldr	r3, [r3, #8]
	and	r3, r3, #16
	cmp	r3, #0
	beq	.L59
	bl	interruptRequest0
.L59:
	ldr	r3, .L63+4
	ldr	r3, [r3, #8]
	and	r3, r3, #32
	cmp	r3, #0
	beq	.L60
	bl	interruptRequest1
.L60:
	ldr	r3, .L63+4
	ldr	r3, [r3, #4]
	and	r3, r3, #64
	cmp	r3, #0
	beq	.L61
	bl	interruptRequest2
.L61:
	ldr	r3, .L63+4
	ldr	r3, [r3, #4]
	and	r3, r3, #128
	cmp	r3, #0
	beq	.L57
	bl	interruptRequest3
.L57:
	sub	sp, fp, #28
	ldmfd	sp!, {r0, r1, r2, r3, r4, fp, ip, pc}^
.L64:
	.align	2
.L63:
	.word	-536854528
	.word	-536706944
	.size	interrupt, .-interrupt
	.align	2
	.global	dummy
	.type	dummy, %function
dummy:
	@ Function supports interworking.
	@ 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
	add	sp, fp, #0
	ldmfd	sp!, {fp}
	bx	lr
	.size	dummy, .-dummy
	.align	2
	.global	nonMaskable
	.type	nonMaskable, %function
nonMaskable:
	@ Function supports interworking.
	@ 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
	add	sp, fp, #0
	ldmfd	sp!, {fp}
	bx	lr
	.size	nonMaskable, .-nonMaskable
	.align	2
	.global	sci0Recive
	.type	sci0Recive, %function
sci0Recive:
	@ Function supports interworking.
	@ 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
	add	sp, fp, #0
	ldmfd	sp!, {fp}
	bx	lr
	.size	sci0Recive, .-sci0Recive
	.align	2
	.global	sci0Send
	.type	sci0Send, %function
sci0Send:
	@ Function supports interworking.
	@ 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
	add	sp, fp, #0
	ldmfd	sp!, {fp}
	bx	lr
	.size	sci0Send, .-sci0Send
	.align	2
	.global	putChar
	.type	putChar, %function
putChar:
	@ Function supports interworking.
	@ 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
	str	r0, [fp, #-8]
	add	sp, fp, #0
	ldmfd	sp!, {fp}
	bx	lr
	.size	putChar, .-putChar
	.align	2
	.global	getChar
	.type	getChar, %function
getChar:
	@ Function supports interworking.
	@ 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
	mov	r0, r3
	add	sp, fp, #0
	ldmfd	sp!, {fp}
	bx	lr
	.size	getChar, .-getChar
	.bss
	.align	2
count.4187:
	.space	4
	.ident	"GCC: (GNU) 4.7.2"
