	.file	"532323.c"
	.intel_syntax noprefix
	.text
	.data
	.align 32
	.type	crc32tab, @object
	.size	crc32tab, 1024
crc32tab:
	.long	0
	.long	1996959894
	.long	-301047508
	.long	-1727442502
	.long	124634137
	.long	1886057615
	.long	-379345611
	.long	-1637575261
	.long	249268274
	.long	2044508324
	.long	-522852066
	.long	-1747789432
	.long	162941995
	.long	2125561021
	.long	-407360249
	.long	-1866523247
	.long	498536548
	.long	1789927666
	.long	-205950648
	.long	-2067906082
	.long	450548861
	.long	1843258603
	.long	-187386543
	.long	-2083289657
	.long	325883990
	.long	1684777152
	.long	-43845254
	.long	-1973040660
	.long	335633487
	.long	1661365465
	.long	-99664541
	.long	-1928851979
	.long	997073096
	.long	1281953886
	.long	-715111964
	.long	-1570279054
	.long	1006888145
	.long	1258607687
	.long	-770865667
	.long	-1526024853
	.long	901097722
	.long	1119000684
	.long	-608450090
	.long	-1396901568
	.long	853044451
	.long	1172266101
	.long	-589951537
	.long	-1412350631
	.long	651767980
	.long	1373503546
	.long	-925412992
	.long	-1076862698
	.long	565507253
	.long	1454621731
	.long	-809855591
	.long	-1195530993
	.long	671266974
	.long	1594198024
	.long	-972236366
	.long	-1324619484
	.long	795835527
	.long	1483230225
	.long	-1050600021
	.long	-1234817731
	.long	1994146192
	.long	31158534
	.long	-1731059524
	.long	-271249366
	.long	1907459465
	.long	112637215
	.long	-1614814043
	.long	-390540237
	.long	2013776290
	.long	251722036
	.long	-1777751922
	.long	-519137256
	.long	2137656763
	.long	141376813
	.long	-1855689577
	.long	-429695999
	.long	1802195444
	.long	476864866
	.long	-2056965928
	.long	-228458418
	.long	1812370925
	.long	453092731
	.long	-2113342271
	.long	-183516073
	.long	1706088902
	.long	314042704
	.long	-1950435094
	.long	-54949764
	.long	1658658271
	.long	366619977
	.long	-1932296973
	.long	-69972891
	.long	1303535960
	.long	984961486
	.long	-1547960204
	.long	-725929758
	.long	1256170817
	.long	1037604311
	.long	-1529756563
	.long	-740887301
	.long	1131014506
	.long	879679996
	.long	-1385723834
	.long	-631195440
	.long	1141124467
	.long	855842277
	.long	-1442165665
	.long	-586318647
	.long	1342533948
	.long	654459306
	.long	-1106571248
	.long	-921952122
	.long	1466479909
	.long	544179635
	.long	-1184443383
	.long	-832445281
	.long	1591671054
	.long	702138776
	.long	-1328506846
	.long	-942167884
	.long	1504918807
	.long	783551873
	.long	-1212326853
	.long	-1061524307
	.long	-306674912
	.long	-1698712650
	.long	62317068
	.long	1957810842
	.long	-355121351
	.long	-1647151185
	.long	81470997
	.long	1943803523
	.long	-480048366
	.long	-1805370492
	.long	225274430
	.long	2053790376
	.long	-468791541
	.long	-1828061283
	.long	167816743
	.long	2097651377
	.long	-267414716
	.long	-2029476910
	.long	503444072
	.long	1762050814
	.long	-144550051
	.long	-2140837941
	.long	426522225
	.long	1852507879
	.long	-19653770
	.long	-1982649376
	.long	282753626
	.long	1742555852
	.long	-105259153
	.long	-1900089351
	.long	397917763
	.long	1622183637
	.long	-690576408
	.long	-1580100738
	.long	953729732
	.long	1340076626
	.long	-776247311
	.long	-1497606297
	.long	1068828381
	.long	1219638859
	.long	-670225446
	.long	-1358292148
	.long	906185462
	.long	1090812512
	.long	-547295293
	.long	-1469587627
	.long	829329135
	.long	1181335161
	.long	-882789492
	.long	-1134132454
	.long	628085408
	.long	1382605366
	.long	-871598187
	.long	-1156888829
	.long	570562233
	.long	1426400815
	.long	-977650754
	.long	-1296233688
	.long	733239954
	.long	1555261956
	.long	-1026031705
	.long	-1244606671
	.long	752459403
	.long	1541320221
	.long	-1687895376
	.long	-328994266
	.long	1969922972
	.long	40735498
	.long	-1677130071
	.long	-351390145
	.long	1913087877
	.long	83908371
	.long	-1782625662
	.long	-491226604
	.long	2075208622
	.long	213261112
	.long	-1831694693
	.long	-438977011
	.long	2094854071
	.long	198958881
	.long	-2032938284
	.long	-237706686
	.long	1759359992
	.long	534414190
	.long	-2118248755
	.long	-155638181
	.long	1873836001
	.long	414664567
	.long	-2012718362
	.long	-15766928
	.long	1711684554
	.long	285281116
	.long	-1889165569
	.long	-127750551
	.long	1634467795
	.long	376229701
	.long	-1609899400
	.long	-686959890
	.long	1308918612
	.long	956543938
	.long	-1486412191
	.long	-799009033
	.long	1231636301
	.long	1047427035
	.long	-1362007478
	.long	-640263460
	.long	1088359270
	.long	936918000
	.long	-1447252397
	.long	-558129467
	.long	1202900863
	.long	817233897
	.long	-1111625188
	.long	-893730166
	.long	1404277552
	.long	615818150
	.long	-1160759803
	.long	-841546093
	.long	1423857449
	.long	601450431
	.long	-1285129682
	.long	-1000256840
	.long	1567103746
	.long	711928724
	.long	-1274298825
	.long	-1022587231
	.long	1510334235
	.long	755167117
	.text
	.globl	crc32
	.type	crc32, @function
