	.file	"857404.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"original file %s has not expected hybrid format\n"
	.text
	.globl	standard_error
	.type	standard_error, @function
standard_error:
.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, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	QWORD PTR -8[rbp], 0
	je	.L2
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L2:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	standard_error, .-standard_error
	.globl	ensure_endianness
	.type	ensure_endianness, @function
ensure_endianness:
.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
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -16[rbp], 4660
	lea	rax, -16[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 52
	jne	.L7
	mov	DWORD PTR -12[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	sal	eax, 24
	or	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	shr	eax, 8
	sal	eax, 16
	and	eax, 16711680
	or	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	shr	eax, 16
	sal	eax, 8
	movzx	eax, ax
	or	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	shr	eax, 24
	or	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	DWORD PTR [rax], edx
.L7:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	ensure_endianness, .-ensure_endianness
	.section	.rodata
	.align 8
.LC1:
	.ascii	"usage: chariot_extractbin_meta_data.py [-h] [--all] [--verbo"
	.ascii	"se] [--sha]\n                                       [--forma"
	.ascii	"t] [--version]\n                                       [--bl"
	.ascii	"ockchain_path] [--lice"
	.string	"nse]\n                                       [--software_ID] [--static-analysis FILE]\n                                       [--add] [--output OUTPUT]\n                                       [--cut OUTPUT_BIN]\n                                       exe_name\n"
	.text
	.globl	input_parser_usage
	.type	input_parser_usage, @function
input_parser_usage:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC1[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	input_parser_usage, .-input_parser_usage
	.section	.rodata
.LC2:
	.string	"-h"
.LC3:
	.string	"-a"
.LC4:
	.string	"--all"
.LC5:
	.string	"-v"
.LC6:
	.string	"--verbose"
.LC7:
	.string	"-sha"
.LC8:
	.string	"--sha"
.LC9:
	.string	"-format"
.LC10:
	.string	"--format"
.LC11:
	.string	"-ver"
.LC12:
	.string	"--version"
.LC13:
	.string	"-bp"
.LC14:
	.string	"--blockchain_path"
.LC15:
	.string	"-lic"
.LC16:
	.string	"--license"
.LC17:
	.string	"-soft"
.LC18:
	.string	"--software_ID"
.LC19:
	.string	"-sa"
.LC20:
	.string	"--static-analysis"
.LC21:
	.string	"-add"
.LC22:
	.string	"--add"
.LC23:
	.string	"-o"
.LC24:
	.string	"--output"
.LC25:
	.string	"-cut"
.LC26:
	.string	"--cut"
	.text
	.globl	fill_input_parser_fields
	.type	fill_input_parser_fields, @function
fill_input_parser_fields:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 40
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -4[rbp], 1
	jmp	.L10
.L43:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L11
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L12
	mov	rax, QWORD PTR -24[rbp]
	movzx	edx, BYTE PTR 8[rax]
	or	edx, 1
	mov	BYTE PTR 8[rax], dl
	jmp	.L42
.L12:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L14
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L15
.L14:
	mov	rax, QWORD PTR -24[rbp]
	movzx	edx, BYTE PTR 8[rax]
	or	edx, 2
	mov	BYTE PTR 8[rax], dl
	jmp	.L42
.L15:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L16
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L17
.L16:
	mov	rax, QWORD PTR -24[rbp]
	movzx	edx, BYTE PTR 8[rax]
	or	edx, 4
	mov	BYTE PTR 8[rax], dl
	jmp	.L42
.L17:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L18
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L19
.L18:
	mov	rax, QWORD PTR -24[rbp]
	movzx	edx, BYTE PTR 8[rax]
	or	edx, 8
	mov	BYTE PTR 8[rax], dl
	jmp	.L42
.L19:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L20
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L21
.L20:
	mov	rax, QWORD PTR -24[rbp]
	movzx	edx, BYTE PTR 8[rax]
	or	edx, 16
	mov	BYTE PTR 8[rax], dl
	jmp	.L42
.L21:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L22
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L23
.L22:
	mov	rax, QWORD PTR -24[rbp]
	movzx	edx, BYTE PTR 8[rax]
	or	edx, 32
	mov	BYTE PTR 8[rax], dl
	jmp	.L42
.L23:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L24
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L25
.L24:
	mov	rax, QWORD PTR -24[rbp]
	movzx	edx, BYTE PTR 8[rax]
	or	edx, 64
	mov	BYTE PTR 8[rax], dl
	jmp	.L42
.L25:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L26
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L27
.L26:
	mov	rax, QWORD PTR -24[rbp]
	movzx	edx, BYTE PTR 8[rax]
	or	edx, -128
	mov	BYTE PTR 8[rax], dl
	jmp	.L42
.L27:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L28
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L29
.L28:
	mov	rax, QWORD PTR -24[rbp]
	movzx	edx, BYTE PTR 9[rax]
	or	edx, 1
	mov	BYTE PTR 9[rax], dl
	jmp	.L42
.L29:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L30
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L31
.L30:
	add	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L32
	mov	eax, 0
	jmp	.L33
.L32:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 32[rax], rdx
	jmp	.L42
.L31:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L34
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L35
.L34:
	mov	rax, QWORD PTR -24[rbp]
	movzx	edx, BYTE PTR 9[rax]
	or	edx, 2
	mov	BYTE PTR 9[rax], dl
	jmp	.L42
.L35:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L36
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L37
.L36:
	add	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L38
	mov	eax, 0
	jmp	.L33
.L38:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rax], rdx
	jmp	.L42
.L37:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L39
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L40
.L39:
	add	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L41
	mov	eax, 0
	jmp	.L33
.L41:
	mov	rax, QWORD PTR -24[rbp]
	movzx	edx, BYTE PTR 9[rax]
	or	edx, 4
	mov	BYTE PTR 9[rax], dl
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 24[rax], rdx
	jmp	.L42
.L40:
	mov	eax, 0
	jmp	.L33
.L11:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
.L42:
	add	DWORD PTR -4[rbp], 1
.L10:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L43
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L44
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L45
.L44:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 8[rax]
	and	eax, 1
	jmp	.L33
.L45:
	mov	eax, 1
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	fill_input_parser_fields, .-fill_input_parser_fields
	.section	.rodata
.LC27:
	.string	"extract firmware"
	.align 8
.LC28:
	.string	"extraction of all firmware requires an input file"
.LC29:
	.string	"wb"
	.align 8
.LC30:
	.string	"unable to create firmware file"
	.text
	.globl	extract_firmware
	.type	extract_firmware, @function
extract_firmware:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 80
	mov	QWORD PTR -4152[rbp], rdi
	mov	QWORD PTR -4160[rbp], rsi
	mov	QWORD PTR -4168[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -4168[rbp]
	movzx	eax, BYTE PTR 9[rax]
	and	eax, 4
	test	al, al
	je	.L47
	mov	rax, QWORD PTR -4168[rbp]
	movzx	eax, BYTE PTR 8[rax]
	and	eax, 4
	test	al, al
	je	.L48
	lea	rdi, .LC27[rip]
	call	puts@PLT
.L48:
	mov	rax, QWORD PTR -4152[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -4128[rbp], rax
	mov	rax, QWORD PTR -4168[rbp]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	jne	.L49
	lea	rdi, .LC28[rip]
	call	puts@PLT
	cmp	QWORD PTR -4160[rbp], 0
	je	.L50
	mov	rax, QWORD PTR -4160[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L50:
	mov	rax, QWORD PTR -4152[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L60
.L49:
	mov	QWORD PTR -4136[rbp], 0
	mov	rax, QWORD PTR -4168[rbp]
	mov	rax, QWORD PTR 24[rax]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -4120[rbp], rax
	cmp	QWORD PTR -4120[rbp], 0
	jne	.L52
	lea	rdi, .LC30[rip]
	call	puts@PLT
	cmp	QWORD PTR -4160[rbp], 0
	je	.L53
	mov	rax, QWORD PTR -4160[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L53:
	mov	rax, QWORD PTR -4152[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L60
.L52:
	mov	rax, QWORD PTR -4152[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	jmp	.L54
.L59:
	mov	rax, QWORD PTR -4136[rbp]
	add	rax, 4096
	cmp	QWORD PTR -4128[rbp], rax
	jnb	.L55
	mov	rax, QWORD PTR -4128[rbp]
	sub	rax, QWORD PTR -4136[rbp]
	jmp	.L56
.L55:
	mov	eax, 4096
.L56:
	mov	rdx, QWORD PTR -4152[rbp]
	lea	rdi, -4112[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	mov	esi, 1
	call	fread@PLT
	mov	DWORD PTR -4140[rbp], eax
	mov	eax, DWORD PTR -4140[rbp]
	cdqe
	add	QWORD PTR -4136[rbp], rax
	cmp	DWORD PTR -4140[rbp], 0
	jle	.L62
	mov	eax, DWORD PTR -4140[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -4120[rbp]
	lea	rax, -4112[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
.L54:
	mov	rax, QWORD PTR -4136[rbp]
	cmp	rax, QWORD PTR -4128[rbp]
	jb	.L59
	jmp	.L58
.L62:
	nop
.L58:
	mov	rax, QWORD PTR -4120[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L47:
	mov	eax, 0
.L60:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L61
	call	__stack_chk_fail@PLT
.L61:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	extract_firmware, .-extract_firmware
	.section	.rodata
	.align 8
.LC31:
	.string	"extraction of all meta-data requires an output file"
	.text
	.globl	extract_all_metadata
	.type	extract_all_metadata, @function
extract_all_metadata:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 64
	mov	QWORD PTR -4136[rbp], rdi
	mov	QWORD PTR -4144[rbp], rsi
	mov	QWORD PTR -4152[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	QWORD PTR -4144[rbp], 0
	jne	.L64
	lea	rdi, .LC31[rip]
	call	puts@PLT
	cmp	QWORD PTR -4144[rbp], 0
	je	.L65
	mov	rax, QWORD PTR -4144[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L65:
	mov	rax, QWORD PTR -4136[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L70
.L64:
	mov	rdx, QWORD PTR -4136[rbp]
	lea	rax, -4112[rbp]
	mov	rcx, rdx
	mov	edx, 4096
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -4116[rbp], eax
	cmp	DWORD PTR -4116[rbp], 0
	jle	.L72
	mov	eax, DWORD PTR -4116[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -4144[rbp]
	lea	rax, -4112[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	jmp	.L64
.L72:
	nop
	mov	eax, 0
.L70:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L71
	call	__stack_chk_fail@PLT
.L71:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	extract_all_metadata, .-extract_all_metadata
	.section	.rodata
.LC32:
	.string	":chariot_md:"
	.text
	.globl	extract_header
	.type	extract_header, @function
extract_header:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rdx
	mov	edx, 12
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L74
	mov	rdx, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	standard_error
	jmp	.L75
.L74:
	mov	eax, 0
.L75:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	extract_header, .-extract_header
	.section	.rodata
.LC33:
	.string	"extract sha256 of %s\n"
.LC34:
	.string	":sha256:"
	.text
	.globl	extract_sha
	.type	extract_sha, @function
extract_sha:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR 8[rax]
	and	eax, 8
	test	al, al
	je	.L77
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR 8[rax]
	and	eax, 4
	test	al, al
	je	.L77
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC33[rip]
	mov	eax, 0
	call	printf@PLT
.L77:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rdx
	mov	edx, 8
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC34[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L78
	mov	rdx, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	standard_error
	jmp	.L79
.L78:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rdx
	mov	edx, 32
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 32
	je	.L80
	mov	rdx, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	standard_error
	jmp	.L79
.L80:
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR 8[rax]
	and	eax, 8
	test	al, al
	je	.L81
	mov	DWORD PTR -12[rbp], 31
	jmp	.L82
.L87:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	and	eax, 15
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 9
	jle	.L83
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 87
	mov	edx, eax
	jmp	.L84
.L83:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 48
	mov	edx, eax
.L84:
	mov	eax, DWORD PTR -12[rbp]
	add	eax, eax
	cdqe
	lea	rcx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	sar	al, 4
	movsx	eax, al
	and	eax, 15
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 9
	jle	.L85
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 87
	mov	edx, eax
	jmp	.L86
.L85:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 48
	mov	edx, eax
.L86:
	mov	eax, DWORD PTR -12[rbp]
	add	eax, eax
	movsx	rcx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	sub	DWORD PTR -12[rbp], 1
.L82:
	cmp	DWORD PTR -12[rbp], 0
	jns	.L87
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 64
	mov	BYTE PTR [rax], 10
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rdx
	mov	edx, 65
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
.L81:
	mov	eax, 0
.L79:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	extract_sha, .-extract_sha
	.section	.rodata
.LC35:
	.string	"extract chariot format"
.LC36:
	.string	":fmt:"
	.text
	.globl	extract_format
	.type	extract_format, @function
extract_format:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 64
	mov	QWORD PTR -4136[rbp], rdi
	mov	QWORD PTR -4144[rbp], rsi
	mov	QWORD PTR -4152[rbp], rdx
	mov	QWORD PTR -4160[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -4160[rbp]
	movzx	eax, BYTE PTR 8[rax]
	and	eax, 4
	test	al, al
	je	.L89
	mov	rax, QWORD PTR -4160[rbp]
	movzx	eax, BYTE PTR 8[rax]
	and	eax, 16
	test	al, al
	je	.L89
	lea	rdi, .LC35[rip]
	call	puts@PLT
.L89:
	mov	rdx, QWORD PTR -4136[rbp]
	mov	rax, QWORD PTR -4152[rbp]
	mov	rcx, rdx
	mov	edx, 5
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -4120[rbp], eax
	mov	eax, DWORD PTR -4120[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -4152[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -4152[rbp]
	lea	rsi, .LC36[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L90
	mov	rdx, QWORD PTR -4160[rbp]
	mov	rcx, QWORD PTR -4136[rbp]
	mov	rax, QWORD PTR -4144[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	standard_error
	jmp	.L96
.L90:
	mov	DWORD PTR -4124[rbp], 0
	mov	rdx, QWORD PTR -4136[rbp]
	lea	rax, -4124[rbp]
	mov	rcx, rdx
	mov	edx, 4
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 4
	je	.L92
	mov	rdx, QWORD PTR -4160[rbp]
	mov	rcx, QWORD PTR -4136[rbp]
	mov	rax, QWORD PTR -4144[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	standard_error
	jmp	.L96
.L92:
	lea	rax, -4124[rbp]
	mov	rdi, rax
	call	ensure_endianness
.L95:
	mov	eax, DWORD PTR -4124[rbp]
	mov	edx, 4096
	cmp	eax, 4096
	cmova	eax, edx
	mov	DWORD PTR -4116[rbp], eax
	mov	edx, DWORD PTR -4116[rbp]
	mov	rcx, QWORD PTR -4136[rbp]
	lea	rax, -4112[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -4120[rbp], eax
	mov	eax, DWORD PTR -4120[rbp]
	cmp	DWORD PTR -4116[rbp], eax
	je	.L93
	mov	rdx, QWORD PTR -4160[rbp]
	mov	rcx, QWORD PTR -4136[rbp]
	mov	rax, QWORD PTR -4144[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	standard_error
	jmp	.L96
.L93:
	mov	rax, QWORD PTR -4160[rbp]
	movzx	eax, BYTE PTR 8[rax]
	and	eax, 16
	test	al, al
	je	.L94
	mov	edx, DWORD PTR -4116[rbp]
	mov	rcx, QWORD PTR -4144[rbp]
	lea	rax, -4112[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -4144[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
.L94:
	mov	eax, DWORD PTR -4124[rbp]
	sub	eax, DWORD PTR -4116[rbp]
	mov	DWORD PTR -4124[rbp], eax
	mov	eax, DWORD PTR -4124[rbp]
	test	eax, eax
	jne	.L95
	mov	eax, 0
.L96:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L97
	call	__stack_chk_fail@PLT
.L97:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	extract_format, .-extract_format
	.globl	extract_field_head
	.type	extract_field_head, @function
extract_field_head:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	QWORD PTR -56[rbp], r8
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 58
	je	.L99
	cmp	DWORD PTR -4[rbp], -1
	je	.L99
	mov	rdx, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	standard_error
	jmp	.L100
.L99:
	cmp	DWORD PTR -4[rbp], -1
	jne	.L101
	mov	rax, QWORD PTR -40[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 0
	mov	eax, 0
	jmp	.L100
.L101:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L102
.L104:
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -8[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -4[rbp]
	mov	BYTE PTR [rax], dl
.L102:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 58
	je	.L103
	cmp	DWORD PTR -4[rbp], -1
	je	.L103
	cmp	DWORD PTR -8[rbp], 98
	jle	.L104
.L103:
	cmp	DWORD PTR -4[rbp], -1
	je	.L105
	cmp	DWORD PTR -8[rbp], 98
	jle	.L106
.L105:
	mov	rdx, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	standard_error
	jmp	.L100
.L106:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, 0
.L100:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	extract_field_head, .-extract_field_head
	.section	.rodata
.LC37:
	.string	"add"
	.align 8
.LC38:
	.string	"extract chariot additional file"
	.text
	.globl	extract_additional_from_field
	.type	extract_additional_from_field, @function
extract_additional_from_field:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 96
	mov	QWORD PTR -4152[rbp], rdi
	mov	QWORD PTR -4160[rbp], rsi
	mov	QWORD PTR -4168[rbp], rdx
	mov	QWORD PTR -4176[rbp], rcx
	mov	QWORD PTR -4184[rbp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -4168[rbp]
	lea	rsi, .LC37[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L108
	mov	rax, QWORD PTR -4184[rbp]
	movzx	eax, BYTE PTR 8[rax]
	and	eax, 4
	test	al, al
	je	.L109
	mov	rax, QWORD PTR -4184[rbp]
	movzx	eax, BYTE PTR 9[rax]
	and	eax, 2
	test	al, al
	je	.L109
	lea	rdi, .LC38[rip]
	call	puts@PLT
.L109:
	mov	DWORD PTR -4136[rbp], 0
	mov	rdx, QWORD PTR -4152[rbp]
	lea	rax, -4136[rbp]
	mov	rcx, rdx
	mov	edx, 4
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 4
	je	.L110
	mov	rdx, QWORD PTR -4184[rbp]
	mov	rcx, QWORD PTR -4152[rbp]
	mov	rax, QWORD PTR -4160[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	standard_error
	jmp	.L122
.L110:
	lea	rax, -4136[rbp]
	mov	rdi, rax
	call	ensure_endianness
	mov	rax, QWORD PTR -4184[rbp]
	movzx	eax, BYTE PTR 9[rax]
	and	eax, 2
	test	al, al
	je	.L112
.L115:
	mov	eax, DWORD PTR -4136[rbp]
	mov	edx, 4096
	cmp	eax, 4096
	cmova	eax, edx
	mov	DWORD PTR -4128[rbp], eax
	mov	edx, DWORD PTR -4128[rbp]
	mov	rcx, QWORD PTR -4152[rbp]
	lea	rax, -4112[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	QWORD PTR -4120[rbp], rax
	mov	eax, DWORD PTR -4128[rbp]
	cmp	QWORD PTR -4120[rbp], rax
	je	.L113
	mov	rdx, QWORD PTR -4184[rbp]
	mov	rcx, QWORD PTR -4152[rbp]
	mov	rax, QWORD PTR -4160[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	standard_error
	jmp	.L122
.L113:
	mov	rax, QWORD PTR -4184[rbp]
	movzx	eax, BYTE PTR 9[rax]
	and	eax, 2
	test	al, al
	je	.L114
	mov	edx, DWORD PTR -4128[rbp]
	mov	rcx, QWORD PTR -4160[rbp]
	lea	rax, -4112[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
.L114:
	mov	eax, DWORD PTR -4136[rbp]
	sub	eax, DWORD PTR -4128[rbp]
	mov	DWORD PTR -4136[rbp], eax
	mov	eax, DWORD PTR -4136[rbp]
	test	eax, eax
	jne	.L115
	mov	rax, QWORD PTR -4160[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	jmp	.L116
.L112:
	mov	eax, DWORD PTR -4136[rbp]
	mov	ecx, eax
	mov	rax, QWORD PTR -4152[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	test	eax, eax
	je	.L116
	mov	rdx, QWORD PTR -4184[rbp]
	mov	rcx, QWORD PTR -4152[rbp]
	mov	rax, QWORD PTR -4160[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	standard_error
	jmp	.L122
.L116:
	mov	rax, QWORD PTR -4152[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	cmp	eax, 58
	je	.L117
	mov	rdx, QWORD PTR -4184[rbp]
	mov	rcx, QWORD PTR -4152[rbp]
	mov	rax, QWORD PTR -4160[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	standard_error
	jmp	.L122
.L117:
	mov	DWORD PTR -4132[rbp], 0
	mov	rdx, QWORD PTR -4152[rbp]
	lea	rax, -4132[rbp]
	mov	rcx, rdx
	mov	edx, 4
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 4
	je	.L118
	mov	rdx, QWORD PTR -4184[rbp]
	mov	rcx, QWORD PTR -4152[rbp]
	mov	rax, QWORD PTR -4160[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	standard_error
	jmp	.L122
.L118:
	lea	rax, -4132[rbp]
	mov	rdi, rax
	call	ensure_endianness
	mov	eax, DWORD PTR -4132[rbp]
	mov	ecx, eax
	mov	rax, QWORD PTR -4152[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	test	eax, eax
	je	.L119
	mov	rdx, QWORD PTR -4184[rbp]
	mov	rcx, QWORD PTR -4152[rbp]
	mov	rax, QWORD PTR -4160[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	standard_error
	jmp	.L122
.L119:
	mov	rdi, QWORD PTR -4184[rbp]
	mov	rcx, QWORD PTR -4176[rbp]
	mov	rdx, QWORD PTR -4168[rbp]
	mov	rsi, QWORD PTR -4160[rbp]
	mov	rax, QWORD PTR -4152[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	extract_field_head
	mov	DWORD PTR -4124[rbp], eax
	cmp	DWORD PTR -4124[rbp], 0
	je	.L121
	mov	eax, DWORD PTR -4124[rbp]
	jmp	.L122
.L108:
	mov	rax, QWORD PTR -4184[rbp]
	movzx	eax, BYTE PTR 9[rax]
	and	eax, 2
	test	al, al
	je	.L121
	mov	rax, QWORD PTR stdout[rip]
	cmp	QWORD PTR -4160[rbp], rax
	jne	.L121
	mov	edi, 10
	call	putchar@PLT
.L121:
	mov	eax, 0
.L122:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L123
	call	__stack_chk_fail@PLT
.L123:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	extract_additional_from_field, .-extract_additional_from_field
	.section	.rodata
.LC39:
	.string	"version"
.LC40:
	.string	"extract chariot version"
	.text
	.globl	extract_version_from_field
	.type	extract_version_from_field, @function
extract_version_from_field:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	QWORD PTR -56[rbp], r8
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC39[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L125
	mov	rdx, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	standard_error
	jmp	.L126
.L125:
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR 8[rax]
	and	eax, 32
	test	al, al
	je	.L127
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR 8[rax]
	and	eax, 4
	test	al, al
	je	.L127
	lea	rdi, .LC40[rip]
	call	puts@PLT
.L127:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rdx
	mov	edx, 32
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 32
	je	.L128
	mov	rdx, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	standard_error
	jmp	.L126
.L128:
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR 8[rax]
	and	eax, 32
	test	al, al
	je	.L129
	mov	DWORD PTR -12[rbp], 31
	jmp	.L130
.L135:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	and	eax, 15
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 9
	jle	.L131
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 87
	mov	edx, eax
	jmp	.L132
.L131:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 48
	mov	edx, eax
.L132:
	mov	eax, DWORD PTR -12[rbp]
	add	eax, eax
	cdqe
	lea	rcx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	sar	al, 4
	movsx	eax, al
	and	eax, 15
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 9
	jle	.L133
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 87
	mov	edx, eax
	jmp	.L134
.L133:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 48
	mov	edx, eax
.L134:
	mov	eax, DWORD PTR -12[rbp]
	add	eax, eax
	movsx	rcx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	sub	DWORD PTR -12[rbp], 1
.L130:
	cmp	DWORD PTR -12[rbp], 0
	jns	.L135
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 64
	mov	BYTE PTR [rax], 10
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rdx
	mov	edx, 65
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
.L129:
	mov	eax, 0
.L126:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	extract_version_from_field, .-extract_version_from_field
	.section	.rodata
.LC41:
	.string	"lic"
.LC42:
	.string	"extract chariot license file"
	.text
	.globl	extract_license_from_field
	.type	extract_license_from_field, @function
extract_license_from_field:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 96
	mov	QWORD PTR -4152[rbp], rdi
	mov	QWORD PTR -4160[rbp], rsi
	mov	QWORD PTR -4168[rbp], rdx
	mov	QWORD PTR -4176[rbp], rcx
	mov	QWORD PTR -4184[rbp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -4168[rbp]
	lea	rsi, .LC41[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L137
	mov	rax, QWORD PTR -4184[rbp]
	movzx	eax, BYTE PTR 8[rax]
	and	eax, 4
	test	al, al
	je	.L138
	mov	rax, QWORD PTR -4184[rbp]
	movzx	eax, BYTE PTR 8[rax]
	and	eax, -128
	test	al, al
	je	.L138
	lea	rdi, .LC42[rip]
	call	puts@PLT
.L138:
	mov	DWORD PTR -4132[rbp], 0
	mov	rdx, QWORD PTR -4152[rbp]
	lea	rax, -4132[rbp]
	mov	rcx, rdx
	mov	edx, 4
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 4
	je	.L139
	mov	rdx, QWORD PTR -4184[rbp]
	mov	rcx, QWORD PTR -4152[rbp]
	mov	rax, QWORD PTR -4160[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	standard_error
	jmp	.L148
.L139:
	lea	rax, -4132[rbp]
	mov	rdi, rax
	call	ensure_endianness
	mov	rax, QWORD PTR -4184[rbp]
	movzx	eax, BYTE PTR 8[rax]
	and	eax, -128
	test	al, al
	je	.L141
.L144:
	mov	eax, DWORD PTR -4132[rbp]
	mov	edx, 4096
	cmp	eax, 4096
	cmova	eax, edx
	mov	DWORD PTR -4128[rbp], eax
	mov	edx, DWORD PTR -4128[rbp]
	mov	rcx, QWORD PTR -4152[rbp]
	lea	rax, -4112[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	QWORD PTR -4120[rbp], rax
	mov	eax, DWORD PTR -4128[rbp]
	cmp	QWORD PTR -4120[rbp], rax
	je	.L142
	mov	rdx, QWORD PTR -4184[rbp]
	mov	rcx, QWORD PTR -4152[rbp]
	mov	rax, QWORD PTR -4160[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	standard_error
	jmp	.L148
.L142:
	mov	rax, QWORD PTR -4184[rbp]
	movzx	eax, BYTE PTR 8[rax]
	and	eax, -128
	test	al, al
	je	.L143
	mov	edx, DWORD PTR -4128[rbp]
	mov	rcx, QWORD PTR -4160[rbp]
	lea	rax, -4112[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
.L143:
	mov	eax, DWORD PTR -4132[rbp]
	sub	eax, DWORD PTR -4128[rbp]
	mov	DWORD PTR -4132[rbp], eax
	mov	eax, DWORD PTR -4132[rbp]
	test	eax, eax
	jne	.L144
	mov	rax, QWORD PTR -4160[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	jmp	.L145
.L141:
	mov	eax, DWORD PTR -4132[rbp]
	mov	ecx, eax
	mov	rax, QWORD PTR -4152[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	test	eax, eax
	je	.L145
	mov	rdx, QWORD PTR -4184[rbp]
	mov	rcx, QWORD PTR -4152[rbp]
	mov	rax, QWORD PTR -4160[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	standard_error
	jmp	.L148
.L145:
	mov	rdi, QWORD PTR -4184[rbp]
	mov	rcx, QWORD PTR -4176[rbp]
	mov	rdx, QWORD PTR -4168[rbp]
	mov	rsi, QWORD PTR -4160[rbp]
	mov	rax, QWORD PTR -4152[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	extract_field_head
	mov	DWORD PTR -4124[rbp], eax
	cmp	DWORD PTR -4124[rbp], 0
	je	.L147
	mov	eax, DWORD PTR -4124[rbp]
	jmp	.L148
.L137:
	mov	rax, QWORD PTR -4184[rbp]
	movzx	eax, BYTE PTR 8[rax]
	and	eax, -128
	test	al, al
	je	.L147
	mov	rax, QWORD PTR stdout[rip]
	cmp	QWORD PTR -4160[rbp], rax
	jne	.L147
	mov	edi, 10
	call	putchar@PLT
.L147:
	mov	eax, 0
.L148:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L149
	call	__stack_chk_fail@PLT
.L149:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	extract_license_from_field, .-extract_license_from_field
	.section	.rodata
.LC43:
	.string	"soft"
	.align 8
.LC44:
	.string	"extract chariot software_id file"
	.text
	.globl	extract_software_id_from_field
	.type	extract_software_id_from_field, @function
extract_software_id_from_field:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 96
	mov	QWORD PTR -4152[rbp], rdi
	mov	QWORD PTR -4160[rbp], rsi
	mov	QWORD PTR -4168[rbp], rdx
	mov	QWORD PTR -4176[rbp], rcx
	mov	QWORD PTR -4184[rbp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -4168[rbp]
	lea	rsi, .LC43[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L151
	mov	rax, QWORD PTR -4184[rbp]
	movzx	eax, BYTE PTR 8[rax]
	and	eax, 4
	test	al, al
	je	.L152
	mov	rax, QWORD PTR -4184[rbp]
	movzx	eax, BYTE PTR 9[rax]
	and	eax, 1
	test	al, al
	je	.L152
	lea	rdi, .LC44[rip]
	call	puts@PLT
.L152:
	mov	DWORD PTR -4132[rbp], 0
	mov	rdx, QWORD PTR -4152[rbp]
	lea	rax, -4132[rbp]
	mov	rcx, rdx
	mov	edx, 4
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 4
	je	.L153
	mov	rdx, QWORD PTR -4184[rbp]
	mov	rcx, QWORD PTR -4152[rbp]
	mov	rax, QWORD PTR -4160[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	standard_error
	jmp	.L162
.L153:
	lea	rax, -4132[rbp]
	mov	rdi, rax
	call	ensure_endianness
	mov	rax, QWORD PTR -4184[rbp]
	movzx	eax, BYTE PTR 9[rax]
	and	eax, 1
	test	al, al
	je	.L155
.L158:
	mov	eax, DWORD PTR -4132[rbp]
	mov	edx, 4096
	cmp	eax, 4096
	cmova	eax, edx
	mov	DWORD PTR -4128[rbp], eax
	mov	edx, DWORD PTR -4128[rbp]
	mov	rcx, QWORD PTR -4152[rbp]
	lea	rax, -4112[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	QWORD PTR -4120[rbp], rax
	mov	eax, DWORD PTR -4128[rbp]
	cmp	QWORD PTR -4120[rbp], rax
	je	.L156
	mov	rdx, QWORD PTR -4184[rbp]
	mov	rcx, QWORD PTR -4152[rbp]
	mov	rax, QWORD PTR -4160[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	standard_error
	jmp	.L162
.L156:
	mov	rax, QWORD PTR -4184[rbp]
	movzx	eax, BYTE PTR 9[rax]
	and	eax, 1
	test	al, al
	je	.L157
	mov	edx, DWORD PTR -4128[rbp]
	mov	rcx, QWORD PTR -4160[rbp]
	lea	rax, -4112[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
.L157:
	mov	eax, DWORD PTR -4132[rbp]
	sub	eax, DWORD PTR -4128[rbp]
	mov	DWORD PTR -4132[rbp], eax
	mov	eax, DWORD PTR -4132[rbp]
	test	eax, eax
	jne	.L158
	mov	rax, QWORD PTR -4160[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	jmp	.L159
.L155:
	mov	eax, DWORD PTR -4132[rbp]
	mov	ecx, eax
	mov	rax, QWORD PTR -4152[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	test	eax, eax
	je	.L159
	mov	rdx, QWORD PTR -4184[rbp]
	mov	rcx, QWORD PTR -4152[rbp]
	mov	rax, QWORD PTR -4160[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	standard_error
	jmp	.L162
.L159:
	mov	rdi, QWORD PTR -4184[rbp]
	mov	rcx, QWORD PTR -4176[rbp]
	mov	rdx, QWORD PTR -4168[rbp]
	mov	rsi, QWORD PTR -4160[rbp]
	mov	rax, QWORD PTR -4152[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	extract_field_head
	mov	DWORD PTR -4124[rbp], eax
	cmp	DWORD PTR -4124[rbp], 0
	je	.L161
	mov	eax, DWORD PTR -4124[rbp]
	jmp	.L162
.L151:
	mov	rax, QWORD PTR -4184[rbp]
	movzx	eax, BYTE PTR 9[rax]
	and	eax, 1
	test	al, al
	je	.L161
	mov	rax, QWORD PTR stdout[rip]
	cmp	QWORD PTR -4160[rbp], rax
	jne	.L161
	mov	edi, 10
	call	putchar@PLT
.L161:
	mov	eax, 0
.L162:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L163
	call	__stack_chk_fail@PLT
.L163:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	extract_software_id_from_field, .-extract_software_id_from_field
	.section	.rodata
.LC45:
	.string	"bcpath"
	.align 8
.LC46:
	.string	"extract chariot blockchain path"
	.text
	.globl	extract_blockchain_path_from_field
	.type	extract_blockchain_path_from_field, @function
extract_blockchain_path_from_field:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 96
	mov	QWORD PTR -4152[rbp], rdi
	mov	QWORD PTR -4160[rbp], rsi
	mov	QWORD PTR -4168[rbp], rdx
	mov	QWORD PTR -4176[rbp], rcx
	mov	QWORD PTR -4184[rbp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -4168[rbp]
	lea	rsi, .LC45[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L165
	mov	rax, QWORD PTR -4184[rbp]
	movzx	eax, BYTE PTR 8[rax]
	and	eax, 4
	test	al, al
	je	.L166
	mov	rax, QWORD PTR -4184[rbp]
	movzx	eax, BYTE PTR 8[rax]
	and	eax, 64
	test	al, al
	je	.L166
	lea	rdi, .LC46[rip]
	call	puts@PLT
.L166:
	mov	DWORD PTR -4132[rbp], 0
	mov	rdx, QWORD PTR -4152[rbp]
	lea	rax, -4132[rbp]
	mov	rcx, rdx
	mov	edx, 4
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 4
	je	.L167
	mov	rdx, QWORD PTR -4184[rbp]
	mov	rcx, QWORD PTR -4152[rbp]
	mov	rax, QWORD PTR -4160[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	standard_error
	jmp	.L176
.L167:
	lea	rax, -4132[rbp]
	mov	rdi, rax
	call	ensure_endianness
	mov	rax, QWORD PTR -4184[rbp]
	movzx	eax, BYTE PTR 8[rax]
	and	eax, 64
	test	al, al
	je	.L169
.L172:
	mov	eax, DWORD PTR -4132[rbp]
	mov	edx, 4096
	cmp	eax, 4096
	cmova	eax, edx
	mov	DWORD PTR -4128[rbp], eax
	mov	edx, DWORD PTR -4128[rbp]
	mov	rcx, QWORD PTR -4152[rbp]
	lea	rax, -4112[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	QWORD PTR -4120[rbp], rax
	mov	eax, DWORD PTR -4128[rbp]
	cmp	QWORD PTR -4120[rbp], rax
	je	.L170
	mov	rdx, QWORD PTR -4184[rbp]
	mov	rcx, QWORD PTR -4152[rbp]
	mov	rax, QWORD PTR -4160[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	standard_error
	jmp	.L176
.L170:
	mov	rax, QWORD PTR -4184[rbp]
	movzx	eax, BYTE PTR 8[rax]
	and	eax, 64
	test	al, al
	je	.L171
	mov	edx, DWORD PTR -4128[rbp]
	mov	rcx, QWORD PTR -4160[rbp]
	lea	rax, -4112[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
.L171:
	mov	eax, DWORD PTR -4132[rbp]
	sub	eax, DWORD PTR -4128[rbp]
	mov	DWORD PTR -4132[rbp], eax
	mov	eax, DWORD PTR -4132[rbp]
	test	eax, eax
	jne	.L172
	mov	rax, QWORD PTR -4160[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	jmp	.L173
.L169:
	mov	eax, DWORD PTR -4132[rbp]
	mov	ecx, eax
	mov	rax, QWORD PTR -4152[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	test	eax, eax
	je	.L173
	mov	rdx, QWORD PTR -4184[rbp]
	mov	rcx, QWORD PTR -4152[rbp]
	mov	rax, QWORD PTR -4160[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	standard_error
	jmp	.L176
.L173:
	mov	rdi, QWORD PTR -4184[rbp]
	mov	rcx, QWORD PTR -4176[rbp]
	mov	rdx, QWORD PTR -4168[rbp]
	mov	rsi, QWORD PTR -4160[rbp]
	mov	rax, QWORD PTR -4152[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	extract_field_head
	mov	DWORD PTR -4124[rbp], eax
	cmp	DWORD PTR -4124[rbp], 0
	je	.L175
	mov	eax, DWORD PTR -4124[rbp]
	jmp	.L176
.L165:
	mov	rax, QWORD PTR -4184[rbp]
	movzx	eax, BYTE PTR 8[rax]
	and	eax, 64
	test	al, al
	je	.L175
	mov	rax, QWORD PTR stdout[rip]
	cmp	QWORD PTR -4160[rbp], rax
	jne	.L175
	mov	edi, 10
	call	putchar@PLT
.L175:
	mov	eax, 0
.L176:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L177
	call	__stack_chk_fail@PLT
.L177:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	extract_blockchain_path_from_field, .-extract_blockchain_path_from_field
	.section	.rodata
.LC47:
	.string	"sca"
	.align 8
.LC48:
	.string	"extract chariot static_analysis file"
	.text
	.globl	extract_static_analysis_from_field
	.type	extract_static_analysis_from_field, @function
extract_static_analysis_from_field:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 96
	mov	QWORD PTR -4152[rbp], rdi
	mov	QWORD PTR -4160[rbp], rsi
	mov	QWORD PTR -4168[rbp], rdx
	mov	QWORD PTR -4176[rbp], rcx
	mov	QWORD PTR -4184[rbp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -4168[rbp]
	lea	rsi, .LC47[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L179
	mov	QWORD PTR -4128[rbp], 0
	mov	rax, QWORD PTR -4184[rbp]
	mov	rax, QWORD PTR 32[rax]
	test	rax, rax
	je	.L180
	mov	rax, QWORD PTR -4184[rbp]
	mov	rax, QWORD PTR 32[rax]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -4128[rbp], rax
.L180:
	mov	rax, QWORD PTR -4184[rbp]
	movzx	eax, BYTE PTR 8[rax]
	and	eax, 4
	test	al, al
	je	.L181
	mov	rax, QWORD PTR -4184[rbp]
	mov	rax, QWORD PTR 32[rax]
	test	rax, rax
	je	.L181
	lea	rdi, .LC48[rip]
	call	puts@PLT
.L181:
	mov	DWORD PTR -4140[rbp], 0
	mov	rdx, QWORD PTR -4152[rbp]
	lea	rax, -4140[rbp]
	mov	rcx, rdx
	mov	edx, 4
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 4
	je	.L182
	mov	rdx, QWORD PTR -4184[rbp]
	mov	rcx, QWORD PTR -4152[rbp]
	mov	rax, QWORD PTR -4160[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	standard_error
	jmp	.L195
.L182:
	lea	rax, -4140[rbp]
	mov	rdi, rax
	call	ensure_endianness
	mov	rax, QWORD PTR -4184[rbp]
	mov	rax, QWORD PTR 32[rax]
	test	rax, rax
	je	.L184
.L188:
	mov	eax, DWORD PTR -4140[rbp]
	mov	edx, 4096
	cmp	eax, 4096
	cmova	eax, edx
	mov	DWORD PTR -4132[rbp], eax
	mov	edx, DWORD PTR -4132[rbp]
	mov	rcx, QWORD PTR -4152[rbp]
	lea	rax, -4112[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	QWORD PTR -4120[rbp], rax
	mov	eax, DWORD PTR -4132[rbp]
	cmp	QWORD PTR -4120[rbp], rax
	je	.L185
	mov	rdx, QWORD PTR -4184[rbp]
	mov	rcx, QWORD PTR -4152[rbp]
	mov	rax, QWORD PTR -4160[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	standard_error
	jmp	.L195
.L185:
	cmp	QWORD PTR -4128[rbp], 0
	je	.L186
	mov	edx, DWORD PTR -4132[rbp]
	mov	rcx, QWORD PTR -4128[rbp]
	lea	rax, -4112[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	jmp	.L187
.L186:
	mov	rax, QWORD PTR -4184[rbp]
	mov	rax, QWORD PTR 32[rax]
	test	rax, rax
	je	.L187
	mov	edx, DWORD PTR -4132[rbp]
	mov	rcx, QWORD PTR -4160[rbp]
	lea	rax, -4112[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
.L187:
	mov	eax, DWORD PTR -4140[rbp]
	sub	eax, DWORD PTR -4132[rbp]
	mov	DWORD PTR -4140[rbp], eax
	mov	eax, DWORD PTR -4140[rbp]
	test	eax, eax
	jne	.L188
	mov	rax, QWORD PTR -4160[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	jmp	.L189
.L184:
	mov	eax, DWORD PTR -4140[rbp]
	mov	ecx, eax
	mov	rax, QWORD PTR -4152[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	test	eax, eax
	je	.L189
	mov	rdx, QWORD PTR -4184[rbp]
	mov	rcx, QWORD PTR -4152[rbp]
	mov	rax, QWORD PTR -4160[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	standard_error
	jmp	.L195
.L189:
	cmp	QWORD PTR -4128[rbp], 0
	je	.L190
	mov	rax, QWORD PTR -4128[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L190:
	mov	rax, QWORD PTR -4152[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	cmp	eax, 58
	je	.L191
	mov	rdx, QWORD PTR -4184[rbp]
	mov	rcx, QWORD PTR -4152[rbp]
	mov	rax, QWORD PTR -4160[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	standard_error
	jmp	.L195
.L191:
	mov	DWORD PTR -4136[rbp], 0
	mov	rdx, QWORD PTR -4152[rbp]
	lea	rax, -4136[rbp]
	mov	rcx, rdx
	mov	edx, 4
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 4
	je	.L192
	mov	rdx, QWORD PTR -4184[rbp]
	mov	rcx, QWORD PTR -4152[rbp]
	mov	rax, QWORD PTR -4160[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	standard_error
	jmp	.L195
.L192:
	lea	rax, -4136[rbp]
	mov	rdi, rax
	call	ensure_endianness
	mov	eax, DWORD PTR -4136[rbp]
	mov	ecx, eax
	mov	rax, QWORD PTR -4152[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	test	eax, eax
	je	.L194
	mov	rdx, QWORD PTR -4184[rbp]
	mov	rcx, QWORD PTR -4152[rbp]
	mov	rax, QWORD PTR -4160[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	standard_error
	jmp	.L195
.L179:
	mov	rax, QWORD PTR -4184[rbp]
	mov	rax, QWORD PTR 32[rax]
	test	rax, rax
	je	.L194
	mov	rax, QWORD PTR stdout[rip]
	cmp	QWORD PTR -4160[rbp], rax
	jne	.L194
	mov	edi, 10
	call	putchar@PLT
.L194:
	mov	eax, 0
.L195:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L196
	call	__stack_chk_fail@PLT
.L196:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	extract_static_analysis_from_field, .-extract_static_analysis_from_field
	.section	.rodata
	.align 8
.LC49:
	.ascii	"\nExtract Chariot meta-data from a bin firmware\n\npositiona"
	.ascii	"l arguments:\n  exe_name              the name of the execut"
	.ascii	"able bin file\n\noptional arguments:\n  -h, --help          "
	.ascii	"  show this help message and exit\n  --all, -a             e"
	.ascii	"quivalent to -sha -sa -bp -lic -soft -add\n  --verbose, -v  "
	.ascii	"       verbose mode: echo every command on terminal\n  --sha"
	.ascii	", -sha           print the sha256 of the bin file\n  --forma"
	.ascii	"t, -format     print the format\n  --blockchain_path, -bp\n "
	.ascii	"                       print the path to the targeted blockc"
	.ascii	"hain\n  --license, -lic       print the license of the firmw"
	.ascii	"are\n  --software_ID, -soft  print the software id of the fi"
	.ascii	"rmware\n  --stat"
	.string	"ic-analysis, -sa FILE\n                        print the result of the static analysis in file\n  --add, -add           print content of the additional section\n  --output OUTPUT, -o OUTPUT\n                        print into the output file instead of stdout\n"
.LC50:
	.string	"rb"
.LC51:
	.string	"Cannot open file %s\n"
	.align 8
.LC52:
	.string	"unable to find metadata, error code = %d\n"
.LC53:
	.string	"extract meta-data section"
	.text
	.globl	main
	.type	main, @function
main:
.LFB22:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 208
	mov	DWORD PTR -196[rbp], edi
	mov	QWORD PTR -208[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -208[rbp]
	mov	ecx, DWORD PTR -196[rbp]
	lea	rax, -160[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	fill_input_parser_fields
	xor	eax, 1
	test	al, al
	je	.L198
	mov	eax, 0
	call	input_parser_usage
	mov	eax, 1
	jmp	.L224
.L198:
	movzx	eax, BYTE PTR -152[rbp]
	and	eax, 1
	test	al, al
	je	.L200
	mov	eax, 0
	call	input_parser_usage
	lea	rdi, .LC49[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L224
.L200:
	mov	QWORD PTR -176[rbp], 0
	mov	BYTE PTR -189[rbp], 0
	mov	rax, QWORD PTR -144[rbp]
	test	rax, rax
	je	.L201
	mov	rax, QWORD PTR -144[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L201
	mov	rax, QWORD PTR -144[rbp]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -176[rbp], rax
	cmp	QWORD PTR -176[rbp], 0
	setne	al
	mov	BYTE PTR -189[rbp], al
.L201:
	movzx	eax, BYTE PTR -189[rbp]
	xor	eax, 1
	test	al, al
	je	.L202
	mov	rax, QWORD PTR stdout[rip]
	mov	QWORD PTR -176[rbp], rax
.L202:
	mov	rax, QWORD PTR -160[rbp]
	lea	rsi, .LC50[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], 0
	jne	.L203
	mov	rdx, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC51[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L224
.L203:
	mov	DWORD PTR -188[rbp], 0
	mov	rax, QWORD PTR -168[rbp]
	mov	edx, 2
	mov	rsi, -4
	mov	rdi, rax
	call	fseek@PLT
	test	eax, eax
	je	.L204
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC52[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L224
.L204:
	mov	rdx, QWORD PTR -168[rbp]
	lea	rax, -188[rbp]
	mov	rcx, rdx
	mov	edx, 4
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 4
	je	.L205
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC52[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L224
.L205:
	lea	rax, -188[rbp]
	mov	rdi, rax
	call	ensure_endianness
	mov	eax, DWORD PTR -188[rbp]
	mov	eax, eax
	neg	rax
	mov	rcx, rax
	mov	rax, QWORD PTR -168[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	test	eax, eax
	je	.L206
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC52[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L224
.L206:
	lea	rdx, -160[rbp]
	mov	rcx, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	extract_firmware
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], 0
	je	.L207
	mov	eax, DWORD PTR -180[rbp]
	jmp	.L224
.L207:
	movzx	eax, BYTE PTR -152[rbp]
	and	eax, 2
	test	al, al
	je	.L208
	lea	rdx, -160[rbp]
	mov	rcx, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	extract_all_metadata
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], 0
	je	.L209
	mov	eax, DWORD PTR -180[rbp]
	jmp	.L224
.L209:
	cmp	QWORD PTR -176[rbp], 0
	je	.L210
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L210:
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	jmp	.L224
.L208:
	movzx	eax, BYTE PTR -152[rbp]
	and	eax, 4
	test	al, al
	je	.L211
	lea	rdi, .LC53[rip]
	call	puts@PLT
.L211:
	lea	rcx, -160[rbp]
	lea	rdx, -112[rbp]
	mov	rsi, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	extract_header
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], 0
	je	.L212
	mov	eax, DWORD PTR -180[rbp]
	jmp	.L224
.L212:
	lea	rcx, -160[rbp]
	lea	rdx, -112[rbp]
	mov	rsi, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	extract_sha
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], 0
	je	.L213
	mov	eax, DWORD PTR -180[rbp]
	jmp	.L224
.L213:
	lea	rcx, -160[rbp]
	lea	rdx, -112[rbp]
	mov	rsi, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	extract_format
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], 0
	je	.L214
	mov	eax, DWORD PTR -180[rbp]
	jmp	.L224
.L214:
	mov	DWORD PTR -184[rbp], 0
	lea	rdi, -160[rbp]
	lea	rcx, -184[rbp]
	lea	rdx, -112[rbp]
	mov	rsi, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	extract_field_head
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], 0
	je	.L215
	mov	eax, DWORD PTR -180[rbp]
	jmp	.L224
.L215:
	lea	rdi, -160[rbp]
	lea	rcx, -184[rbp]
	lea	rdx, -112[rbp]
	mov	rsi, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	extract_additional_from_field
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], 0
	je	.L216
	mov	eax, DWORD PTR -180[rbp]
	jmp	.L224
.L216:
	lea	rdi, -160[rbp]
	lea	rcx, -184[rbp]
	lea	rdx, -112[rbp]
	mov	rsi, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	extract_version_from_field
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], 0
	je	.L217
	mov	eax, DWORD PTR -180[rbp]
	jmp	.L224
.L217:
	lea	rdi, -160[rbp]
	lea	rcx, -184[rbp]
	lea	rdx, -112[rbp]
	mov	rsi, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	extract_field_head
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], 0
	je	.L218
	mov	eax, DWORD PTR -180[rbp]
	jmp	.L224
.L218:
	lea	rdi, -160[rbp]
	lea	rcx, -184[rbp]
	lea	rdx, -112[rbp]
	mov	rsi, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	extract_blockchain_path_from_field
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], 0
	je	.L219
	mov	eax, DWORD PTR -180[rbp]
	jmp	.L224
.L219:
	lea	rdi, -160[rbp]
	lea	rcx, -184[rbp]
	lea	rdx, -112[rbp]
	mov	rsi, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	extract_license_from_field
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], 0
	je	.L220
	mov	eax, DWORD PTR -180[rbp]
	jmp	.L224
.L220:
	lea	rdi, -160[rbp]
	lea	rcx, -184[rbp]
	lea	rdx, -112[rbp]
	mov	rsi, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	extract_software_id_from_field
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], 0
	je	.L221
	mov	eax, DWORD PTR -180[rbp]
	jmp	.L224
.L221:
	lea	rdi, -160[rbp]
	lea	rcx, -184[rbp]
	lea	rdx, -112[rbp]
	mov	rsi, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	extract_static_analysis_from_field
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], 0
	je	.L222
	mov	eax, DWORD PTR -180[rbp]
	jmp	.L224
.L222:
	cmp	QWORD PTR -176[rbp], 0
	je	.L223
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L223:
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L224:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L225
	call	__stack_chk_fail@PLT
.L225:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.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	"857404.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"original file %s has not expected hybrid format\012"
	.ascii	"\000"
	.text
	.align	2
	.global	standard_error
	.syntax unified
	.arm
	.fpu softvfp
	.type	standard_error, %function
standard_error:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L4
	bl	printf
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L2
	ldr	r0, [fp, #-8]
	bl	fclose
.L2:
	ldr	r0, [fp, #-12]
	bl	fclose
	mov	r3, #1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	standard_error, .-standard_error
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ensure_endianness
	.syntax unified
	.arm
	.fpu softvfp
	.type	ensure_endianness, %function
ensure_endianness:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L10+4
	str	r3, [fp, #-16]
	sub	r3, fp, #16
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #52
	bne	.L9
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	lsl	r3, r3, #24
	ldr	r2, [fp, #-12]
	orr	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	lsr	r3, r3, #8
	lsl	r3, r3, #16
	and	r3, r3, #16711680
	ldr	r2, [fp, #-12]
	orr	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	lsr	r3, r3, #16
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, [fp, #-12]
	orr	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	lsr	r3, r3, #24
	ldr	r2, [fp, #-12]
	orr	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
.L9:
	nop
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC1
	.word	4660
	.size	ensure_endianness, .-ensure_endianness
	.section	.rodata
	.align	2
.LC2:
	.ascii	"usage: chariot_extractbin_meta_data.py [-h] [--all]"
	.ascii	" [--verbose] [--sha]\012                           "
	.ascii	"            [--format] [--version]\012             "
	.ascii	"                          [--blockchain_path] [--li"
	.ascii	"cense]\012                                       [-"
	.ascii	"-software_ID] [--static-analysis FILE]\012         "
	.ascii	"                              [--add] [--output OUT"
	.ascii	"PUT]\012                                       [--c"
	.ascii	"ut OUTPUT_BIN]\012                                 "
	.ascii	"      exe_name\012\000"
	.text
	.align	2
	.global	input_parser_usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	input_parser_usage, %function
input_parser_usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L13
	bl	puts
	nop
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC2
	.size	input_parser_usage, .-input_parser_usage
	.section	.rodata
	.align	2
.LC3:
	.ascii	"-h\000"
	.align	2
.LC4:
	.ascii	"-a\000"
	.align	2
.LC5:
	.ascii	"--all\000"
	.align	2
.LC6:
	.ascii	"-v\000"
	.align	2
.LC7:
	.ascii	"--verbose\000"
	.align	2
.LC8:
	.ascii	"-sha\000"
	.align	2
.LC9:
	.ascii	"--sha\000"
	.align	2
.LC10:
	.ascii	"-format\000"
	.align	2
.LC11:
	.ascii	"--format\000"
	.align	2
.LC12:
	.ascii	"-ver\000"
	.align	2
.LC13:
	.ascii	"--version\000"
	.align	2
.LC14:
	.ascii	"-bp\000"
	.align	2
.LC15:
	.ascii	"--blockchain_path\000"
	.align	2
.LC16:
	.ascii	"-lic\000"
	.align	2
.LC17:
	.ascii	"--license\000"
	.align	2
.LC18:
	.ascii	"-soft\000"
	.align	2
.LC19:
	.ascii	"--software_ID\000"
	.align	2
.LC20:
	.ascii	"-sa\000"
	.align	2
.LC21:
	.ascii	"--static-analysis\000"
	.align	2
.LC22:
	.ascii	"-add\000"
	.align	2
.LC23:
	.ascii	"--add\000"
	.align	2
.LC24:
	.ascii	"-o\000"
	.align	2
.LC25:
	.ascii	"--output\000"
	.align	2
.LC26:
	.ascii	"-cut\000"
	.align	2
.LC27:
	.ascii	"--cut\000"
	.text
	.align	2
	.global	fill_input_parser_fields
	.syntax unified
	.arm
	.fpu softvfp
	.type	fill_input_parser_fields, %function
fill_input_parser_fields:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r2, #20
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	memset
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L16
.L49:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L17
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L52
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	ldr	r2, [fp, #-16]
	ldrb	r3, [r2, #4]
	orr	r3, r3, #1
	strb	r3, [r2, #4]
	b	.L48
.L18:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L52+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L52+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
.L20:
	ldr	r2, [fp, #-16]
	ldrb	r3, [r2, #4]
	orr	r3, r3, #2
	strb	r3, [r2, #4]
	b	.L48
.L21:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L52+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L22
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L52+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L23
.L22:
	ldr	r2, [fp, #-16]
	ldrb	r3, [r2, #4]
	orr	r3, r3, #4
	strb	r3, [r2, #4]
	b	.L48
.L23:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L52+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L52+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
.L24:
	ldr	r2, [fp, #-16]
	ldrb	r3, [r2, #4]
	orr	r3, r3, #8
	strb	r3, [r2, #4]
	b	.L48
.L25:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L52+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L52+32
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L27
.L26:
	ldr	r2, [fp, #-16]
	ldrb	r3, [r2, #4]
	orr	r3, r3, #16
	strb	r3, [r2, #4]
	b	.L48
.L27:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L52+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L28
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L52+40
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L29
.L28:
	ldr	r2, [fp, #-16]
	ldrb	r3, [r2, #4]
	orr	r3, r3, #32
	strb	r3, [r2, #4]
	b	.L48
.L29:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L52+44
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L30
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L52+48
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L31
.L30:
	ldr	r2, [fp, #-16]
	ldrb	r3, [r2, #4]
	orr	r3, r3, #64
	strb	r3, [r2, #4]
	b	.L48
.L31:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L52+52
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L32
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L52+56
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L33
.L32:
	ldr	r2, [fp, #-16]
	ldrb	r3, [r2, #4]
	orr	r3, r3, #128
	strb	r3, [r2, #4]
	b	.L48
.L33:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L52+60
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L34
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L52+64
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L35
.L34:
	ldr	r2, [fp, #-16]
	ldrb	r3, [r2, #5]
	orr	r3, r3, #1
	strb	r3, [r2, #5]
	b	.L48
.L35:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L52+68
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L36
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L52+72
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L37
.L36:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L38
	mov	r3, #0
	b	.L39
.L38:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #16]
	b	.L48
.L37:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L52+76
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L40
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L52+80
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L41
.L40:
	ldr	r2, [fp, #-16]
	ldrb	r3, [r2, #5]
	orr	r3, r3, #2
	strb	r3, [r2, #5]
	b	.L48
.L41:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L52+84
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L42
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L52+88
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L43
.L42:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L44
	mov	r3, #0
	b	.L39
.L44:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #8]
	b	.L48
.L43:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L52+92
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L45
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L52+96
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L46
.L45:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L47
	mov	r3, #0
	b	.L39
.L47:
	ldr	r2, [fp, #-16]
	ldrb	r3, [r2, #5]
	orr	r3, r3, #4
	strb	r3, [r2, #5]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #12]
	b	.L48
.L46:
	mov	r3, #0
	b	.L39
.L17:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
.L48:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L16:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L49
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L50
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L51
.L50:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #4]
	and	r3, r3, #1
	and	r3, r3, #255
	b	.L39
.L51:
	mov	r3, #1
.L39:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.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
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.size	fill_input_parser_fields, .-fill_input_parser_fields
	.section	.rodata
	.align	2
.LC28:
	.ascii	"extract firmware\000"
	.align	2
.LC29:
	.ascii	"extraction of all firmware requires an input file\000"
	.align	2
.LC30:
	.ascii	"wb\000"
	.align	2
.LC31:
	.ascii	"unable to create firmware file\000"
	.align	2
.LC32:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	extract_firmware
	.syntax unified
	.arm
	.fpu softvfp
	.type	extract_firmware, %function
extract_firmware:
	@ args = 0, pretend = 0, frame = 4136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4096
	sub	sp, sp, #44
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-28]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-32]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r2, [r3, #-36]
	ldr	r3, .L71
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	ldrb	r3, [r3, #5]	@ zero_extendqisi2
	and	r3, r3, #4
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L55
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	and	r3, r3, #4
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L56
	ldr	r0, .L71+4
	bl	puts
.L56:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-28]
	bl	ftell
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-16]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L57
	ldr	r0, .L71+8
	bl	puts
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	cmp	r3, #0
	beq	.L58
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-32]
	bl	fclose
.L58:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-28]
	bl	fclose
	mov	r3, #1
	b	.L68
.L57:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	ldr	r3, [r3, #12]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	ldr	r1, .L71+12
	mov	r0, r3
	bl	fopen
	str	r0, [r4, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	cmp	r3, #0
	bne	.L60
	ldr	r0, .L71+16
	bl	puts
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	cmp	r3, #0
	beq	.L61
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-32]
	bl	fclose
.L61:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-28]
	bl	fclose
	mov	r3, #1
	b	.L68
.L60:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [r3, #-28]
	bl	fseek
	b	.L62
.L67:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	add	r3, r3, #4096
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-16]
	cmp	r2, r3
	bcs	.L63
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-16]
	ldr	r3, [r3, #-20]
	sub	r2, r2, r3
	b	.L64
.L63:
	mov	r2, #4096
.L64:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-28]
	mov	r1, #1
	bl	fread
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-20]
	add	r3, r2, r3
	str	r3, [r1, #-20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	ble	.L70
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-12]
	mov	r1, #1
	bl	fwrite
.L62:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-20]
	ldr	r3, [r3, #-16]
	cmp	r2, r3
	bcc	.L67
	b	.L66
.L70:
	nop
.L66:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-12]
	bl	fclose
.L55:
	mov	r3, #0
.L68:
	ldr	r2, .L71
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L69
	bl	__stack_chk_fail
.L69:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L72:
	.align	2
.L71:
	.word	.LC32
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.size	extract_firmware, .-extract_firmware
	.section	.rodata
	.align	2
.LC33:
	.ascii	"extraction of all meta-data requires an output file"
	.ascii	"\000"
	.align	2
.LC34:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	extract_all_metadata
	.syntax unified
	.arm
	.fpu softvfp
	.type	extract_all_metadata, %function
extract_all_metadata:
	@ args = 0, pretend = 0, frame = 4120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #4096
	sub	sp, sp, #24
	sub	r3, fp, #4096
	sub	r3, r3, #4
	str	r0, [r3, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	str	r1, [r3, #-16]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	str	r2, [r3, #-20]
	ldr	r3, .L83
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-16]
	cmp	r3, #0
	bne	.L74
	ldr	r0, .L83+4
	bl	puts
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-16]
	cmp	r3, #0
	beq	.L75
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r0, [r3, #-16]
	bl	fclose
.L75:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r0, [r3, #-12]
	bl	fclose
	mov	r3, #1
	b	.L80
.L74:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r0, fp, #4096
	sub	r0, r0, #4
	sub	r0, r0, #4
	ldr	r3, [r3, #-12]
	mov	r2, #4096
	mov	r1, #1
	bl	fread
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #4
	str	r3, [r2, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	ble	.L82
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r2, [r3, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r0, fp, #4096
	sub	r0, r0, #4
	sub	r0, r0, #4
	ldr	r3, [r3, #-16]
	mov	r1, #1
	bl	fwrite
	b	.L74
.L82:
	nop
	mov	r3, #0
.L80:
	ldr	r2, .L83
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L81
	bl	__stack_chk_fail
.L81:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L84:
	.align	2
.L83:
	.word	.LC34
	.word	.LC33
	.size	extract_all_metadata, .-extract_all_metadata
	.section	.rodata
	.align	2
.LC35:
	.ascii	":chariot_md:\000"
	.text
	.align	2
	.global	extract_header
	.syntax unified
	.arm
	.fpu softvfp
	.type	extract_header, %function
extract_header:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-16]
	mov	r2, #12
	mov	r1, #1
	ldr	r0, [fp, #-24]
	bl	fread
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r1, .L88
	ldr	r0, [fp, #-24]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L86
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	standard_error
	mov	r3, r0
	b	.L87
.L86:
	mov	r3, #0
.L87:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L89:
	.align	2
.L88:
	.word	.LC35
	.size	extract_header, .-extract_header
	.section	.rodata
	.align	2
.LC36:
	.ascii	"extract sha256 of %s\012\000"
	.align	2
.LC37:
	.ascii	":sha256:\000"
	.text
	.align	2
	.global	extract_sha
	.syntax unified
	.arm
	.fpu softvfp
	.type	extract_sha, %function
extract_sha:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	and	r3, r3, #8
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L91
	ldr	r3, [fp, #-36]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	and	r3, r3, #4
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L91
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L102
	bl	printf
.L91:
	ldr	r3, [fp, #-24]
	mov	r2, #8
	mov	r1, #1
	ldr	r0, [fp, #-32]
	bl	fread
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r1, .L102+4
	ldr	r0, [fp, #-32]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L92
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-28]
	bl	standard_error
	mov	r3, r0
	b	.L93
.L92:
	ldr	r3, [fp, #-24]
	mov	r2, #32
	mov	r1, #1
	ldr	r0, [fp, #-32]
	bl	fread
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #32
	beq	.L94
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-28]
	bl	standard_error
	mov	r3, r0
	b	.L93
.L94:
	ldr	r3, [fp, #-36]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	and	r3, r3, #8
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L95
	mov	r3, #31
	str	r3, [fp, #-16]
	b	.L96
.L101:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #15
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	ble	.L97
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	add	r3, r3, #87
	and	r3, r3, #255
	b	.L98
.L97:
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	add	r3, r3, #48
	and	r3, r3, #255
.L98:
	ldr	r2, [fp, #-16]
	lsl	r2, r2, #1
	add	r2, r2, #1
	ldr	r1, [fp, #-32]
	add	r2, r1, r2
	strb	r3, [r2]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	and	r3, r3, #15
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	ble	.L99
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	add	r3, r3, #87
	and	r3, r3, #255
	b	.L100
.L99:
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	add	r3, r3, #48
	and	r3, r3, #255
.L100:
	ldr	r2, [fp, #-16]
	lsl	r2, r2, #1
	mov	r1, r2
	ldr	r2, [fp, #-32]
	add	r2, r2, r1
	strb	r3, [r2]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L96:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L101
	ldr	r3, [fp, #-32]
	add	r3, r3, #64
	mov	r2, #10
	strb	r2, [r3]
	ldr	r3, [fp, #-28]
	mov	r2, #65
	mov	r1, #1
	ldr	r0, [fp, #-32]
	bl	fwrite
.L95:
	mov	r3, #0
.L93:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L103:
	.align	2
.L102:
	.word	.LC36
	.word	.LC37
	.size	extract_sha, .-extract_sha
	.section	.rodata
	.align	2
.LC38:
	.ascii	"extract chariot format\000"
	.align	2
.LC39:
	.ascii	":fmt:\000"
	.align	2
.LC40:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	extract_format
	.syntax unified
	.arm
	.fpu softvfp
	.type	extract_format, %function
extract_format:
	@ args = 0, pretend = 0, frame = 4128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #4096
	sub	sp, sp, #32
	sub	ip, fp, #4096
	sub	ip, ip, #4
	str	r0, [ip, #-20]
	sub	r0, fp, #4096
	sub	r0, r0, #4
	str	r1, [r0, #-24]
	sub	r1, fp, #4096
	sub	r1, r1, #4
	str	r2, [r1, #-28]
	sub	r2, fp, #4096
	sub	r2, r2, #4
	str	r3, [r2, #-32]
	ldr	r3, .L114
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-32]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	and	r3, r3, #4
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L105
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-32]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	and	r3, r3, #16
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L105
	ldr	r0, .L114+4
	bl	puts
.L105:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #4
	mov	r0, r2
	ldr	r3, [r3, #-20]
	mov	r2, #5
	mov	r1, #1
	ldr	r0, [r0, #-28]
	bl	fread
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #4
	str	r3, [r2, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-12]
	sub	r2, fp, #4096
	sub	r2, r2, #4
	ldr	r2, [r2, #-28]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r1, .L114+8
	ldr	r0, [r3, #-28]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L106
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r2, [r2, #-32]
	ldr	r1, [r1, #-20]
	ldr	r0, [r3, #-24]
	bl	standard_error
	mov	r3, r0
	b	.L112
.L106:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-16]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r0, fp, #4096
	sub	r0, r0, #4
	sub	r0, r0, #16
	ldr	r3, [r3, #-20]
	mov	r2, #4
	mov	r1, #1
	bl	fread
	mov	r3, r0
	cmp	r3, #4
	beq	.L108
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r2, [r2, #-32]
	ldr	r1, [r1, #-20]
	ldr	r0, [r3, #-24]
	bl	standard_error
	mov	r3, r0
	b	.L112
.L108:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #16
	mov	r0, r3
	bl	ensure_endianness
.L111:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-16]
	sub	r2, fp, #4096
	sub	r2, r2, #4
	cmp	r3, #4096
	movcc	r3, r3
	movcs	r3, #4096
	str	r3, [r2, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #4
	sub	r0, fp, #4096
	sub	r0, r0, #4
	sub	r0, r0, #4
	ldr	r3, [r3, #-20]
	ldr	r2, [r2, #-8]
	mov	r1, #1
	bl	fread
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #4
	str	r3, [r2, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-12]
	sub	r2, fp, #4096
	sub	r2, r2, #4
	ldr	r2, [r2, #-8]
	cmp	r2, r3
	beq	.L109
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r2, [r2, #-32]
	ldr	r1, [r1, #-20]
	ldr	r0, [r3, #-24]
	bl	standard_error
	mov	r3, r0
	b	.L112
.L109:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-32]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	and	r3, r3, #16
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L110
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #4
	sub	r0, fp, #4096
	sub	r0, r0, #4
	sub	r0, r0, #4
	ldr	r3, [r3, #-24]
	ldr	r2, [r2, #-8]
	mov	r1, #1
	bl	fwrite
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r1, [r3, #-24]
	mov	r0, #10
	bl	fputc
.L110:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r2, [r3, #-16]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	sub	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #4
	str	r3, [r2, #-16]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-16]
	cmp	r3, #0
	bne	.L111
	mov	r3, #0
.L112:
	ldr	r2, .L114
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L113
	bl	__stack_chk_fail
.L113:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L115:
	.align	2
.L114:
	.word	.LC40
	.word	.LC38
	.word	.LC39
	.size	extract_format, .-extract_format
	.align	2
	.global	extract_field_head
	.syntax unified
	.arm
	.fpu softvfp
	.type	extract_field_head, %function
extract_field_head:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r0, [fp, #-16]
	bl	fgetc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #58
	beq	.L117
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L117
	ldr	r2, [fp, #4]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	standard_error
	mov	r3, r0
	b	.L118
.L117:
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L119
	ldr	r3, [fp, #-24]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-28]
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	b	.L118
.L119:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L120
.L122:
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
.L120:
	ldr	r0, [fp, #-16]
	bl	fgetc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #58
	beq	.L121
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L121
	ldr	r3, [fp, #-12]
	cmp	r3, #98
	ble	.L122
.L121:
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L123
	ldr	r3, [fp, #-12]
	cmp	r3, #98
	ble	.L124
.L123:
	ldr	r2, [fp, #4]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	standard_error
	mov	r3, r0
	b	.L118
.L124:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	mov	r3, #0
.L118:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	extract_field_head, .-extract_field_head
	.section	.rodata
	.align	2
.LC41:
	.ascii	"add\000"
	.align	2
.LC42:
	.ascii	"extract chariot additional file\000"
	.align	2
.LC43:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	extract_additional_from_field
	.syntax unified
	.arm
	.fpu softvfp
	.type	extract_additional_from_field, %function
extract_additional_from_field:
	@ args = 4, pretend = 0, frame = 4144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4096
	sub	sp, sp, #60
	sub	ip, fp, #4096
	sub	ip, ip, #12
	str	r0, [ip, #-28]
	sub	r0, fp, #4096
	sub	r0, r0, #12
	str	r1, [r0, #-32]
	sub	r1, fp, #4096
	sub	r1, r1, #12
	str	r2, [r1, #-36]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-40]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, [fp, #4]
	str	r3, [r2, #-44]
	ldr	r3, .L142
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, .L142+4
	ldr	r0, [r3, #-36]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L126
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	and	r3, r3, #4
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L127
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	ldrb	r3, [r3, #5]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L127
	ldr	r0, .L142+8
	bl	puts
.L127:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-24]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #24
	ldr	r3, [r3, #-28]
	mov	r2, #4
	mov	r1, #1
	bl	fread
	mov	r3, r0
	cmp	r3, #4
	beq	.L128
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-44]
	ldr	r1, [r1, #-28]
	ldr	r0, [r3, #-32]
	bl	standard_error
	mov	r3, r0
	b	.L140
.L128:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #24
	mov	r0, r3
	bl	ensure_endianness
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	ldrb	r3, [r3, #5]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L130
.L133:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	cmp	r3, #4096
	movcc	r3, r3
	movcs	r3, #4096
	str	r3, [r2, #-16]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-28]
	ldr	r2, [r2, #-16]
	mov	r1, #1
	bl	fread
	str	r0, [r4, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-12]
	ldr	r3, [r3, #-16]
	cmp	r2, r3
	beq	.L131
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-44]
	ldr	r1, [r1, #-28]
	ldr	r0, [r3, #-32]
	bl	standard_error
	mov	r3, r0
	b	.L140
.L131:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	ldrb	r3, [r3, #5]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L132
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-32]
	ldr	r2, [r2, #-16]
	mov	r1, #1
	bl	fwrite
.L132:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-24]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	sub	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-24]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	cmp	r3, #0
	bne	.L133
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-32]
	mov	r0, #10
	bl	fputc
	b	.L134
.L130:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #1
	ldr	r0, [r3, #-28]
	bl	fseek
	mov	r3, r0
	cmp	r3, #0
	beq	.L134
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-44]
	ldr	r1, [r1, #-28]
	ldr	r0, [r3, #-32]
	bl	standard_error
	mov	r3, r0
	b	.L140
.L134:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-28]
	bl	fgetc
	mov	r3, r0
	cmp	r3, #58
	beq	.L135
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-44]
	ldr	r1, [r1, #-28]
	ldr	r0, [r3, #-32]
	bl	standard_error
	mov	r3, r0
	b	.L140
.L135:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #20
	ldr	r3, [r3, #-28]
	mov	r2, #4
	mov	r1, #1
	bl	fread
	mov	r3, r0
	cmp	r3, #4
	beq	.L136
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-44]
	ldr	r1, [r1, #-28]
	ldr	r0, [r3, #-32]
	bl	standard_error
	mov	r3, r0
	b	.L140
.L136:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r0, r3
	bl	ensure_endianness
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #1
	ldr	r0, [r3, #-28]
	bl	fseek
	mov	r3, r0
	cmp	r3, #0
	beq	.L137
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-44]
	ldr	r1, [r1, #-28]
	ldr	r0, [r3, #-32]
	bl	standard_error
	mov	r3, r0
	b	.L140
.L137:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	ip, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	str	r3, [sp]
	ldr	r3, [ip, #-40]
	ldr	r2, [r2, #-36]
	ldr	r1, [r1, #-32]
	ldr	r0, [r0, #-28]
	bl	extract_field_head
	str	r0, [r4, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	beq	.L139
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	b	.L140
.L126:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	ldrb	r3, [r3, #5]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L139
	ldr	r3, .L142+12
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-32]
	cmp	r2, r3
	bne	.L139
	mov	r0, #10
	bl	putchar
.L139:
	mov	r3, #0
.L140:
	ldr	r2, .L142
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L141
	bl	__stack_chk_fail
.L141:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L143:
	.align	2
.L142:
	.word	.LC43
	.word	.LC41
	.word	.LC42
	.word	stdout
	.size	extract_additional_from_field, .-extract_additional_from_field
	.section	.rodata
	.align	2
.LC44:
	.ascii	"version\000"
	.align	2
.LC45:
	.ascii	"extract chariot version\000"
	.text
	.align	2
	.global	extract_version_from_field
	.syntax unified
	.arm
	.fpu softvfp
	.type	extract_version_from_field, %function
extract_version_from_field:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r1, .L156
	ldr	r0, [fp, #-32]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L145
	ldr	r2, [fp, #4]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-28]
	bl	standard_error
	mov	r3, r0
	b	.L146
.L145:
	ldr	r3, [fp, #4]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	and	r3, r3, #32
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L147
	ldr	r3, [fp, #4]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	and	r3, r3, #4
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L147
	ldr	r0, .L156+4
	bl	puts
.L147:
	ldr	r3, [fp, #-24]
	mov	r2, #32
	mov	r1, #1
	ldr	r0, [fp, #-32]
	bl	fread
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #32
	beq	.L148
	ldr	r2, [fp, #4]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-28]
	bl	standard_error
	mov	r3, r0
	b	.L146
.L148:
	ldr	r3, [fp, #4]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	and	r3, r3, #32
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L149
	mov	r3, #31
	str	r3, [fp, #-16]
	b	.L150
.L155:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #15
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	ble	.L151
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	add	r3, r3, #87
	and	r3, r3, #255
	b	.L152
.L151:
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	add	r3, r3, #48
	and	r3, r3, #255
.L152:
	ldr	r2, [fp, #-16]
	lsl	r2, r2, #1
	add	r2, r2, #1
	ldr	r1, [fp, #-32]
	add	r2, r1, r2
	strb	r3, [r2]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	and	r3, r3, #15
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	ble	.L153
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	add	r3, r3, #87
	and	r3, r3, #255
	b	.L154
.L153:
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	add	r3, r3, #48
	and	r3, r3, #255
.L154:
	ldr	r2, [fp, #-16]
	lsl	r2, r2, #1
	mov	r1, r2
	ldr	r2, [fp, #-32]
	add	r2, r2, r1
	strb	r3, [r2]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L150:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L155
	ldr	r3, [fp, #-32]
	add	r3, r3, #64
	mov	r2, #10
	strb	r2, [r3]
	ldr	r3, [fp, #-28]
	mov	r2, #65
	mov	r1, #1
	ldr	r0, [fp, #-32]
	bl	fwrite
.L149:
	mov	r3, #0
.L146:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L157:
	.align	2
.L156:
	.word	.LC44
	.word	.LC45
	.size	extract_version_from_field, .-extract_version_from_field
	.section	.rodata
	.align	2
.LC46:
	.ascii	"lic\000"
	.align	2
.LC47:
	.ascii	"extract chariot license file\000"
	.align	2
.LC48:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	extract_license_from_field
	.syntax unified
	.arm
	.fpu softvfp
	.type	extract_license_from_field, %function
extract_license_from_field:
	@ args = 4, pretend = 0, frame = 4144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4096
	sub	sp, sp, #60
	sub	ip, fp, #4096
	sub	ip, ip, #12
	str	r0, [ip, #-28]
	sub	r0, fp, #4096
	sub	r0, r0, #12
	str	r1, [r0, #-32]
	sub	r1, fp, #4096
	sub	r1, r1, #12
	str	r2, [r1, #-36]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-40]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, [fp, #4]
	str	r3, [r2, #-44]
	ldr	r3, .L172
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, .L172+4
	ldr	r0, [r3, #-36]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L159
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	and	r3, r3, #4
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L160
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	bic	r3, r3, #127
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L160
	ldr	r0, .L172+8
	bl	puts
.L160:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #20
	ldr	r3, [r3, #-28]
	mov	r2, #4
	mov	r1, #1
	bl	fread
	mov	r3, r0
	cmp	r3, #4
	beq	.L161
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-44]
	ldr	r1, [r1, #-28]
	ldr	r0, [r3, #-32]
	bl	standard_error
	mov	r3, r0
	b	.L170
.L161:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r0, r3
	bl	ensure_endianness
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	bic	r3, r3, #127
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L163
.L166:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	cmp	r3, #4096
	movcc	r3, r3
	movcs	r3, #4096
	str	r3, [r2, #-16]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-28]
	ldr	r2, [r2, #-16]
	mov	r1, #1
	bl	fread
	str	r0, [r4, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-12]
	ldr	r3, [r3, #-16]
	cmp	r2, r3
	beq	.L164
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-44]
	ldr	r1, [r1, #-28]
	ldr	r0, [r3, #-32]
	bl	standard_error
	mov	r3, r0
	b	.L170
.L164:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	bic	r3, r3, #127
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L165
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-32]
	ldr	r2, [r2, #-16]
	mov	r1, #1
	bl	fwrite
.L165:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	sub	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	cmp	r3, #0
	bne	.L166
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-32]
	mov	r0, #10
	bl	fputc
	b	.L167
.L163:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #1
	ldr	r0, [r3, #-28]
	bl	fseek
	mov	r3, r0
	cmp	r3, #0
	beq	.L167
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-44]
	ldr	r1, [r1, #-28]
	ldr	r0, [r3, #-32]
	bl	standard_error
	mov	r3, r0
	b	.L170
.L167:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	ip, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	str	r3, [sp]
	ldr	r3, [ip, #-40]
	ldr	r2, [r2, #-36]
	ldr	r1, [r1, #-32]
	ldr	r0, [r0, #-28]
	bl	extract_field_head
	str	r0, [r4, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	beq	.L169
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	b	.L170
.L159:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	bic	r3, r3, #127
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L169
	ldr	r3, .L172+12
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-32]
	cmp	r2, r3
	bne	.L169
	mov	r0, #10
	bl	putchar
.L169:
	mov	r3, #0
.L170:
	ldr	r2, .L172
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L171
	bl	__stack_chk_fail
.L171:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L173:
	.align	2
.L172:
	.word	.LC48
	.word	.LC46
	.word	.LC47
	.word	stdout
	.size	extract_license_from_field, .-extract_license_from_field
	.section	.rodata
	.align	2
.LC49:
	.ascii	"soft\000"
	.align	2
.LC50:
	.ascii	"extract chariot software_id file\000"
	.align	2
.LC51:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	extract_software_id_from_field
	.syntax unified
	.arm
	.fpu softvfp
	.type	extract_software_id_from_field, %function
extract_software_id_from_field:
	@ args = 4, pretend = 0, frame = 4144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4096
	sub	sp, sp, #60
	sub	ip, fp, #4096
	sub	ip, ip, #12
	str	r0, [ip, #-28]
	sub	r0, fp, #4096
	sub	r0, r0, #12
	str	r1, [r0, #-32]
	sub	r1, fp, #4096
	sub	r1, r1, #12
	str	r2, [r1, #-36]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-40]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, [fp, #4]
	str	r3, [r2, #-44]
	ldr	r3, .L188
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, .L188+4
	ldr	r0, [r3, #-36]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L175
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	and	r3, r3, #4
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L176
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	ldrb	r3, [r3, #5]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L176
	ldr	r0, .L188+8
	bl	puts
.L176:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #20
	ldr	r3, [r3, #-28]
	mov	r2, #4
	mov	r1, #1
	bl	fread
	mov	r3, r0
	cmp	r3, #4
	beq	.L177
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-44]
	ldr	r1, [r1, #-28]
	ldr	r0, [r3, #-32]
	bl	standard_error
	mov	r3, r0
	b	.L186
.L177:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r0, r3
	bl	ensure_endianness
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	ldrb	r3, [r3, #5]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L179
.L182:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	cmp	r3, #4096
	movcc	r3, r3
	movcs	r3, #4096
	str	r3, [r2, #-16]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-28]
	ldr	r2, [r2, #-16]
	mov	r1, #1
	bl	fread
	str	r0, [r4, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-12]
	ldr	r3, [r3, #-16]
	cmp	r2, r3
	beq	.L180
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-44]
	ldr	r1, [r1, #-28]
	ldr	r0, [r3, #-32]
	bl	standard_error
	mov	r3, r0
	b	.L186
.L180:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	ldrb	r3, [r3, #5]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L181
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-32]
	ldr	r2, [r2, #-16]
	mov	r1, #1
	bl	fwrite
.L181:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	sub	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	cmp	r3, #0
	bne	.L182
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-32]
	mov	r0, #10
	bl	fputc
	b	.L183
.L179:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #1
	ldr	r0, [r3, #-28]
	bl	fseek
	mov	r3, r0
	cmp	r3, #0
	beq	.L183
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-44]
	ldr	r1, [r1, #-28]
	ldr	r0, [r3, #-32]
	bl	standard_error
	mov	r3, r0
	b	.L186
.L183:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	ip, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	str	r3, [sp]
	ldr	r3, [ip, #-40]
	ldr	r2, [r2, #-36]
	ldr	r1, [r1, #-32]
	ldr	r0, [r0, #-28]
	bl	extract_field_head
	str	r0, [r4, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	beq	.L185
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	b	.L186
.L175:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	ldrb	r3, [r3, #5]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L185
	ldr	r3, .L188+12
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-32]
	cmp	r2, r3
	bne	.L185
	mov	r0, #10
	bl	putchar
.L185:
	mov	r3, #0
.L186:
	ldr	r2, .L188
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L187
	bl	__stack_chk_fail
.L187:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L189:
	.align	2
.L188:
	.word	.LC51
	.word	.LC49
	.word	.LC50
	.word	stdout
	.size	extract_software_id_from_field, .-extract_software_id_from_field
	.section	.rodata
	.align	2
.LC52:
	.ascii	"bcpath\000"
	.align	2
.LC53:
	.ascii	"extract chariot blockchain path\000"
	.align	2
.LC54:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	extract_blockchain_path_from_field
	.syntax unified
	.arm
	.fpu softvfp
	.type	extract_blockchain_path_from_field, %function
extract_blockchain_path_from_field:
	@ args = 4, pretend = 0, frame = 4144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4096
	sub	sp, sp, #60
	sub	ip, fp, #4096
	sub	ip, ip, #12
	str	r0, [ip, #-28]
	sub	r0, fp, #4096
	sub	r0, r0, #12
	str	r1, [r0, #-32]
	sub	r1, fp, #4096
	sub	r1, r1, #12
	str	r2, [r1, #-36]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-40]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, [fp, #4]
	str	r3, [r2, #-44]
	ldr	r3, .L204
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, .L204+4
	ldr	r0, [r3, #-36]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L191
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	and	r3, r3, #4
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L192
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	and	r3, r3, #64
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L192
	ldr	r0, .L204+8
	bl	puts
.L192:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #20
	ldr	r3, [r3, #-28]
	mov	r2, #4
	mov	r1, #1
	bl	fread
	mov	r3, r0
	cmp	r3, #4
	beq	.L193
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-44]
	ldr	r1, [r1, #-28]
	ldr	r0, [r3, #-32]
	bl	standard_error
	mov	r3, r0
	b	.L202
.L193:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r0, r3
	bl	ensure_endianness
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	and	r3, r3, #64
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L195
.L198:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	cmp	r3, #4096
	movcc	r3, r3
	movcs	r3, #4096
	str	r3, [r2, #-16]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-28]
	ldr	r2, [r2, #-16]
	mov	r1, #1
	bl	fread
	str	r0, [r4, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-12]
	ldr	r3, [r3, #-16]
	cmp	r2, r3
	beq	.L196
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-44]
	ldr	r1, [r1, #-28]
	ldr	r0, [r3, #-32]
	bl	standard_error
	mov	r3, r0
	b	.L202
.L196:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	and	r3, r3, #64
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L197
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-32]
	ldr	r2, [r2, #-16]
	mov	r1, #1
	bl	fwrite
.L197:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	sub	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	cmp	r3, #0
	bne	.L198
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-32]
	mov	r0, #10
	bl	fputc
	b	.L199
.L195:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #1
	ldr	r0, [r3, #-28]
	bl	fseek
	mov	r3, r0
	cmp	r3, #0
	beq	.L199
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-44]
	ldr	r1, [r1, #-28]
	ldr	r0, [r3, #-32]
	bl	standard_error
	mov	r3, r0
	b	.L202
.L199:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	ip, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	str	r3, [sp]
	ldr	r3, [ip, #-40]
	ldr	r2, [r2, #-36]
	ldr	r1, [r1, #-32]
	ldr	r0, [r0, #-28]
	bl	extract_field_head
	str	r0, [r4, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	beq	.L201
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	b	.L202
.L191:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	and	r3, r3, #64
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L201
	ldr	r3, .L204+12
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-32]
	cmp	r2, r3
	bne	.L201
	mov	r0, #10
	bl	putchar
.L201:
	mov	r3, #0
.L202:
	ldr	r2, .L204
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L203
	bl	__stack_chk_fail
.L203:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L205:
	.align	2
.L204:
	.word	.LC54
	.word	.LC52
	.word	.LC53
	.word	stdout
	.size	extract_blockchain_path_from_field, .-extract_blockchain_path_from_field
	.section	.rodata
	.align	2
.LC55:
	.ascii	"sca\000"
	.align	2
.LC56:
	.ascii	"extract chariot static_analysis file\000"
	.align	2
.LC57:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	extract_static_analysis_from_field
	.syntax unified
	.arm
	.fpu softvfp
	.type	extract_static_analysis_from_field, %function
extract_static_analysis_from_field:
	@ args = 4, pretend = 0, frame = 4144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4096
	sub	sp, sp, #52
	sub	ip, fp, #4096
	sub	ip, ip, #12
	str	r0, [ip, #-28]
	sub	r0, fp, #4096
	sub	r0, r0, #12
	str	r1, [r0, #-32]
	sub	r1, fp, #4096
	sub	r1, r1, #12
	str	r2, [r1, #-36]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-40]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, [fp, #4]
	str	r3, [r2, #-44]
	ldr	r3, .L225
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, .L225+4
	ldr	r0, [r3, #-36]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L207
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-16]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	beq	.L208
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	ldr	r3, [r3, #16]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	ldr	r1, .L225+8
	mov	r0, r3
	bl	fopen
	str	r0, [r4, #-16]
.L208:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	and	r3, r3, #4
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L209
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	beq	.L209
	ldr	r0, .L225+12
	bl	puts
.L209:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-24]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #24
	ldr	r3, [r3, #-28]
	mov	r2, #4
	mov	r1, #1
	bl	fread
	mov	r3, r0
	cmp	r3, #4
	beq	.L210
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-44]
	ldr	r1, [r1, #-28]
	ldr	r0, [r3, #-32]
	bl	standard_error
	mov	r3, r0
	b	.L223
.L210:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #24
	mov	r0, r3
	bl	ensure_endianness
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	beq	.L212
.L216:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	cmp	r3, #4096
	movcc	r3, r3
	movcs	r3, #4096
	str	r3, [r2, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-28]
	ldr	r2, [r2, #-12]
	mov	r1, #1
	bl	fread
	str	r0, [r4, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-8]
	ldr	r3, [r3, #-12]
	cmp	r2, r3
	beq	.L213
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-44]
	ldr	r1, [r1, #-28]
	ldr	r0, [r3, #-32]
	bl	standard_error
	mov	r3, r0
	b	.L223
.L213:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmp	r3, #0
	beq	.L214
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-16]
	ldr	r2, [r2, #-12]
	mov	r1, #1
	bl	fwrite
	b	.L215
.L214:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	beq	.L215
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-32]
	ldr	r2, [r2, #-12]
	mov	r1, #1
	bl	fwrite
.L215:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-24]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	sub	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-24]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	cmp	r3, #0
	bne	.L216
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-32]
	mov	r0, #10
	bl	fputc
	b	.L217
.L212:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #1
	ldr	r0, [r3, #-28]
	bl	fseek
	mov	r3, r0
	cmp	r3, #0
	beq	.L217
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-44]
	ldr	r1, [r1, #-28]
	ldr	r0, [r3, #-32]
	bl	standard_error
	mov	r3, r0
	b	.L223
.L217:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmp	r3, #0
	beq	.L218
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-16]
	bl	fclose
.L218:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-28]
	bl	fgetc
	mov	r3, r0
	cmp	r3, #58
	beq	.L219
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-44]
	ldr	r1, [r1, #-28]
	ldr	r0, [r3, #-32]
	bl	standard_error
	mov	r3, r0
	b	.L223
.L219:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #20
	ldr	r3, [r3, #-28]
	mov	r2, #4
	mov	r1, #1
	bl	fread
	mov	r3, r0
	cmp	r3, #4
	beq	.L220
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-44]
	ldr	r1, [r1, #-28]
	ldr	r0, [r3, #-32]
	bl	standard_error
	mov	r3, r0
	b	.L223
.L220:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r0, r3
	bl	ensure_endianness
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #1
	ldr	r0, [r3, #-28]
	bl	fseek
	mov	r3, r0
	cmp	r3, #0
	beq	.L222
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-44]
	ldr	r1, [r1, #-28]
	ldr	r0, [r3, #-32]
	bl	standard_error
	mov	r3, r0
	b	.L223
.L207:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	beq	.L222
	ldr	r3, .L225+16
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-32]
	cmp	r2, r3
	bne	.L222
	mov	r0, #10
	bl	putchar
.L222:
	mov	r3, #0
.L223:
	ldr	r2, .L225
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L224
	bl	__stack_chk_fail
.L224:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L226:
	.align	2
.L225:
	.word	.LC57
	.word	.LC55
	.word	.LC30
	.word	.LC56
	.word	stdout
	.size	extract_static_analysis_from_field, .-extract_static_analysis_from_field
	.section	.rodata
	.align	2
.LC58:
	.ascii	"\012Extract Chariot meta-data from a bin firmware\012"
	.ascii	"\012positional arguments:\012  exe_name            "
	.ascii	"  the name of the executable bin file\012\012option"
	.ascii	"al arguments:\012  -h, --help            show this "
	.ascii	"help message and exit\012  --all, -a             eq"
	.ascii	"uivalent to -sha -sa -bp -lic -soft -add\012  --ver"
	.ascii	"bose, -v         verbose mode: echo every command o"
	.ascii	"n terminal\012  --sha, -sha           print the sha"
	.ascii	"256 of the bin file\012  --format, -format     prin"
	.ascii	"t the format\012  --blockchain_path, -bp\012       "
	.ascii	"                 print the path to the targeted blo"
	.ascii	"ckchain\012  --license, -lic       print the licens"
	.ascii	"e of the firmware\012  --software_ID, -soft  print "
	.ascii	"the software id of the firmware\012  --static-analy"
	.ascii	"sis, -sa FILE\012                        print the "
	.ascii	"result of the static analysis in file\012  --add, -"
	.ascii	"add           print content of the additional secti"
	.ascii	"on\012  --output OUTPUT, -o OUTPUT\012             "
	.ascii	"           print into the output file instead of st"
	.ascii	"dout\012\000"
	.align	2
.LC59:
	.ascii	"rb\000"
	.align	2
.LC60:
	.ascii	"Cannot open file %s\012\000"
	.align	2
.LC61:
	.ascii	"unable to find metadata, error code = %d\012\000"
	.align	2
.LC62:
	.ascii	"extract meta-data section\000"
	.align	2
.LC63:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #168
	str	r0, [fp, #-160]
	str	r1, [fp, #-164]
	ldr	r3, .L256
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #128
	ldr	r2, [fp, #-164]
	ldr	r1, [fp, #-160]
	mov	r0, r3
	bl	fill_input_parser_fields
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L228
	bl	input_parser_usage
	mov	r3, #1
	b	.L254
.L228:
	ldrb	r3, [fp, #-124]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L230
	bl	input_parser_usage
	ldr	r0, .L256+4
	bl	puts
	mov	r3, #0
	b	.L254
.L230:
	mov	r3, #0
	str	r3, [fp, #-140]
	mov	r3, #0
	strb	r3, [fp, #-149]
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	beq	.L231
	ldr	r3, [fp, #-120]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L231
	ldr	r3, [fp, #-120]
	ldr	r1, .L256+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	strb	r3, [fp, #-149]
.L231:
	ldrb	r3, [fp, #-149]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L232
	ldr	r3, .L256+12
	ldr	r3, [r3]
	str	r3, [fp, #-140]
.L232:
	ldr	r3, [fp, #-128]
	ldr	r1, .L256+16
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-136]
	ldr	r3, [fp, #-136]
	cmp	r3, #0
	bne	.L233
	ldr	r3, .L256+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-128]
	ldr	r1, .L256+24
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L254
.L233:
	mov	r3, #0
	str	r3, [fp, #-148]
	mov	r2, #2
	mvn	r1, #3
	ldr	r0, [fp, #-136]
	bl	fseek
	mov	r3, r0
	cmp	r3, #0
	beq	.L234
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L256+28
	bl	printf
	mov	r3, #1
	b	.L254
.L234:
	sub	r0, fp, #148
	ldr	r3, [fp, #-136]
	mov	r2, #4
	mov	r1, #1
	bl	fread
	mov	r3, r0
	cmp	r3, #4
	beq	.L235
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L256+28
	bl	printf
	mov	r3, #1
	b	.L254
.L235:
	sub	r3, fp, #148
	mov	r0, r3
	bl	ensure_endianness
	ldr	r3, [fp, #-148]
	rsb	r3, r3, #0
	mov	r2, #2
	mov	r1, r3
	ldr	r0, [fp, #-136]
	bl	fseek
	mov	r3, r0
	cmp	r3, #0
	beq	.L236
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L256+28
	bl	printf
	mov	r3, #1
	b	.L254
.L236:
	sub	r3, fp, #128
	mov	r2, r3
	ldr	r1, [fp, #-140]
	ldr	r0, [fp, #-136]
	bl	extract_firmware
	str	r0, [fp, #-132]
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	beq	.L237
	ldr	r3, [fp, #-132]
	b	.L254
.L237:
	ldrb	r3, [fp, #-124]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L238
	sub	r3, fp, #128
	mov	r2, r3
	ldr	r1, [fp, #-140]
	ldr	r0, [fp, #-136]
	bl	extract_all_metadata
	str	r0, [fp, #-132]
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	beq	.L239
	ldr	r3, [fp, #-132]
	b	.L254
.L239:
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	beq	.L240
	ldr	r0, [fp, #-140]
	bl	fclose
.L240:
	ldr	r0, [fp, #-136]
	bl	fclose
	mov	r3, #0
	b	.L254
.L238:
	ldrb	r3, [fp, #-124]	@ zero_extendqisi2
	and	r3, r3, #4
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L241
	ldr	r0, .L256+32
	bl	puts
.L241:
	sub	r3, fp, #128
	sub	r2, fp, #108
	ldr	r1, [fp, #-140]
	ldr	r0, [fp, #-136]
	bl	extract_header
	str	r0, [fp, #-132]
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	beq	.L242
	ldr	r3, [fp, #-132]
	b	.L254
.L242:
	sub	r3, fp, #128
	sub	r2, fp, #108
	ldr	r1, [fp, #-140]
	ldr	r0, [fp, #-136]
	bl	extract_sha
	str	r0, [fp, #-132]
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	beq	.L243
	ldr	r3, [fp, #-132]
	b	.L254
.L243:
	sub	r3, fp, #128
	sub	r2, fp, #108
	ldr	r1, [fp, #-140]
	ldr	r0, [fp, #-136]
	bl	extract_format
	str	r0, [fp, #-132]
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	beq	.L244
	ldr	r3, [fp, #-132]
	b	.L254
.L244:
	mov	r3, #0
	str	r3, [fp, #-144]
	sub	r1, fp, #144
	sub	r2, fp, #108
	sub	r3, fp, #128
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, [fp, #-140]
	ldr	r0, [fp, #-136]
	bl	extract_field_head
	str	r0, [fp, #-132]
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	beq	.L245
	ldr	r3, [fp, #-132]
	b	.L254
.L245:
	sub	r1, fp, #144
	sub	r2, fp, #108
	sub	r3, fp, #128
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, [fp, #-140]
	ldr	r0, [fp, #-136]
	bl	extract_additional_from_field
	str	r0, [fp, #-132]
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	beq	.L246
	ldr	r3, [fp, #-132]
	b	.L254
.L246:
	sub	r1, fp, #144
	sub	r2, fp, #108
	sub	r3, fp, #128
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, [fp, #-140]
	ldr	r0, [fp, #-136]
	bl	extract_version_from_field
	str	r0, [fp, #-132]
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	beq	.L247
	ldr	r3, [fp, #-132]
	b	.L254
.L247:
	sub	r1, fp, #144
	sub	r2, fp, #108
	sub	r3, fp, #128
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, [fp, #-140]
	ldr	r0, [fp, #-136]
	bl	extract_field_head
	str	r0, [fp, #-132]
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	beq	.L248
	ldr	r3, [fp, #-132]
	b	.L254
.L248:
	sub	r1, fp, #144
	sub	r2, fp, #108
	sub	r3, fp, #128
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, [fp, #-140]
	ldr	r0, [fp, #-136]
	bl	extract_blockchain_path_from_field
	str	r0, [fp, #-132]
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	beq	.L249
	ldr	r3, [fp, #-132]
	b	.L254
.L249:
	sub	r1, fp, #144
	sub	r2, fp, #108
	sub	r3, fp, #128
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, [fp, #-140]
	ldr	r0, [fp, #-136]
	bl	extract_license_from_field
	str	r0, [fp, #-132]
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	beq	.L250
	ldr	r3, [fp, #-132]
	b	.L254
.L250:
	sub	r1, fp, #144
	sub	r2, fp, #108
	sub	r3, fp, #128
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, [fp, #-140]
	ldr	r0, [fp, #-136]
	bl	extract_software_id_from_field
	str	r0, [fp, #-132]
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	beq	.L251
	ldr	r3, [fp, #-132]
	b	.L254
.L251:
	sub	r1, fp, #144
	sub	r2, fp, #108
	sub	r3, fp, #128
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, [fp, #-140]
	ldr	r0, [fp, #-136]
	bl	extract_static_analysis_from_field
	str	r0, [fp, #-132]
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	beq	.L252
	ldr	r3, [fp, #-132]
	b	.L254
.L252:
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	beq	.L253
	ldr	r0, [fp, #-140]
	bl	fclose
.L253:
	ldr	r0, [fp, #-136]
	bl	fclose
	mov	r3, #0
.L254:
	ldr	r2, .L256
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L255
	bl	__stack_chk_fail
.L255:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L257:
	.align	2
.L256:
	.word	.LC63
	.word	.LC58
	.word	.LC30
	.word	stdout
	.word	.LC59
	.word	stderr
	.word	.LC60
	.word	.LC61
	.word	.LC62
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
