	.file	"729272.c"
	.intel_syntax noprefix
	.text
	.globl	boards
	.section	.rodata
.LC0:
	.string	"E2100L"
.LC1:
	.string	"NL1X"
.LC2:
	.string	"WRT160NL"
.LC3:
	.string	"NL16"
.LC4:
	.string	"mynet-rext"
.LC5:
	.string	"WDHNSTFH"
	.section	.data.rel.local,"aw"
	.align 32
	.type	boards, @object
	.size	boards, 96
boards:
	.quad	.LC0
	.quad	.LC1
	.byte	0
	.byte	15
	.string	"?"
	.zero	4
	.quad	.LC2
	.quad	.LC3
	.byte	0
	.byte	15
	.string	"?"
	.zero	4
	.quad	.LC4
	.quad	.LC5
	.byte	0
	.byte	0
	.string	"?"
	.zero	4
	.quad	0
	.zero	16
	.section	.rodata
	.align 8
.LC6:
	.string	"Usage: addpattern [-i trxfile] [-o binfile] [-B board_id] [-p pattern] [-s serial] [-g] [-b] [-v v#.#.#] [-r #.#] [-{0|1|2|4|5}] -h\n"
	.text
	.globl	usage
	.type	usage, @function
usage:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 132
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	usage, .-usage
	.data
	.align 8
	.type	source_date_epoch, @object
	.size	source_date_epoch, 8
source_date_epoch:
	.quad	-1
	.section	.rodata
.LC7:
	.string	"SOURCE_DATE_EPOCH"
.LC8:
	.string	"Invalid SOURCE_DATE_EPOCH"
	.text
	.type	set_source_date_epoch, @function
set_source_date_epoch:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC7[rip]
	call	getenv@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -24[rbp], rax
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	cmp	QWORD PTR -16[rbp], 0
	je	.L6
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L6
	lea	rcx, -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	strtoull@PLT
	mov	QWORD PTR source_date_epoch[rip], rax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L4
	mov	rax, QWORD PTR -24[rbp]
	test	rax, rax
	je	.L6
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L6
.L4:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	set_source_date_epoch, .-set_source_date_epoch
	.globl	find_board
	.type	find_board, @function
