
test.elf:     file format elf32-littlearm

Disassembly of section .text:

00000000 <__text_start>:
   0:	e59ff01c 	ldr	pc, [pc, #28]	; 24 <_Reset>
   4:	e59ff01c 	ldr	pc, [pc, #28]	; 28 <_Undef>
   8:	e59ff01c 	ldr	pc, [pc, #28]	; 2c <_Swi>
   c:	e59ff01c 	ldr	pc, [pc, #28]	; 30 <_InstAbort>
  10:	e59ff01c 	ldr	pc, [pc, #28]	; 34 <_DataAbort>
  14:	e59ff01c 	ldr	pc, [pc, #28]	; 38 <_Reserved>
  18:	e59ff01c 	ldr	pc, [pc, #28]	; 3c <_Irq>
  1c:	e59ff01c 	ldr	pc, [pc, #28]	; 40 <_Fiq>

00000020 <_sim>:
  20:	00000740 	andeq	r0, r0, r0, asr #14

00000024 <_Reset>:
  24:	00000058 	andeq	r0, r0, r8, asr r0

00000028 <_Undef>:
  28:	00000108 	andeq	r0, r0, r8, lsl #2

0000002c <_Swi>:
  2c:	00000108 	andeq	r0, r0, r8, lsl #2

00000030 <_InstAbort>:
  30:	00000108 	andeq	r0, r0, r8, lsl #2

00000034 <_DataAbort>:
  34:	00000108 	andeq	r0, r0, r8, lsl #2

00000038 <_Reserved>:
  38:	00000108 	andeq	r0, r0, r8, lsl #2

0000003c <_Irq>:
  3c:	00000108 	andeq	r0, r0, r8, lsl #2

00000040 <_Fiq>:
  40:	00000108 	andeq	r0, r0, r8, lsl #2

00000044 <word_set>:
  44:	e1500001 	cmp	r0, r1
  48:	2a000001 	bcs	54 <word_set+0x10>
  4c:	e6802003 	str	r2, [r0], r3
  50:	eafffffb 	b	44 <word_set>
  54:	e12fff1e 	bx	lr

00000058 <xReset>:
  58:	e3a00a01 	mov	r0, #4096	; 0x1000
  5c:	e3a0120f 	mov	r1, #-268435456	; 0xf0000000
  60:	e3a0220d 	mov	r2, #-805306368	; 0xd0000000
  64:	e3a03001 	mov	r3, #1	; 0x1
  68:	e4813010 	str	r3, [r1], #16
  6c:	e4823010 	str	r3, [r2], #16
  70:	e2500010 	subs	r0, r0, #16	; 0x10
  74:	1afffffb 	bne	68 <xReset+0x10>
  78:	e3a00201 	mov	r0, #268435456	; 0x10000000
  7c:	e4901000 	ldr	r1, [r0]
  80:	e3510000 	cmp	r1, #0	; 0x0
  84:	aa000004 	bge	9c <xReset+0x44>
  88:	e59f007c 	ldr	r0, [pc, #124]	; 10c <.text+0x10c>
  8c:	e59fd07c 	ldr	sp, [pc, #124]	; 110 <.text+0x110>
  90:	e1a0e00f 	mov	lr, pc
  94:	e12fff10 	bx	r0
  98:	eafffffe 	b	98 <xReset+0x40>
  9c:	e59f0070 	ldr	r0, [pc, #112]	; 114 <.text+0x114>
  a0:	e59f1070 	ldr	r1, [pc, #112]	; 118 <.text+0x118>
  a4:	e3a02d06 	mov	r2, #384	; 0x180
  a8:	e3a03010 	mov	r3, #16	; 0x10
  ac:	ebffffe4 	bl	44 <word_set>
  b0:	e59f0064 	ldr	r0, [pc, #100]	; 11c <.text+0x11c>
  b4:	e59f1064 	ldr	r1, [pc, #100]	; 120 <.text+0x120>
  b8:	e3a02080 	mov	r2, #128	; 0x80
  bc:	ebffffe0 	bl	44 <word_set>
  c0:	e59f005c 	ldr	r0, [pc, #92]	; 124 <.text+0x124>
  c4:	e59f105c 	ldr	r1, [pc, #92]	; 128 <.text+0x128>
  c8:	e3a02c01 	mov	r2, #256	; 0x100
  cc:	ebffffdc 	bl	44 <word_set>
  d0:	e59f0054 	ldr	r0, [pc, #84]	; 12c <.text+0x12c>
  d4:	e59f1054 	ldr	r1, [pc, #84]	; 130 <.text+0x130>
  d8:	e3a02c01 	mov	r2, #256	; 0x100
  dc:	ebffffd8 	bl	44 <word_set>
  e0:	e59f004c 	ldr	r0, [pc, #76]	; 134 <.text+0x134>
  e4:	e59f104c 	ldr	r1, [pc, #76]	; 138 <.text+0x138>
  e8:	e3a02000 	mov	r2, #0	; 0x0
  ec:	e3a03004 	mov	r3, #4	; 0x4
  f0:	ebffffd3 	bl	44 <word_set>
  f4:	e59f0040 	ldr	r0, [pc, #64]	; 13c <.text+0x13c>
  f8:	e59fd040 	ldr	sp, [pc, #64]	; 140 <.text+0x140>
  fc:	e1a0e00f 	mov	lr, pc
 100:	e12fff10 	bx	r0
 104:	eafffffe 	b	104 <xReset+0xac>

00000108 <xDataAbort>:
 108:	eafffffe 	b	108 <xDataAbort>
 10c:	000001c5 	andeq	r0, r0, r5, asr #3
 110:	00000c40 	andeq	r0, r0, r0, asr #24
 114:	80000000 	andhi	r0, r0, r0
 118:	800006b0 	strhih	r0, [r0], -r0
 11c:	800006c0 	andhi	r0, r0, r0, asr #13
 120:	8000070d 	andhi	r0, r0, sp, lsl #14
 124:	80000740 	andhi	r0, r0, r0, asr #14
 128:	80000808 	andhi	r0, r0, r8, lsl #16
 12c:	80000840 	andhi	r0, r0, r0, asr #16
 130:	80001040 	andhi	r1, r0, r0, asr #32
 134:	00000840 	andeq	r0, r0, r0, asr #16
 138:	00001040 	andeq	r1, r0, r0, asr #32
 13c:	00000145 	andeq	r0, r0, r5, asr #2
 140:	00001040 	andeq	r1, r0, r0, asr #32

00000144 <main0>:
 144:	b510      	push	{r4, lr}
 146:	491a      	ldr	r1, [pc, #104]	(1b0 <.text+0x1b0>)
 148:	2328      	mov	r3, #40
 14a:	600b      	str	r3, [r1, #0]
 14c:	2330      	mov	r3, #48
 14e:	600b      	str	r3, [r1, #0]
 150:	22c0      	mov	r2, #192
 152:	0612      	lsl	r2, r2, #24
 154:	6813      	ldr	r3, [r2, #0]
 156:	2308      	mov	r3, #8
 158:	600b      	str	r3, [r1, #0]
 15a:	6813      	ldr	r3, [r2, #0]
 15c:	4b15      	ldr	r3, [pc, #84]	(1b4 <.text+0x1b4>)
 15e:	210f      	mov	r1, #15
 160:	6019      	str	r1, [r3, #0]
 162:	2100      	mov	r1, #0
 164:	3304      	add	r3, #4
 166:	6019      	str	r1, [r3, #0]
 168:	4c13      	ldr	r4, [pc, #76]	(1b8 <.text+0x1b8>)
 16a:	6813      	ldr	r3, [r2, #0]
 16c:	4b13      	ldr	r3, [pc, #76]	(1bc <.text+0x1bc>)
 16e:	2201      	mov	r2, #1
 170:	601a      	str	r2, [r3, #0]
 172:	2101      	mov	r1, #1
 174:	1c20      	mov	r0, r4		(add r0, r4, #0)
 176:	fa29f000 	bl	5cc <test_loop>
 17a:	6923      	ldr	r3, [r4, #16]
 17c:	2108      	mov	r1, #8
 17e:	2200      	mov	r2, #0
 180:	2b00      	cmp	r3, #0
 182:	d00c      	beq	19e <main0+0x5a>
 184:	69e3      	ldr	r3, [r4, #28]
 186:	2b00      	cmp	r3, #0
 188:	d102      	bne	190 <main0+0x4c>
 18a:	2301      	mov	r3, #1
 18c:	4093      	lsl	r3, r2
 18e:	4319      	orr	r1, r3
 190:	3430      	add	r4, #48
 192:	6923      	ldr	r3, [r4, #16]
 194:	3201      	add	r2, #1
 196:	2b00      	cmp	r3, #0
 198:	d001      	beq	19e <main0+0x5a>
 19a:	2a02      	cmp	r2, #2
 19c:	ddf2      	ble	184 <main0+0x40>
 19e:	4b08      	ldr	r3, [pc, #32]	(1c0 <.text+0x1c0>)
 1a0:	6019      	str	r1, [r3, #0]
 1a2:	23c0      	mov	r3, #192
 1a4:	061b      	lsl	r3, r3, #24
 1a6:	681b      	ldr	r3, [r3, #0]
 1a8:	bc10      	pop	{r4}
 1aa:	bc01      	pop	{r0}
 1ac:	4700      	bx	r0
 1ae:	0000      	lsl	r0, r0, #0
 1b0:	0008      	lsl	r0, r1, #0
 1b2:	1000      	asr	r0, r0, #0
 1b4:	4024      	and	r4, r4
 1b6:	1000      	asr	r0, r0, #0
 1b8:	0748      	lsl	r0, r1, #29
 1ba:	0000      	lsl	r0, r0, #0
 1bc:	0740      	lsl	r0, r0, #29
 1be:	0000      	lsl	r0, r0, #0
 1c0:	4028      	and	r0, r5
 1c2:	1000      	asr	r0, r0, #0

000001c4 <main1>:
 1c4:	4770      	bx	lr
 1c6:	46c0      	nop			(mov r8, r8)

000001c8 <kp_wait>:
 1c8:	b500      	push	{lr}
 1ca:	0083      	lsl	r3, r0, #2
 1cc:	181a      	add	r2, r3, r0
 1ce:	4b06      	ldr	r3, [pc, #24]	(1e8 <.text+0x1e8>)
 1d0:	681b      	ldr	r3, [r3, #0]
 1d2:	2b00      	cmp	r3, #0
 1d4:	db01      	blt	1da <kp_wait+0x12>
 1d6:	2001      	mov	r0, #1
 1d8:	e004      	b	1e4 <kp_wait+0x1c>
 1da:	1c13      	mov	r3, r2		(add r3, r2, #0)
 1dc:	3a01      	sub	r2, #1
 1de:	2b00      	cmp	r3, #0
 1e0:	dcf5      	bgt	1ce <kp_wait+0x6>
 1e2:	2000      	mov	r0, #0
 1e4:	bc02      	pop	{r1}
 1e6:	4708      	bx	r1
 1e8:	000c      	lsl	r4, r1, #0
 1ea:	1000      	asr	r0, r0, #0

000001ec <kp_reset>:
 1ec:	b500      	push	{lr}
 1ee:	239f      	mov	r3, #159
 1f0:	051b      	lsl	r3, r3, #20
 1f2:	2800      	cmp	r0, #0
 1f4:	d001      	beq	1fa <kp_reset+0xe>
 1f6:	23df      	mov	r3, #223
 1f8:	051b      	lsl	r3, r3, #20
 1fa:	4a07      	ldr	r2, [pc, #28]	(218 <.text+0x218>)
 1fc:	6013      	str	r3, [r2, #0]
 1fe:	2800      	cmp	r0, #0
 200:	d001      	beq	206 <kp_reset+0x1a>
 202:	2001      	mov	r0, #1
 204:	e006      	b	214 <kp_reset+0x28>
 206:	2390      	mov	r3, #144
 208:	061b      	lsl	r3, r3, #24
 20a:	6013      	str	r3, [r2, #0]
 20c:	2005      	mov	r0, #5
 20e:	2101      	mov	r1, #1
 210:	ffdaf7ff 	bl	1c8 <kp_wait>
 214:	bc02      	pop	{r1}
 216:	4708      	bx	r1
 218:	000c      	lsl	r4, r1, #0
 21a:	1000      	asr	r0, r0, #0

0000021c <kp_read>:
 21c:	b500      	push	{lr}
 21e:	2380      	mov	r3, #128
 220:	4a04      	ldr	r2, [pc, #16]	(234 <.text+0x234>)
 222:	061b      	lsl	r3, r3, #24
 224:	4303      	orr	r3, r0
 226:	6013      	str	r3, [r2, #0]
 228:	2005      	mov	r0, #5
 22a:	2101      	mov	r1, #1
 22c:	ffccf7ff 	bl	1c8 <kp_wait>
 230:	bc02      	pop	{r1}
 232:	4708      	bx	r1
 234:	000c      	lsl	r4, r1, #0
 236:	1000      	asr	r0, r0, #0

00000238 <kp_write>:
 238:	b500      	push	{lr}
 23a:	4b05      	ldr	r3, [pc, #20]	(250 <.text+0x250>)
 23c:	4a05      	ldr	r2, [pc, #20]	(254 <.text+0x254>)
 23e:	4303      	orr	r3, r0
 240:	6013      	str	r3, [r2, #0]
 242:	2050      	mov	r0, #80
 244:	2101      	mov	r1, #1
 246:	ffbff7ff 	bl	1c8 <kp_wait>
 24a:	bc02      	pop	{r1}
 24c:	4708      	bx	r1
 24e:	0000      	lsl	r0, r0, #0
 250:	0000      	lsl	r0, r0, #0
 252:	c001      	stmia	r0!,{r0}
 254:	000c      	lsl	r4, r1, #0
 256:	1000      	asr	r0, r0, #0

00000258 <test_kp_readall>:
 258:	b5f0      	push	{r4, r5, r6, r7, lr}
 25a:	1c0c      	mov	r4, r1		(add r4, r1, #0)
 25c:	491b      	ldr	r1, [pc, #108]	(2cc <.text+0x2cc>)
 25e:	1c05      	mov	r5, r0		(add r5, r0, #0)
 260:	f9a8f000 	bl	5b4 <test_name>
 264:	2301      	mov	r3, #1
 266:	616c      	str	r4, [r5, #20]
 268:	61ab      	str	r3, [r5, #24]
 26a:	2001      	mov	r0, #1
 26c:	ffbef7ff 	bl	1ec <kp_reset>
 270:	2800      	cmp	r0, #0
 272:	d025      	beq	2c0 <test_kp_readall+0x68>
 274:	2302      	mov	r3, #2
 276:	61ab      	str	r3, [r5, #24]
 278:	2000      	mov	r0, #0
 27a:	ffb7f7ff 	bl	1ec <kp_reset>
 27e:	2800      	cmp	r0, #0
 280:	d01e      	beq	2c0 <test_kp_readall+0x68>
 282:	2303      	mov	r3, #3
 284:	2601      	mov	r6, #1
 286:	61ab      	str	r3, [r5, #24]
 288:	4276      	neg	r6, r6
 28a:	2700      	mov	r7, #0
 28c:	2400      	mov	r4, #0
 28e:	2380      	mov	r3, #128
 290:	055b      	lsl	r3, r3, #21
 292:	1c20      	mov	r0, r4		(add r0, r4, #0)
 294:	622c      	str	r4, [r5, #32]
 296:	4318      	orr	r0, r3
 298:	ffc0f7ff 	bl	21c <kp_read>
 29c:	2800      	cmp	r0, #0
 29e:	d00f      	beq	2c0 <test_kp_readall+0x68>
 2a0:	4b0b      	ldr	r3, [pc, #44]	(2d0 <.text+0x2d0>)
 2a2:	681b      	ldr	r3, [r3, #0]
 2a4:	039a      	lsl	r2, r3, #14
 2a6:	d503      	bpl	2b0 <test_kp_readall+0x58>
 2a8:	2e00      	cmp	r6, #0
 2aa:	da00      	bge	2ae <test_kp_readall+0x56>
 2ac:	1c26      	mov	r6, r4		(add r6, r4, #0)
 2ae:	3701      	add	r7, #1
 2b0:	4b08      	ldr	r3, [pc, #32]	(2d4 <.text+0x2d4>)
 2b2:	3401      	add	r4, #1
 2b4:	429c      	cmp	r4, r3
 2b6:	d9ea      	bls	28e <test_kp_readall+0x36>
 2b8:	626e      	str	r6, [r5, #36]
 2ba:	62af      	str	r7, [r5, #40]
 2bc:	2e00      	cmp	r6, #0
 2be:	db02      	blt	2c6 <test_kp_readall+0x6e>
 2c0:	1c28      	mov	r0, r5		(add r0, r5, #0)
 2c2:	f96ff000 	bl	5a4 <test_fail>
 2c6:	bcf0      	pop	{r4, r5, r6, r7}
 2c8:	bc01      	pop	{r0}
 2ca:	4700      	bx	r0
 2cc:	06c0      	lsl	r0, r0, #27
 2ce:	0000      	lsl	r0, r0, #0
 2d0:	000c      	lsl	r4, r1, #0
 2d2:	1000      	asr	r0, r0, #0
 2d4:	0fff      	lsr	r7, r7, #31
	...

000002d8 <test_kp_testdec>:
 2d8:	b530      	push	{r4, r5, lr}
 2da:	1c0c      	mov	r4, r1		(add r4, r1, #0)
 2dc:	491f      	ldr	r1, [pc, #124]	(35c <.text+0x35c>)
 2de:	1c05      	mov	r5, r0		(add r5, r0, #0)
 2e0:	f968f000 	bl	5b4 <test_name>
 2e4:	2301      	mov	r3, #1
 2e6:	616c      	str	r4, [r5, #20]
 2e8:	61ab      	str	r3, [r5, #24]
 2ea:	2001      	mov	r0, #1
 2ec:	ff7ef7ff 	bl	1ec <kp_reset>
 2f0:	2800      	cmp	r0, #0
 2f2:	d02d      	beq	350 <test_kp_testdec+0x78>
 2f4:	2302      	mov	r3, #2
 2f6:	61ab      	str	r3, [r5, #24]
 2f8:	2000      	mov	r0, #0
 2fa:	ff77f7ff 	bl	1ec <kp_reset>
 2fe:	2800      	cmp	r0, #0
 300:	d026      	beq	350 <test_kp_testdec+0x78>
 302:	2303      	mov	r3, #3
 304:	61ab      	str	r3, [r5, #24]
 306:	4a16      	ldr	r2, [pc, #88]	(360 <.text+0x360>)
 308:	4b16      	ldr	r3, [pc, #88]	(364 <.text+0x364>)
 30a:	2005      	mov	r0, #5
 30c:	601a      	str	r2, [r3, #0]
 30e:	2101      	mov	r1, #1
 310:	ff5af7ff 	bl	1c8 <kp_wait>
 314:	2800      	cmp	r0, #0
 316:	d01b      	beq	350 <test_kp_testdec+0x78>
 318:	2304      	mov	r3, #4
 31a:	61ab      	str	r3, [r5, #24]
 31c:	2400      	mov	r4, #0
 31e:	4b12      	ldr	r3, [pc, #72]	(368 <.text+0x368>)
 320:	622c      	str	r4, [r5, #32]
 322:	62ab      	str	r3, [r5, #40]
 324:	626b      	str	r3, [r5, #36]
 326:	1c20      	mov	r0, r4		(add r0, r4, #0)
 328:	ff78f7ff 	bl	21c <kp_read>
 32c:	2800      	cmp	r0, #0
 32e:	d00f      	beq	350 <test_kp_testdec+0x78>
 330:	4b0c      	ldr	r3, [pc, #48]	(364 <.text+0x364>)
 332:	681b      	ldr	r3, [r3, #0]
 334:	2201      	mov	r2, #1
 336:	1c21      	mov	r1, r4		(add r1, r4, #0)
 338:	0c5b      	lsr	r3, r3, #17
 33a:	4011      	and	r1, r2
 33c:	4013      	and	r3, r2
 33e:	626b      	str	r3, [r5, #36]
 340:	62a9      	str	r1, [r5, #40]
 342:	428b      	cmp	r3, r1
 344:	d104      	bne	350 <test_kp_testdec+0x78>
 346:	4b09      	ldr	r3, [pc, #36]	(36c <.text+0x36c>)
 348:	3401      	add	r4, #1
 34a:	429c      	cmp	r4, r3
 34c:	d9e7      	bls	31e <test_kp_testdec+0x46>
 34e:	e002      	b	356 <test_kp_testdec+0x7e>
 350:	1c28      	mov	r0, r5		(add r0, r5, #0)
 352:	f927f000 	bl	5a4 <test_fail>
 356:	bc30      	pop	{r4, r5}
 358:	bc01      	pop	{r0}
 35a:	4700      	bx	r0
 35c:	06d4      	lsl	r4, r2, #27
 35e:	0000      	lsl	r0, r0, #0
 360:	0020      	lsl	r0, r4, #0
 362:	000cf000 	blx	37c <test_kp_spare+0xc>
 366:	1000      	asr	r0, r0, #0
 368:	ffff      	second half of BL instruction 0xffff
 36a:	0000      	lsl	r0, r0, #0
 36c:	03ff      	lsl	r7, r7, #15
	...

00000370 <test_kp_spare>:
 370:	b5f0      	push	{r4, r5, r6, r7, lr}
 372:	1c0c      	mov	r4, r1		(add r4, r1, #0)
 374:	b081      	sub	sp, #4
 376:	493b      	ldr	r1, [pc, #236]	(464 <.text+0x464>)
 378:	1c05      	mov	r5, r0		(add r5, r0, #0)
 37a:	f91bf000 	bl	5b4 <test_name>
 37e:	2c01      	cmp	r4, #1
 380:	d86c      	bhi	45c <test_kp_spare+0xec>
 382:	2301      	mov	r3, #1
 384:	616c      	str	r4, [r5, #20]
 386:	61ab      	str	r3, [r5, #24]
 388:	2001      	mov	r0, #1
 38a:	ff2ff7ff 	bl	1ec <kp_reset>
 38e:	2800      	cmp	r0, #0
 390:	d061      	beq	456 <test_kp_spare+0xe6>
 392:	2302      	mov	r3, #2
 394:	61ab      	str	r3, [r5, #24]
 396:	2000      	mov	r0, #0
 398:	ff28f7ff 	bl	1ec <kp_reset>
 39c:	2800      	cmp	r0, #0
 39e:	d05a      	beq	456 <test_kp_spare+0xe6>
 3a0:	4a31      	ldr	r2, [pc, #196]	(468 <.text+0x468>)
 3a2:	4b32      	ldr	r3, [pc, #200]	(46c <.text+0x46c>)
 3a4:	2100      	mov	r1, #0
 3a6:	601a      	str	r2, [r3, #0]
 3a8:	9100      	str	r1, [sp, #0]
 3aa:	2600      	mov	r6, #0
 3ac:	2303      	mov	r3, #3
 3ae:	61ab      	str	r3, [r5, #24]
 3b0:	4b2f      	ldr	r3, [pc, #188]	(470 <.text+0x470>)
 3b2:	626e      	str	r6, [r5, #36]
 3b4:	429e      	cmp	r6, r3
 3b6:	d84e      	bhi	456 <test_kp_spare+0xe6>
 3b8:	2304      	mov	r3, #4
 3ba:	61ab      	str	r3, [r5, #24]
 3bc:	1c30      	mov	r0, r6		(add r0, r6, #0)
 3be:	ff2df7ff 	bl	21c <kp_read>
 3c2:	2800      	cmp	r0, #0
 3c4:	d047      	beq	456 <test_kp_spare+0xe6>
 3c6:	4a29      	ldr	r2, [pc, #164]	(46c <.text+0x46c>)
 3c8:	6814      	ldr	r4, [r2, #0]
 3ca:	03a3      	lsl	r3, r4, #14
 3cc:	d502      	bpl	3d4 <test_kp_spare+0x64>
 3ce:	9900      	ldr	r1, [sp, #0]
 3d0:	3101      	add	r1, #1
 3d2:	9100      	str	r1, [sp, #0]
 3d4:	2305      	mov	r3, #5
 3d6:	1c77      	add	r7, r6, #1
 3d8:	61ab      	str	r3, [r5, #24]
 3da:	1c38      	mov	r0, r7		(add r0, r7, #0)
 3dc:	ff1ef7ff 	bl	21c <kp_read>
 3e0:	2800      	cmp	r0, #0
 3e2:	d038      	beq	456 <test_kp_spare+0xe6>
 3e4:	4b21      	ldr	r3, [pc, #132]	(46c <.text+0x46c>)
 3e6:	681a      	ldr	r2, [r3, #0]
 3e8:	2101      	mov	r1, #1
 3ea:	0c53      	lsr	r3, r2, #17
 3ec:	420b      	tst	r3, r1
 3ee:	d002      	beq	3f6 <test_kp_spare+0x86>
 3f0:	9b00      	ldr	r3, [sp, #0]
 3f2:	3301      	add	r3, #1
 3f4:	9300      	str	r3, [sp, #0]
 3f6:	4314      	orr	r4, r2
 3f8:	0c63      	lsr	r3, r4, #17
 3fa:	2101      	mov	r1, #1
 3fc:	420b      	tst	r3, r1
 3fe:	d001      	beq	404 <test_kp_spare+0x94>
 400:	3602      	add	r6, #2
 402:	e7d3      	b	3ac <test_kp_spare+0x3c>
 404:	9a00      	ldr	r2, [sp, #0]
 406:	2306      	mov	r3, #6
 408:	62ea      	str	r2, [r5, #44]
 40a:	61ab      	str	r3, [r5, #24]
 40c:	1c30      	mov	r0, r6		(add r0, r6, #0)
 40e:	ff13f7ff 	bl	238 <kp_write>
 412:	2800      	cmp	r0, #0
 414:	d01f      	beq	456 <test_kp_spare+0xe6>
 416:	2307      	mov	r3, #7
 418:	61ab      	str	r3, [r5, #24]
 41a:	1c38      	mov	r0, r7		(add r0, r7, #0)
 41c:	ff0cf7ff 	bl	238 <kp_write>
 420:	2800      	cmp	r0, #0
 422:	d018      	beq	456 <test_kp_spare+0xe6>
 424:	2308      	mov	r3, #8
 426:	61ab      	str	r3, [r5, #24]
 428:	1c30      	mov	r0, r6		(add r0, r6, #0)
 42a:	fef7f7ff 	bl	21c <kp_read>
 42e:	2800      	cmp	r0, #0
 430:	d011      	beq	456 <test_kp_spare+0xe6>
 432:	4b0e      	ldr	r3, [pc, #56]	(46c <.text+0x46c>)
 434:	681c      	ldr	r4, [r3, #0]
 436:	2309      	mov	r3, #9
 438:	61ab      	str	r3, [r5, #24]
 43a:	1c38      	mov	r0, r7		(add r0, r7, #0)
 43c:	feeef7ff 	bl	21c <kp_read>
 440:	2800      	cmp	r0, #0
 442:	d008      	beq	456 <test_kp_spare+0xe6>
 444:	4909      	ldr	r1, [pc, #36]	(46c <.text+0x46c>)
 446:	680a      	ldr	r2, [r1, #0]
 448:	230a      	mov	r3, #10
 44a:	4314      	orr	r4, r2
 44c:	61ab      	str	r3, [r5, #24]
 44e:	2201      	mov	r2, #1
 450:	0c63      	lsr	r3, r4, #17
 452:	4213      	tst	r3, r2
 454:	d102      	bne	45c <test_kp_spare+0xec>
 456:	1c28      	mov	r0, r5		(add r0, r5, #0)
 458:	f8a4f000 	bl	5a4 <test_fail>
 45c:	b001      	add	sp, #4
 45e:	bcf0      	pop	{r4, r5, r6, r7}
 460:	bc01      	pop	{r0}
 462:	4700      	bx	r0
 464:	06e8      	lsl	r0, r5, #27
 466:	0000      	lsl	r0, r0, #0
 468:	0004      	lsl	r4, r0, #0
 46a:	000cf001 	blx	1484 <__bss_end+0x444>
 46e:	1000      	asr	r0, r0, #0
 470:	01ff      	lsl	r7, r7, #7
	...

00000474 <test_kp_readstress>:
 474:	b570      	push	{r4, r5, r6, lr}
 476:	1c0c      	mov	r4, r1		(add r4, r1, #0)
 478:	4926      	ldr	r1, [pc, #152]	(514 <.text+0x514>)
 47a:	1c05      	mov	r5, r0		(add r5, r0, #0)
 47c:	f89af000 	bl	5b4 <test_name>
 480:	2301      	mov	r3, #1
 482:	616c      	str	r4, [r5, #20]
 484:	61ab      	str	r3, [r5, #24]
 486:	2001      	mov	r0, #1
 488:	feb0f7ff 	bl	1ec <kp_reset>
 48c:	2800      	cmp	r0, #0
 48e:	d03b      	beq	508 <test_kp_readstress+0x94>
 490:	2302      	mov	r3, #2
 492:	61ab      	str	r3, [r5, #24]
 494:	2000      	mov	r0, #0
 496:	fea9f7ff 	bl	1ec <kp_reset>
 49a:	2800      	cmp	r0, #0
 49c:	d034      	beq	508 <test_kp_readstress+0x94>
 49e:	2303      	mov	r3, #3
 4a0:	24f0      	mov	r4, #240
 4a2:	61ab      	str	r3, [r5, #24]
 4a4:	0224      	lsl	r4, r4, #8
 4a6:	4b1c      	ldr	r3, [pc, #112]	(518 <.text+0x518>)
 4a8:	622c      	str	r4, [r5, #32]
 4aa:	429c      	cmp	r4, r3
 4ac:	d82c      	bhi	508 <test_kp_readstress+0x94>
 4ae:	2380      	mov	r3, #128
 4b0:	055b      	lsl	r3, r3, #21
 4b2:	1c20      	mov	r0, r4		(add r0, r4, #0)
 4b4:	4318      	orr	r0, r3
 4b6:	feb1f7ff 	bl	21c <kp_read>
 4ba:	2800      	cmp	r0, #0
 4bc:	d024      	beq	508 <test_kp_readstress+0x94>
 4be:	4b17      	ldr	r3, [pc, #92]	(51c <.text+0x51c>)
 4c0:	681b      	ldr	r3, [r3, #0]
 4c2:	039a      	lsl	r2, r3, #14
 4c4:	d501      	bpl	4ca <test_kp_readstress+0x56>
 4c6:	3401      	add	r4, #1
 4c8:	e7ed      	b	4a6 <test_kp_readstress+0x32>
 4ca:	2304      	mov	r3, #4
 4cc:	61ab      	str	r3, [r5, #24]
 4ce:	2600      	mov	r6, #0
 4d0:	6a6b      	ldr	r3, [r5, #36]
 4d2:	3301      	add	r3, #1
 4d4:	626b      	str	r3, [r5, #36]
 4d6:	2380      	mov	r3, #128
 4d8:	055b      	lsl	r3, r3, #21
 4da:	1c20      	mov	r0, r4		(add r0, r4, #0)
 4dc:	4318      	orr	r0, r3
 4de:	fe9df7ff 	bl	21c <kp_read>
 4e2:	2800      	cmp	r0, #0
 4e4:	d010      	beq	508 <test_kp_readstress+0x94>
 4e6:	4b0d      	ldr	r3, [pc, #52]	(51c <.text+0x51c>)
 4e8:	681b      	ldr	r3, [r3, #0]
 4ea:	039a      	lsl	r2, r3, #14
 4ec:	d507      	bpl	4fe <test_kp_readstress+0x8a>
 4ee:	1c28      	mov	r0, r5		(add r0, r5, #0)
 4f0:	f858f000 	bl	5a4 <test_fail>
 4f4:	2800      	cmp	r0, #0
 4f6:	d10a      	bne	50e <test_kp_readstress+0x9a>
 4f8:	6a6b      	ldr	r3, [r5, #36]
 4fa:	62ab      	str	r3, [r5, #40]
 4fc:	e007      	b	50e <test_kp_readstress+0x9a>
 4fe:	4b08      	ldr	r3, [pc, #32]	(520 <.text+0x520>)
 500:	3601      	add	r6, #1
 502:	429e      	cmp	r6, r3
 504:	d9e4      	bls	4d0 <test_kp_readstress+0x5c>
 506:	e002      	b	50e <test_kp_readstress+0x9a>
 508:	1c28      	mov	r0, r5		(add r0, r5, #0)
 50a:	f84bf000 	bl	5a4 <test_fail>
 50e:	bc70      	pop	{r4, r5, r6}
 510:	bc01      	pop	{r0}
 512:	4700      	bx	r0
 514:	06fc      	lsl	r4, r7, #27
 516:	0000      	lsl	r0, r0, #0
 518:	0000f0ff 	blx	ff51c <__bss_end+0xfe4dc>
 51c:	000c      	lsl	r4, r1, #0
 51e:	1000      	asr	r0, r0, #0
 520:	ffff      	second half of BL instruction 0xffff
 522:	00ff      	lsl	r7, r7, #3

00000524 <set_dax>:
 524:	b500      	push	{lr}
 526:	2380      	mov	r3, #128
 528:	061b      	lsl	r3, r3, #24
 52a:	01c0      	lsl	r0, r0, #7
 52c:	18c9      	add	r1, r1, r3
 52e:	2a00      	cmp	r2, #0
 530:	dd04      	ble	53c <set_dax+0x18>
 532:	3a10      	sub	r2, #16
 534:	6008      	str	r0, [r1, #0]
 536:	3110      	add	r1, #16
 538:	2a00      	cmp	r2, #0
 53a:	dcfa      	bgt	532 <set_dax+0xe>
 53c:	bc01      	pop	{r0}
 53e:	4700      	bx	r0

00000540 <set_pt>:
 540:	b510      	push	{r4, lr}
 542:	0404      	lsl	r4, r0, #16
 544:	4808      	ldr	r0, [pc, #32]	(568 <.text+0x568>)
 546:	2390      	mov	r3, #144
 548:	4008      	and	r0, r1
 54a:	061b      	lsl	r3, r3, #24
 54c:	4318      	orr	r0, r3
 54e:	2a00      	cmp	r2, #0
 550:	dd07      	ble	562 <set_pt+0x22>
 552:	2380      	mov	r3, #128
 554:	01db      	lsl	r3, r3, #7
 556:	6004      	str	r4, [r0, #0]
 558:	18c0      	add	r0, r0, r3
 55a:	4b04      	ldr	r3, [pc, #16]	(56c <.text+0x56c>)
 55c:	18d2      	add	r2, r2, r3
 55e:	2a00      	cmp	r2, #0
 560:	dcf7      	bgt	552 <set_pt+0x12>
 562:	bc10      	pop	{r4}
 564:	bc01      	pop	{r0}
 566:	4700      	bx	r0
 568:	fff0      	second half of BL instruction 0xfff0
 56a:	01ff      	lsl	r7, r7, #7
 56c:	c000      	stmia	r0!,{}
 56e:	ffff      	second half of BL instruction 0xffff

00000570 <inv_l1d>:
 570:	b500      	push	{lr}
 572:	22d0      	mov	r2, #208
 574:	4905      	ldr	r1, [pc, #20]	(58c <.text+0x58c>)
 576:	0612      	lsl	r2, r2, #24
 578:	2300      	mov	r3, #0
 57a:	6013      	str	r3, [r2, #0]
 57c:	3210      	add	r2, #16
 57e:	428a      	cmp	r2, r1
 580:	d3fa      	bcc	578 <inv_l1d+0x8>
 582:	23c0      	mov	r3, #192
 584:	061b      	lsl	r3, r3, #24
 586:	681b      	ldr	r3, [r3, #0]
 588:	bc01      	pop	{r0}
 58a:	4700      	bx	r0
 58c:	1000      	asr	r0, r0, #0
 58e:	d000      	beq	592 <passfail+0x2>

00000590 <passfail>:
 590:	b500      	push	{lr}
 592:	69c3      	ldr	r3, [r0, #28]
 594:	2b00      	cmp	r3, #0
 596:	d001      	beq	59c <passfail+0xc>
 598:	2366      	mov	r3, #102
 59a:	e000      	b	59e <passfail+0xe>
 59c:	2370      	mov	r3, #112
 59e:	73c3      	strb	r3, [r0, #15]
 5a0:	bc01      	pop	{r0}
 5a2:	4700      	bx	r0

000005a4 <test_fail>:
 5a4:	6982      	ldr	r2, [r0, #24]
 5a6:	69c1      	ldr	r1, [r0, #28]
 5a8:	2301      	mov	r3, #1
 5aa:	4093      	lsl	r3, r2
 5ac:	430b      	orr	r3, r1
 5ae:	61c3      	str	r3, [r0, #28]
 5b0:	1c08      	mov	r0, r1		(add r0, r1, #0)
 5b2:	4770      	bx	lr

000005b4 <test_name>:
 5b4:	b500      	push	{lr}
 5b6:	7803      	ldrb	r3, [r0, #0]
 5b8:	2b00      	cmp	r3, #0
 5ba:	d105      	bne	5c8 <test_name+0x14>
 5bc:	2200      	mov	r2, #0
 5be:	5c8b      	ldrb	r3, [r1, r2]
 5c0:	5483      	strb	r3, [r0, r2]
 5c2:	3201      	add	r2, #1
 5c4:	2a0f      	cmp	r2, #15
 5c6:	ddfa      	ble	5be <test_name+0xa>
 5c8:	bc01      	pop	{r0}
 5ca:	4700      	bx	r0

000005cc <test_loop>:
 5cc:	b570      	push	{r4, r5, r6, lr}
 5ce:	1c04      	mov	r4, r0		(add r4, r0, #0)
 5d0:	1c0e      	mov	r6, r1		(add r6, r1, #0)
 5d2:	2500      	mov	r5, #0
 5d4:	6922      	ldr	r2, [r4, #16]
 5d6:	2a00      	cmp	r2, #0
 5d8:	d00c      	beq	5f4 <test_loop+0x28>
 5da:	2300      	mov	r3, #0
 5dc:	61a3      	str	r3, [r4, #24]
 5de:	1c20      	mov	r0, r4		(add r0, r4, #0)
 5e0:	1c31      	mov	r1, r6		(add r1, r6, #0)
 5e2:	f84bf000 	bl	67c <_call_via_r2>
 5e6:	1c20      	mov	r0, r4		(add r0, r4, #0)
 5e8:	ffd2f7ff 	bl	590 <passfail>
 5ec:	69e3      	ldr	r3, [r4, #28]
 5ee:	3430      	add	r4, #48
 5f0:	431d      	orr	r5, r3
 5f2:	e7ef      	b	5d4 <test_loop+0x8>
 5f4:	2000      	mov	r0, #0
 5f6:	2d00      	cmp	r5, #0
 5f8:	d100      	bne	5fc <test_loop+0x30>
 5fa:	2001      	mov	r0, #1
 5fc:	bc70      	pop	{r4, r5, r6}
 5fe:	bc02      	pop	{r1}
 600:	4708      	bx	r1
	...

00000604 <sd_ctrl>:
 604:	b500      	push	{lr}
 606:	06c0      	lsl	r0, r0, #27
 608:	4b03      	ldr	r3, [pc, #12]	(618 <.text+0x618>)
 60a:	4308      	orr	r0, r1
 60c:	6018      	str	r0, [r3, #0]
 60e:	3a01      	sub	r2, #1
 610:	2a00      	cmp	r2, #0
 612:	dcfc      	bgt	60e <sd_ctrl+0xa>
 614:	bc01      	pop	{r0}
 616:	4700      	bx	r0
 618:	0010      	lsl	r0, r2, #0
 61a:	1000      	asr	r0, r0, #0

0000061c <sd_init>:
 61c:	b530      	push	{r4, r5, lr}
 61e:	4913      	ldr	r1, [pc, #76]	(66c <.text+0x66c>)
 620:	2296      	mov	r2, #150
 622:	2496      	mov	r4, #150
 624:	1c05      	mov	r5, r0		(add r5, r0, #0)
 626:	0064      	lsl	r4, r4, #1
 628:	ffecf7ff 	bl	604 <sd_ctrl>
 62c:	2180      	mov	r1, #128
 62e:	1c28      	mov	r0, r5		(add r0, r5, #0)
 630:	1c22      	mov	r2, r4		(add r2, r4, #0)
 632:	0309      	lsl	r1, r1, #12
 634:	ffe6f7ff 	bl	604 <sd_ctrl>
 638:	1c28      	mov	r0, r5		(add r0, r5, #0)
 63a:	490d      	ldr	r1, [pc, #52]	(670 <.text+0x670>)
 63c:	2296      	mov	r2, #150
 63e:	ffe1f7ff 	bl	604 <sd_ctrl>
 642:	2180      	mov	r1, #128
 644:	1c28      	mov	r0, r5		(add r0, r5, #0)
 646:	1c22      	mov	r2, r4		(add r2, r4, #0)
 648:	0309      	lsl	r1, r1, #12
 64a:	ffdbf7ff 	bl	604 <sd_ctrl>
 64e:	2184      	mov	r1, #132
 650:	1c28      	mov	r0, r5		(add r0, r5, #0)
 652:	0449      	lsl	r1, r1, #17
 654:	2296      	mov	r2, #150
 656:	ffd5f7ff 	bl	604 <sd_ctrl>
 65a:	21b4      	mov	r1, #180
 65c:	1c28      	mov	r0, r5		(add r0, r5, #0)
 65e:	0449      	lsl	r1, r1, #17
 660:	2200      	mov	r2, #0
 662:	ffcff7ff 	bl	604 <sd_ctrl>
 666:	bc30      	pop	{r4, r5}
 668:	bc01      	pop	{r0}
 66a:	4700      	bx	r0
 66c:	8400      	strh	r0, [r0, #32]
 66e:	0008      	lsl	r0, r1, #0
 670:	002a      	lsl	r2, r5, #0
 672:	0009      	lsl	r1, r1, #0

00000674 <_call_via_r0>:
 674:	4700      	bx	r0
 676:	46c0      	nop			(mov r8, r8)

00000678 <_call_via_r1>:
 678:	4708      	bx	r1
 67a:	46c0      	nop			(mov r8, r8)

0000067c <_call_via_r2>:
 67c:	4710      	bx	r2
 67e:	46c0      	nop			(mov r8, r8)

00000680 <_call_via_r3>:
 680:	4718      	bx	r3
 682:	46c0      	nop			(mov r8, r8)

00000684 <_call_via_r4>:
 684:	4720      	bx	r4
 686:	46c0      	nop			(mov r8, r8)

00000688 <_call_via_r5>:
 688:	4728      	bx	r5
 68a:	46c0      	nop			(mov r8, r8)

0000068c <_call_via_r6>:
 68c:	4730      	bx	r6
 68e:	46c0      	nop			(mov r8, r8)

00000690 <_call_via_r7>:
 690:	4738      	bx	r7
 692:	46c0      	nop			(mov r8, r8)

00000694 <_call_via_r8>:
 694:	4740      	bx	r8
 696:	46c0      	nop			(mov r8, r8)

00000698 <_call_via_r9>:
 698:	4748      	bx	r9
 69a:	46c0      	nop			(mov r8, r8)

0000069c <_call_via_sl>:
 69c:	4750      	bx	sl
 69e:	46c0      	nop			(mov r8, r8)

000006a0 <_call_via_fp>:
 6a0:	4758      	bx	fp
 6a2:	46c0      	nop			(mov r8, r8)

000006a4 <_call_via_ip>:
 6a4:	4760      	bx	ip
 6a6:	46c0      	nop			(mov r8, r8)

000006a8 <_call_via_sp>:
 6a8:	4768      	bx	sp
 6aa:	46c0      	nop			(mov r8, r8)

000006ac <_call_via_lr>:
 6ac:	4770      	bx	lr
 6ae:	46c0      	nop			(mov r8, r8)
