	.file	"73576432.c"
	.intel_syntax noprefix
	.text
	.globl	chip_list
	.bss
	.align 8
	.type	chip_list, @object
	.size	chip_list, 8
chip_list:
	.zero	8
	.globl	input_dir
	.align 8
	.type	input_dir, @object
	.size	input_dir, 8
input_dir:
	.zero	8
	.globl	output_file
	.align 8
	.type	output_file, @object
	.size	output_file, 8
output_file:
	.zero	8
	.globl	dtc_path
	.align 8
	.type	dtc_path, @object
	.size	dtc_path, 8
dtc_path:
	.zero	8
	.globl	verbose
	.align 4
	.type	verbose, @object
	.size	verbose, 4
verbose:
	.zero	4
	.globl	page_size
	.data
	.align 4
	.type	page_size, @object
	.size	page_size, 4
page_size:
	.long	2048
	.section	.rodata
.LC0:
	.string	"dtbTool version %d\n"
	.align 8
.LC1:
	.string	"dtbTool [options] -o <output file> <input DTB path>"
.LC2:
	.string	"  options:"
	.align 8
.LC3:
	.string	"  --output-file/-o     output file"
	.align 8
.LC4:
	.string	"  --dtc-path/-p        path to dtc"
	.align 8
.LC5:
	.string	"  --page-size/-s       page size in bytes"
	.align 8
.LC6:
	.string	"  --verbose/-v         verbose"
	.align 8
.LC7:
	.string	"  --help/-h            this help screen"
	.text
	.globl	print_help
	.type	print_help, @function
print_help:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	esi, 2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print_help, .-print_help
	.section	.rodata
.LC8:
	.string	"output-file"
.LC9:
	.string	"dtc-path"
.LC10:
	.string	"page-size"
.LC11:
	.string	"verbose"
.LC12:
	.string	"help"
	.align 8
.LC13:
	.string	"Invalid page size (> 0 and <=1MB"
.LC14:
	.string	"-o:p:s:vh"
.LC15:
	.string	"Output file must be specified"
.LC16:
	.string	"./"
.LC17:
	.string	""
	.text
	.globl	parse_commandline
	.type	parse_commandline, @function