find_board:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	lea	rax, boards[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L8
.L11:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L9
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L10
.L9:
	add	QWORD PTR -8[rbp], 24
.L8:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L11
	mov	eax, 0
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	find_board, .-find_board
	.section	.rodata
.LC9:
	.string	"W54S"
.LC10:
	.string	"PBOT"
.LC11:
	.string	"v3.37.2"
	.align 8
.LC12:
	.string	"mjn3's addpattern replacement - v0.81\n"
.LC14:
	.string	"i:o:p:s:gbv:01245hr:B:"
.LC15:
	.string	"illegal arg \"%s\"\n"
.LC16:
	.string	"unknown board \"%s\"\n"
.LC17:
	.string	"illegal pattern \"%s\"\n"
.LC18:
	.string	"r"
	.align 8
.LC19:
	.string	"can not open \"%s\" for reading\n"
.LC20:
	.string	"w"
	.align 8
.LC21:
	.string	"can not open \"%s\" for writing\n"
.LC22:
	.string	"time call failed\n"
.LC23:
	.string	"v%d.%d.%d"
.LC24:
	.string	"bad version string \"%s\"\n"
.LC25:
	.string	"U2ND"
	.align 8
.LC26:
	.string	"writing firmware v%d.%d.%d on %d/%d/%d (y/m/d)\n"
.LC27:
	.string	"fread error\n"
.LC28:
	.string	"adding %d bytes of garbage\n"
.LC29:
	.string	"fwrite error\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, 1200
	mov	DWORD PTR -1188[rbp], edi
	mov	QWORD PTR -1200[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR stdin[rip]
	mov	QWORD PTR -1144[rbp], rax
	mov	rax, QWORD PTR stdout[rip]
	mov	QWORD PTR -1136[rbp], rax
	mov	QWORD PTR -1128[rbp], 0
	mov	QWORD PTR -1120[rbp], 0
	lea	rax, .LC9[rip]
	mov	QWORD PTR -1112[rbp], rax
	lea	rax, .LC10[rip]
	mov	QWORD PTR -1072[rbp], rax
	lea	rax, .LC11[rip]
	mov	QWORD PTR -1104[rbp], rax
	mov	QWORD PTR -1096[rbp], 0
	mov	QWORD PTR -1064[rbp], 0
	mov	DWORD PTR -1164[rbp], 0
	mov	DWORD PTR -1160[rbp], 0
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 38
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	lea	rax, -1040[rbp]
	mov	QWORD PTR -1056[rbp], rax
	mov	rax, QWORD PTR -1056[rbp]
	mov	edx, 32
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	jmp	.L13
.L30:
	mov	eax, DWORD PTR -1156[rbp]
	sub	eax, 48
	cmp	eax, 70
	ja	.L14
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L16[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L16[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L16:
	.long	.L29-.L16
	.long	.L28-.L16
	.long	.L27-.L16
	.long	.L14-.L16
	.long	.L26-.L16
	.long	.L25-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L24-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L23-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L22-.L16
	.long	.L14-.L16
	.long	.L21-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L20-.L16
	.long	.L19-.L16
	.long	.L14-.L16
	.long	.L18-.L16
	.long	.L17-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L15-.L16
	.text
.L21:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -1128[rbp], rax
	jmp	.L13
.L20:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -1120[rbp], rax
	jmp	.L13
.L19:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -1112[rbp], rax
	jmp	.L13
.L17:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -1056[rbp]
	mov	BYTE PTR 19[rax], dl
	jmp	.L13
.L22:
	mov	DWORD PTR -1164[rbp], 1
	jmp	.L13
.L23:
	mov	DWORD PTR -1160[rbp], 1
	jmp	.L13
.L15:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -1104[rbp], rax
	jmp	.L13
.L29:
	mov	rax, QWORD PTR -1056[rbp]
	mov	BYTE PTR 18[rax], 0
	jmp	.L13
.L28:
	mov	rax, QWORD PTR -1056[rbp]
	mov	BYTE PTR 18[rax], 1
	jmp	.L13
.L27:
	mov	rax, QWORD PTR -1056[rbp]
	mov	BYTE PTR 18[rax], 1
	mov	rax, QWORD PTR -1056[rbp]
	movzx	eax, BYTE PTR 20[rax]
	or	eax, 1
	mov	edx, eax
	mov	rax, QWORD PTR -1056[rbp]
	mov	BYTE PTR 20[rax], dl
	mov	rax, QWORD PTR -1056[rbp]
	movzx	eax, BYTE PTR 20[rax]
	or	eax, 2
	mov	edx, eax
	mov	rax, QWORD PTR -1056[rbp]
	mov	BYTE PTR 20[rax], dl
	mov	rax, QWORD PTR -1056[rbp]
	movzx	eax, BYTE PTR 20[rax]
	or	eax, 4
	mov	edx, eax
	mov	rax, QWORD PTR -1056[rbp]
	mov	BYTE PTR 20[rax], dl
	jmp	.L13
.L26:
	mov	rax, QWORD PTR -1056[rbp]
	mov	BYTE PTR 18[rax], 0
	mov	rax, QWORD PTR -1056[rbp]
	mov	BYTE PTR 20[rax], 31
	jmp	.L13
.L25:
	mov	rax, QWORD PTR -1056[rbp]
	mov	BYTE PTR 22[rax], 115
	mov	rax, QWORD PTR -1056[rbp]
	mov	BYTE PTR 23[rax], 0
	mov	rax, QWORD PTR -1056[rbp]
	mov	BYTE PTR 24[rax], 116
	mov	rax, QWORD PTR -1056[rbp]
	mov	BYTE PTR 25[rax], 0
	mov	rax, QWORD PTR -1056[rbp]
	mov	BYTE PTR 27[rax], -1
	mov	rax, QWORD PTR -1056[rbp]
	movzx	edx, BYTE PTR 27[rax]
	mov	rax, QWORD PTR -1056[rbp]
	mov	BYTE PTR 26[rax], dl
	mov	rax, QWORD PTR -1056[rbp]
	mov	BYTE PTR 29[rax], -1
	mov	rax, QWORD PTR -1056[rbp]
	movzx	edx, BYTE PTR 29[rax]
	mov	rax, QWORD PTR -1056[rbp]
	mov	BYTE PTR 28[rax], dl
	jmp	.L13
.L18:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atof@PLT
	movsd	xmm1, QWORD PTR .LC13[rip]
	mulsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	add	eax, 48
	mov	edx, eax
	mov	rax, QWORD PTR -1056[rbp]
	mov	BYTE PTR 18[rax], dl
	jmp	.L13
.L24:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -1096[rbp], rax
	jmp	.L13
.L14:
	call	usage
.L13:
	mov	rcx, QWORD PTR -1200[rbp]
	mov	eax, DWORD PTR -1188[rbp]
	lea	rdx, .LC14[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -1156[rbp], eax
	cmp	DWORD PTR -1156[rbp], -1
	jne	.L30
	mov	eax, DWORD PTR optind[rip]
	cmp	DWORD PTR -1188[rbp], eax
	jne	.L31
	mov	eax, DWORD PTR optind[rip]
	cmp	eax, 1
	jne	.L32
.L31:
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1200[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	usage
.L32:
	cmp	QWORD PTR -1096[rbp], 0
	je	.L33
	mov	rax, QWORD PTR -1096[rbp]
	mov	rdi, rax
	call	find_board
	mov	QWORD PTR -1064[rbp], rax
	cmp	QWORD PTR -1064[rbp], 0
	jne	.L34
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -1096[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	usage
.L34:
	mov	rax, QWORD PTR -1064[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -1112[rbp], rax
	mov	rax, QWORD PTR -1064[rbp]
	movzx	edx, BYTE PTR 16[rax]
	mov	rax, QWORD PTR -1056[rbp]
	mov	BYTE PTR 18[rax], dl
	mov	rax, QWORD PTR -1064[rbp]
	movzx	eax, BYTE PTR 17[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -1056[rbp]
	mov	BYTE PTR 19[rax], dl
	mov	rax, QWORD PTR -1064[rbp]
	movzx	eax, BYTE PTR 18[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -1056[rbp]
	mov	BYTE PTR 20[rax], dl
	mov	rax, QWORD PTR -1064[rbp]
	movzx	eax, BYTE PTR 19[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -1056[rbp]
	mov	BYTE PTR 21[rax], dl
.L33:
	mov	rax, QWORD PTR -1112[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 8
	jbe	.L35
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -1112[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	usage
.L35:
	cmp	QWORD PTR -1128[rbp], 0
	je	.L36
	mov	rax, QWORD PTR -1128[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1144[rbp], rax
	cmp	QWORD PTR -1144[rbp], 0
	jne	.L36
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -1128[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	usage
.L36:
	cmp	QWORD PTR -1120[rbp], 0
	je	.L37
	mov	rax, QWORD PTR -1120[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1136[rbp], rax
	cmp	QWORD PTR -1136[rbp], 0
	jne	.L37
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -1120[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	usage
.L37:
	mov	eax, 0
	call	set_source_date_epoch
	mov	rax, QWORD PTR source_date_epoch[rip]
	cmp	rax, -1
	je	.L38
	mov	rax, QWORD PTR source_date_epoch[rip]
	mov	QWORD PTR -1152[rbp], rax
	jmp	.L39
.L38:
	lea	rax, -1152[rbp]
	mov	rdi, rax
	call	time@PLT
	cmp	rax, -1
	jne	.L39
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 17
	mov	esi, 1
	lea	rdi, .LC22[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L51
.L39:
	lea	rax, -1152[rbp]
	mov	rdi, rax
	call	gmtime@PLT
	mov	QWORD PTR -1048[rbp], rax
	lea	rsi, -1168[rbp]
	lea	rcx, -1172[rbp]
	lea	rdx, -1176[rbp]
	mov	rax, QWORD PTR -1104[rbp]
	mov	r8, rsi
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 3
	je	.L41
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -1104[rbp]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L51
.L41:
	mov	rax, QWORD PTR -1112[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -1056[rbp]
	mov	rcx, QWORD PTR -1112[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	cmp	DWORD PTR -1160[rbp], 0
	je	.L42
	mov	rax, QWORD PTR -1056[rbp]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -1072[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
.L42:
	mov	rax, QWORD PTR -1048[rbp]
	mov	eax, DWORD PTR 20[rax]
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 5
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 100
	sub	eax, ecx
	mov	edx, eax
	mov	rax, QWORD PTR -1056[rbp]
	mov	BYTE PTR 8[rax], dl
	mov	rax, QWORD PTR -1048[rbp]
	mov	eax, DWORD PTR 16[rax]
	add	eax, 1
	mov	edx, eax
	mov	rax, QWORD PTR -1056[rbp]
	mov	BYTE PTR 9[rax], dl
	mov	rax, QWORD PTR -1048[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -1056[rbp]
	mov	BYTE PTR 10[rax], dl
	mov	eax, DWORD PTR -1176[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -1056[rbp]
	mov	BYTE PTR 11[rax], dl
	mov	eax, DWORD PTR -1172[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -1056[rbp]
	mov	BYTE PTR 12[rax], dl
	mov	eax, DWORD PTR -1168[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -1056[rbp]
	mov	BYTE PTR 13[rax], dl
	mov	rax, QWORD PTR -1056[rbp]
	add	rax, 14
	mov	edx, 4
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	call	memcpy@PLT
	mov	QWORD PTR -1088[rbp], 32
	mov	rax, QWORD PTR -1056[rbp]
	movzx	eax, BYTE PTR 10[rax]
	movsx	edi, al
	mov	rax, QWORD PTR -1056[rbp]
	movzx	eax, BYTE PTR 9[rax]
	movsx	esi, al
	mov	rax, QWORD PTR -1056[rbp]
	movzx	eax, BYTE PTR 8[rax]
	movsx	r9d, al
	mov	r8d, DWORD PTR -1168[rbp]
	mov	ecx, DWORD PTR -1172[rbp]
	mov	edx, DWORD PTR -1176[rbp]
	mov	rax, QWORD PTR stderr[rip]
	push	rdi
	push	rsi
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	rsp, 16
	jmp	.L43
.L48:
	mov	QWORD PTR -1088[rbp], 0
	cmp	QWORD PTR -1080[rbp], 1023
	ja	.L44
	mov	rax, QWORD PTR -1144[rbp]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	je	.L45
	nop
	jmp	.L46
.L53:
	nop
.L46:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 12
	mov	esi, 1
	lea	rdi, .LC27[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L51
.L45:
	cmp	DWORD PTR -1164[rbp], 0
	je	.L44
	mov	rax, QWORD PTR -1080[rbp]
	mov	edx, eax
	mov	eax, 1024
	sub	eax, edx
	mov	DWORD PTR -1164[rbp], eax
	mov	eax, DWORD PTR -1164[rbp]
	cdqe
	lea	rcx, -1040[rbp]
	mov	rdx, QWORD PTR -1080[rbp]
	add	rcx, rdx
	mov	rdx, rax
	mov	esi, 255
	mov	rdi, rcx
	call	memset@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -1164[rbp]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	QWORD PTR -1080[rbp], 1024
.L44:
	mov	rdx, QWORD PTR -1136[rbp]
	mov	rsi, QWORD PTR -1080[rbp]
	lea	rax, -1040[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fwrite@PLT
	test	rax, rax
	jne	.L43
	nop
	jmp	.L47
.L54:
	nop
.L47:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 13
	mov	esi, 1
	lea	rdi, .LC29[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L51
.L43:
	mov	eax, 1024
	sub	rax, QWORD PTR -1088[rbp]
	lea	rcx, -1040[rbp]
	mov	rdx, QWORD PTR -1088[rbp]
	lea	rdi, [rcx+rdx]
	mov	rdx, QWORD PTR -1144[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	mov	esi, 1
	call	fread@PLT
	mov	rdx, QWORD PTR -1088[rbp]
	add	rax, rdx
	mov	QWORD PTR -1080[rbp], rax
	cmp	QWORD PTR -1080[rbp], 0
	jne	.L48
	mov	rax, QWORD PTR -1144[rbp]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	jne	.L53
	mov	rax, QWORD PTR -1136[rbp]
	mov	rdi, rax
	call	fflush@PLT
	test	eax, eax
	jne	.L54
	mov	rax, QWORD PTR -1144[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -1136[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L51:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L52
	call	__stack_chk_fail@PLT
.L52:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC13:
	.long	0
	.long	1076101120
	.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	"729272.c"
	.text
	.global	boards
	.section	.rodata
	.align	2
.LC0:
	.ascii	"E2100L\000"
	.align	2
.LC1:
	.ascii	"NL1X\000"
	.align	2
.LC2:
	.ascii	"WRT160NL\000"
	.align	2
.LC3:
	.ascii	"NL16\000"
	.align	2
.LC4:
	.ascii	"mynet-rext\000"
	.align	2
.LC5:
	.ascii	"WDHNSTFH\000"
	.data
	.align	2
	.type	boards, %object
	.size	boards, 48
boards:
	.word	.LC0
	.word	.LC1
	.byte	0
	.byte	15
	.ascii	"?\000"
	.word	.LC2
	.word	.LC3
	.byte	0
	.byte	15
	.ascii	"?\000"
	.word	.LC4
	.word	.LC5
	.byte	0
	.byte	0
	.ascii	"?\000"
	.word	0
	.space	8
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Usage: addpattern [-i trxfile] [-o binfile] [-B boa"
	.ascii	"rd_id] [-p pattern] [-s serial] [-g] [-b] [-v v#.#."
	.ascii	"#] [-r #.#] [-{0|1|2|4|5}] -h\012\000"
	.text
	.align	2
	.global	usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #132
	mov	r1, #1
	ldr	r0, .L2+4
	bl	fwrite
	mov	r0, #1
	bl	exit
.L3:
	.align	2
.L2:
	.word	stderr
	.word	.LC6
	.size	usage, .-usage
	.data
	.align	2
	.type	source_date_epoch, %object
	.size	source_date_epoch, 4
source_date_epoch:
	.word	-1
	.section	.rodata
	.align	2
.LC7:
	.ascii	"SOURCE_DATE_EPOCH\000"
	.align	2
.LC8:
	.ascii	"Invalid SOURCE_DATE_EPOCH\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_source_date_epoch, %function
set_source_date_epoch:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L9+4
	bl	getenv
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-16]
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L8
	sub	r3, fp, #16
	mov	r2, #10
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	strtoull
	mov	r2, r0
	mov	r3, r1
	ldr	r3, .L9+8
	str	r2, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L8
.L6:
	ldr	r3, .L9+12
	ldr	r3, [r3]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L9+16
	bl	fwrite
	mov	r0, #1
	bl	exit
.L8:
	nop
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC9
	.word	.LC7
	.word	source_date_epoch
	.word	stderr
	.word	.LC8
	.size	set_source_date_epoch, .-set_source_date_epoch
	.align	2
	.global	find_board
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_board, %function
find_board:
	@ 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, .L16
	str	r3, [fp, #-8]
	b	.L12
.L15:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-8]
	b	.L14
.L13:
	ldr	r3, [fp, #-8]
	add	r3, r3, #12
	str	r3, [fp, #-8]
.L12:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L15
	mov	r3, #0
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	boards
	.size	find_board, .-find_board
	.section	.rodata
	.align	2
.LC10:
	.ascii	"W54S\000"
	.align	2
.LC11:
	.ascii	"PBOT\000"
	.align	2
.LC12:
	.ascii	"v3.37.2\000"
	.align	2
.LC13:
	.ascii	"mjn3's addpattern replacement - v0.81\012\000"
	.global	__aeabi_dmul
	.global	__aeabi_d2uiz
	.align	2
.LC14:
	.ascii	"i:o:p:s:gbv:01245hr:B:\000"
	.align	2
.LC15:
	.ascii	"illegal arg \"%s\"\012\000"
	.align	2
.LC16:
	.ascii	"unknown board \"%s\"\012\000"
	.align	2
.LC17:
	.ascii	"illegal pattern \"%s\"\012\000"
	.align	2
.LC18:
	.ascii	"r\000"
	.align	2
.LC19:
	.ascii	"can not open \"%s\" for reading\012\000"
	.align	2
.LC20:
	.ascii	"w\000"
	.align	2
.LC21:
	.ascii	"can not open \"%s\" for writing\012\000"
	.align	2
.LC22:
	.ascii	"time call failed\012\000"
	.align	2
.LC23:
	.ascii	"v%d.%d.%d\000"
	.align	2
.LC24:
	.ascii	"bad version string \"%s\"\012\000"
	.align	2
.LC25:
	.ascii	"U2ND\000"
	.align	2
.LC26:
	.ascii	"writing firmware v%d.%d.%d on %d/%d/%d (y/m/d)\012\000"
	.align	2
.LC27:
	.ascii	"fread error\012\000"
	.align	2
.LC28:
	.ascii	"adding %d bytes of garbage\012\000"
	.align	2
.LC29:
	.ascii	"fwrite error\012\000"
	.align	2
.LC30:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1136
	sub	sp, sp, #4
	str	r0, [fp, #-1128]
	str	r1, [fp, #-1132]
	ldr	r3, .L61
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L61+4
	ldr	r3, [r3]
	str	r3, [fp, #-1104]
	ldr	r3, .L61+8
	ldr	r3, [r3]
	str	r3, [fp, #-1100]
	mov	r3, #0
	str	r3, [fp, #-1096]
	mov	r3, #0
	str	r3, [fp, #-1092]
	ldr	r3, .L61+12
	str	r3, [fp, #-1088]
	ldr	r3, .L61+16
	str	r3, [fp, #-1060]
	ldr	r3, .L61+20
	str	r3, [fp, #-1084]
	mov	r3, #0
	str	r3, [fp, #-1080]
	mov	r3, #0
	str	r3, [fp, #-1056]
	mov	r3, #0
	str	r3, [fp, #-1076]
	mov	r3, #0
	str	r3, [fp, #-1072]
	ldr	r3, .L61+24
	ldr	r3, [r3]
	mov	r2, #38
	mov	r1, #1
	ldr	r0, .L61+28
	bl	fwrite
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [fp, #-1052]
	mov	r2, #32
	mov	r1, #0
	ldr	r0, [fp, #-1052]
	bl	memset
	b	.L19
.L36:
	ldr	r3, [fp, #-1048]
	sub	r3, r3, #48
	cmp	r3, #70
	ldrls	pc, [pc, r3, asl #2]
	b	.L20
.L22:
	.word	.L35
	.word	.L34
	.word	.L33
	.word	.L20
	.word	.L32
	.word	.L31
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L30
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L29
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L28
	.word	.L20
	.word	.L27
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L20
	.word	.L26
	.word	.L25
	.word	.L20
	.word	.L24
	.word	.L23
	.word	.L20
	.word	.L20
	.word	.L21
.L27:
	ldr	r3, .L61+32
	ldr	r3, [r3]
	str	r3, [fp, #-1096]
	b	.L19
.L26:
	ldr	r3, .L61+32
	ldr	r3, [r3]
	str	r3, [fp, #-1092]
	b	.L19
.L25:
	ldr	r3, .L61+32
	ldr	r3, [r3]
	str	r3, [fp, #-1088]
	b	.L19
.L23:
	ldr	r3, .L61+32
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	and	r2, r3, #255
	ldr	r3, [fp, #-1052]
	strb	r2, [r3, #19]
	b	.L19
.L28:
	mov	r3, #1
	str	r3, [fp, #-1076]
	b	.L19
.L29:
	mov	r3, #1
	str	r3, [fp, #-1072]
	b	.L19
.L21:
	ldr	r3, .L61+32
	ldr	r3, [r3]
	str	r3, [fp, #-1084]
	b	.L19
.L35:
	ldr	r3, [fp, #-1052]
	mov	r2, #0
	strb	r2, [r3, #18]
	b	.L19
.L34:
	ldr	r3, [fp, #-1052]
	mov	r2, #1
	strb	r2, [r3, #18]
	b	.L19
.L33:
	ldr	r3, [fp, #-1052]
	mov	r2, #1
	strb	r2, [r3, #18]
	ldr	r3, [fp, #-1052]
	ldrb	r3, [r3, #20]	@ zero_extendqisi2
	orr	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, [fp, #-1052]
	strb	r2, [r3, #20]
	ldr	r3, [fp, #-1052]
	ldrb	r3, [r3, #20]	@ zero_extendqisi2
	orr	r3, r3, #2
	and	r2, r3, #255
	ldr	r3, [fp, #-1052]
	strb	r2, [r3, #20]
	ldr	r3, [fp, #-1052]
	ldrb	r3, [r3, #20]	@ zero_extendqisi2
	orr	r3, r3, #4
	and	r2, r3, #255
	ldr	r3, [fp, #-1052]
	strb	r2, [r3, #20]
	b	.L19
.L32:
	ldr	r3, [fp, #-1052]
	mov	r2, #0
	strb	r2, [r3, #18]
	ldr	r3, [fp, #-1052]
	mov	r2, #31
	strb	r2, [r3, #20]
	b	.L19
.L31:
	ldr	r3, [fp, #-1052]
	mov	r2, #115
	strb	r2, [r3, #22]
	ldr	r3, [fp, #-1052]
	mov	r2, #0
	strb	r2, [r3, #23]
	ldr	r3, [fp, #-1052]
	mov	r2, #116
	strb	r2, [r3, #24]
	ldr	r3, [fp, #-1052]
	mov	r2, #0
	strb	r2, [r3, #25]
	ldr	r3, [fp, #-1052]
	mvn	r2, #0
	strb	r2, [r3, #27]
	ldr	r3, [fp, #-1052]
	ldrb	r2, [r3, #27]	@ zero_extendqisi2
	ldr	r3, [fp, #-1052]
	strb	r2, [r3, #26]
	ldr	r3, [fp, #-1052]
	mvn	r2, #0
	strb	r2, [r3, #29]
	ldr	r3, [fp, #-1052]
	ldrb	r2, [r3, #29]	@ zero_extendqisi2
	ldr	r3, [fp, #-1052]
	strb	r2, [r3, #28]
	b	.L19
.L24:
	ldr	r3, .L61+32
	ldr	r3, [r3]
	mov	r0, r3
	bl	atof
	mov	r2, #0
	ldr	r3, .L61+36
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	and	r3, r3, #255
	add	r3, r3, #48
	and	r2, r3, #255
	ldr	r3, [fp, #-1052]
	strb	r2, [r3, #18]
	b	.L19
.L30:
	ldr	r3, .L61+32
	ldr	r3, [r3]
	str	r3, [fp, #-1080]
	b	.L19
.L20:
	bl	usage
.L19:
	ldr	r2, .L61+40
	ldr	r1, [fp, #-1132]
	ldr	r0, [fp, #-1128]
	bl	getopt
	str	r0, [fp, #-1048]
	ldr	r3, [fp, #-1048]
	cmn	r3, #1
	bne	.L36
	ldr	r3, .L61+44
	ldr	r3, [r3]
	ldr	r2, [fp, #-1128]
	cmp	r2, r3
	bne	.L37
	ldr	r3, .L61+44
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L38
.L37:
	ldr	r3, .L61+24
	ldr	r0, [r3]
	ldr	r3, .L61+44
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1132]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L61+48
	bl	fprintf
	bl	usage
.L38:
	ldr	r3, [fp, #-1080]
	cmp	r3, #0
	beq	.L39
	ldr	r0, [fp, #-1080]
	bl	find_board
	str	r0, [fp, #-1056]
	ldr	r3, [fp, #-1056]
	cmp	r3, #0
	bne	.L40
	ldr	r3, .L61+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-1080]
	ldr	r1, .L61+52
	mov	r0, r3
	bl	fprintf
	bl	usage
.L40:
	ldr	r3, [fp, #-1056]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-1088]
	ldr	r3, [fp, #-1056]
	ldrb	r2, [r3, #8]	@ zero_extendqisi2
	ldr	r3, [fp, #-1052]
	strb	r2, [r3, #18]
	ldr	r3, [fp, #-1056]
	ldrb	r2, [r3, #9]	@ zero_extendqisi2
	ldr	r3, [fp, #-1052]
	strb	r2, [r3, #19]
	ldr	r3, [fp, #-1056]
	ldrb	r2, [r3, #10]	@ zero_extendqisi2
	ldr	r3, [fp, #-1052]
	strb	r2, [r3, #20]
	ldr	r3, [fp, #-1056]
	ldrb	r2, [r3, #11]	@ zero_extendqisi2
	ldr	r3, [fp, #-1052]
	strb	r2, [r3, #21]
.L39:
	ldr	r0, [fp, #-1088]
	bl	strlen
	mov	r3, r0
	cmp	r3, #8
	bls	.L41
	ldr	r3, .L61+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-1088]
	ldr	r1, .L61+56
	mov	r0, r3
	bl	fprintf
	bl	usage
.L41:
	ldr	r3, [fp, #-1096]
	cmp	r3, #0
	beq	.L42
	ldr	r1, .L61+60
	ldr	r0, [fp, #-1096]
	bl	fopen
	str	r0, [fp, #-1104]
	ldr	r3, [fp, #-1104]
	cmp	r3, #0
	bne	.L42
	ldr	r3, .L61+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-1096]
	ldr	r1, .L61+64
	mov	r0, r3
	bl	fprintf
	bl	usage
.L42:
	ldr	r3, [fp, #-1092]
	cmp	r3, #0
	beq	.L43
	ldr	r1, .L61+68
	ldr	r0, [fp, #-1092]
	bl	fopen
	str	r0, [fp, #-1100]
	ldr	r3, [fp, #-1100]
	cmp	r3, #0
	bne	.L43
	ldr	r3, .L61+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-1092]
	ldr	r1, .L61+72
	mov	r0, r3
	bl	fprintf
	bl	usage
.L43:
	bl	set_source_date_epoch
	ldr	r3, .L61+76
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L44
	ldr	r3, .L61+76
	ldr	r3, [r3]
	str	r3, [fp, #-1108]
	b	.L45
.L44:
	sub	r3, fp, #1088
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r0, r3
	bl	time
	mov	r3, r0
	cmn	r3, #1
	bne	.L45
	ldr	r3, .L61+24
	ldr	r3, [r3]
	mov	r2, #17
	mov	r1, #1
	ldr	r0, .L61+80
	bl	fwrite
	mov	r3, #1
	b	.L57
.L45:
	sub	r3, fp, #1088
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r0, r3
	bl	gmtime
	str	r0, [fp, #-1044]
	sub	r1, fp, #1104
	sub	r1, r1, #12
	sub	r2, fp, #1104
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r3, fp, #1088
	sub	r3, r3, #12
	sub	r3, r3, #12
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L61+84
	ldr	r0, [fp, #-1084]
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #3
	beq	.L47
	ldr	r3, .L61+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-1084]
	ldr	r1, .L61+88
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L57
.L47:
	ldr	r4, [fp, #-1052]
	ldr	r0, [fp, #-1088]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-1088]
	mov	r0, r4
	bl	memcpy
	ldr	r3, [fp, #-1072]
	cmp	r3, #0
	beq	.L48
	ldr	r3, [fp, #-1052]
	add	r3, r3, #4
	mov	r2, #4
	ldr	r1, [fp, #-1060]
	mov	r0, r3
	bl	memcpy
.L48:
	ldr	r3, [fp, #-1044]
	ldr	r1, [r3, #20]
	ldr	r3, .L61+92
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	and	r2, r2, #255
	ldr	r3, [fp, #-1052]
	strb	r2, [r3, #8]
	ldr	r3, [fp, #-1044]
	ldr	r3, [r3, #16]
	and	r3, r3, #255
	add	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, [fp, #-1052]
	strb	r2, [r3, #9]
	ldr	r3, [fp, #-1044]
	ldr	r3, [r3, #12]
	and	r2, r3, #255
	ldr	r3, [fp, #-1052]
	strb	r2, [r3, #10]
	ldr	r3, [fp, #-1120]
	and	r2, r3, #255
	ldr	r3, [fp, #-1052]
	strb	r2, [r3, #11]
	ldr	r3, [fp, #-1116]
	and	r2, r3, #255
	ldr	r3, [fp, #-1052]
	strb	r2, [r3, #12]
	ldr	r3, [fp, #-1112]
	and	r2, r3, #255
	ldr	r3, [fp, #-1052]
	strb	r2, [r3, #13]
	ldr	r3, [fp, #-1052]
	add	r3, r3, #14
	mov	r2, #4
	ldr	r1, .L61+96
	mov	r0, r3
	bl	memcpy
	mov	r3, #32
	str	r3, [fp, #-1068]
	ldr	r3, .L61+24
	ldr	r0, [r3]
	ldr	r1, [fp, #-1120]
	ldr	ip, [fp, #-1116]
	ldr	r3, [fp, #-1112]
	ldr	r2, [fp, #-1052]
	ldrb	r2, [r2, #8]	@ zero_extendqisi2
	mov	lr, r2
	ldr	r2, [fp, #-1052]
	ldrb	r2, [r2, #9]	@ zero_extendqisi2
	mov	r4, r2
	ldr	r2, [fp, #-1052]
	ldrb	r2, [r2, #10]	@ zero_extendqisi2
	str	r2, [sp, #12]
	str	r4, [sp, #8]
	str	lr, [sp, #4]
	str	r3, [sp]
	mov	r3, ip
	mov	r2, r1
	ldr	r1, .L61+100
	bl	fprintf
	b	.L49
.L54:
	mov	r3, #0
	str	r3, [fp, #-1068]
	ldr	r3, [fp, #-1064]
	cmp	r3, #1024
	bcs	.L50
	ldr	r0, [fp, #-1104]
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	beq	.L51
	nop
	b	.L52
.L59:
	nop
.L52:
	ldr	r3, .L61+24
	ldr	r3, [r3]
	mov	r2, #12
	mov	r1, #1
	ldr	r0, .L61+104
	bl	fwrite
	mov	r3, #1
	b	.L57
.L51:
	ldr	r3, [fp, #-1076]
	cmp	r3, #0
	beq	.L50
	ldr	r3, [fp, #-1064]
	rsb	r3, r3, #1024
	str	r3, [fp, #-1076]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-1064]
	add	r3, r3, r2
	ldr	r2, [fp, #-1076]
	mov	r1, #255
	mov	r0, r3
	bl	memset
	ldr	r3, .L61+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-1076]
	ldr	r1, .L61+108
	mov	r0, r3
	bl	fprintf
	mov	r3, #1024
	str	r3, [fp, #-1064]
.L50:
	sub	r0, fp, #1024
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [fp, #-1100]
	mov	r2, #1
	ldr	r1, [fp, #-1064]
	bl	fwrite
	mov	r3, r0
	cmp	r3, #0
	bne	.L49
	nop
	b	.L53
.L60:
	nop
.L53:
	ldr	r3, .L61+24
	ldr	r3, [r3]
	mov	r2, #13
	mov	r1, #1
	ldr	r0, .L61+112
	bl	fwrite
	mov	r3, #1
	b	.L57
.L49:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-1068]
	add	r0, r3, r2
	ldr	r3, [fp, #-1068]
	rsb	r2, r3, #1024
	ldr	r3, [fp, #-1104]
	mov	r1, #1
	bl	fread
	mov	r2, r0
	ldr	r3, [fp, #-1068]
	add	r3, r3, r2
	str	r3, [fp, #-1064]
	ldr	r3, [fp, #-1064]
	cmp	r3, #0
	bne	.L54
	ldr	r0, [fp, #-1104]
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	bne	.L59
	ldr	r0, [fp, #-1100]
	bl	fflush
	mov	r3, r0
	cmp	r3, #0
	bne	.L60
	ldr	r0, [fp, #-1104]
	bl	fclose
	ldr	r0, [fp, #-1100]
	bl	fclose
	mov	r3, #0
.L57:
	ldr	r2, .L61
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L58
	bl	__stack_chk_fail
.L58:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L62:
	.align	2
.L61:
	.word	.LC30
	.word	stdin
	.word	stdout
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	stderr
	.word	.LC13
	.word	optarg
	.word	1076101120
	.word	.LC14
	.word	optind
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	source_date_epoch
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	1374389535
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
