	.file	"1196063.c"
	.intel_syntax noprefix
	.text
	.globl	__packed
	.bss
	.align 32
	.type	__packed, @object
	.size	__packed, 36
__packed:
	.zero	36
	.section	.rodata
.LC0:
	.string	"Unsupported version %d\n"
	.text
	.type	lxlfw_hdr_len, @function
lxlfw_hdr_len:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 2
	je	.L2
	cmp	DWORD PTR -4[rbp], 2
	ja	.L3
	cmp	DWORD PTR -4[rbp], 0
	je	.L4
	cmp	DWORD PTR -4[rbp], 1
	je	.L5
	jmp	.L3
.L4:
	mov	eax, 12
	jmp	.L6
.L5:
	mov	eax, 32
	jmp	.L6
.L2:
	mov	eax, 36
	jmp	.L6
.L3:
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -4[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	lxlfw_hdr_len, .-lxlfw_hdr_len
	.section	.rodata
.LC1:
	.string	"Missing <file> argument\n"
.LC2:
	.string	"r"
.LC3:
	.string	"Could not open \"%s\" file\n"
	.align 8
.LC4:
	.string	"Input file too small to use Luxul format\n"
.LC5:
	.string	"LXL#"
	.align 8
.LC6:
	.string	"File <file> does not use Luxul's format\n"
	.align 8
.LC7:
	.string	"Input file too small for header version %d\n"
.LC8:
	.string	"Format version:\t%d\n"
.LC9:
	.string	"Header length:\t%d\n"
.LC10:
	.string	"Flags:\t\t"
.LC11:
	.string	"VENDOR_LUXUL "
.LC12:
	.string	"Board:\t\t%s\n"
.LC13:
	.string	"Release:\t"
.LC14:
	.string	"%hu.%hu.%hu"
.LC15:
	.string	".%hu"
	.text
	.type	lxlfw_info, @function
lxlfw_info:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -112[rbp], 0
	cmp	DWORD PTR -116[rbp], 2
	jg	.L8
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	DWORD PTR -112[rbp], -22
	jmp	.L9
.L8:
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -96[rbp], rax
	cmp	QWORD PTR -96[rbp], 0
	jne	.L10
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -112[rbp], -2
	jmp	.L9
.L10:
	mov	rdx, QWORD PTR -96[rbp]
	lea	rax, -80[rbp]
	mov	rcx, rdx
	mov	edx, 36
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	QWORD PTR -88[rbp], rax
	cmp	QWORD PTR -88[rbp], 11
	ja	.L11
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 41
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	DWORD PTR -112[rbp], -6
	jmp	.L12
.L11:
	lea	rax, -80[rbp]
	mov	edx, 4
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	je	.L13
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 40
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	DWORD PTR -112[rbp], -22
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -76[rbp]
	mov	DWORD PTR -108[rbp], eax
	mov	eax, DWORD PTR -108[rbp]
	mov	edi, eax
	call	lxlfw_hdr_len
	mov	DWORD PTR -104[rbp], eax
	mov	eax, DWORD PTR -104[rbp]
	cmp	QWORD PTR -88[rbp], rax
	jnb	.L14
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -108[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -112[rbp], -6
	jmp	.L12
.L14:
	mov	eax, DWORD PTR -108[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -72[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -108[rbp], 0
	je	.L15
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -68[rbp]
	mov	DWORD PTR -100[rbp], eax
	mov	eax, DWORD PTR -100[rbp]
	and	eax, 1
	test	eax, eax
	je	.L16
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
.L16:
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	BYTE PTR -16[rbp], 0
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
.L15:
	cmp	DWORD PTR -108[rbp], 1
	jbe	.L21
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -48[rbp]
	test	al, al
	jne	.L17
	movzx	eax, BYTE PTR -47[rbp]
	test	al, al
	jne	.L17
	movzx	eax, BYTE PTR -46[rbp]
	test	al, al
	jne	.L17
	movzx	eax, BYTE PTR -45[rbp]
	test	al, al
	je	.L18
.L17:
	movzx	eax, BYTE PTR -46[rbp]
	movzx	ecx, al
	movzx	eax, BYTE PTR -47[rbp]
	movzx	edx, al
	movzx	eax, BYTE PTR -48[rbp]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -45[rbp]
	test	al, al
	je	.L18
	movzx	eax, BYTE PTR -45[rbp]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
.L18:
	mov	edi, 10
	call	putchar@PLT
	jmp	.L12
.L21:
	nop
.L12:
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L9:
	mov	eax, DWORD PTR -112[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	lxlfw_info, .-lxlfw_info
	.section	.rodata
.LC16:
	.string	"%hhu.%hhu.%hhu.%hhu"
	.align 8
.LC17:
	.string	"Failed to parse release number \"%s\"\n"
.LC18:
	.string	"i:lb:r:"
.LC19:
	.string	"Missing input file argument\n"
.LC20:
	.string	"Could not open input file %s\n"
.LC21:
	.string	"w+"
	.align 8
.LC22:
	.string	"Could not write Luxul's header\n"
	.align 8
.LC23:
	.string	"Could not copy %zu bytes from input file\n"
	.text
	.type	lxlfw_create, @function
lxlfw_create:
.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, 672
	mov	DWORD PTR -660[rbp], edi
	mov	QWORD PTR -672[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -576[rbp], 0
	mov	QWORD PTR -568[rbp], 0
	mov	QWORD PTR -560[rbp], 0
	mov	QWORD PTR -552[rbp], 0
	mov	DWORD PTR -544[rbp], 0
	mov	DWORD PTR -576[rbp], 592205900
	mov	QWORD PTR -608[rbp], 0
	mov	DWORD PTR -648[rbp], 0
	mov	DWORD PTR -644[rbp], 0
	cmp	DWORD PTR -660[rbp], 2
	jg	.L23
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	DWORD PTR -644[rbp], -22
	jmp	.L24
.L23:
	mov	DWORD PTR optind[rip], 3
	jmp	.L25
.L32:
	cmp	DWORD PTR -640[rbp], 114
	je	.L26
	cmp	DWORD PTR -640[rbp], 114
	jg	.L25
	cmp	DWORD PTR -640[rbp], 108
	je	.L27
	cmp	DWORD PTR -640[rbp], 108
	jg	.L25
	cmp	DWORD PTR -640[rbp], 98
	je	.L28
	cmp	DWORD PTR -640[rbp], 105
	jne	.L25
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -608[rbp], rax
	jmp	.L25
.L27:
	mov	eax, DWORD PTR -564[rbp]
	or	eax, 1
	mov	DWORD PTR -564[rbp], eax
	mov	eax, DWORD PTR -648[rbp]
	mov	DWORD PTR -624[rbp], eax
	mov	DWORD PTR -620[rbp], 1
	mov	eax, DWORD PTR -620[rbp]
	cmp	DWORD PTR -624[rbp], eax
	cmovnb	eax, DWORD PTR -624[rbp]
	mov	DWORD PTR -648[rbp], eax
	jmp	.L25
.L28:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 16
	ja	.L29
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	jmp	.L30
.L29:
	mov	edx, 16
.L30:
	mov	rax, QWORD PTR optarg[rip]
	lea	rcx, -576[rbp]
	add	rcx, 16
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	eax, DWORD PTR -648[rbp]
	mov	DWORD PTR -616[rbp], eax
	mov	DWORD PTR -612[rbp], 1
	mov	eax, DWORD PTR -612[rbp]
	cmp	DWORD PTR -616[rbp], eax
	cmovnb	eax, DWORD PTR -616[rbp]
	mov	DWORD PTR -648[rbp], eax
	jmp	.L25
.L26:
	mov	rax, QWORD PTR optarg[rip]
	lea	rdx, -576[rbp]
	lea	rdi, 35[rdx]
	lea	rdx, -576[rbp]
	lea	rsi, 34[rdx]
	lea	rdx, -576[rbp]
	lea	rcx, 33[rdx]
	lea	rdx, -576[rbp]
	add	rdx, 32
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	test	eax, eax
	jg	.L31
	mov	rdx, QWORD PTR optarg[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -644[rbp], -22
	jmp	.L24
.L31:
	mov	eax, DWORD PTR -648[rbp]
	mov	DWORD PTR -632[rbp], eax
	mov	DWORD PTR -628[rbp], 2
	mov	eax, DWORD PTR -628[rbp]
	cmp	DWORD PTR -632[rbp], eax
	cmovnb	eax, DWORD PTR -632[rbp]
	mov	DWORD PTR -648[rbp], eax
	nop
.L25:
	mov	rcx, QWORD PTR -672[rbp]
	mov	eax, DWORD PTR -660[rbp]
	lea	rdx, .LC18[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -640[rbp], eax
	cmp	DWORD PTR -640[rbp], -1
	jne	.L32
	mov	eax, DWORD PTR -648[rbp]
	mov	DWORD PTR -572[rbp], eax
	mov	eax, DWORD PTR -648[rbp]
	mov	edi, eax
	call	lxlfw_hdr_len
	mov	DWORD PTR -636[rbp], eax
	cmp	DWORD PTR -636[rbp], 0
	jne	.L33
	mov	DWORD PTR -644[rbp], -22
	jmp	.L24
.L33:
	mov	eax, DWORD PTR -636[rbp]
	mov	DWORD PTR -568[rbp], eax
	cmp	QWORD PTR -608[rbp], 0
	jne	.L34
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC19[rip]
	call	fwrite@PLT
	mov	DWORD PTR -644[rbp], -22
	jmp	.L24
.L34:
	mov	rax, QWORD PTR -608[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -600[rbp], rax
	cmp	QWORD PTR -600[rbp], 0
	jne	.L35
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -608[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -644[rbp], -5
	jmp	.L24
.L35:
	mov	rax, QWORD PTR -672[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -592[rbp], rax
	cmp	QWORD PTR -592[rbp], 0
	jne	.L36
	mov	rax, QWORD PTR -672[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -644[rbp], -5
	jmp	.L37
.L36:
	mov	edx, DWORD PTR -636[rbp]
	mov	rcx, QWORD PTR -592[rbp]
	lea	rax, -576[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	QWORD PTR -584[rbp], rax
	mov	eax, DWORD PTR -636[rbp]
	cmp	QWORD PTR -584[rbp], rax
	je	.L40
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 31
	mov	esi, 1
	lea	rdi, .LC22[rip]
	call	fwrite@PLT
	mov	DWORD PTR -644[rbp], -5
	jmp	.L39
.L41:
	mov	rdx, QWORD PTR -584[rbp]
	mov	rcx, QWORD PTR -592[rbp]
	lea	rax, -528[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rdx, QWORD PTR -584[rbp]
	cmp	rax, rdx
	je	.L40
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -584[rbp]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -644[rbp], -5
	jmp	.L39
.L40:
	mov	rdx, QWORD PTR -600[rbp]
	lea	rax, -528[rbp]
	mov	rcx, rdx
	mov	edx, 512
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	QWORD PTR -584[rbp], rax
	cmp	QWORD PTR -584[rbp], 0
	jg	.L41
	nop
.L39:
	mov	rax, QWORD PTR -592[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L37:
	mov	rax, QWORD PTR -600[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L24:
	mov	eax, DWORD PTR -644[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L43
	call	__stack_chk_fail@PLT
.L43:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	lxlfw_create, .-lxlfw_create
	.section	.rodata
.LC24:
	.string	"Usage:"
	.align 8
.LC25:
	.string	"Get info about Luxul firmware:"
.LC26:
	.string	"\tlxlfw info <file>"
.LC27:
	.string	"Create new Luxul firmware:"
	.align 8
.LC28:
	.string	"\tlxlfw create <file> [options]"
	.align 8
.LC29:
	.string	"\t-i file\t\t\t\tinput file for Luxul's firmware container"
	.align 8
.LC30:
	.string	"\t-l\t\t\t\tmark firmware as created by Luxul company (DON'T USE)"
	.align 8
.LC31:
	.string	"\t-b board\t\t\tboard (device) name"
	.align 8
.LC32:
	.string	"\t-r release\t\t\trelease number (e.g. 5.1.0, 7.1.0.2)"
	.text
	.type	usage, @function
usage:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC24[rip]
	call	puts@PLT
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC25[rip]
	call	puts@PLT
	lea	rdi, .LC26[rip]
	call	puts@PLT
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC27[rip]
	call	puts@PLT
	lea	rdi, .LC28[rip]
	call	puts@PLT
	lea	rdi, .LC29[rip]
	call	puts@PLT
	lea	rdi, .LC30[rip]
	call	puts@PLT
	lea	rdi, .LC31[rip]
	call	puts@PLT
	lea	rdi, .LC32[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	usage, .-usage
	.section	.rodata
.LC33:
	.string	"info"
.LC34:
	.string	"create"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 1
	jle	.L46
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC33[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L47
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	lxlfw_info
	jmp	.L48
.L47:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC34[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L46
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	lxlfw_create
	jmp	.L48
.L46:
	mov	eax, 0
	call	usage
	mov	eax, 0
.L48:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"1196063.c"
	.text
	.comm	__packed,36,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Unsupported version %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lxlfw_hdr_len, %function
lxlfw_hdr_len:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	beq	.L2
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bhi	.L3
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	beq	.L5
	b	.L3
.L4:
	mov	r3, #12
	b	.L6
.L5:
	mov	r3, #32
	b	.L6
.L2:
	mov	r3, #36
	b	.L6
.L3:
	ldr	r3, .L7
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L7+4
	mov	r0, r3
	bl	fprintf
	mov	r3, #0
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	stderr
	.word	.LC0
	.size	lxlfw_hdr_len, .-lxlfw_hdr_len
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Missing <file> argument\012\000"
	.align	2
.LC2:
	.ascii	"r\000"
	.align	2
.LC3:
	.ascii	"Could not open \"%s\" file\012\000"
	.align	2
.LC4:
	.ascii	"Input file too small to use Luxul format\012\000"
	.align	2
.LC5:
	.ascii	"LXL#\000"
	.align	2
.LC6:
	.ascii	"File <file> does not use Luxul's format\012\000"
	.align	2
.LC7:
	.ascii	"Input file too small for header version %d\012\000"
	.align	2
.LC8:
	.ascii	"Format version:\011%d\012\000"
	.align	2
.LC9:
	.ascii	"Header length:\011%d\012\000"
	.align	2
.LC10:
	.ascii	"Flags:\011\011\000"
	.align	2
.LC11:
	.ascii	"VENDOR_LUXUL \000"
	.align	2
.LC12:
	.ascii	"Board:\011\011%s\012\000"
	.align	2
.LC13:
	.ascii	"Release:\011\000"
	.align	2
.LC14:
	.ascii	"%hu.%hu.%hu\000"
	.align	2
.LC15:
	.ascii	".%hu\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lxlfw_info, %function
lxlfw_info:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-96]
	cmp	r3, #2
	bgt	.L10
	ldr	r3, .L24+4
	ldr	r3, [r3]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L24+8
	bl	fwrite
	mvn	r3, #21
	str	r3, [fp, #-88]
	b	.L11
.L10:
	ldr	r3, [fp, #-100]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L24+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	bne	.L12
	ldr	r3, .L24+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-100]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L24+16
	bl	fprintf
	mvn	r3, #1
	str	r3, [fp, #-88]
	b	.L11
.L12:
	sub	r0, fp, #64
	ldr	r3, [fp, #-84]
	mov	r2, #36
	mov	r1, #1
	bl	fread
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmp	r3, #11
	bhi	.L13
	ldr	r3, .L24+4
	ldr	r3, [r3]
	mov	r2, #41
	mov	r1, #1
	ldr	r0, .L24+20
	bl	fwrite
	mvn	r3, #5
	str	r3, [fp, #-88]
	b	.L14
.L13:
	sub	r3, fp, #64
	mov	r2, #4
	ldr	r1, .L24+24
	mov	r0, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r3, .L24+4
	ldr	r3, [r3]
	mov	r2, #40
	mov	r1, #1
	ldr	r0, .L24+28
	bl	fwrite
	mvn	r3, #21
	str	r3, [fp, #-88]
	b	.L14
.L15:
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-76]
	ldr	r0, [fp, #-76]
	bl	lxlfw_hdr_len
	str	r0, [fp, #-72]
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	bcs	.L16
	ldr	r3, .L24+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-76]
	ldr	r1, .L24+32
	mov	r0, r3
	bl	fprintf
	mvn	r3, #5
	str	r3, [fp, #-88]
	b	.L14
.L16:
	ldr	r1, [fp, #-76]
	ldr	r0, .L24+36
	bl	printf
	ldr	r3, [fp, #-56]
	mov	r1, r3
	ldr	r0, .L24+40
	bl	printf
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	beq	.L17
	ldr	r0, .L24+44
	bl	printf
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-68]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L18
	ldr	r0, .L24+48
	bl	printf
.L18:
	mov	r0, #10
	bl	putchar
	sub	ip, fp, #28
	sub	r3, fp, #48
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	mov	r3, #0
	strb	r3, [fp, #-12]
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L24+52
	bl	printf
.L17:
	ldr	r3, [fp, #-76]
	cmp	r3, #1
	bls	.L23
	ldr	r0, .L24+56
	bl	printf
	ldrb	r3, [fp, #-32]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L19
	ldrb	r3, [fp, #-31]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L19
	ldrb	r3, [fp, #-30]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L19
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L20
.L19:
	ldrb	r3, [fp, #-32]	@ zero_extendqisi2
	mov	r1, r3
	ldrb	r3, [fp, #-31]	@ zero_extendqisi2
	mov	r2, r3
	ldrb	r3, [fp, #-30]	@ zero_extendqisi2
	ldr	r0, .L24+60
	bl	printf
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L20
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L24+64
	bl	printf
.L20:
	mov	r0, #10
	bl	putchar
	b	.L14
.L23:
	nop
.L14:
	ldr	r0, [fp, #-84]
	bl	fclose
.L11:
	ldr	r3, [fp, #-88]
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC16
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	lxlfw_info, .-lxlfw_info
	.section	.rodata
	.align	2
.LC17:
	.ascii	"%hhu.%hhu.%hhu.%hhu\000"
	.align	2
.LC18:
	.ascii	"Failed to parse release number \"%s\"\012\000"
	.align	2
.LC19:
	.ascii	"i:lb:r:\000"
	.align	2
.LC20:
	.ascii	"Missing input file argument\012\000"
	.align	2
.LC21:
	.ascii	"Could not open input file %s\012\000"
	.align	2
.LC22:
	.ascii	"w+\000"
	.align	2
.LC23:
	.ascii	"Could not write Luxul's header\012\000"
	.align	2
.LC24:
	.ascii	"Could not copy %zu bytes from input file\012\000"
	.align	2
.LC25:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lxlfw_create, %function
lxlfw_create:
	@ args = 0, pretend = 0, frame = 616
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #628
	str	r0, [fp, #-624]
	str	r1, [fp, #-628]
	ldr	r3, .L50
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #564
	mov	r2, #36
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L50+4
	str	r3, [fp, #-564]
	mov	r3, #0
	str	r3, [fp, #-620]
	mov	r3, #0
	str	r3, [fp, #-616]
	mov	r3, #0
	str	r3, [fp, #-612]
	ldr	r3, [fp, #-624]
	cmp	r3, #2
	bgt	.L27
	ldr	r3, .L50+8
	ldr	r3, [r3]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L50+12
	bl	fwrite
	mvn	r3, #21
	str	r3, [fp, #-612]
	b	.L28
.L27:
	ldr	r3, .L50+16
	mov	r2, #3
	str	r2, [r3]
	b	.L29
.L38:
	ldr	r3, [fp, #-608]
	sub	r3, r3, #98
	cmp	r3, #16
	ldrls	pc, [pc, r3, asl #2]
	b	.L29
.L31:
	.word	.L34
	.word	.L29
	.word	.L29
	.word	.L29
	.word	.L29
	.word	.L29
	.word	.L29
	.word	.L33
	.word	.L29
	.word	.L29
	.word	.L32
	.word	.L29
	.word	.L29
	.word	.L29
	.word	.L29
	.word	.L29
	.word	.L30
.L33:
	ldr	r3, .L50+20
	ldr	r3, [r3]
	str	r3, [fp, #-620]
	b	.L29
.L32:
	ldr	r3, [fp, #-552]
	orr	r3, r3, #1
	str	r3, [fp, #-552]
	ldr	r3, [fp, #-616]
	str	r3, [fp, #-580]
	mov	r3, #1
	str	r3, [fp, #-576]
	ldr	r2, [fp, #-576]
	ldr	r3, [fp, #-580]
	cmp	r2, r3
	movcs	r3, r2
	movcc	r3, r3
	str	r3, [fp, #-616]
	b	.L29
.L34:
	ldr	r3, .L50+20
	ldr	r4, [r3]
	ldr	r3, .L50+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	cmp	r3, #16
	bhi	.L35
	ldr	r3, .L50+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	b	.L36
.L35:
	mov	r3, #16
.L36:
	sub	r2, fp, #564
	add	r0, r2, #16
	mov	r2, r3
	mov	r1, r4
	bl	memcpy
	ldr	r3, [fp, #-616]
	str	r3, [fp, #-572]
	mov	r3, #1
	str	r3, [fp, #-568]
	ldr	r2, [fp, #-568]
	ldr	r3, [fp, #-572]
	cmp	r2, r3
	movcs	r3, r2
	movcc	r3, r3
	str	r3, [fp, #-616]
	b	.L29
.L30:
	ldr	r3, .L50+20
	ldr	r0, [r3]
	sub	r3, fp, #564
	add	r1, r3, #33
	sub	r3, fp, #564
	add	r2, r3, #32
	sub	r3, fp, #564
	add	r3, r3, #35
	str	r3, [sp, #4]
	sub	r3, fp, #564
	add	r3, r3, #34
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L50+24
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #0
	bgt	.L37
	ldr	r3, .L50+8
	ldr	r3, [r3]
	ldr	r2, .L50+20
	ldr	r2, [r2]
	ldr	r1, .L50+28
	mov	r0, r3
	bl	fprintf
	mvn	r3, #21
	str	r3, [fp, #-612]
	b	.L28
.L37:
	ldr	r3, [fp, #-616]
	str	r3, [fp, #-588]
	mov	r3, #2
	str	r3, [fp, #-584]
	ldr	r2, [fp, #-584]
	ldr	r3, [fp, #-588]
	cmp	r2, r3
	movcs	r3, r2
	movcc	r3, r3
	str	r3, [fp, #-616]
	nop
.L29:
	ldr	r2, .L50+32
	ldr	r1, [fp, #-628]
	ldr	r0, [fp, #-624]
	bl	getopt
	str	r0, [fp, #-608]
	ldr	r3, [fp, #-608]
	cmn	r3, #1
	bne	.L38
	ldr	r3, [fp, #-616]
	str	r3, [fp, #-560]
	ldr	r0, [fp, #-616]
	bl	lxlfw_hdr_len
	str	r0, [fp, #-604]
	ldr	r3, [fp, #-604]
	cmp	r3, #0
	bne	.L39
	mvn	r3, #21
	str	r3, [fp, #-612]
	b	.L28
.L39:
	ldr	r3, [fp, #-604]
	str	r3, [fp, #-556]
	ldr	r3, [fp, #-620]
	cmp	r3, #0
	bne	.L40
	ldr	r3, .L50+8
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L50+36
	bl	fwrite
	mvn	r3, #21
	str	r3, [fp, #-612]
	b	.L28
.L40:
	ldr	r1, .L50+40
	ldr	r0, [fp, #-620]
	bl	fopen
	str	r0, [fp, #-600]
	ldr	r3, [fp, #-600]
	cmp	r3, #0
	bne	.L41
	ldr	r3, .L50+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-620]
	ldr	r1, .L50+44
	mov	r0, r3
	bl	fprintf
	mvn	r3, #4
	str	r3, [fp, #-612]
	b	.L28
.L41:
	ldr	r3, [fp, #-628]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L50+48
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-596]
	ldr	r3, [fp, #-596]
	cmp	r3, #0
	bne	.L42
	ldr	r3, .L50+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-628]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L50+52
	bl	fprintf
	mvn	r3, #4
	str	r3, [fp, #-612]
	b	.L43
.L42:
	sub	r0, fp, #564
	ldr	r3, [fp, #-596]
	ldr	r2, [fp, #-604]
	mov	r1, #1
	bl	fwrite
	mov	r3, r0
	str	r3, [fp, #-592]
	ldr	r3, [fp, #-592]
	ldr	r2, [fp, #-604]
	cmp	r2, r3
	beq	.L46
	ldr	r3, .L50+8
	ldr	r3, [r3]
	mov	r2, #31
	mov	r1, #1
	ldr	r0, .L50+56
	bl	fwrite
	mvn	r3, #4
	str	r3, [fp, #-612]
	b	.L45
.L47:
	ldr	r2, [fp, #-592]
	sub	r0, fp, #528
	ldr	r3, [fp, #-596]
	mov	r1, #1
	bl	fwrite
	mov	r2, r0
	ldr	r3, [fp, #-592]
	cmp	r2, r3
	beq	.L46
	ldr	r3, .L50+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-592]
	ldr	r1, .L50+60
	mov	r0, r3
	bl	fprintf
	mvn	r3, #4
	str	r3, [fp, #-612]
	b	.L45
.L46:
	sub	r0, fp, #528
	ldr	r3, [fp, #-600]
	mov	r2, #512
	mov	r1, #1
	bl	fread
	mov	r3, r0
	str	r3, [fp, #-592]
	ldr	r3, [fp, #-592]
	cmp	r3, #0
	bgt	.L47
	nop
.L45:
	ldr	r0, [fp, #-596]
	bl	fclose
.L43:
	ldr	r0, [fp, #-600]
	bl	fclose
.L28:
	ldr	r3, [fp, #-612]
	ldr	r2, .L50
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L49
	bl	__stack_chk_fail
.L49:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L51:
	.align	2
.L50:
	.word	.LC25
	.word	592205900
	.word	stderr
	.word	.LC1
	.word	optind
	.word	optarg
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC2
	.word	.LC21
	.word	.LC22
	.word	.LC3
	.word	.LC23
	.word	.LC24
	.size	lxlfw_create, .-lxlfw_create
	.section	.rodata
	.align	2
.LC26:
	.ascii	"Usage:\000"
	.align	2
.LC27:
	.ascii	"Get info about Luxul firmware:\000"
	.align	2
.LC28:
	.ascii	"\011lxlfw info <file>\000"
	.align	2
.LC29:
	.ascii	"Create new Luxul firmware:\000"
	.align	2
.LC30:
	.ascii	"\011lxlfw create <file> [options]\000"
	.align	2
.LC31:
	.ascii	"\011-i file\011\011\011\011input file for Luxul's f"
	.ascii	"irmware container\000"
	.align	2
.LC32:
	.ascii	"\011-l\011\011\011\011mark firmware as created by L"
	.ascii	"uxul company (DON'T USE)\000"
	.align	2
.LC33:
	.ascii	"\011-b board\011\011\011board (device) name\000"
	.align	2
.LC34:
	.ascii	"\011-r release\011\011\011release number (e.g. 5.1."
	.ascii	"0, 7.1.0.2)\000"
	.text
	.align	2
	.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	r0, .L53
	bl	puts
	mov	r0, #10
	bl	putchar
	ldr	r0, .L53+4
	bl	puts
	ldr	r0, .L53+8
	bl	puts
	mov	r0, #10
	bl	putchar
	ldr	r0, .L53+12
	bl	puts
	ldr	r0, .L53+16
	bl	puts
	ldr	r0, .L53+20
	bl	puts
	ldr	r0, .L53+24
	bl	puts
	ldr	r0, .L53+28
	bl	puts
	ldr	r0, .L53+32
	bl	puts
	nop
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC35:
	.ascii	"info\000"
	.align	2
.LC36:
	.ascii	"create\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	ble	.L56
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L59
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L57
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	lxlfw_info
	mov	r3, r0
	b	.L58
.L57:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L59+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L56
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	lxlfw_create
	mov	r3, r0
	b	.L58
.L56:
	bl	usage
	mov	r3, #0
.L58:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L60:
	.align	2
.L59:
	.word	.LC35
	.word	.LC36
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