crc32:
.LFB6:
	.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 -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -4[rbp]
	shr	eax, 8
	mov	ecx, eax
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	xor	eax, DWORD PTR -4[rbp]
	movzx	eax, al
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, crc32tab[rip]
	mov	eax, DWORD PTR [rdx+rax]
	xor	eax, ecx
	mov	DWORD PTR -4[rbp], eax
.L2:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, -1[rax]
	mov	QWORD PTR -24[rbp], rdx
	test	rax, rax
	jne	.L3
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	crc32, .-crc32
	.globl	getlen
	.type	getlen, @function
getlen:
.LFB7:
	.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
	cmp	QWORD PTR -24[rbp], 0
	jne	.L6
	mov	eax, 0
	jmp	.L7
.L6:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -8[rbp]
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	getlen, .-getlen
	.section	.rodata
.LC0:
	.string	"Board id is too long!\n"
.LC1:
	.string	"Chip id is too long!\n"
.LC2:
	.string	"rb"
.LC3:
	.string	"Unable to open kernel \"%s\"\n"
.LC4:
	.string	"Unable to open rootfs \"%s\"\n"
.LC5:
	.string	"wb"
	.align 8
.LC6:
	.string	"Unable to open output file \"%s\"\n"
.LC7:
	.string	"OpenWRT BCM963xx"
.LC8:
	.string	"V1"
.LC9:
	.string	"%lu"
	.text
	.globl	tagfile
	.type	tagfile, @function