parse_commandline:
.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, 240
	mov	DWORD PTR -228[rbp], edi
	mov	QWORD PTR -240[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC8[rip]
	mov	QWORD PTR -208[rbp], rax
	mov	DWORD PTR -200[rbp], 1
	mov	QWORD PTR -192[rbp], 0
	mov	DWORD PTR -184[rbp], 111
	lea	rax, .LC9[rip]
	mov	QWORD PTR -176[rbp], rax
	mov	DWORD PTR -168[rbp], 1
	mov	QWORD PTR -160[rbp], 0
	mov	DWORD PTR -152[rbp], 112
	lea	rax, .LC10[rip]
	mov	QWORD PTR -144[rbp], rax
	mov	DWORD PTR -136[rbp], 1
	mov	QWORD PTR -128[rbp], 0
	mov	DWORD PTR -120[rbp], 115
	lea	rax, .LC11[rip]
	mov	QWORD PTR -112[rbp], rax
	mov	DWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	DWORD PTR -88[rbp], 118
	lea	rax, .LC12[rip]
	mov	QWORD PTR -80[rbp], rax
	mov	DWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	DWORD PTR -56[rbp], 104
	mov	QWORD PTR -48[rbp], 0
	mov	DWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	jmp	.L3
.L14:
	cmp	DWORD PTR -212[rbp], 118
	je	.L4
	cmp	DWORD PTR -212[rbp], 118
	jg	.L5
	cmp	DWORD PTR -212[rbp], 115
	je	.L6
	cmp	DWORD PTR -212[rbp], 115
	jg	.L5
	cmp	DWORD PTR -212[rbp], 112
	je	.L7
	cmp	DWORD PTR -212[rbp], 112
	jg	.L5
	cmp	DWORD PTR -212[rbp], 1
	je	.L8
	cmp	DWORD PTR -212[rbp], 111
	je	.L9
	jmp	.L5
.L8:
	mov	rax, QWORD PTR input_dir[rip]
	test	rax, rax
	jne	.L3
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR input_dir[rip], rax
	jmp	.L3
.L9:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR output_file[rip], rax
	jmp	.L3
.L7:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR dtc_path[rip], rax
	jmp	.L3
.L6:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR page_size[rip], eax
	mov	eax, DWORD PTR page_size[rip]
	test	eax, eax
	jle	.L11
	mov	eax, DWORD PTR page_size[rip]
	cmp	eax, 1048576
	jle	.L3
.L11:
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L18
.L4:
	mov	DWORD PTR verbose[rip], 1
	jmp	.L3
.L5:
	mov	eax, -1
	jmp	.L18
.L3:
	lea	rdx, -208[rbp]
	mov	rsi, QWORD PTR -240[rbp]
	mov	eax, DWORD PTR -228[rbp]
	mov	r8d, 0
	mov	rcx, rdx
	lea	rdx, .LC14[rip]
	mov	edi, eax
	call	getopt_long@PLT
	mov	DWORD PTR -212[rbp], eax
	cmp	DWORD PTR -212[rbp], -1
	jne	.L14
	mov	rax, QWORD PTR output_file[rip]
	test	rax, rax
	jne	.L15
	lea	rdi, .LC15[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L18
.L15:
	mov	rax, QWORD PTR input_dir[rip]
	test	rax, rax
	jne	.L16
	lea	rax, .LC16[rip]
	mov	QWORD PTR input_dir[rip], rax
.L16:
	mov	rax, QWORD PTR dtc_path[rip]
	test	rax, rax
	jne	.L17
	lea	rax, .LC17[rip]
	mov	QWORD PTR dtc_path[rip], rax
.L17:
	mov	eax, 0
.L18:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	parse_commandline, .-parse_commandline
	.globl	chip_add
	.type	chip_add, @function
chip_add:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR chip_list[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR chip_list[rip]
	test	rax, rax
	jne	.L21
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR chip_list[rip], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 40[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 32[rax], 0
	mov	eax, 0
	jmp	.L22
.L21:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jb	.L23
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jne	.L24
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	edx, eax
	jb	.L23
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	edx, eax
	jne	.L24
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	edx, eax
	jb	.L23
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	edx, eax
	jne	.L24
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 12[rax]
	cmp	edx, eax
	jnb	.L24
.L23:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 32[rax]
	test	rax, rax
	jne	.L25
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 40[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 32[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 32[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR chip_list[rip], rax
	jmp	.L26
.L25:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 40[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 32[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 40[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 32[rax], rdx
	jmp	.L26
.L24:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jne	.L27
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	edx, eax
	jne	.L27
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	edx, eax
	jne	.L27
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 12[rax]
	cmp	edx, eax
	jne	.L27
	mov	eax, -1
	jmp	.L22
.L27:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	jne	.L28
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 32[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 40[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 40[rax], rdx
	jmp	.L26
.L28:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L21
.L26:
	mov	eax, 0
.L22:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	chip_add, .-chip_add
	.globl	chip_deleteall
	.type	chip_deleteall, @function
chip_deleteall:
.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, 16
	mov	rax, QWORD PTR chip_list[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L30
.L32:
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	je	.L31
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rax
	call	free@PLT
.L31:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
.L30:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L32
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	chip_deleteall, .-chip_deleteall
	.section	.rodata
.LC18:
	.string	"Out of memory"
.LC19:
	.string	"r"
	.align 8
.LC20:
	.string	"... skip, fail to decompile dtb"
.LC21:
	.string	"qcom,msm-id = <"
.LC22:
	.string	" \t"
	.align 8
.LC23:
	.string	"... skip, incorrect '%s' format\n"
.LC24:
	.string	"qcom,board-id = <"
	.text
	.globl	getChipInfo
	.type	getChipInfo, @function
getChipInfo:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 280
	.cfi_offset 3, -24
	mov	QWORD PTR -264[rbp], rdi
	mov	QWORD PTR -272[rbp], rsi
	mov	DWORD PTR -276[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	movabs	rax, 7214847061213279332
	movabs	rdx, 8386863930502308468
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -32[rbp], 2236531
	mov	DWORD PTR -55[rbp], 1043472418
	mov	WORD PTR -51[rbp], 12582
	mov	BYTE PTR -49[rbp], 0
	mov	QWORD PTR -200[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	DWORD PTR -68[rbp], 0
	mov	DWORD PTR -64[rbp], 0
	mov	DWORD PTR -60[rbp], 0
	mov	DWORD PTR -76[rbp], 0
	mov	DWORD PTR -72[rbp], 0
	mov	QWORD PTR -184[rbp], 0
	mov	DWORD PTR -232[rbp], 0
	mov	DWORD PTR -228[rbp], 0
	mov	DWORD PTR -224[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -128[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -192[rbp], 1024
	mov	rax, QWORD PTR -192[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -200[rbp], rax
	mov	rax, QWORD PTR -200[rbp]
	test	rax, rax
	jne	.L34
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L90
.L34:
	mov	rax, QWORD PTR dtc_path[rip]
	mov	rdi, rax
	call	strlen@PLT
	mov	ebx, eax
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	ebx, eax
	lea	rax, -55[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	ebx, eax
	mov	rax, QWORD PTR -264[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	eax, ebx
	add	eax, 1
	mov	DWORD PTR -204[rbp], eax
	mov	eax, DWORD PTR -204[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -112[rbp], rax
	cmp	QWORD PTR -112[rbp], 0
	jne	.L36
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L90
.L36:
	mov	eax, DWORD PTR -204[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR dtc_path[rip]
	mov	rax, QWORD PTR -112[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	eax, DWORD PTR -204[rbp]
	movsx	rdx, eax
	lea	rcx, -48[rbp]
	mov	rax, QWORD PTR -112[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncat@PLT
	mov	eax, DWORD PTR -204[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -264[rbp]
	mov	rax, QWORD PTR -112[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncat@PLT
	mov	eax, DWORD PTR -204[rbp]
	movsx	rdx, eax
	lea	rcx, -55[rbp]
	mov	rax, QWORD PTR -112[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncat@PLT
	mov	rax, QWORD PTR -112[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	popen@PLT
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	free@PLT
	cmp	QWORD PTR -104[rbp], 0
	jne	.L39
	lea	rdi, .LC20[rip]
	call	puts@PLT
	jmp	.L38
.L77:
	cmp	DWORD PTR -276[rbp], 1
	jne	.L40
	mov	rax, QWORD PTR -200[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -176[rbp], rax
	cmp	QWORD PTR -176[rbp], 0
	je	.L39
	add	QWORD PTR -176[rbp], 15
	mov	DWORD PTR -236[rbp], 0
.L53:
	mov	DWORD PTR -240[rbp], 1
	mov	DWORD PTR -244[rbp], 0
	jmp	.L41
.L46:
	lea	rdx, -184[rbp]
	mov	rax, QWORD PTR -176[rbp]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	call	strtok_r@PLT
	mov	QWORD PTR -96[rbp], rax
	mov	QWORD PTR -176[rbp], 0
	cmp	QWORD PTR -96[rbp], 0
	je	.L42
	mov	rax, QWORD PTR -96[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 62
	jne	.L43
	mov	DWORD PTR -236[rbp], 1
	mov	DWORD PTR -240[rbp], 0
	jmp	.L44
.L43:
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -244[rbp]
	cdqe
	mov	DWORD PTR -68[rbp+rax*4], edx
	jmp	.L45
.L42:
	mov	eax, DWORD PTR -244[rbp]
	cdqe
	mov	DWORD PTR -68[rbp+rax*4], 0
	mov	DWORD PTR -240[rbp], 0
	mov	DWORD PTR -236[rbp], 1
.L45:
	add	DWORD PTR -244[rbp], 1
.L41:
	cmp	DWORD PTR -244[rbp], 2
	jle	.L46
.L44:
	cmp	DWORD PTR -236[rbp], 0
	je	.L47
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	pclose@PLT
	mov	rax, QWORD PTR -272[rbp]
	mov	edx, DWORD PTR -232[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -168[rbp]
	jmp	.L90
.L47:
	cmp	DWORD PTR -240[rbp], 0
	je	.L53
	mov	edi, 72
	call	malloc@PLT
	mov	QWORD PTR -88[rbp], rax
	cmp	QWORD PTR -88[rbp], 0
	jne	.L49
	lea	rdi, .LC18[rip]
	call	puts@PLT
	nop
	lea	rsi, .LC21[rip]
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L38
.L49:
	cmp	QWORD PTR -168[rbp], 0
	jne	.L51
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -168[rbp], rax
	mov	rax, QWORD PTR -168[rbp]
	mov	QWORD PTR 64[rax], 0
	jmp	.L52
.L51:
	mov	rax, QWORD PTR -168[rbp]
	mov	rdx, QWORD PTR 64[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR 64[rax], rdx
	mov	rax, QWORD PTR -168[rbp]
	mov	rdx, QWORD PTR -88[rbp]
	mov	QWORD PTR 64[rax], rdx
.L52:
	mov	edx, DWORD PTR -68[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR -64[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 8[rax], 0
	mov	edx, DWORD PTR -60[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 12[rax], edx
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR 24[rax], 0
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR -168[rbp]
	mov	QWORD PTR 48[rax], rdx
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 56[rax], 0
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 60[rax], 0
	add	DWORD PTR -232[rbp], 1
	jmp	.L53
.L40:
	cmp	DWORD PTR -276[rbp], 2
	jne	.L39
	mov	rax, QWORD PTR -200[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -176[rbp], rax
	cmp	QWORD PTR -176[rbp], 0
	je	.L54
	add	QWORD PTR -176[rbp], 15
	mov	DWORD PTR -208[rbp], 0
	jmp	.L55
.L65:
	mov	DWORD PTR -212[rbp], 1
	mov	DWORD PTR -244[rbp], 0
	jmp	.L56
.L61:
	lea	rdx, -184[rbp]
	mov	rax, QWORD PTR -176[rbp]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	call	strtok_r@PLT
	mov	QWORD PTR -96[rbp], rax
	mov	QWORD PTR -176[rbp], 0
	cmp	QWORD PTR -96[rbp], 0
	je	.L57
	mov	rax, QWORD PTR -96[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 62
	jne	.L58
	mov	DWORD PTR -208[rbp], 1
	mov	DWORD PTR -212[rbp], 0
	jmp	.L59
.L58:
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -244[rbp]
	cdqe
	mov	DWORD PTR -76[rbp+rax*4], edx
	jmp	.L60
.L57:
	mov	eax, DWORD PTR -244[rbp]
	cdqe
	mov	DWORD PTR -76[rbp+rax*4], 0
	mov	DWORD PTR -212[rbp], 0
	mov	DWORD PTR -208[rbp], 1
.L60:
	add	DWORD PTR -244[rbp], 1
.L56:
	cmp	DWORD PTR -244[rbp], 1
	jle	.L61
.L59:
	cmp	DWORD PTR -212[rbp], 0
	je	.L55
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -128[rbp], rax
	cmp	QWORD PTR -128[rbp], 0
	jne	.L62
	lea	rdi, .LC18[rip]
	call	puts@PLT
	jmp	.L54
.L62:
	cmp	QWORD PTR -160[rbp], 0
	jne	.L63
	mov	rax, QWORD PTR -128[rbp]
	mov	QWORD PTR -160[rbp], rax
	mov	rax, QWORD PTR -128[rbp]
	mov	QWORD PTR -152[rbp], rax
	mov	rax, QWORD PTR -160[rbp]
	mov	QWORD PTR 16[rax], 0
	jmp	.L64
.L63:
	mov	rax, QWORD PTR -160[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -128[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -160[rbp]
	mov	rdx, QWORD PTR -128[rbp]
	mov	QWORD PTR 16[rax], rdx
.L64:
	mov	edx, DWORD PTR -76[rbp]
	mov	rax, QWORD PTR -128[rbp]
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR -72[rbp]
	mov	rax, QWORD PTR -128[rbp]
	mov	DWORD PTR 4[rax], edx
	add	DWORD PTR -228[rbp], 1
.L55:
	cmp	DWORD PTR -208[rbp], 0
	jle	.L65
.L54:
	mov	rax, QWORD PTR -200[rbp]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -176[rbp], rax
	cmp	QWORD PTR -176[rbp], 0
	je	.L39
	add	QWORD PTR -176[rbp], 17
	mov	DWORD PTR -216[rbp], 0
	jmp	.L66
.L76:
	mov	DWORD PTR -220[rbp], 1
	mov	DWORD PTR -244[rbp], 0
	jmp	.L67
.L72:
	lea	rdx, -184[rbp]
	mov	rax, QWORD PTR -176[rbp]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	call	strtok_r@PLT
	mov	QWORD PTR -96[rbp], rax
	mov	QWORD PTR -176[rbp], 0
	cmp	QWORD PTR -96[rbp], 0
	je	.L68
	mov	rax, QWORD PTR -96[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 62
	jne	.L69
	mov	DWORD PTR -216[rbp], 1
	mov	DWORD PTR -220[rbp], 0
	jmp	.L70
.L69:
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -244[rbp]
	cdqe
	mov	DWORD PTR -76[rbp+rax*4], edx
	jmp	.L71
.L68:
	mov	eax, DWORD PTR -244[rbp]
	cdqe
	mov	DWORD PTR -76[rbp+rax*4], 0
	mov	DWORD PTR -220[rbp], 0
	mov	DWORD PTR -216[rbp], 1
.L71:
	add	DWORD PTR -244[rbp], 1
.L67:
	cmp	DWORD PTR -244[rbp], 1
	jle	.L72
.L70:
	cmp	DWORD PTR -220[rbp], 0
	je	.L66
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -120[rbp], rax
	cmp	QWORD PTR -120[rbp], 0
	jne	.L73
	lea	rdi, .LC18[rip]
	call	puts@PLT
	jmp	.L39
.L73:
	cmp	QWORD PTR -144[rbp], 0
	jne	.L74
	mov	rax, QWORD PTR -120[rbp]
	mov	QWORD PTR -144[rbp], rax
	mov	rax, QWORD PTR -120[rbp]
	mov	QWORD PTR -136[rbp], rax
	mov	rax, QWORD PTR -144[rbp]
	mov	QWORD PTR 16[rax], 0
	jmp	.L75
.L74:
	mov	rax, QWORD PTR -144[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -120[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -144[rbp]
	mov	rdx, QWORD PTR -120[rbp]
	mov	QWORD PTR 16[rax], rdx
.L75:
	mov	edx, DWORD PTR -76[rbp]
	mov	rax, QWORD PTR -120[rbp]
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR -72[rbp]
	mov	rax, QWORD PTR -120[rbp]
	mov	DWORD PTR 4[rax], edx
	add	DWORD PTR -224[rbp], 1
.L66:
	cmp	DWORD PTR -216[rbp], 0
	jle	.L76
.L39:
	mov	rdx, QWORD PTR -104[rbp]
	lea	rcx, -192[rbp]
	lea	rax, -200[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	DWORD PTR -204[rbp], eax
	cmp	DWORD PTR -204[rbp], -1
	jne	.L77
.L38:
	mov	rax, QWORD PTR -200[rbp]
	test	rax, rax
	je	.L78
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	free@PLT
.L78:
	cmp	DWORD PTR -228[rbp], 0
	jne	.L79
	lea	rsi, .LC21[rip]
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L90
.L79:
	cmp	DWORD PTR -224[rbp], 0
	jne	.L80
	lea	rsi, .LC24[rip]
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L90
.L80:
	mov	rax, QWORD PTR -136[rbp]
	mov	QWORD PTR -120[rbp], rax
	jmp	.L81
.L87:
	mov	edi, 72
	call	malloc@PLT
	mov	QWORD PTR -88[rbp], rax
	cmp	QWORD PTR -88[rbp], 0
	jne	.L83
	lea	rdi, .LC18[rip]
	call	puts@PLT
	jmp	.L84
.L83:
	cmp	QWORD PTR -168[rbp], 0
	jne	.L85
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -168[rbp], rax
	mov	rax, QWORD PTR -168[rbp]
	mov	QWORD PTR 64[rax], 0
	jmp	.L86
.L85:
	mov	rax, QWORD PTR -168[rbp]
	mov	rdx, QWORD PTR 64[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR 64[rax], rdx
	mov	rax, QWORD PTR -168[rbp]
	mov	rdx, QWORD PTR -88[rbp]
	mov	QWORD PTR 64[rax], rdx
.L86:
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -136[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 12[rax], edx
	mov	rax, QWORD PTR -136[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR 24[rax], 0
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR -168[rbp]
	mov	QWORD PTR 48[rax], rdx
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 56[rax], 0
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 60[rax], 0
	mov	rax, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -136[rbp], rax
.L82:
	cmp	QWORD PTR -136[rbp], 0
	jne	.L87
.L84:
	mov	rax, QWORD PTR -120[rbp]
	mov	QWORD PTR -136[rbp], rax
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -152[rbp], rax
.L81:
	cmp	QWORD PTR -152[rbp], 0
	jne	.L82
	cmp	DWORD PTR -216[rbp], 1
	jne	.L89
	cmp	DWORD PTR -208[rbp], 1
	jne	.L89
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	pclose@PLT
	mov	rax, QWORD PTR -272[rbp]
	mov	edx, DWORD PTR -228[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -160[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -168[rbp]
	jmp	.L90
.L89:
	mov	eax, 0
.L90:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L91
	call	__stack_chk_fail@PLT
.L91:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	getChipInfo, .-getChipInfo
	.section	.rodata
.LC25:
	.string	" Old Version:%d\n"
	.text
	.globl	GetVersionInfo
	.type	GetVersionInfo, @function
GetVersionInfo:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 120
	.cfi_offset 3, -24
	mov	QWORD PTR -120[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	movabs	rax, 7214847061213279332
	movabs	rdx, 8386863930502308468
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -32[rbp], 2236531
	mov	DWORD PTR -55[rbp], 1043472418
	mov	WORD PTR -51[rbp], 12582
	mov	BYTE PTR -49[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	DWORD PTR -104[rbp], 1
	mov	QWORD PTR -88[rbp], 1024
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -96[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	test	rax, rax
	jne	.L93
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L101
.L93:
	mov	rax, QWORD PTR dtc_path[rip]
	mov	rdi, rax
	call	strlen@PLT
	mov	ebx, eax
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	ebx, eax
	lea	rax, -55[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	ebx, eax
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	eax, ebx
	add	eax, 1
	mov	DWORD PTR -100[rbp], eax
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -80[rbp], rax
	cmp	QWORD PTR -80[rbp], 0
	jne	.L95
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L101
.L95:
	mov	eax, DWORD PTR -100[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR dtc_path[rip]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	eax, DWORD PTR -100[rbp]
	movsx	rdx, eax
	lea	rcx, -48[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncat@PLT
	mov	eax, DWORD PTR -100[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncat@PLT
	mov	eax, DWORD PTR -100[rbp]
	movsx	rdx, eax
	lea	rcx, -55[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncat@PLT
	mov	rax, QWORD PTR -80[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	popen@PLT
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	free@PLT
	cmp	QWORD PTR -72[rbp], 0
	jne	.L98
	lea	rdi, .LC20[rip]
	call	puts@PLT
	jmp	.L97
.L99:
	mov	rax, QWORD PTR -96[rbp]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	je	.L98
	mov	DWORD PTR -104[rbp], 2
	jmp	.L97
.L98:
	mov	rdx, QWORD PTR -72[rbp]
	lea	rcx, -88[rbp]
	lea	rax, -96[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	DWORD PTR -100[rbp], eax
	cmp	DWORD PTR -100[rbp], -1
	jne	.L99
.L97:
	cmp	DWORD PTR -104[rbp], 1
	jne	.L100
	mov	eax, DWORD PTR -104[rbp]
	mov	esi, eax
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
.L100:
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -104[rbp]
.L101:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L102
	call	__stack_chk_fail@PLT
.L102:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	GetVersionInfo, .-GetVersionInfo
	.section	.rodata
.LC26:
	.string	"DTB combiner:"
.LC27:
	.string	"  Input directory: '%s'\n"
.LC28:
	.string	"  Output file: '%s'\n"
	.align 8
.LC29:
	.string	"Failed to open input directory '%s'\n"
.LC30:
	.string	".dtb"
.LC31:
	.string	"Found file: %s ... "
	.align 8
.LC32:
	.string	"skip, failed to scan for '%s' tag\n"
	.align 8
.LC33:
	.string	"skip, failed to scan for '%s' or '%s' tag\n"
.LC34:
	.string	"skip, failed to get DTB size"
	.align 8
.LC35:
	.string	"chipset: %u, rev: %u, platform: %u, subtype: %u\n"
	.align 8
.LC36:
	.string	"   additional chipset: %u, rev: %u, platform: %u, subtype: %u\n"
.LC37:
	.string	"... duplicate info, skipped"
	.align 8
.LC38:
	.string	"... duplicate info, skipped (chipset %u, rev: %u, platform: %u, subtype %u:\n"
.LC39:
	.string	"=> Found %d unique DTB(s)\n"
.LC40:
	.string	"\nGenerating master DTB... "
.LC41:
	.string	"QCDT"
.LC42:
	.string	"\n (writing '%s' - %u bytes) "
	.align 8
.LC43:
	.string	"DTB size mismatch, please re-run: expected %d vs actual %d (%s)\n"
.LC44:
	.string	"failed to open DTB '%s'\n"
	.align 8
.LC45:
	.string	"error writing output file, please rerun: size mismatch %d vs %d\n"
.LC46:
	.string	"Total wrote %u bytes\n"
.LC47:
	.string	"completed"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 1336
	.cfi_offset 3, -24
	mov	DWORD PTR -1332[rbp], edi
	mov	QWORD PTR -1344[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -1240[rbp], 0
	mov	DWORD PTR -1300[rbp], 0
	mov	DWORD PTR -1304[rbp], 0
	mov	DWORD PTR -1320[rbp], 0
	mov	DWORD PTR -1316[rbp], 0
	mov	DWORD PTR -1296[rbp], 0
	mov	QWORD PTR -1248[rbp], 0
	mov	QWORD PTR -1272[rbp], 0
	mov	DWORD PTR -1312[rbp], 2
	mov	DWORD PTR -1292[rbp], 0
	lea	rdi, .LC26[rip]
	call	puts@PLT
	mov	rdx, QWORD PTR -1344[rbp]
	mov	eax, DWORD PTR -1332[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	parse_commandline
	test	eax, eax
	je	.L104
	mov	eax, 0
	call	print_help
	mov	eax, -1
	jmp	.L143
.L104:
	mov	rax, QWORD PTR input_dir[rip]
	mov	rsi, rax
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR output_file[rip]
	mov	rsi, rax
	lea	rdi, .LC28[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR input_dir[rip]
	mov	rdi, rax
	call	opendir@PLT
	mov	QWORD PTR -1232[rbp], rax
	cmp	QWORD PTR -1232[rbp], 0
	jne	.L106
	mov	rax, QWORD PTR input_dir[rip]
	mov	rsi, rax
	lea	rdi, .LC29[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L143
.L106:
	mov	eax, DWORD PTR page_size[rip]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -1240[rbp], rax
	cmp	QWORD PTR -1240[rbp], 0
	jne	.L107
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -1232[rbp]
	mov	rdi, rax
	call	closedir@PLT
	mov	eax, -1
	jmp	.L143
.L107:
	mov	eax, DWORD PTR page_size[rip]
	movsx	rdx, eax
	mov	rax, QWORD PTR -1240[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	jmp	.L108
.L122:
	mov	rax, QWORD PTR -1224[rbp]
	movzx	eax, BYTE PTR 18[rax]
	cmp	al, 8
	jne	.L108
	mov	rax, QWORD PTR -1224[rbp]
	add	rax, 19
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -1288[rbp], eax
	cmp	DWORD PTR -1288[rbp], 4
	jle	.L108
	mov	eax, DWORD PTR -1288[rbp]
	sub	eax, 4
	cdqe
	lea	rdx, 16[rax]
	mov	rax, QWORD PTR -1224[rbp]
	add	rax, rdx
	add	rax, 3
	mov	edx, 4
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L108
	mov	rax, QWORD PTR -1224[rbp]
	add	rax, 19
	mov	rsi, rax
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR input_dir[rip]
	mov	rdi, rax
	call	strlen@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR -1224[rbp]
	add	rax, 19
	mov	rdi, rax
	call	strlen@PLT
	add	eax, ebx
	add	eax, 1
	mov	DWORD PTR -1288[rbp], eax
	mov	eax, DWORD PTR -1288[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -1216[rbp], rax
	cmp	QWORD PTR -1216[rbp], 0
	jne	.L109
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	DWORD PTR -1320[rbp], -1
	jmp	.L110
.L109:
	mov	eax, DWORD PTR -1288[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR input_dir[rip]
	mov	rax, QWORD PTR -1216[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	eax, DWORD PTR -1288[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -1224[rbp]
	lea	rcx, 19[rax]
	mov	rax, QWORD PTR -1216[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncat@PLT
	mov	rax, QWORD PTR -1216[rbp]
	mov	rdi, rax
	call	GetVersionInfo
	mov	DWORD PTR -1292[rbp], eax
	mov	DWORD PTR -1308[rbp], 1
	mov	edx, DWORD PTR -1292[rbp]
	lea	rcx, -1308[rbp]
	mov	rax, QWORD PTR -1216[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getChipInfo
	mov	QWORD PTR -1264[rbp], rax
	cmp	DWORD PTR -1292[rbp], 1
	jne	.L111
	cmp	QWORD PTR -1264[rbp], 0
	jne	.L111
	lea	rsi, .LC21[rip]
	lea	rdi, .LC32[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -1216[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L108
.L111:
	cmp	DWORD PTR -1292[rbp], 2
	jne	.L112
	cmp	QWORD PTR -1264[rbp], 0
	jne	.L112
	lea	rdx, .LC24[rip]
	lea	rsi, .LC21[rip]
	lea	rdi, .LC33[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -1216[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L108
.L112:
	lea	rdx, -1200[rbp]
	mov	rax, QWORD PTR -1216[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jne	.L113
	mov	rax, QWORD PTR -1152[rbp]
	test	rax, rax
	jne	.L114
.L113:
	lea	rdi, .LC34[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -1216[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L108
.L114:
	mov	rax, QWORD PTR -1264[rbp]
	mov	esi, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -1264[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -1264[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -1264[rbp]
	mov	eax, DWORD PTR [rax]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC35[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -1264[rbp]
	mov	rax, QWORD PTR 64[rax]
	mov	QWORD PTR -1256[rbp], rax
	jmp	.L115
.L116:
	mov	rax, QWORD PTR -1256[rbp]
	mov	esi, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -1256[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -1256[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -1256[rbp]
	mov	eax, DWORD PTR [rax]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC36[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -1256[rbp]
	mov	rax, QWORD PTR 64[rax]
	mov	QWORD PTR -1256[rbp], rax
.L115:
	cmp	QWORD PTR -1256[rbp], 0
	jne	.L116
	mov	rax, QWORD PTR -1264[rbp]
	mov	rdi, rax
	call	chip_add
	mov	DWORD PTR -1320[rbp], eax
	mov	eax, DWORD PTR -1320[rbp]
	test	eax, eax
	je	.L117
	lea	rdi, .LC37[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -1216[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L108
.L117:
	mov	eax, DWORD PTR -1316[rbp]
	add	eax, 1
	mov	DWORD PTR -1316[rbp], eax
	mov	rax, QWORD PTR -1152[rbp]
	mov	edi, eax
	mov	eax, DWORD PTR page_size[rip]
	mov	esi, eax
	mov	rax, QWORD PTR -1152[rbp]
	mov	edx, DWORD PTR page_size[rip]
	movsx	rcx, edx
	cqo
	idiv	rcx
	mov	rax, rdx
	mov	edx, eax
	mov	eax, esi
	sub	eax, edx
	lea	edx, [rdi+rax]
	mov	rax, QWORD PTR -1264[rbp]
	mov	DWORD PTR 16[rax], edx
	mov	rax, QWORD PTR -1264[rbp]
	mov	rdx, QWORD PTR -1216[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -1264[rbp]
	mov	rax, QWORD PTR 64[rax]
	mov	QWORD PTR -1256[rbp], rax
	jmp	.L118
.L121:
	mov	rax, QWORD PTR -1256[rbp]
	mov	rdi, rax
	call	chip_add
	mov	DWORD PTR -1320[rbp], eax
	mov	eax, DWORD PTR -1320[rbp]
	test	eax, eax
	je	.L119
	mov	rax, QWORD PTR -1256[rbp]
	mov	esi, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -1256[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -1256[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -1256[rbp]
	mov	eax, DWORD PTR [rax]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC38[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L120
.L119:
	mov	eax, DWORD PTR -1316[rbp]
	add	eax, 1
	mov	DWORD PTR -1316[rbp], eax
.L120:
	mov	rax, QWORD PTR -1256[rbp]
	mov	rax, QWORD PTR 64[rax]
	mov	QWORD PTR -1256[rbp], rax
.L118:
	cmp	QWORD PTR -1256[rbp], 0
	jne	.L121
.L108:
	mov	rax, QWORD PTR -1232[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -1224[rbp], rax
	cmp	QWORD PTR -1224[rbp], 0
	jne	.L122
.L110:
	mov	rax, QWORD PTR -1232[rbp]
	mov	rdi, rax
	call	closedir@PLT
	mov	eax, DWORD PTR -1316[rbp]
	mov	esi, eax
	lea	rdi, .LC39[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -1316[rbp]
	test	eax, eax
	je	.L145
	lea	rdi, .LC40[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR output_file[rip]
	mov	edx, 384
	mov	esi, 65
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -1284[rbp], eax
	mov	eax, DWORD PTR -1284[rbp]
	mov	edx, 4
	lea	rsi, .LC41[rip]
	mov	edi, eax
	call	write@PLT
	add	QWORD PTR -1248[rbp], rax
	lea	rcx, -1312[rbp]
	mov	eax, DWORD PTR -1284[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	add	QWORD PTR -1248[rbp], rax
	lea	rcx, -1316[rbp]
	mov	eax, DWORD PTR -1284[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	add	QWORD PTR -1248[rbp], rax
	mov	edx, DWORD PTR -1316[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	sal	eax, 3
	add	eax, 16
	mov	DWORD PTR -1296[rbp], eax
	mov	ecx, DWORD PTR page_size[rip]
	mov	esi, DWORD PTR page_size[rip]
	mov	eax, DWORD PTR -1296[rbp]
	cdq
	idiv	esi
	mov	eax, ecx
	sub	eax, edx
	mov	DWORD PTR -1280[rbp], eax
	mov	eax, DWORD PTR -1280[rbp]
	add	DWORD PTR -1296[rbp], eax
	mov	eax, DWORD PTR -1296[rbp]
	cdqe
	mov	QWORD PTR -1272[rbp], rax
	mov	rax, QWORD PTR chip_list[rip]
	mov	QWORD PTR -1264[rbp], rax
	jmp	.L125
.L128:
	mov	rcx, QWORD PTR -1264[rbp]
	mov	eax, DWORD PTR -1284[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	add	QWORD PTR -1248[rbp], rax
	mov	rax, QWORD PTR -1264[rbp]
	lea	rcx, 4[rax]
	mov	eax, DWORD PTR -1284[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	add	QWORD PTR -1248[rbp], rax
	mov	rax, QWORD PTR -1264[rbp]
	lea	rcx, 8[rax]
	mov	eax, DWORD PTR -1284[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	add	QWORD PTR -1248[rbp], rax
	mov	rax, QWORD PTR -1264[rbp]
	lea	rcx, 12[rax]
	mov	eax, DWORD PTR -1284[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	add	QWORD PTR -1248[rbp], rax
	mov	rax, QWORD PTR -1264[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	eax, DWORD PTR 60[rax]
	test	eax, eax
	je	.L126
	mov	rax, QWORD PTR -1264[rbp]
	mov	rax, QWORD PTR 48[rax]
	lea	rcx, 60[rax]
	mov	eax, DWORD PTR -1284[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	add	QWORD PTR -1248[rbp], rax
	jmp	.L127
.L126:
	lea	rcx, -1272[rbp]
	mov	eax, DWORD PTR -1284[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	add	QWORD PTR -1248[rbp], rax
	mov	rdx, QWORD PTR -1272[rbp]
	mov	rax, QWORD PTR -1264[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	DWORD PTR 60[rax], edx
	mov	rax, QWORD PTR -1264[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	eax, DWORD PTR 16[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -1272[rbp]
	add	rax, rdx
	mov	QWORD PTR -1272[rbp], rax
.L127:
	mov	rax, QWORD PTR -1264[rbp]
	mov	rax, QWORD PTR 48[rax]
	lea	rcx, 16[rax]
	mov	eax, DWORD PTR -1284[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	add	QWORD PTR -1248[rbp], rax
	mov	rax, QWORD PTR -1264[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -1264[rbp], rax
.L125:
	cmp	QWORD PTR -1264[rbp], 0
	jne	.L128
	mov	DWORD PTR -1320[rbp], 0
	lea	rcx, -1320[rbp]
	mov	eax, DWORD PTR -1284[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	add	QWORD PTR -1248[rbp], rax
	cmp	DWORD PTR -1280[rbp], 0
	jle	.L129
	mov	eax, DWORD PTR -1280[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -1240[rbp]
	mov	eax, DWORD PTR -1284[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	add	QWORD PTR -1248[rbp], rax
.L129:
	mov	rax, QWORD PTR chip_list[rip]
	mov	QWORD PTR -1264[rbp], rax
	jmp	.L130
.L139:
	mov	rax, QWORD PTR -1264[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	eax, DWORD PTR 56[rax]
	test	eax, eax
	jne	.L146
	mov	rax, QWORD PTR -1264[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	DWORD PTR 56[rax], 1
	mov	rax, QWORD PTR -1264[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -1216[rbp], rax
	mov	rax, QWORD PTR -1264[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	eax, DWORD PTR 16[rax]
	mov	DWORD PTR -1276[rbp], eax
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L133
	mov	edx, DWORD PTR -1276[rbp]
	mov	rax, QWORD PTR -1216[rbp]
	mov	rsi, rax
	lea	rdi, .LC42[rip]
	mov	eax, 0
	call	printf@PLT
.L133:
	mov	rax, QWORD PTR -1216[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1208[rbp], rax
	cmp	QWORD PTR -1208[rbp], 0
	je	.L134
	mov	DWORD PTR -1304[rbp], 0
	jmp	.L135
.L136:
	mov	eax, DWORD PTR -1300[rbp]
	movsx	rdx, eax
	lea	rcx, -1056[rbp]
	mov	eax, DWORD PTR -1284[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	add	QWORD PTR -1248[rbp], rax
	mov	eax, DWORD PTR -1300[rbp]
	add	DWORD PTR -1304[rbp], eax
.L135:
	mov	rdx, QWORD PTR -1208[rbp]
	lea	rax, -1056[rbp]
	mov	rcx, rdx
	mov	edx, 1024
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -1300[rbp], eax
	cmp	DWORD PTR -1300[rbp], 0
	jg	.L136
	mov	rax, QWORD PTR -1208[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	ecx, DWORD PTR page_size[rip]
	mov	esi, DWORD PTR page_size[rip]
	mov	eax, DWORD PTR -1304[rbp]
	cdq
	idiv	esi
	mov	eax, ecx
	sub	eax, edx
	mov	DWORD PTR -1280[rbp], eax
	mov	edx, DWORD PTR -1304[rbp]
	mov	eax, DWORD PTR -1280[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -1276[rbp]
	cmp	edx, eax
	je	.L137
	mov	edx, DWORD PTR -1304[rbp]
	mov	eax, DWORD PTR -1280[rbp]
	lea	esi, [rdx+rax]
	mov	rdx, QWORD PTR -1216[rbp]
	mov	eax, DWORD PTR -1276[rbp]
	mov	rcx, rdx
	mov	edx, esi
	mov	esi, eax
	lea	rdi, .LC43[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -1320[rbp], -1
	jmp	.L138
.L137:
	cmp	DWORD PTR -1280[rbp], 0
	jle	.L132
	mov	eax, DWORD PTR -1280[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -1240[rbp]
	mov	eax, DWORD PTR -1284[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	add	QWORD PTR -1248[rbp], rax
	jmp	.L132
.L134:
	mov	rax, QWORD PTR -1216[rbp]
	mov	rsi, rax
	lea	rdi, .LC44[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -1320[rbp], -1
	jmp	.L138
.L146:
	nop
.L132:
	mov	rax, QWORD PTR -1264[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -1264[rbp], rax
.L130:
	cmp	QWORD PTR -1264[rbp], 0
	jne	.L139
.L138:
	mov	eax, DWORD PTR -1284[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -1272[rbp]
	cmp	QWORD PTR -1248[rbp], rax
	je	.L140
	mov	rax, QWORD PTR -1272[rbp]
	mov	rdx, QWORD PTR -1248[rbp]
	mov	rsi, rax
	lea	rdi, .LC45[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -1320[rbp], -1
	jmp	.L141
.L140:
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L141
	mov	rax, QWORD PTR -1248[rbp]
	mov	rsi, rax
	lea	rdi, .LC46[rip]
	mov	eax, 0
	call	printf@PLT
.L141:
	mov	eax, DWORD PTR -1320[rbp]
	test	eax, eax
	je	.L142
	mov	rax, QWORD PTR output_file[rip]
	mov	rdi, rax
	call	unlink@PLT
	jmp	.L124
.L142:
	lea	rdi, .LC47[rip]
	call	puts@PLT
	jmp	.L124
.L145:
	nop
.L124:
	mov	rax, QWORD PTR -1240[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	call	chip_deleteall
	mov	eax, DWORD PTR -1320[rbp]
.L143:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L144
	call	__stack_chk_fail@PLT
.L144:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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	"73576432.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"output-file\000"
	.align	2
.LC1:
	.ascii	"dtc-path\000"
	.align	2
.LC2:
	.ascii	"page-size\000"
	.align	2
.LC3:
	.ascii	"verbose\000"
	.align	2
.LC4:
	.ascii	"help\000"
	.text
	.comm	chip_list,4,4
	.comm	input_dir,4,4
	.comm	output_file,4,4
	.comm	dtc_path,4,4
	.comm	verbose,4,4
	.global	page_size
	.data
	.align	2
	.type	page_size, %object
	.size	page_size, 4
page_size:
	.word	2048
	.section	.rodata
	.align	2
.LC6:
	.ascii	"dtbTool version %d\012\000"
	.align	2
.LC7:
	.ascii	"dtbTool [options] -o <output file> <input DTB path>"
	.ascii	"\000"
	.align	2
.LC8:
	.ascii	"  options:\000"
	.align	2
.LC9:
	.ascii	"  --output-file/-o     output file\000"
	.align	2
.LC10:
	.ascii	"  --dtc-path/-p        path to dtc\000"
	.align	2
.LC11:
	.ascii	"  --page-size/-s       page size in bytes\000"
	.align	2
.LC12:
	.ascii	"  --verbose/-v         verbose\000"
	.align	2
.LC13:
	.ascii	"  --help/-h            this help screen\000"
	.text
	.align	2
	.global	print_help
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_help, %function
print_help:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r1, #2
	ldr	r0, .L2
	bl	printf
	ldr	r0, .L2+4
	bl	puts
	ldr	r0, .L2+8
	bl	puts
	ldr	r0, .L2+12
	bl	puts
	ldr	r0, .L2+16
	bl	puts
	ldr	r0, .L2+20
	bl	puts
	ldr	r0, .L2+24
	bl	puts
	ldr	r0, .L2+28
	bl	puts
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	print_help, .-print_help
	.section	.rodata
	.align	2
.LC15:
	.ascii	"Invalid page size (> 0 and <=1MB\000"
	.align	2
.LC16:
	.ascii	"-o:p:s:vh\000"
	.align	2
.LC17:
	.ascii	"Output file must be specified\000"
	.align	2
.LC18:
	.ascii	"./\000"
	.align	2
.LC19:
	.ascii	"\000"
	.align	2
.LC14:
	.word	.LC0
	.word	1
	.word	0
	.word	111
	.word	.LC1
	.word	1
	.word	0
	.word	112
	.word	.LC2
	.word	1
	.word	0
	.word	115
	.word	.LC3
	.word	0
	.word	0
	.word	118
	.word	.LC4
	.word	0
	.word	0
	.word	104
	.word	0
	.word	0
	.word	0
	.word	0
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	parse_commandline
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_commandline, %function
parse_commandline:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L23+4
	sub	r3, fp, #104
	mov	r1, r2
	mov	r2, #96
	mov	r0, r3
	bl	memcpy
	b	.L5
.L17:
	ldr	r3, [fp, #-108]
	cmp	r3, #1
	beq	.L6
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	ble	.L7
	ldr	r3, [fp, #-108]
	cmp	r3, #118
	bgt	.L7
	ldr	r3, [fp, #-108]
	cmp	r3, #111
	blt	.L7
	ldr	r3, [fp, #-108]
	sub	r3, r3, #111
	cmp	r3, #7
	ldrls	pc, [pc, r3, asl #2]
	b	.L7
.L9:
	.word	.L12
	.word	.L11
	.word	.L7
	.word	.L7
	.word	.L10
	.word	.L7
	.word	.L7
	.word	.L8
.L6:
	ldr	r3, .L23+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L23+12
	ldr	r3, [r3]
	ldr	r2, .L23+8
	str	r3, [r2]
	b	.L5
.L12:
	ldr	r3, .L23+12
	ldr	r3, [r3]
	ldr	r2, .L23+16
	str	r3, [r2]
	b	.L5
.L11:
	ldr	r3, .L23+12
	ldr	r3, [r3]
	ldr	r2, .L23+20
	str	r3, [r2]
	b	.L5
.L10:
	ldr	r3, .L23+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L23+24
	str	r3, [r2]
	ldr	r3, .L23+24
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L14
	ldr	r3, .L23+24
	ldr	r3, [r3]
	cmp	r3, #1048576
	ble	.L5
.L14:
	ldr	r0, .L23+28
	bl	puts
	mvn	r3, #0
	b	.L21
.L8:
	ldr	r3, .L23+32
	mov	r2, #1
	str	r2, [r3]
	b	.L5
.L7:
	mvn	r3, #0
	b	.L21
.L5:
	sub	r3, fp, #104
	mov	r2, #0
	str	r2, [sp]
	ldr	r2, .L23+36
	ldr	r1, [fp, #-116]
	ldr	r0, [fp, #-112]
	bl	getopt_long
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmn	r3, #1
	bne	.L17
	ldr	r3, .L23+16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L18
	ldr	r0, .L23+40
	bl	puts
	mvn	r3, #0
	b	.L21
.L18:
	ldr	r3, .L23+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L19
	ldr	r3, .L23+8
	ldr	r2, .L23+44
	str	r2, [r3]
.L19:
	ldr	r3, .L23+20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L20
	ldr	r3, .L23+20
	ldr	r2, .L23+48
	str	r2, [r3]
.L20:
	mov	r3, #0
.L21:
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC20
	.word	.LC14
	.word	input_dir
	.word	optarg
	.word	output_file
	.word	dtc_path
	.word	page_size
	.word	.LC15
	.word	verbose
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.size	parse_commandline, .-parse_commandline
	.align	2
	.global	chip_add
	.syntax unified
	.arm
	.fpu softvfp
	.type	chip_add, %function
chip_add:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L34
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L26
	ldr	r2, .L34
	ldr	r3, [fp, #-16]
	str	r3, [r2]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #28]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #24]
	mov	r3, #0
	b	.L27
.L26:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L28
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L29
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bcc	.L28
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bne	.L29
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r2, r3
	bcc	.L28
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r2, r3
	bne	.L29
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	cmp	r2, r3
	bcs	.L29
.L28:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	bne	.L30
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #28]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #24]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #24]
	ldr	r2, .L34
	ldr	r3, [fp, #-16]
	str	r3, [r2]
	b	.L31
.L30:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #28]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #24]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #24]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #28]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #24]
	b	.L31
.L29:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L32
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bne	.L32
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r2, r3
	bne	.L32
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	cmp	r2, r3
	bne	.L32
	mvn	r3, #0
	b	.L27
.L32:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #28]
	cmp	r3, #0
	bne	.L33
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #28]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #28]
	b	.L31
.L33:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-8]
	b	.L26
.L31:
	mov	r3, #0
.L27:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L35:
	.align	2
.L34:
	.word	chip_list
	.size	chip_add, .-chip_add
	.align	2
	.global	chip_deleteall
	.syntax unified
	.arm
	.fpu softvfp
	.type	chip_deleteall, %function
chip_deleteall:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L40
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L37
.L39:
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #20]
	cmp	r3, #0
	beq	.L38
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #20]
	mov	r0, r3
	bl	free
.L38:
	ldr	r0, [fp, #-8]
	bl	free
.L37:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L39
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	chip_list
	.size	chip_deleteall, .-chip_deleteall
	.section	.rodata
	.align	2
.LC23:
	.ascii	"Out of memory\000"
	.align	2
.LC24:
	.ascii	"r\000"
	.align	2
.LC25:
	.ascii	"... skip, fail to decompile dtb\000"
	.align	2
.LC26:
	.ascii	"qcom,msm-id = <\000"
	.align	2
.LC27:
	.ascii	" \011\000"
	.align	2
.LC28:
	.ascii	"... skip, incorrect '%s' format\012\000"
	.align	2
.LC29:
	.ascii	"qcom,board-id = <\000"
	.align	2
.LC21:
	.ascii	"dtc -I dtb -O dts \"\000"
	.align	2
.LC22:
	.ascii	"\" 2>&1\000"
	.align	2
.LC30:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getChipInfo
	.syntax unified
	.arm
	.fpu softvfp
	.type	getChipInfo, %function
getChipInfo:
	@ args = 0, pretend = 0, frame = 176
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #180
	str	r0, [fp, #-176]
	str	r1, [fp, #-180]
	str	r2, [fp, #-184]
	ldr	r3, .L101
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L101+4
	sub	ip, fp, #36
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	ldr	r2, .L101+8
	sub	r3, fp, #44
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r1, #16
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-168]
	mov	r3, #0
	str	r3, [fp, #-152]
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-160]
	mov	r3, #0
	str	r3, [fp, #-136]
	mov	r3, #0
	str	r3, [fp, #-132]
	mov	r3, #0
	str	r3, [fp, #-128]
	mov	r3, #0
	str	r3, [fp, #-108]
	mov	r3, #0
	str	r3, [fp, #-104]
	mov	r3, #0
	str	r3, [fp, #-92]
	mov	r3, #0
	str	r3, [fp, #-100]
	mov	r3, #0
	str	r3, [fp, #-96]
	mov	r3, #0
	str	r3, [fp, #-88]
	mov	r3, #1024
	str	r3, [fp, #-164]
	ldr	r3, [fp, #-164]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-168]
	ldr	r3, [fp, #-168]
	cmp	r3, #0
	bne	.L43
	ldr	r0, .L101+12
	bl	puts
	mov	r3, #0
	b	.L99
.L43:
	ldr	r3, .L101+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r4, r0
	sub	r3, fp, #36
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r4, r4, r3
	sub	r3, fp, #44
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r4, r4, r3
	ldr	r0, [fp, #-176]
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	add	r3, r3, #1
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-84]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bne	.L45
	ldr	r0, .L101+12
	bl	puts
	ldr	r3, [fp, #-168]
	mov	r0, r3
	bl	free
	mov	r3, #0
	b	.L99
.L45:
	ldr	r3, .L101+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-84]
	mov	r1, r3
	ldr	r0, [fp, #-80]
	bl	strncpy
	ldr	r2, [fp, #-84]
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, [fp, #-80]
	bl	strncat
	ldr	r3, [fp, #-84]
	mov	r2, r3
	ldr	r1, [fp, #-176]
	ldr	r0, [fp, #-80]
	bl	strncat
	ldr	r2, [fp, #-84]
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, [fp, #-80]
	bl	strncat
	ldr	r1, .L101+20
	ldr	r0, [fp, #-80]
	bl	popen
	str	r0, [fp, #-76]
	ldr	r0, [fp, #-80]
	bl	free
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	bne	.L48
	ldr	r0, .L101+24
	bl	puts
	b	.L47
.L86:
	ldr	r3, [fp, #-184]
	cmp	r3, #1
	bne	.L49
	ldr	r3, [fp, #-168]
	ldr	r1, .L101+28
	mov	r0, r3
	bl	strstr
	str	r0, [fp, #-156]
	ldr	r3, [fp, #-156]
	cmp	r3, #0
	beq	.L48
	ldr	r3, [fp, #-156]
	add	r3, r3, #15
	str	r3, [fp, #-156]
	mov	r3, #0
	str	r3, [fp, #-140]
.L62:
	mov	r3, #1
	str	r3, [fp, #-144]
	mov	r3, #0
	str	r3, [fp, #-148]
	b	.L50
.L55:
	sub	r3, fp, #160
	mov	r2, r3
	ldr	r1, .L101+32
	ldr	r0, [fp, #-156]
	bl	strtok_r
	str	r0, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-156]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	beq	.L51
	ldr	r3, [fp, #-72]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #62
	bne	.L52
	mov	r3, #1
	str	r3, [fp, #-140]
	mov	r3, #0
	str	r3, [fp, #-144]
	b	.L53
.L52:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-72]
	bl	strtoul
	mov	r2, r0
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-44]
	b	.L54
.L51:
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-44]
	mov	r3, #0
	str	r3, [fp, #-144]
	mov	r3, #1
	str	r3, [fp, #-140]
.L54:
	ldr	r3, [fp, #-148]
	add	r3, r3, #1
	str	r3, [fp, #-148]
.L50:
	ldr	r3, [fp, #-148]
	cmp	r3, #2
	ble	.L55
.L53:
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	beq	.L56
	ldr	r3, [fp, #-168]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-76]
	bl	pclose
	ldr	r3, [fp, #-180]
	ldr	r2, [fp, #-136]
	str	r2, [r3]
	ldr	r3, [fp, #-152]
	b	.L99
.L56:
	ldr	r3, [fp, #-144]
	cmp	r3, #0
	beq	.L62
	mov	r0, #48
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L58
	ldr	r0, .L101+12
	bl	puts
	nop
	ldr	r1, .L101+28
	ldr	r0, .L101+36
	bl	printf
	b	.L47
.L58:
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	bne	.L60
	ldr	r3, [fp, #-68]
	str	r3, [fp, #-152]
	ldr	r3, [fp, #-152]
	mov	r2, #0
	str	r2, [r3, #44]
	b	.L61
.L60:
	ldr	r3, [fp, #-152]
	ldr	r2, [r3, #44]
	ldr	r3, [fp, #-68]
	str	r2, [r3, #44]
	ldr	r3, [fp, #-152]
	ldr	r2, [fp, #-68]
	str	r2, [r3, #44]
.L61:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-68]
	str	r2, [r3]
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-68]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-68]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-68]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-68]
	mov	r2, #0
	str	r2, [r3, #16]
	ldr	r3, [fp, #-68]
	mov	r2, #0
	str	r2, [r3, #20]
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-152]
	str	r2, [r3, #32]
	ldr	r3, [fp, #-68]
	mov	r2, #0
	str	r2, [r3, #36]
	ldr	r3, [fp, #-68]
	mov	r2, #0
	str	r2, [r3, #40]
	ldr	r3, [fp, #-136]
	add	r3, r3, #1
	str	r3, [fp, #-136]
	b	.L62
.L49:
	ldr	r3, [fp, #-184]
	cmp	r3, #2
	bne	.L48
	ldr	r3, [fp, #-168]
	ldr	r1, .L101+28
	mov	r0, r3
	bl	strstr
	str	r0, [fp, #-156]
	ldr	r3, [fp, #-156]
	cmp	r3, #0
	beq	.L63
	ldr	r3, [fp, #-156]
	add	r3, r3, #15
	str	r3, [fp, #-156]
	mov	r3, #0
	str	r3, [fp, #-112]
	b	.L64
.L74:
	mov	r3, #1
	str	r3, [fp, #-116]
	mov	r3, #0
	str	r3, [fp, #-148]
	b	.L65
.L70:
	sub	r3, fp, #160
	mov	r2, r3
	ldr	r1, .L101+32
	ldr	r0, [fp, #-156]
	bl	strtok_r
	str	r0, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-156]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	beq	.L66
	ldr	r3, [fp, #-72]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #62
	bne	.L67
	mov	r3, #1
	str	r3, [fp, #-112]
	mov	r3, #0
	str	r3, [fp, #-116]
	b	.L68
.L67:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-72]
	bl	strtoul
	mov	r2, r0
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-52]
	b	.L69
.L66:
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-52]
	mov	r3, #0
	str	r3, [fp, #-116]
	mov	r3, #1
	str	r3, [fp, #-112]
.L69:
	ldr	r3, [fp, #-148]
	add	r3, r3, #1
	str	r3, [fp, #-148]
.L65:
	ldr	r3, [fp, #-148]
	cmp	r3, #1
	ble	.L70
.L68:
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	beq	.L64
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	bne	.L71
	ldr	r0, .L101+12
	bl	puts
	b	.L63
.L71:
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	bne	.L72
	ldr	r3, [fp, #-92]
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-92]
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-108]
	mov	r2, #0
	str	r2, [r3, #12]
	b	.L73
.L72:
	ldr	r3, [fp, #-108]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-92]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-108]
	ldr	r2, [fp, #-92]
	str	r2, [r3, #12]
.L73:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-92]
	str	r2, [r3]
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-92]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
.L64:
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	ble	.L74
.L63:
	ldr	r3, [fp, #-168]
	ldr	r1, .L101+40
	mov	r0, r3
	bl	strstr
	str	r0, [fp, #-156]
	ldr	r3, [fp, #-156]
	cmp	r3, #0
	beq	.L48
	ldr	r3, [fp, #-156]
	add	r3, r3, #17
	str	r3, [fp, #-156]
	mov	r3, #0
	str	r3, [fp, #-120]
	b	.L75
.L85:
	mov	r3, #1
	str	r3, [fp, #-124]
	mov	r3, #0
	str	r3, [fp, #-148]
	b	.L76
.L81:
	sub	r3, fp, #160
	mov	r2, r3
	ldr	r1, .L101+32
	ldr	r0, [fp, #-156]
	bl	strtok_r
	str	r0, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-156]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	beq	.L77
	ldr	r3, [fp, #-72]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #62
	bne	.L78
	mov	r3, #1
	str	r3, [fp, #-120]
	mov	r3, #0
	str	r3, [fp, #-124]
	b	.L79
.L78:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-72]
	bl	strtoul
	mov	r2, r0
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-52]
	b	.L80
.L77:
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-52]
	mov	r3, #0
	str	r3, [fp, #-124]
	mov	r3, #1
	str	r3, [fp, #-120]
.L80:
	ldr	r3, [fp, #-148]
	add	r3, r3, #1
	str	r3, [fp, #-148]
.L76:
	ldr	r3, [fp, #-148]
	cmp	r3, #1
	ble	.L81
.L79:
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	beq	.L75
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	bne	.L82
	ldr	r0, .L101+12
	bl	puts
	b	.L48
.L82:
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	bne	.L83
	ldr	r3, [fp, #-88]
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-88]
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-100]
	mov	r2, #0
	str	r2, [r3, #12]
	b	.L84
.L83:
	ldr	r3, [fp, #-100]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-88]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-100]
	ldr	r2, [fp, #-88]
	str	r2, [r3, #12]
.L84:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-88]
	str	r2, [r3]
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-88]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
.L75:
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	ble	.L85
.L48:
	sub	r1, fp, #164
	sub	r3, fp, #168
	ldr	r2, [fp, #-76]
	mov	r0, r3
	bl	getline
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmn	r3, #1
	bne	.L86
.L47:
	ldr	r3, [fp, #-168]
	cmp	r3, #0
	beq	.L87
	ldr	r3, [fp, #-168]
	mov	r0, r3
	bl	free
.L87:
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	bne	.L88
	ldr	r1, .L101+28
	ldr	r0, .L101+36
	bl	printf
	mov	r3, #0
	b	.L99
.L88:
	ldr	r3, [fp, #-128]
	cmp	r3, #0
	bne	.L89
	ldr	r1, .L101+40
	ldr	r0, .L101+36
	bl	printf
	mov	r3, #0
	b	.L99
.L89:
	ldr	r3, [fp, #-96]
	str	r3, [fp, #-88]
	b	.L90
.L96:
	mov	r0, #48
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L92
	ldr	r0, .L101+12
	bl	puts
	b	.L93
.L92:
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	bne	.L94
	ldr	r3, [fp, #-68]
	str	r3, [fp, #-152]
	ldr	r3, [fp, #-152]
	mov	r2, #0
	str	r2, [r3, #44]
	b	.L95
.L94:
	ldr	r3, [fp, #-152]
	ldr	r2, [r3, #44]
	ldr	r3, [fp, #-68]
	str	r2, [r3, #44]
	ldr	r3, [fp, #-152]
	ldr	r2, [fp, #-68]
	str	r2, [r3, #44]
.L95:
	ldr	r3, [fp, #-104]
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	str	r2, [r3]
	ldr	r3, [fp, #-96]
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-104]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-68]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-96]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-68]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-68]
	mov	r2, #0
	str	r2, [r3, #16]
	ldr	r3, [fp, #-68]
	mov	r2, #0
	str	r2, [r3, #20]
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-152]
	str	r2, [r3, #32]
	ldr	r3, [fp, #-68]
	mov	r2, #0
	str	r2, [r3, #36]
	ldr	r3, [fp, #-68]
	mov	r2, #0
	str	r2, [r3, #40]
	ldr	r3, [fp, #-96]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-96]
.L91:
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	bne	.L96
.L93:
	ldr	r3, [fp, #-88]
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-104]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-104]
.L90:
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bne	.L91
	ldr	r3, [fp, #-120]
	cmp	r3, #1
	bne	.L98
	ldr	r3, [fp, #-112]
	cmp	r3, #1
	bne	.L98
	ldr	r0, [fp, #-76]
	bl	pclose
	ldr	r3, [fp, #-180]
	ldr	r2, [fp, #-132]
	str	r2, [r3]
	ldr	r0, [fp, #-100]
	bl	free
	ldr	r0, [fp, #-108]
	bl	free
	ldr	r3, [fp, #-152]
	b	.L99
.L98:
	mov	r3, #0
.L99:
	ldr	r2, .L101
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L100
	bl	__stack_chk_fail
.L100:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L102:
	.align	2
.L101:
	.word	.LC30
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	dtc_path
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.size	getChipInfo, .-getChipInfo
	.section	.rodata
	.align	2
.LC31:
	.ascii	" Old Version:%d\012\000"
	.align	2
.LC32:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	GetVersionInfo
	.syntax unified
	.arm
	.fpu softvfp
	.type	GetVersionInfo, %function
GetVersionInfo:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #76
	str	r0, [fp, #-80]
	ldr	r3, .L114
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L114+4
	sub	ip, fp, #36
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	ldr	r2, .L114+8
	sub	r3, fp, #44
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r1, #16
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-72]
	mov	r3, #1
	str	r3, [fp, #-64]
	mov	r3, #1024
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-68]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	bne	.L104
	ldr	r0, .L114+12
	bl	puts
	mov	r3, #0
	b	.L112
.L104:
	ldr	r3, .L114+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r4, r0
	sub	r3, fp, #36
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r4, r4, r3
	sub	r3, fp, #44
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r4, r4, r3
	ldr	r0, [fp, #-80]
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	add	r3, r3, #1
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L106
	ldr	r0, .L114+12
	bl	puts
	ldr	r3, [fp, #-72]
	mov	r0, r3
	bl	free
	mov	r3, #0
	b	.L112
.L106:
	ldr	r3, .L114+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-60]
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	strncpy
	ldr	r2, [fp, #-60]
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	strncat
	ldr	r3, [fp, #-60]
	mov	r2, r3
	ldr	r1, [fp, #-80]
	ldr	r0, [fp, #-56]
	bl	strncat
	ldr	r2, [fp, #-60]
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	strncat
	ldr	r1, .L114+20
	ldr	r0, [fp, #-56]
	bl	popen
	str	r0, [fp, #-52]
	ldr	r0, [fp, #-56]
	bl	free
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L109
	ldr	r0, .L114+24
	bl	puts
	b	.L108
.L110:
	ldr	r3, [fp, #-72]
	ldr	r1, .L114+28
	mov	r0, r3
	bl	strstr
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L109
	mov	r3, #2
	str	r3, [fp, #-64]
	b	.L108
.L109:
	sub	r1, fp, #68
	sub	r3, fp, #72
	ldr	r2, [fp, #-52]
	mov	r0, r3
	bl	getline
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmn	r3, #1
	bne	.L110
.L108:
	ldr	r3, [fp, #-64]
	cmp	r3, #1
	bne	.L111
	ldr	r1, [fp, #-64]
	ldr	r0, .L114+32
	bl	printf
.L111:
	ldr	r3, [fp, #-72]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-64]
.L112:
	ldr	r2, .L114
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L113
	bl	__stack_chk_fail
.L113:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L115:
	.align	2
.L114:
	.word	.LC32
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	dtc_path
	.word	.LC24
	.word	.LC25
	.word	.LC29
	.word	.LC31
	.size	GetVersionInfo, .-GetVersionInfo
	.section	.rodata
	.align	2
.LC33:
	.ascii	"DTB combiner:\000"
	.align	2
.LC34:
	.ascii	"  Input directory: '%s'\012\000"
	.align	2
.LC35:
	.ascii	"  Output file: '%s'\012\000"
	.align	2
.LC36:
	.ascii	"Failed to open input directory '%s'\012\000"
	.align	2
.LC37:
	.ascii	".dtb\000"
	.align	2
.LC38:
	.ascii	"Found file: %s ... \000"
	.align	2
.LC39:
	.ascii	"skip, failed to scan for '%s' tag\012\000"
	.align	2
.LC40:
	.ascii	"skip, failed to scan for '%s' or '%s' tag\012\000"
	.align	2
.LC41:
	.ascii	"skip, failed to get DTB size\000"
	.align	2
.LC42:
	.ascii	"chipset: %u, rev: %u, platform: %u, subtype: %u\012"
	.ascii	"\000"
	.align	2
.LC43:
	.ascii	"   additional chipset: %u, rev: %u, platform: %u, s"
	.ascii	"ubtype: %u\012\000"
	.align	2
.LC44:
	.ascii	"... duplicate info, skipped\000"
	.global	__aeabi_idivmod
	.align	2
.LC45:
	.ascii	"... duplicate info, skipped (chipset %u, rev: %u, p"
	.ascii	"latform: %u, subtype %u:\012\000"
	.align	2
.LC46:
	.ascii	"=> Found %d unique DTB(s)\012\000"
	.align	2
.LC47:
	.ascii	"\012Generating master DTB... \000"
	.align	2
.LC48:
	.ascii	"QCDT\000"
	.align	2
.LC49:
	.ascii	"\012 (writing '%s' - %u bytes) \000"
	.align	2
.LC50:
	.ascii	"DTB size mismatch, please re-run: expected %d vs ac"
	.ascii	"tual %d (%s)\012\000"
	.align	2
.LC51:
	.ascii	"failed to open DTB '%s'\012\000"
	.align	2
.LC52:
	.ascii	"error writing output file, please rerun: size misma"
	.ascii	"tch %d vs %d\012\000"
	.align	2
.LC53:
	.ascii	"Total wrote %u bytes\012\000"
	.align	2
.LC54:
	.ascii	"completed\000"
	.align	2
.LC55:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1216
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #1216
	sub	sp, sp, #8
	str	r0, [fp, #-1224]
	str	r1, [fp, #-1228]
	ldr	r3, .L160
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1180]
	mov	r3, #0
	str	r3, [fp, #-1176]
	mov	r3, #0
	str	r3, [fp, #-1188]
	mov	r3, #0
	str	r3, [fp, #-1216]
	mov	r3, #0
	str	r3, [fp, #-1212]
	mov	r3, #0
	str	r3, [fp, #-1172]
	mov	r3, #0
	str	r3, [fp, #-1184]
	mov	r3, #0
	str	r3, [fp, #-1208]
	mov	r3, #2
	str	r3, [fp, #-1204]
	mov	r3, #0
	str	r3, [fp, #-1168]
	ldr	r0, .L160+4
	bl	puts
	ldr	r1, [fp, #-1228]
	ldr	r0, [fp, #-1224]
	bl	parse_commandline
	mov	r3, r0
	cmp	r3, #0
	beq	.L117
	bl	print_help
	mvn	r3, #0
	b	.L156
.L117:
	ldr	r3, .L160+8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L160+12
	bl	printf
	ldr	r3, .L160+16
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L160+20
	bl	printf
	ldr	r3, .L160+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	opendir
	str	r0, [fp, #-1164]
	ldr	r3, [fp, #-1164]
	cmp	r3, #0
	bne	.L119
	ldr	r3, .L160+8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L160+24
	bl	printf
	mvn	r3, #0
	b	.L156
.L119:
	ldr	r3, .L160+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1180]
	ldr	r3, [fp, #-1180]
	cmp	r3, #0
	bne	.L120
	ldr	r0, .L160+32
	bl	puts
	ldr	r0, [fp, #-1164]
	bl	closedir
	mvn	r3, #0
	b	.L156
.L120:
	ldr	r3, .L160+28
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-1180]
	bl	memset
	b	.L121
.L135:
	ldr	r3, [fp, #-1160]
	ldrb	r3, [r3, #10]	@ zero_extendqisi2
	cmp	r3, #8
	bne	.L121
	ldr	r3, [fp, #-1160]
	add	r3, r3, #11
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-1156]
	ldr	r3, [fp, #-1156]
	cmp	r3, #4
	ble	.L121
	ldr	r3, [fp, #-1156]
	sub	r3, r3, #4
	add	r3, r3, #8
	ldr	r2, [fp, #-1160]
	add	r3, r2, r3
	add	r3, r3, #3
	mov	r2, #4
	ldr	r1, .L160+36
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L121
	ldr	r3, [fp, #-1160]
	add	r3, r3, #11
	mov	r1, r3
	ldr	r0, .L160+40
	bl	printf
	ldr	r3, .L160+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r4, r0
	ldr	r3, [fp, #-1160]
	add	r3, r3, #11
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	add	r3, r3, #1
	str	r3, [fp, #-1156]
	ldr	r3, [fp, #-1156]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1152]
	ldr	r3, [fp, #-1152]
	cmp	r3, #0
	bne	.L122
	ldr	r0, .L160+32
	bl	puts
	mvn	r3, #0
	str	r3, [fp, #-1216]
	b	.L123
.L122:
	ldr	r3, .L160+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-1156]
	mov	r1, r3
	ldr	r0, [fp, #-1152]
	bl	strncpy
	ldr	r3, [fp, #-1160]
	add	r3, r3, #11
	ldr	r2, [fp, #-1156]
	mov	r1, r3
	ldr	r0, [fp, #-1152]
	bl	strncat
	ldr	r0, [fp, #-1152]
	bl	GetVersionInfo
	str	r0, [fp, #-1168]
	mov	r3, #1
	str	r3, [fp, #-1200]
	ldr	r2, [fp, #-1168]
	sub	r3, fp, #1184
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-1152]
	bl	getChipInfo
	str	r0, [fp, #-1196]
	ldr	r3, [fp, #-1168]
	cmp	r3, #1
	bne	.L124
	ldr	r3, [fp, #-1196]
	cmp	r3, #0
	bne	.L124
	ldr	r1, .L160+44
	ldr	r0, .L160+48
	bl	printf
	ldr	r0, [fp, #-1152]
	bl	free
	b	.L121
.L124:
	ldr	r3, [fp, #-1168]
	cmp	r3, #2
	bne	.L125
	ldr	r3, [fp, #-1196]
	cmp	r3, #0
	bne	.L125
	ldr	r2, .L160+52
	ldr	r1, .L160+44
	ldr	r0, .L160+56
	bl	printf
	ldr	r0, [fp, #-1152]
	bl	free
	b	.L121
.L125:
	sub	r3, fp, #1120
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, [fp, #-1152]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bne	.L126
	ldr	r3, [fp, #-1088]
	cmp	r3, #0
	bne	.L127
.L126:
	ldr	r0, .L160+60
	bl	puts
	ldr	r0, [fp, #-1152]
	bl	free
	b	.L121
.L127:
	ldr	r3, [fp, #-1196]
	ldr	r1, [r3]
	ldr	r3, [fp, #-1196]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-1196]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-1196]
	ldr	r3, [r3, #8]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L160+64
	bl	printf
	ldr	r3, [fp, #-1196]
	ldr	r3, [r3, #44]
	str	r3, [fp, #-1192]
	b	.L128
.L129:
	ldr	r3, [fp, #-1192]
	ldr	r1, [r3]
	ldr	r3, [fp, #-1192]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-1192]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-1192]
	ldr	r3, [r3, #8]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L160+68
	bl	printf
	ldr	r3, [fp, #-1192]
	ldr	r3, [r3, #44]
	str	r3, [fp, #-1192]
.L128:
	ldr	r3, [fp, #-1192]
	cmp	r3, #0
	bne	.L129
	ldr	r0, [fp, #-1196]
	bl	chip_add
	mov	r3, r0
	str	r3, [fp, #-1216]
	ldr	r3, [fp, #-1216]
	cmp	r3, #0
	beq	.L130
	ldr	r0, .L160+72
	bl	puts
	ldr	r0, [fp, #-1152]
	bl	free
	b	.L121
.L130:
	ldr	r3, [fp, #-1212]
	add	r3, r3, #1
	str	r3, [fp, #-1212]
	ldr	r4, [fp, #-1088]
	ldr	r3, .L160+28
	ldr	r5, [r3]
	ldr	r3, [fp, #-1088]
	ldr	r2, .L160+28
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	sub	r3, r5, r3
	add	r3, r4, r3
	mov	r2, r3
	ldr	r3, [fp, #-1196]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-1196]
	ldr	r2, [fp, #-1152]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-1196]
	ldr	r3, [r3, #44]
	str	r3, [fp, #-1192]
	b	.L131
.L134:
	ldr	r0, [fp, #-1192]
	bl	chip_add
	mov	r3, r0
	str	r3, [fp, #-1216]
	ldr	r3, [fp, #-1216]
	cmp	r3, #0
	beq	.L132
	ldr	r3, [fp, #-1192]
	ldr	r1, [r3]
	ldr	r3, [fp, #-1192]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-1192]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-1192]
	ldr	r3, [r3, #8]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L160+76
	bl	printf
	b	.L133
.L132:
	ldr	r3, [fp, #-1212]
	add	r3, r3, #1
	str	r3, [fp, #-1212]
.L133:
	ldr	r3, [fp, #-1192]
	ldr	r3, [r3, #44]
	str	r3, [fp, #-1192]
.L131:
	ldr	r3, [fp, #-1192]
	cmp	r3, #0
	bne	.L134
.L121:
	ldr	r0, [fp, #-1164]
	bl	readdir
	str	r0, [fp, #-1160]
	ldr	r3, [fp, #-1160]
	cmp	r3, #0
	bne	.L135
.L123:
	ldr	r0, [fp, #-1164]
	bl	closedir
	ldr	r3, [fp, #-1212]
	mov	r1, r3
	ldr	r0, .L160+80
	bl	printf
	ldr	r3, [fp, #-1212]
	cmp	r3, #0
	beq	.L158
	ldr	r0, .L160+84
	bl	printf
	ldr	r3, .L160+16
	ldr	r3, [r3]
	mov	r2, #384
	mov	r1, #65
	mov	r0, r3
	bl	open
	str	r0, [fp, #-1148]
	mov	r2, #4
	ldr	r1, .L160+88
	ldr	r0, [fp, #-1148]
	bl	write
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-1184]
	add	r3, r3, r2
	str	r3, [fp, #-1184]
	sub	r3, fp, #1184
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-1148]
	bl	write
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-1184]
	add	r3, r3, r2
	str	r3, [fp, #-1184]
	sub	r3, fp, #1200
	sub	r3, r3, #12
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-1148]
	bl	write
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-1184]
	add	r3, r3, r2
	str	r3, [fp, #-1184]
	ldr	r2, [fp, #-1212]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, #16
	str	r3, [fp, #-1172]
	ldr	r3, .L160+28
	ldr	r4, [r3]
	ldr	r3, .L160+28
	ldr	r2, [r3]
	ldr	r3, [fp, #-1172]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	sub	r3, r4, r3
	str	r3, [fp, #-1144]
	ldr	r2, [fp, #-1172]
	ldr	r3, [fp, #-1144]
	add	r3, r2, r3
	str	r3, [fp, #-1172]
	ldr	r3, [fp, #-1172]
	str	r3, [fp, #-1208]
	ldr	r3, .L160+92
	ldr	r3, [r3]
	str	r3, [fp, #-1196]
	b	.L138
.L141:
	ldr	r3, [fp, #-1196]
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-1148]
	bl	write
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-1184]
	add	r3, r3, r2
	str	r3, [fp, #-1184]
	ldr	r3, [fp, #-1196]
	add	r3, r3, #4
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-1148]
	bl	write
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-1184]
	add	r3, r3, r2
	str	r3, [fp, #-1184]
	ldr	r3, [fp, #-1196]
	add	r3, r3, #8
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-1148]
	bl	write
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-1184]
	add	r3, r3, r2
	str	r3, [fp, #-1184]
	ldr	r3, [fp, #-1196]
	add	r3, r3, #12
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-1148]
	bl	write
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-1184]
	add	r3, r3, r2
	str	r3, [fp, #-1184]
	ldr	r3, [fp, #-1196]
	ldr	r3, [r3, #32]
	ldr	r3, [r3, #40]
	cmp	r3, #0
	beq	.L139
	ldr	r3, [fp, #-1196]
	ldr	r3, [r3, #32]
	add	r3, r3, #40
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-1148]
	bl	write
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-1184]
	add	r3, r3, r2
	str	r3, [fp, #-1184]
	b	.L140
.L139:
	sub	r3, fp, #1184
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-1148]
	bl	write
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-1184]
	add	r3, r3, r2
	str	r3, [fp, #-1184]
	ldr	r3, [fp, #-1196]
	ldr	r3, [r3, #32]
	ldr	r2, [fp, #-1208]
	str	r2, [r3, #40]
	ldr	r3, [fp, #-1196]
	ldr	r3, [r3, #32]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-1208]
	add	r3, r2, r3
	str	r3, [fp, #-1208]
.L140:
	ldr	r3, [fp, #-1196]
	ldr	r3, [r3, #32]
	add	r3, r3, #16
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-1148]
	bl	write
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-1184]
	add	r3, r3, r2
	str	r3, [fp, #-1184]
	ldr	r3, [fp, #-1196]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-1196]
.L138:
	ldr	r3, [fp, #-1196]
	cmp	r3, #0
	bne	.L141
	mov	r3, #0
	str	r3, [fp, #-1216]
	sub	r3, fp, #1200
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-1148]
	bl	write
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-1184]
	add	r3, r3, r2
	str	r3, [fp, #-1184]
	ldr	r3, [fp, #-1144]
	cmp	r3, #0
	ble	.L142
	ldr	r3, [fp, #-1144]
	mov	r2, r3
	ldr	r1, [fp, #-1180]
	ldr	r0, [fp, #-1148]
	bl	write
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-1184]
	add	r3, r3, r2
	str	r3, [fp, #-1184]
.L142:
	ldr	r3, .L160+92
	ldr	r3, [r3]
	str	r3, [fp, #-1196]
	b	.L143
.L152:
	ldr	r3, [fp, #-1196]
	ldr	r3, [r3, #32]
	ldr	r3, [r3, #36]
	cmp	r3, #0
	bne	.L159
	ldr	r3, [fp, #-1196]
	ldr	r3, [r3, #32]
	mov	r2, #1
	str	r2, [r3, #36]
	ldr	r3, [fp, #-1196]
	ldr	r3, [r3, #32]
	ldr	r3, [r3, #20]
	str	r3, [fp, #-1152]
	ldr	r3, [fp, #-1196]
	ldr	r3, [r3, #32]
	ldr	r3, [r3, #16]
	str	r3, [fp, #-1140]
	ldr	r3, .L160+96
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L146
	ldr	r2, [fp, #-1140]
	ldr	r1, [fp, #-1152]
	ldr	r0, .L160+100
	bl	printf
.L146:
	ldr	r1, .L160+104
	ldr	r0, [fp, #-1152]
	bl	fopen
	str	r0, [fp, #-1136]
	ldr	r3, [fp, #-1136]
	cmp	r3, #0
	beq	.L147
	mov	r3, #0
	str	r3, [fp, #-1188]
	b	.L148
.L149:
	ldr	r2, [fp, #-1176]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-1148]
	bl	write
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-1184]
	add	r3, r3, r2
	str	r3, [fp, #-1184]
	ldr	r2, [fp, #-1188]
	ldr	r3, [fp, #-1176]
	add	r3, r2, r3
	str	r3, [fp, #-1188]
.L148:
	sub	r0, fp, #1024
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [fp, #-1136]
	mov	r2, #1024
	mov	r1, #1
	bl	fread
	mov	r3, r0
	str	r3, [fp, #-1176]
	ldr	r3, [fp, #-1176]
	cmp	r3, #0
	bgt	.L149
	ldr	r0, [fp, #-1136]
	bl	fclose
	ldr	r3, .L160+28
	ldr	r4, [r3]
	ldr	r3, .L160+28
	ldr	r2, [r3]
	ldr	r3, [fp, #-1188]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	sub	r3, r4, r3
	str	r3, [fp, #-1144]
	ldr	r2, [fp, #-1188]
	ldr	r3, [fp, #-1144]
	add	r2, r2, r3
	ldr	r3, [fp, #-1140]
	cmp	r2, r3
	beq	.L150
	ldr	r2, [fp, #-1188]
	ldr	r3, [fp, #-1144]
	add	r2, r2, r3
	ldr	r3, [fp, #-1152]
	ldr	r1, [fp, #-1140]
	ldr	r0, .L160+108
	bl	printf
	mvn	r3, #0
	str	r3, [fp, #-1216]
	b	.L151
.L150:
	ldr	r3, [fp, #-1144]
	cmp	r3, #0
	ble	.L145
	ldr	r3, [fp, #-1144]
	mov	r2, r3
	ldr	r1, [fp, #-1180]
	ldr	r0, [fp, #-1148]
	bl	write
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-1184]
	add	r3, r3, r2
	str	r3, [fp, #-1184]
	b	.L145
.L147:
	ldr	r1, [fp, #-1152]
	ldr	r0, .L160+112
	bl	printf
	mvn	r3, #0
	str	r3, [fp, #-1216]
	b	.L151
.L159:
	nop
.L145:
	ldr	r3, [fp, #-1196]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-1196]
.L143:
	ldr	r3, [fp, #-1196]
	cmp	r3, #0
	bne	.L152
.L151:
	ldr	r0, [fp, #-1148]
	bl	close
	ldr	r3, [fp, #-1208]
	ldr	r2, [fp, #-1184]
	cmp	r2, r3
	beq	.L153
	ldr	r3, [fp, #-1208]
	ldr	r2, [fp, #-1184]
	mov	r1, r3
	ldr	r0, .L160+116
	bl	printf
	mvn	r3, #0
	str	r3, [fp, #-1216]
	b	.L154
.L153:
	ldr	r3, .L160+96
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L154
	ldr	r1, [fp, #-1184]
	ldr	r0, .L160+120
	bl	printf
.L154:
	ldr	r3, [fp, #-1216]
	cmp	r3, #0
	beq	.L155
	ldr	r3, .L160+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	unlink
	b	.L137
.L155:
	ldr	r0, .L160+124
	bl	puts
	b	.L137
.L158:
	nop
.L137:
	ldr	r0, [fp, #-1180]
	bl	free
	bl	chip_deleteall
	ldr	r3, [fp, #-1216]
.L156:
	ldr	r2, .L160
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L157
	bl	__stack_chk_fail
.L157:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L161:
	.align	2
.L160:
	.word	.LC55
	.word	.LC33
	.word	input_dir
	.word	.LC34
	.word	output_file
	.word	.LC35
	.word	.LC36
	.word	page_size
	.word	.LC23
	.word	.LC37
	.word	.LC38
	.word	.LC26
	.word	.LC39
	.word	.LC29
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.word	.LC44
	.word	.LC45
	.word	.LC46
	.word	.LC47
	.word	.LC48
	.word	chip_list
	.word	verbose
	.word	.LC49
	.word	.LC24
	.word	.LC50
	.word	.LC51
	.word	.LC52
	.word	.LC53
	.word	.LC54
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