tagfile:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1440
	mov	QWORD PTR -1400[rbp], rdi
	mov	QWORD PTR -1408[rbp], rsi
	mov	QWORD PTR -1416[rbp], rdx
	mov	QWORD PTR -1424[rbp], rcx
	mov	QWORD PTR -1432[rbp], r8
	mov	DWORD PTR -1436[rbp], r9d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -1376[rbp], 0
	mov	QWORD PTR -1368[rbp], 0
	lea	rax, -1296[rbp]
	mov	edx, 256
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -1424[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 15
	jbe	.L9
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L28
.L9:
	mov	rax, QWORD PTR -1432[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 5
	jbe	.L11
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 21
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L28
.L11:
	cmp	QWORD PTR -1400[rbp], 0
	je	.L12
	mov	rax, QWORD PTR -1400[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1376[rbp], rax
	cmp	QWORD PTR -1376[rbp], 0
	jne	.L12
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -1400[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L28
.L12:
	cmp	QWORD PTR -1408[rbp], 0
	je	.L13
	mov	rax, QWORD PTR -1408[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1368[rbp], rax
	cmp	QWORD PTR -1368[rbp], 0
	jne	.L13
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -1408[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L28
.L13:
	cmp	QWORD PTR -1416[rbp], 0
	je	.L14
	mov	rax, QWORD PTR -1416[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1360[rbp], rax
	cmp	QWORD PTR -1360[rbp], 0
	jne	.L15
.L14:
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -1416[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L28
.L15:
	mov	eax, 3217096960
	mov	QWORD PTR -1352[rbp], rax
	mov	rax, QWORD PTR -1376[rbp]
	mov	rdi, rax
	call	getlen
	mov	QWORD PTR -1344[rbp], rax
	mov	eax, DWORD PTR -1436[rbp]
	mov	edi, eax
	call	htonl@PLT
	mov	DWORD PTR -1308[rbp], eax
	mov	edi, DWORD PTR 16[rbp]
	call	htonl@PLT
	mov	DWORD PTR -1304[rbp], eax
	mov	rax, QWORD PTR -1344[rbp]
	mov	edi, eax
	call	htonl@PLT
	mov	DWORD PTR -1300[rbp], eax
	add	QWORD PTR -1344[rbp], 12
	mov	rdx, QWORD PTR -1352[rbp]
	mov	rax, QWORD PTR -1344[rbp]
	add	rax, rdx
	mov	QWORD PTR -1336[rbp], rax
	mov	rax, QWORD PTR -1336[rbp]
	movzx	eax, ax
	test	rax, rax
	je	.L16
	mov	rax, QWORD PTR -1336[rbp]
	shr	rax, 16
	add	rax, 1
	sal	rax, 16
	jmp	.L17
.L16:
	mov	rax, QWORD PTR -1336[rbp]
.L17:
	mov	QWORD PTR -1336[rbp], rax
	mov	rax, QWORD PTR -1368[rbp]
	mov	rdi, rax
	call	getlen
	mov	QWORD PTR -1328[rbp], rax
	mov	rax, QWORD PTR -1328[rbp]
	movzx	eax, ax
	test	rax, rax
	je	.L18
	mov	rax, QWORD PTR -1328[rbp]
	shr	rax, 16
	add	rax, 1
	sal	rax, 16
	jmp	.L19
.L18:
	mov	rax, QWORD PTR -1328[rbp]
.L19:
	mov	QWORD PTR -1328[rbp], rax
	movabs	rdx, -3217096704
	mov	rax, QWORD PTR -1352[rbp]
	add	rax, rdx
	mov	rcx, rax
	mov	rax, QWORD PTR -1360[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	lea	rax, -1308[rbp]
	mov	edx, 12
	mov	rsi, rax
	mov	edi, -1
	call	crc32
	mov	DWORD PTR -1380[rbp], eax
	mov	rdx, QWORD PTR -1360[rbp]
	lea	rax, -1308[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 12
	mov	rdi, rax
	call	fwrite@PLT
	jmp	.L20
.L22:
	mov	rdx, QWORD PTR -1376[rbp]
	lea	rax, -1040[rbp]
	mov	rcx, rdx
	mov	edx, 1024
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	QWORD PTR -1320[rbp], rax
	mov	rdx, QWORD PTR -1320[rbp]
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1380[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	crc32
	mov	DWORD PTR -1380[rbp], eax
	mov	rcx, QWORD PTR -1360[rbp]
	mov	rdx, QWORD PTR -1320[rbp]
	lea	rax, -1040[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
.L20:
	cmp	QWORD PTR -1376[rbp], 0
	je	.L21
	mov	rax, QWORD PTR -1376[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L21
	mov	rax, QWORD PTR -1376[rbp]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	je	.L22
.L21:
	movabs	rdx, -3217096704
	mov	rax, QWORD PTR -1336[rbp]
	add	rax, rdx
	mov	rcx, rax
	mov	rax, QWORD PTR -1360[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	jmp	.L23
.L25:
	mov	rdx, QWORD PTR -1368[rbp]
	lea	rax, -1040[rbp]
	mov	rcx, rdx
	mov	edx, 1024
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	QWORD PTR -1320[rbp], rax
	mov	rcx, QWORD PTR -1360[rbp]
	mov	rdx, QWORD PTR -1320[rbp]
	lea	rax, -1040[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
.L23:
	cmp	QWORD PTR -1368[rbp], 0
	je	.L24
	mov	rax, QWORD PTR -1368[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L24
	mov	rax, QWORD PTR -1368[rbp]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	je	.L25
.L24:
	mov	rax, QWORD PTR -1376[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -1368[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rax, -1296[rbp]
	mov	WORD PTR [rax], 54
	lea	rax, -1296[rbp]
	add	rax, 4
	mov	edx, 19
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strncpy@PLT
	lea	rax, -1296[rbp]
	add	rax, 24
	mov	edx, 19
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strncpy@PLT
	mov	rax, QWORD PTR -1432[rbp]
	lea	rdx, -1296[rbp]
	add	rdx, 38
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	rax, QWORD PTR -1424[rbp]
	lea	rdx, -1296[rbp]
	add	rdx, 44
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	WORD PTR -1236[rbp], 49
	mov	rdx, QWORD PTR -1344[rbp]
	mov	rax, QWORD PTR -1328[rbp]
	add	rdx, rax
	lea	rax, -1296[rbp]
	add	rax, 62
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -1296[rbp]
	add	rax, 72
	mov	WORD PTR [rax], 48
	lea	rax, -1296[rbp]
	add	rax, 84
	mov	WORD PTR [rax], 48
	cmp	QWORD PTR -1376[rbp], 0
	je	.L26
	mov	rax, QWORD PTR -1352[rbp]
	lea	rdx, -1296[rbp]
	lea	rcx, 116[rdx]
	mov	rdx, rax
	lea	rsi, .LC9[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -1344[rbp]
	lea	rdx, -1296[rbp]
	lea	rcx, 128[rdx]
	mov	rdx, rax
	lea	rsi, .LC9[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	sprintf@PLT
.L26:
	cmp	QWORD PTR -1368[rbp], 0
	je	.L27
	mov	rax, QWORD PTR -1336[rbp]
	lea	rdx, -1296[rbp]
	lea	rcx, 94[rdx]
	mov	rdx, rax
	lea	rsi, .LC9[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -1328[rbp]
	lea	rdx, -1296[rbp]
	lea	rcx, 106[rdx]
	mov	rdx, rax
	lea	rsi, .LC9[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	sprintf@PLT
.L27:
	mov	eax, DWORD PTR -1380[rbp]
	mov	edi, eax
	call	htonl@PLT
	mov	DWORD PTR -1080[rbp], eax
	lea	rax, -1296[rbp]
	mov	edx, 236
	mov	rsi, rax
	mov	edi, -1
	call	crc32
	mov	edi, eax
	call	htonl@PLT
	mov	DWORD PTR -1060[rbp], eax
	mov	rax, QWORD PTR -1360[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rdx, QWORD PTR -1360[rbp]
	lea	rax, -1296[rbp]
	mov	rcx, rdx
	mov	edx, 256
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -1360[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L28:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	tagfile, .-tagfile
	.section	.rodata
	.align 8
.LC10:
	.string	"Broadcom image tagger - v0.1.0"
.LC11:
	.string	"Copyright (C) 2008 Axel Gembe"
.LC12:
	.string	"Usage: imagetag <parameters>\n"
	.align 8
.LC13:
	.string	"-i <kernel>   - The LZMA compressed kernel file to include in the image\n"
	.align 8
.LC14:
	.string	"-f <rootfs>   - The RootFS file to include in the image\n"
	.align 8
.LC15:
	.string	"-o <bin>      - The output file\n"
	.align 8
.LC16:
	.string	"-b <boardid>  - The board id to set in the image (i.e. \"96345GW2\")\n"
	.align 8
.LC17:
	.string	"-c <chipid>   - The chip id to set in the image (i.e. \"6345\")\n"
	.align 8
.LC18:
	.string	"-l <loadaddr> - Address where the kernel expects to be loaded (defaults to 0x80010000)\n"
	.align 8
.LC19:
	.string	"-e <entry>    - Address where the kernel entry point will end up\n"
	.align 8
.LC20:
	.string	"-h            - Displays this text\n"
.LC21:
	.string	"i:f:o:b:c:l:e:h"
	.align 8
.LC22:
	.string	"You need to specify the board (-b) and chip id (-c)!\n"
	.align 8
.LC23:
	.string	"You need to specify the kernel entry (-e)\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	QWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	DWORD PTR -48[rbp], 0
	mov	DWORD PTR -52[rbp], -2147418112
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	jmp	.L31
.L42:
	mov	eax, DWORD PTR -44[rbp]
	sub	eax, 98
	cmp	eax, 13
	ja	.L32
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L34[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L34[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L34:
	.long	.L40-.L34
	.long	.L39-.L34
	.long	.L32-.L34
	.long	.L38-.L34
	.long	.L37-.L34
	.long	.L32-.L34
	.long	.L32-.L34
	.long	.L36-.L34
	.long	.L32-.L34
	.long	.L32-.L34
	.long	.L35-.L34
	.long	.L32-.L34
	.long	.L32-.L34
	.long	.L33-.L34
	.text
.L36:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -40[rbp], rax
	jmp	.L31
.L37:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L31
.L33:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L31
.L40:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L31
.L39:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L31
.L35:
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	DWORD PTR -52[rbp], eax
	jmp	.L31
.L38:
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	DWORD PTR -48[rbp], eax
	jmp	.L31
.L32:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 29
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 72
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 56
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 32
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 67
	mov	esi, 1
	lea	rdi, .LC16[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 62
	mov	esi, 1
	lea	rdi, .LC17[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 87
	mov	esi, 1
	lea	rdi, .LC18[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 65
	mov	esi, 1
	lea	rdi, .LC19[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 35
	mov	esi, 1
	lea	rdi, .LC20[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L41
.L31:
	mov	rcx, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR -68[rbp]
	lea	rdx, .LC21[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], -1
	jne	.L42
	cmp	QWORD PTR -16[rbp], 0
	je	.L43
	cmp	QWORD PTR -8[rbp], 0
	jne	.L44
.L43:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 53
	mov	esi, 1
	lea	rdi, .LC22[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L41
.L44:
	cmp	DWORD PTR -48[rbp], 0
	jne	.L45
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 42
	mov	esi, 1
	lea	rdi, .LC23[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L41
.L45:
	mov	r9d, DWORD PTR -52[rbp]
	mov	r8, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	sub	rsp, 8
	mov	edi, DWORD PTR -48[rbp]
	push	rdi
	mov	rdi, rax
	call	tagfile
	add	rsp, 16
.L41:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"532323.c"
	.text
	.data
	.align	2
	.type	crc32tab, %object
	.size	crc32tab, 1024
crc32tab:
	.word	0
	.word	1996959894
	.word	-301047508
	.word	-1727442502
	.word	124634137
	.word	1886057615
	.word	-379345611
	.word	-1637575261
	.word	249268274
	.word	2044508324
	.word	-522852066
	.word	-1747789432
	.word	162941995
	.word	2125561021
	.word	-407360249
	.word	-1866523247
	.word	498536548
	.word	1789927666
	.word	-205950648
	.word	-2067906082
	.word	450548861
	.word	1843258603
	.word	-187386543
	.word	-2083289657
	.word	325883990
	.word	1684777152
	.word	-43845254
	.word	-1973040660
	.word	335633487
	.word	1661365465
	.word	-99664541
	.word	-1928851979
	.word	997073096
	.word	1281953886
	.word	-715111964
	.word	-1570279054
	.word	1006888145
	.word	1258607687
	.word	-770865667
	.word	-1526024853
	.word	901097722
	.word	1119000684
	.word	-608450090
	.word	-1396901568
	.word	853044451
	.word	1172266101
	.word	-589951537
	.word	-1412350631
	.word	651767980
	.word	1373503546
	.word	-925412992
	.word	-1076862698
	.word	565507253
	.word	1454621731
	.word	-809855591
	.word	-1195530993
	.word	671266974
	.word	1594198024
	.word	-972236366
	.word	-1324619484
	.word	795835527
	.word	1483230225
	.word	-1050600021
	.word	-1234817731
	.word	1994146192
	.word	31158534
	.word	-1731059524
	.word	-271249366
	.word	1907459465
	.word	112637215
	.word	-1614814043
	.word	-390540237
	.word	2013776290
	.word	251722036
	.word	-1777751922
	.word	-519137256
	.word	2137656763
	.word	141376813
	.word	-1855689577
	.word	-429695999
	.word	1802195444
	.word	476864866
	.word	-2056965928
	.word	-228458418
	.word	1812370925
	.word	453092731
	.word	-2113342271
	.word	-183516073
	.word	1706088902
	.word	314042704
	.word	-1950435094
	.word	-54949764
	.word	1658658271
	.word	366619977
	.word	-1932296973
	.word	-69972891
	.word	1303535960
	.word	984961486
	.word	-1547960204
	.word	-725929758
	.word	1256170817
	.word	1037604311
	.word	-1529756563
	.word	-740887301
	.word	1131014506
	.word	879679996
	.word	-1385723834
	.word	-631195440
	.word	1141124467
	.word	855842277
	.word	-1442165665
	.word	-586318647
	.word	1342533948
	.word	654459306
	.word	-1106571248
	.word	-921952122
	.word	1466479909
	.word	544179635
	.word	-1184443383
	.word	-832445281
	.word	1591671054
	.word	702138776
	.word	-1328506846
	.word	-942167884
	.word	1504918807
	.word	783551873
	.word	-1212326853
	.word	-1061524307
	.word	-306674912
	.word	-1698712650
	.word	62317068
	.word	1957810842
	.word	-355121351
	.word	-1647151185
	.word	81470997
	.word	1943803523
	.word	-480048366
	.word	-1805370492
	.word	225274430
	.word	2053790376
	.word	-468791541
	.word	-1828061283
	.word	167816743
	.word	2097651377
	.word	-267414716
	.word	-2029476910
	.word	503444072
	.word	1762050814
	.word	-144550051
	.word	-2140837941
	.word	426522225
	.word	1852507879
	.word	-19653770
	.word	-1982649376
	.word	282753626
	.word	1742555852
	.word	-105259153
	.word	-1900089351
	.word	397917763
	.word	1622183637
	.word	-690576408
	.word	-1580100738
	.word	953729732
	.word	1340076626
	.word	-776247311
	.word	-1497606297
	.word	1068828381
	.word	1219638859
	.word	-670225446
	.word	-1358292148
	.word	906185462
	.word	1090812512
	.word	-547295293
	.word	-1469587627
	.word	829329135
	.word	1181335161
	.word	-882789492
	.word	-1134132454
	.word	628085408
	.word	1382605366
	.word	-871598187
	.word	-1156888829
	.word	570562233
	.word	1426400815
	.word	-977650754
	.word	-1296233688
	.word	733239954
	.word	1555261956
	.word	-1026031705
	.word	-1244606671
	.word	752459403
	.word	1541320221
	.word	-1687895376
	.word	-328994266
	.word	1969922972
	.word	40735498
	.word	-1677130071
	.word	-351390145
	.word	1913087877
	.word	83908371
	.word	-1782625662
	.word	-491226604
	.word	2075208622
	.word	213261112
	.word	-1831694693
	.word	-438977011
	.word	2094854071
	.word	198958881
	.word	-2032938284
	.word	-237706686
	.word	1759359992
	.word	534414190
	.word	-2118248755
	.word	-155638181
	.word	1873836001
	.word	414664567
	.word	-2012718362
	.word	-15766928
	.word	1711684554
	.word	285281116
	.word	-1889165569
	.word	-127750551
	.word	1634467795
	.word	376229701
	.word	-1609899400
	.word	-686959890
	.word	1308918612
	.word	956543938
	.word	-1486412191
	.word	-799009033
	.word	1231636301
	.word	1047427035
	.word	-1362007478
	.word	-640263460
	.word	1088359270
	.word	936918000
	.word	-1447252397
	.word	-558129467
	.word	1202900863
	.word	817233897
	.word	-1111625188
	.word	-893730166
	.word	1404277552
	.word	615818150
	.word	-1160759803
	.word	-841546093
	.word	1423857449
	.word	601450431
	.word	-1285129682
	.word	-1000256840
	.word	1567103746
	.word	711928724
	.word	-1274298825
	.word	-1022587231
	.word	1510334235
	.word	755167117
	.text
	.align	2
	.global	crc32
	.syntax unified
	.arm
	.fpu softvfp
	.type	crc32, %function
crc32:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	b	.L2
.L3:
	ldr	r3, [fp, #-8]
	lsr	r2, r3, #8
	ldr	r3, [fp, #-12]
	add	r1, r3, #1
	str	r1, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-8]
	eor	r3, r3, r1
	and	r3, r3, #255
	ldr	r1, .L5
	ldr	r3, [r1, r3, lsl #2]
	eor	r3, r3, r2
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-16]
	sub	r2, r3, #1
	str	r2, [fp, #-16]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L6:
	.align	2
.L5:
	.word	crc32tab
	.size	crc32, .-crc32
	.align	2
	.global	getlen
	.syntax unified
	.arm
	.fpu softvfp
	.type	getlen, %function
getlen:
	@ 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]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L8
	mov	r3, #0
	b	.L9
.L8:
	ldr	r0, [fp, #-16]
	bl	ftell
	mov	r3, r0
	str	r3, [fp, #-12]
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	fseek
	ldr	r0, [fp, #-16]
	bl	ftell
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	fseek
	ldr	r3, [fp, #-8]
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	getlen, .-getlen
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Board id is too long!\012\000"
	.align	2
.LC1:
	.ascii	"Chip id is too long!\012\000"
	.align	2
.LC2:
	.ascii	"rb\000"
	.align	2
.LC3:
	.ascii	"Unable to open kernel \"%s\"\012\000"
	.align	2
.LC4:
	.ascii	"Unable to open rootfs \"%s\"\012\000"
	.align	2
.LC5:
	.ascii	"wb\000"
	.align	2
.LC6:
	.ascii	"Unable to open output file \"%s\"\012\000"
	.align	2
.LC7:
	.ascii	"OpenWRT BCM963xx\000"
	.align	2
.LC8:
	.ascii	"V1\000"
	.align	2
.LC9:
	.ascii	"%lu\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tagfile
	.syntax unified
	.arm
	.fpu softvfp
	.type	tagfile, %function
tagfile:
	@ args = 12, pretend = 0, frame = 1360
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1360
	str	r0, [fp, #-1344]
	str	r1, [fp, #-1348]
	str	r2, [fp, #-1352]
	str	r3, [fp, #-1356]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-1360]
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1336]
	mov	r3, #0
	str	r3, [fp, #-1332]
	sub	r3, fp, #1280
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #256
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, [fp, #-1356]
	bl	strlen
	mov	r3, r0
	cmp	r3, #15
	bls	.L11
	ldr	r3, .L32+4
	ldr	r3, [r3]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L32+8
	bl	fwrite
	mov	r3, #1
	b	.L30
.L11:
	ldr	r0, [fp, #-1360]
	bl	strlen
	mov	r3, r0
	cmp	r3, #5
	bls	.L13
	ldr	r3, .L32+4
	ldr	r3, [r3]
	mov	r2, #21
	mov	r1, #1
	ldr	r0, .L32+12
	bl	fwrite
	mov	r3, #1
	b	.L30
.L13:
	ldr	r3, [fp, #-1344]
	cmp	r3, #0
	beq	.L14
	ldr	r1, .L32+16
	ldr	r0, [fp, #-1344]
	bl	fopen
	str	r0, [fp, #-1336]
	ldr	r3, [fp, #-1336]
	cmp	r3, #0
	bne	.L14
	ldr	r3, .L32+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-1344]
	ldr	r1, .L32+20
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L30
.L14:
	ldr	r3, [fp, #-1348]
	cmp	r3, #0
	beq	.L15
	ldr	r1, .L32+16
	ldr	r0, [fp, #-1348]
	bl	fopen
	str	r0, [fp, #-1332]
	ldr	r3, [fp, #-1332]
	cmp	r3, #0
	bne	.L15
	ldr	r3, .L32+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-1348]
	ldr	r1, .L32+24
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L30
.L15:
	ldr	r3, [fp, #-1352]
	cmp	r3, #0
	beq	.L16
	ldr	r1, .L32+28
	ldr	r0, [fp, #-1352]
	bl	fopen
	str	r0, [fp, #-1324]
	ldr	r3, [fp, #-1324]
	cmp	r3, #0
	bne	.L17
.L16:
	ldr	r3, .L32+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-1352]
	ldr	r1, .L32+32
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L30
.L17:
	ldr	r3, .L32+36
	str	r3, [fp, #-1320]
	ldr	r0, [fp, #-1336]
	bl	getlen
	str	r0, [fp, #-1316]
	ldr	r0, [fp, #8]
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-1300]
	ldr	r0, [fp, #12]
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-1296]
	ldr	r0, [fp, #-1316]
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-1292]
	ldr	r3, [fp, #-1316]
	add	r3, r3, #12
	str	r3, [fp, #-1316]
	ldr	r2, [fp, #-1320]
	ldr	r3, [fp, #-1316]
	add	r3, r2, r3
	str	r3, [fp, #-1312]
	ldr	r3, [fp, #-1312]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-1312]
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	b	.L19
.L18:
	ldr	r3, [fp, #-1312]
.L19:
	str	r3, [fp, #-1312]
	ldr	r0, [fp, #-1332]
	bl	getlen
	str	r0, [fp, #-1308]
	ldr	r3, [fp, #-1308]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-1308]
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	b	.L21
.L20:
	ldr	r3, [fp, #-1308]
.L21:
	str	r3, [fp, #-1308]
	ldr	r3, [fp, #-1320]
	add	r3, r3, #1073741824
	add	r3, r3, #4128768
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-1324]
	bl	fseek
	sub	r3, fp, #1296
	sub	r3, r3, #4
	mov	r2, #12
	mov	r1, r3
	mvn	r0, #0
	bl	crc32
	str	r0, [fp, #-1328]
	sub	r0, fp, #1296
	sub	r0, r0, #4
	ldr	r3, [fp, #-1324]
	mov	r2, #1
	mov	r1, #12
	bl	fwrite
	b	.L22
.L24:
	sub	r0, fp, #1024
	sub	r0, r0, #4
	sub	r0, r0, #4
	ldr	r3, [fp, #-1336]
	mov	r2, #1024
	mov	r1, #1
	bl	fread
	str	r0, [fp, #-1304]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1304]
	mov	r1, r3
	ldr	r0, [fp, #-1328]
	bl	crc32
	str	r0, [fp, #-1328]
	sub	r0, fp, #1024
	sub	r0, r0, #4
	sub	r0, r0, #4
	ldr	r3, [fp, #-1324]
	ldr	r2, [fp, #-1304]
	mov	r1, #1
	bl	fwrite
.L22:
	ldr	r3, [fp, #-1336]
	cmp	r3, #0
	beq	.L23
	ldr	r0, [fp, #-1336]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L23
	ldr	r0, [fp, #-1336]
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
.L23:
	ldr	r3, [fp, #-1312]
	add	r3, r3, #1073741824
	add	r3, r3, #4128768
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-1324]
	bl	fseek
	b	.L25
.L27:
	sub	r0, fp, #1024
	sub	r0, r0, #4
	sub	r0, r0, #4
	ldr	r3, [fp, #-1332]
	mov	r2, #1024
	mov	r1, #1
	bl	fread
	str	r0, [fp, #-1304]
	sub	r0, fp, #1024
	sub	r0, r0, #4
	sub	r0, r0, #4
	ldr	r3, [fp, #-1324]
	ldr	r2, [fp, #-1304]
	mov	r1, #1
	bl	fwrite
.L25:
	ldr	r3, [fp, #-1332]
	cmp	r3, #0
	beq	.L26
	ldr	r0, [fp, #-1332]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L26
	ldr	r0, [fp, #-1332]
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
.L26:
	ldr	r0, [fp, #-1336]
	bl	fclose
	ldr	r0, [fp, #-1332]
	bl	fclose
	sub	r3, fp, #1280
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #54
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #1280
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #4
	mov	r2, #19
	ldr	r1, .L32+40
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #1280
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #24
	mov	r2, #19
	ldr	r1, .L32+44
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #1280
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #38
	ldr	r1, [fp, #-1360]
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #1280
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #44
	ldr	r1, [fp, #-1356]
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #4
	sub	r3, r3, #1216
	sub	r3, r3, #8
	mov	r2, #49
	strh	r2, [r3]	@ movhi
	ldr	r2, [fp, #-1316]
	ldr	r3, [fp, #-1308]
	add	r2, r2, r3
	sub	r3, fp, #1280
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #62
	ldr	r1, .L32+48
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #1280
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #72
	mov	r2, #48
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #1280
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #84
	mov	r2, #48
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-1336]
	cmp	r3, #0
	beq	.L28
	sub	r3, fp, #1280
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #116
	ldr	r2, [fp, #-1320]
	ldr	r1, .L32+48
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #1280
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #128
	ldr	r2, [fp, #-1316]
	ldr	r1, .L32+48
	mov	r0, r3
	bl	sprintf
.L28:
	ldr	r3, [fp, #-1332]
	cmp	r3, #0
	beq	.L29
	sub	r3, fp, #1280
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #94
	ldr	r2, [fp, #-1312]
	ldr	r1, .L32+48
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #1280
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #106
	ldr	r2, [fp, #-1308]
	ldr	r1, .L32+48
	mov	r0, r3
	bl	sprintf
.L29:
	ldr	r0, [fp, #-1328]
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-1072]
	sub	r3, fp, #1280
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #236
	mov	r1, r3
	mvn	r0, #0
	bl	crc32
	mov	r3, r0
	mov	r0, r3
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-1052]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-1324]
	bl	fseek
	sub	r0, fp, #1280
	sub	r0, r0, #4
	sub	r0, r0, #4
	ldr	r3, [fp, #-1324]
	mov	r2, #256
	mov	r1, #1
	bl	fwrite
	ldr	r0, [fp, #-1324]
	bl	fclose
	mov	r3, #0
.L30:
	ldr	r2, .L32
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC10
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	-1077870336
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	tagfile, .-tagfile
	.section	.rodata
	.align	2
.LC11:
	.ascii	"Broadcom image tagger - v0.1.0\000"
	.align	2
.LC12:
	.ascii	"Copyright (C) 2008 Axel Gembe\000"
	.align	2
.LC13:
	.ascii	"Usage: imagetag <parameters>\012\000"
	.align	2
.LC14:
	.ascii	"-i <kernel>   - The LZMA compressed kernel file to "
	.ascii	"include in the image\012\000"
	.align	2
.LC15:
	.ascii	"-f <rootfs>   - The RootFS file to include in the i"
	.ascii	"mage\012\000"
	.align	2
.LC16:
	.ascii	"-o <bin>      - The output file\012\000"
	.align	2
.LC17:
	.ascii	"-b <boardid>  - The board id to set in the image (i"
	.ascii	".e. \"96345GW2\")\012\000"
	.align	2
.LC18:
	.ascii	"-c <chipid>   - The chip id to set in the image (i."
	.ascii	"e. \"6345\")\012\000"
	.align	2
.LC19:
	.ascii	"-l <loadaddr> - Address where the kernel expects to"
	.ascii	" be loaded (defaults to 0x80010000)\012\000"
	.align	2
.LC20:
	.ascii	"-e <entry>    - Address where the kernel entry poin"
	.ascii	"t will end up\012\000"
	.align	2
.LC21:
	.ascii	"-h            - Displays this text\012\000"
	.align	2
.LC22:
	.ascii	"i:f:o:b:c:l:e:h\000"
	.align	2
.LC23:
	.ascii	"You need to specify the board (-b) and chip id (-c)"
	.ascii	"!\012\000"
	.align	2
.LC24:
	.ascii	"You need to specify the kernel entry (-e)\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L50
	str	r3, [fp, #-16]
	ldr	r0, .L50+4
	bl	puts
	ldr	r0, .L50+8
	bl	puts
	b	.L35
.L46:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #98
	cmp	r3, #13
	ldrls	pc, [pc, r3, asl #2]
	b	.L36
.L38:
	.word	.L44
	.word	.L43
	.word	.L36
	.word	.L42
	.word	.L41
	.word	.L36
	.word	.L36
	.word	.L40
	.word	.L36
	.word	.L36
	.word	.L39
	.word	.L36
	.word	.L36
	.word	.L37
.L40:
	ldr	r3, .L50+12
	ldr	r3, [r3]
	str	r3, [fp, #-36]
	b	.L35
.L41:
	ldr	r3, .L50+12
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	b	.L35
.L37:
	ldr	r3, .L50+12
	ldr	r3, [r3]
	str	r3, [fp, #-28]
	b	.L35
.L44:
	ldr	r3, .L50+12
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	b	.L35
.L43:
	ldr	r3, .L50+12
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	b	.L35
.L39:
	ldr	r3, .L50+12
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	str	r0, [fp, #-16]
	b	.L35
.L42:
	ldr	r3, .L50+12
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	str	r0, [fp, #-12]
	b	.L35
.L36:
	ldr	r3, .L50+16
	ldr	r3, [r3]
	mov	r2, #29
	mov	r1, #1
	ldr	r0, .L50+20
	bl	fwrite
	ldr	r3, .L50+16
	ldr	r3, [r3]
	mov	r2, #72
	mov	r1, #1
	ldr	r0, .L50+24
	bl	fwrite
	ldr	r3, .L50+16
	ldr	r3, [r3]
	mov	r2, #56
	mov	r1, #1
	ldr	r0, .L50+28
	bl	fwrite
	ldr	r3, .L50+16
	ldr	r3, [r3]
	mov	r2, #32
	mov	r1, #1
	ldr	r0, .L50+32
	bl	fwrite
	ldr	r3, .L50+16
	ldr	r3, [r3]
	mov	r2, #67
	mov	r1, #1
	ldr	r0, .L50+36
	bl	fwrite
	ldr	r3, .L50+16
	ldr	r3, [r3]
	mov	r2, #62
	mov	r1, #1
	ldr	r0, .L50+40
	bl	fwrite
	ldr	r3, .L50+16
	ldr	r3, [r3]
	mov	r2, #87
	mov	r1, #1
	ldr	r0, .L50+44
	bl	fwrite
	ldr	r3, .L50+16
	ldr	r3, [r3]
	mov	r2, #65
	mov	r1, #1
	ldr	r0, .L50+48
	bl	fwrite
	ldr	r3, .L50+16
	ldr	r3, [r3]
	mov	r2, #35
	mov	r1, #1
	ldr	r0, .L50+52
	bl	fwrite
	mov	r3, #1
	b	.L45
.L35:
	ldr	r2, .L50+56
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	getopt
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L46
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L47
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L48
.L47:
	ldr	r3, .L50+16
	ldr	r3, [r3]
	mov	r2, #53
	mov	r1, #1
	ldr	r0, .L50+60
	bl	fwrite
	mov	r3, #1
	b	.L45
.L48:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L49
	ldr	r3, .L50+16
	ldr	r3, [r3]
	mov	r2, #42
	mov	r1, #1
	ldr	r0, .L50+64
	bl	fwrite
	mov	r3, #1
	b	.L45
.L49:
	ldr	r3, [fp, #-12]
	str	r3, [sp, #8]
	ldr	r3, [fp, #-16]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-20]
	str	r3, [sp]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	tagfile
	mov	r3, r0
.L45:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L51:
	.align	2
.L50:
	.word	-2147418112
	.word	.LC11
	.word	.LC12
	.word	optarg
	.word	stderr
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
