	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_ARGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	$0, (%r12)
	movq	_buflen@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_quiet@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_no_erase@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	leaq	LJTI0_0(%rip), %r15
	movl	$0, -76(%rbp)                   ## 4-byte Folded Spill
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	jmp	LBB0_1
LBB0_25:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_tpl_uboot_args_part@GOTPCREL(%rip), %rcx
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, (%rcx)
	movl	%r13d, %ecx
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movl	%ecx, %r13d
	movl	%ebx, %edi
	movq	%r14, %rsi
	leaq	L_.str(%rip), %rdx
	callq	_getopt
                                        ## kill: def $eax killed $eax def $rax
	incl	%eax
	cmpl	$117, %eax
	ja	LBB0_10
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %ecx
	movslq	(%r15,%rax,4), %rax
	addq	%r15, %rax
	jmpq	*%rax
LBB0_23:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_errno@GOTPCREL(%rip), %rbx
	movl	$0, (%rbx)
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtoul
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rbx)
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%r13d, %ecx
	je	LBB0_1
## %bb.24:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_9
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_jffs2file@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_21:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_errno@GOTPCREL(%rip), %rbx
	movl	$0, (%rbx)
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtoul
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rbx)
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%r13d, %ecx
	je	LBB0_1
## %bb.22:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_9
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_quiet@GOTPCREL(%rip), %rax
	incq	(%rax)
	movl	%r13d, %ecx
	jmp	LBB0_1
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_jffs2dir@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_MAX_ARGS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	$1, %ecx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	1(%rcx), %rdx
	cmpq	$0, -8(%r12,%rcx,8)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	cmpq	%rax, %rcx
	movq	%rdx, %rcx
	jl	LBB0_13
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%r12,%rdx,8)
	movq	$0, -8(%r12,%rdx,8)
	movl	%r13d, %ecx
	jmp	LBB0_1
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_errno@GOTPCREL(%rip), %rbx
	movl	$0, (%rbx)
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtoul
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rbx)
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%r13d, %ecx
	je	LBB0_1
## %bb.20:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_9
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_errno@GOTPCREL(%rip), %rbx
	movl	$0, (%rbx)
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtoul
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	cmpl	$0, (%rbx)
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%r13d, %ecx
	je	LBB0_1
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_9
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, -76(%rbp)                   ## 4-byte Folded Spill
	movl	%r13d, %ecx
	jmp	LBB0_1
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_no_erase@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movl	%r13d, %ecx
	jmp	LBB0_1
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_errno@GOTPCREL(%rip), %rbx
	movl	$0, (%rbx)
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtoul
	movq	_jffs2_skip_bytes@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	cmpl	$0, (%rbx)
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%r13d, %ecx
	je	LBB0_1
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_fprintf
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_usage
	movl	%r13d, %ecx
	jmp	LBB0_1
LBB0_26:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subl	%eax, %ebx
	leaq	(%r14,%rax,8), %r14
	cmpl	$1, %ebx
	jg	LBB0_28
## %bb.27:
	xorl	%eax, %eax
	callq	_usage
LBB0_28:
	movq	(%r14), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_31
## %bb.29:
	cmpl	$2, %ebx
	jne	LBB0_31
## %bb.30:
	movq	8(%r14), %r15
	movl	$2, -52(%rbp)                   ## 4-byte Folded Spill
LBB0_69:
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_71
LBB0_31:
	movq	(%r14), %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_34
## %bb.32:
	cmpl	$2, %ebx
	jne	LBB0_34
## %bb.33:
	movq	8(%r14), %r15
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
LBB0_71:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_sync
	movq	(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_74
## %bb.72:
	addq	$8, %r12
	xorl	%r13d, %r13d
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_73:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_mtd_unlock
	movq	%rbx, %rdi
	callq	_mtd_erase
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_strcmp
	testq	%rax, %rax
	cmovel	%r14d, %r13d
	movq	(%r12), %rbx
	addq	$8, %r12
	testq	%rbx, %rbx
	jne	LBB0_73
LBB0_74:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	cmpl	$10, %eax
	ja	LBB0_94
## %bb.75:
	movl	%eax, %eax
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_80:
	testl	%r13d, %r13d
	jne	LBB0_82
## %bb.81:
	movq	%r15, %rdi
	callq	_mtd_unlock
LBB0_82:
	movq	%r15, %rdi
	callq	_mtd_erase
	jmp	LBB0_94
LBB0_34:
	movq	(%r14), %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_37
## %bb.35:
	cmpl	$2, %ebx
	jne	LBB0_37
## %bb.36:
	movq	8(%r14), %r15
	movl	$10, -52(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_69
LBB0_37:
	movq	(%r14), %rdi
	leaq	L_.str.9(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_40
## %bb.38:
	cmpl	$2, %ebx
	jne	LBB0_40
## %bb.39:
	movq	8(%r14), %r15
	movl	$4, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_69
LBB0_89:
	movq	%r15, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_mtd_fixtrx
	jmp	LBB0_94
LBB0_79:
	movq	%r15, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	callq	_mtd_dump
	jmp	LBB0_94
LBB0_76:
	testl	%r13d, %r13d
	jne	LBB0_94
## %bb.77:
	movq	%r15, %rdi
	callq	_mtd_unlock
	jmp	LBB0_94
LBB0_86:
	testl	%r13d, %r13d
	jne	LBB0_88
## %bb.87:
	movq	%r15, %rdi
	callq	_mtd_unlock
LBB0_88:
	movq	_imagefile@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_jffs2dir@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r15, %rdi
	callq	_mtd_write_jffs2
	jmp	LBB0_94
LBB0_83:
	testl	%r13d, %r13d
	jne	LBB0_85
## %bb.84:
	movq	%r15, %rdi
	callq	_mtd_unlock
LBB0_85:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	callq	_mtd_write
	jmp	LBB0_94
LBB0_91:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_mtd_fixseama
	jmp	LBB0_94
LBB0_93:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_mtd_fixwrgg
	jmp	LBB0_94
LBB0_92:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_mtd_fixwrg
	jmp	LBB0_94
LBB0_78:
	movq	_imagefile@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_mtd_verify
	jmp	LBB0_94
LBB0_90:
	movq	%r15, %rdi
	callq	_mtd_resetbc
LBB0_94:
	xorl	%eax, %eax
	callq	_sync
	cmpl	$0, -76(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_96
## %bb.95:
	xorl	%eax, %eax
	callq	_do_reboot
LBB0_96:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_99
## %bb.97:
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_40:
	movq	(%r14), %rdi
	leaq	L_.str.10(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_43
## %bb.41:
	cmpl	$2, %ebx
	jne	LBB0_43
## %bb.42:
	movq	8(%r14), %r15
	movl	$5, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_69
LBB0_43:
	movq	(%r14), %rdi
	leaq	L_.str.11(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_46
## %bb.44:
	cmpl	$2, %ebx
	jne	LBB0_46
## %bb.45:
	movq	8(%r14), %r15
	movl	$6, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_69
LBB0_46:
	movq	(%r14), %rdi
	leaq	L_.str.12(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_49
## %bb.47:
	cmpl	$2, %ebx
	jne	LBB0_49
## %bb.48:
	movq	8(%r14), %r15
	movl	$7, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_69
LBB0_49:
	movq	(%r14), %rdi
	leaq	L_.str.13(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_52
## %bb.50:
	cmpl	$3, %ebx
	jne	LBB0_52
## %bb.51:
	movq	8(%r14), %rax
	movq	_imagefile@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	16(%r14), %r15
	movl	$8, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_69
LBB0_52:
	movq	(%r14), %rdi
	leaq	L_.str.14(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_55
## %bb.53:
	cmpl	$2, %ebx
	jne	LBB0_55
## %bb.54:
	movq	8(%r14), %r15
	movl	$9, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_69
LBB0_55:
	movq	(%r14), %rdi
	leaq	L_.str.15(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_65
## %bb.56:
	cmpl	$3, %ebx
	jne	LBB0_65
## %bb.57:
	movq	8(%r14), %rdi
	movq	16(%r14), %r15
	leaq	L_.str.16(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_58
## %bb.59:
	movq	8(%r14), %rax
	movq	_imagefile@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	8(%r14), %rdi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_60
## %bb.98:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_imagefile@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.18(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_65:
	movq	(%r14), %rdi
	leaq	L_.str.21(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_70
## %bb.66:
	cmpl	$3, %ebx
	jne	LBB0_70
## %bb.67:
	movq	8(%r14), %rax
	movq	16(%r14), %r15
	movq	_imagefile@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	%r15, %rdi
	callq	_mtd_check
	testl	%eax, %eax
	je	LBB0_61
## %bb.68:
	movl	$3, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_69
LBB0_70:
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_usage
	movl	$-1, -52(%rbp)                  ## 4-byte Folded Spill
	xorl	%r15d, %r15d
	jmp	LBB0_71
LBB0_58:
	leaq	L_.str.17(%rip), %rax
	movq	_imagefile@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%ebx, %ebx
LBB0_60:
	movq	%r15, %rdi
	callq	_mtd_check
	testl	%eax, %eax
	je	LBB0_61
## %bb.63:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_image_check
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
	orl	%r13d, %eax
	jne	LBB0_71
## %bb.64:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.20(%rip), %rsi
	jmp	LBB0_62
LBB0_99:
	callq	___stack_chk_fail
LBB0_61:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.19(%rip), %rsi
LBB0_62:
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_1, LBB0_1-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
LJTI0_0:
	.long	L0_0_set_26
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_23
	.long	L0_0_set_16
	.long	L0_0_set_12
	.long	L0_0_set_1
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_5
	.long	L0_0_set_10
	.long	L0_0_set_19
	.long	L0_0_set_10
	.long	L0_0_set_4
	.long	L0_0_set_21
	.long	L0_0_set_17
	.long	L0_0_set_11
	.long	L0_0_set_3
	.long	L0_0_set_7
	.long	L0_0_set_25
.set L0_1_set_80, LBB0_80-LJTI0_1
.set L0_1_set_83, LBB0_83-LJTI0_1
.set L0_1_set_76, LBB0_76-LJTI0_1
.set L0_1_set_86, LBB0_86-LJTI0_1
.set L0_1_set_89, LBB0_89-LJTI0_1
.set L0_1_set_91, LBB0_91-LJTI0_1
.set L0_1_set_92, LBB0_92-LJTI0_1
.set L0_1_set_93, LBB0_93-LJTI0_1
.set L0_1_set_78, LBB0_78-LJTI0_1
.set L0_1_set_79, LBB0_79-LJTI0_1
.set L0_1_set_90, LBB0_90-LJTI0_1
LJTI0_1:
	.long	L0_1_set_80
	.long	L0_1_set_83
	.long	L0_1_set_76
	.long	L0_1_set_86
	.long	L0_1_set_89
	.long	L0_1_set_91
	.long	L0_1_set_92
	.long	L0_1_set_93
	.long	L0_1_set_78
	.long	L0_1_set_79
	.long	L0_1_set_90
	.end_data_region
                                        ## -- End function
	.comm	_MAX_ARGS,4,2                   ## @MAX_ARGS
	.comm	_buflen,8,3                     ## @buflen
	.comm	_quiet,8,3                      ## @quiet
	.comm	_no_erase,4,2                   ## @no_erase
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"frnqe:d:s:j:p:o:c:t:l:"

	.comm	_optarg,8,3                     ## @optarg
	.comm	_jffs2file,8,3                  ## @jffs2file
	.comm	_errno,4,2                      ## @errno
	.comm	_jffs2_skip_bytes,8,3           ## @jffs2_skip_bytes
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"-s: illegal numeric string\n"

	.comm	_jffs2dir,8,3                   ## @jffs2dir
L_.str.2:                               ## @.str.2
	.asciz	"-p: illegal numeric string\n"

L_.str.3:                               ## @.str.3
	.asciz	"-l: illegal numeric string\n"

L_.str.4:                               ## @.str.4
	.asciz	"-o: illegal numeric string\n"

L_.str.5:                               ## @.str.5
	.asciz	"-c: illegal numeric string\n"

	.comm	_tpl_uboot_args_part,8,3        ## @tpl_uboot_args_part
	.comm	_optind,8,3                     ## @optind
L_.str.6:                               ## @.str.6
	.asciz	"unlock"

L_.str.7:                               ## @.str.7
	.asciz	"erase"

L_.str.8:                               ## @.str.8
	.asciz	"resetbc"

L_.str.9:                               ## @.str.9
	.asciz	"fixtrx"

L_.str.10:                              ## @.str.10
	.asciz	"fixseama"

L_.str.11:                              ## @.str.11
	.asciz	"fixwrg"

L_.str.12:                              ## @.str.12
	.asciz	"fixwrgg"

L_.str.13:                              ## @.str.13
	.asciz	"verify"

	.comm	_imagefile,8,3                  ## @imagefile
L_.str.14:                              ## @.str.14
	.asciz	"dump"

L_.str.15:                              ## @.str.15
	.asciz	"write"

L_.str.16:                              ## @.str.16
	.asciz	"-"

L_.str.17:                              ## @.str.17
	.asciz	"<stdin>"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.18:                              ## @.str.18
	.asciz	"Couldn't open image file: %s!\n"

L_.str.19:                              ## @.str.19
	.asciz	"Can't open device for writing!\n"

L_.str.20:                              ## @.str.20
	.asciz	"Image check failed.\n"

L_.str.21:                              ## @.str.21
	.asciz	"jffs2write"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #48
	mov	x23, x1
	mov	x24, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAX_ARGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_ARGS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x26, x9, x8
	mov	sp, x26
	stur	wzr, [x29, #-92]                ; 4-byte Folded Spill
	mov	w8, #0
	stp	xzr, xzr, [x29, #-112]          ; 16-byte Folded Spill
	stp	xzr, xzr, [x29, #-128]          ; 16-byte Folded Spill
	str	xzr, [x26]
Lloh8:
	adrp	x9, _buflen@GOTPAGE
Lloh9:
	ldr	x9, [x9, _buflen@GOTPAGEOFF]
Lloh10:
	adrp	x19, _quiet@GOTPAGE
Lloh11:
	ldr	x19, [x19, _quiet@GOTPAGEOFF]
Lloh12:
	adrp	x10, _no_erase@GOTPAGE
Lloh13:
	ldr	x10, [x10, _no_erase@GOTPAGEOFF]
Lloh14:
	adrp	x25, l_.str@PAGE
Lloh15:
	add	x25, x25, l_.str@PAGEOFF
Lloh16:
	str	xzr, [x9]
	str	xzr, [x19]
Lloh17:
	adrp	x22, lJTI0_0@PAGE
Lloh18:
	add	x22, x22, lJTI0_0@PAGEOFF
Lloh19:
	adrp	x20, _errno@GOTPAGE
Lloh20:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
Lloh21:
	adrp	x21, _optarg@GOTPAGE
Lloh22:
	ldr	x21, [x21, _optarg@GOTPAGEOFF]
Lloh23:
	adrp	x27, _stderr@GOTPAGE
Lloh24:
	ldr	x27, [x27, _stderr@GOTPAGEOFF]
Lloh25:
	str	wzr, [x10]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
Lloh26:
	adrp	x9, _tpl_uboot_args_part@GOTPAGE
Lloh27:
	ldr	x9, [x9, _tpl_uboot_args_part@GOTPAGEOFF]
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	x8, [x9]
	mov	x8, x28
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	mov	x28, x8
	mov	x0, x24
	mov	x1, x23
	mov	x2, x25
	bl	_getopt
	add	w9, w0, #1
	cmp	w9, #117
	b.hi	LBB0_24
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #1
	adr	x10, LBB0_1
	ldrb	w11, [x22, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	wzr, [x20]
	ldr	x0, [x21]
	mov	w1, #0
	mov	w2, #0
	bl	_strtoul
	stur	x0, [x29, #-104]                ; 8-byte Folded Spill
	ldr	w9, [x20]
	mov	x8, x28
	cbz	w9, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x27]
Lloh28:
	adrp	x1, l_.str.5@PAGE
Lloh29:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_23
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
Lloh30:
	adrp	x9, _jffs2file@GOTPAGE
Lloh31:
	ldr	x9, [x9, _jffs2file@GOTPAGEOFF]
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	wzr, [x20]
	ldr	x0, [x21]
	mov	w1, #0
	mov	w2, #0
	bl	_strtoul
	stur	x0, [x29, #-112]                ; 8-byte Folded Spill
	ldr	w9, [x20]
	mov	x8, x28
	cbz	w9, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x27]
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_23
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	mov	x8, x28
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
Lloh34:
	adrp	x9, _jffs2dir@GOTPAGE
Lloh35:
	ldr	x9, [x9, _jffs2dir@GOTPAGEOFF]
	b	LBB0_2
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, #0
Lloh36:
	adrp	x9, _MAX_ARGS@GOTPAGE
Lloh37:
	ldr	x9, [x9, _MAX_ARGS@GOTPAGEOFF]
Lloh38:
	ldrsw	x9, [x9]
LBB0_13:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x10, [x26, x8, lsl #3]
	add	x8, x8, #1
	cmp	x10, #0
	ccmp	x8, x9, #0, ne
	b.lt	LBB0_13
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x21]
	add	x8, x26, x8, lsl #3
	stp	x9, xzr, [x8, #-8]
	mov	x8, x28
	b	LBB0_3
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	str	wzr, [x20]
	ldr	x0, [x21]
	mov	w1, #0
	mov	w2, #0
	bl	_strtoul
	stur	x0, [x29, #-128]                ; 8-byte Folded Spill
	ldr	w9, [x20]
	mov	x8, x28
	cbz	w9, LBB0_3
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x27]
Lloh39:
	adrp	x1, l_.str.3@PAGE
Lloh40:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_23
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	str	wzr, [x20]
	ldr	x0, [x21]
	mov	w1, #0
	mov	w2, #0
	bl	_strtoul
	stur	x0, [x29, #-120]                ; 8-byte Folded Spill
	ldr	w9, [x20]
	mov	x8, x28
	cbz	w9, LBB0_3
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x27]
Lloh41:
	adrp	x1, l_.str.2@PAGE
Lloh42:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_23
LBB0_19:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #1
	stur	w8, [x29, #-92]                 ; 4-byte Folded Spill
	mov	x8, x28
	b	LBB0_3
LBB0_20:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh43:
	adrp	x8, _no_erase@GOTPAGE
Lloh44:
	ldr	x8, [x8, _no_erase@GOTPAGEOFF]
	mov	w9, #1
Lloh45:
	str	w9, [x8]
	mov	x8, x28
	b	LBB0_3
LBB0_21:                                ;   in Loop: Header=BB0_3 Depth=1
	str	wzr, [x20]
	ldr	x0, [x21]
	mov	w1, #0
	mov	w2, #0
	bl	_strtoul
Lloh46:
	adrp	x8, _jffs2_skip_bytes@GOTPAGE
Lloh47:
	ldr	x8, [x8, _jffs2_skip_bytes@GOTPAGEOFF]
Lloh48:
	str	x0, [x8]
	ldr	w9, [x20]
	mov	x8, x28
	cbz	w9, LBB0_3
; %bb.22:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x27]
Lloh49:
	adrp	x1, l_.str.1@PAGE
Lloh50:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_23:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_fprintf
LBB0_24:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_usage
	mov	x8, x28
	b	LBB0_3
LBB0_25:
Lloh51:
	adrp	x8, _optind@GOTPAGE
Lloh52:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh53:
	ldr	x8, [x8]
	sub	w20, w24, w8
	add	x19, x23, x8, lsl #3
	cmp	w20, #1
	b.gt	LBB0_27
; %bb.26:
	bl	_usage
LBB0_27:
	ldr	x0, [x19]
Lloh54:
	adrp	x1, l_.str.6@PAGE
Lloh55:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_strcmp
	cmp	x0, #0
	ccmp	w20, #2, #0, eq
	b.eq	LBB0_36
; %bb.28:
	ldr	x0, [x19]
Lloh56:
	adrp	x1, l_.str.7@PAGE
Lloh57:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_strcmp
	cmp	x0, #0
	ccmp	w20, #2, #0, eq
	b.eq	LBB0_37
; %bb.29:
	ldr	x0, [x19]
Lloh58:
	adrp	x1, l_.str.8@PAGE
Lloh59:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_strcmp
	cmp	x0, #0
	ccmp	w20, #2, #0, eq
	b.eq	LBB0_38
; %bb.30:
	ldr	x0, [x19]
Lloh60:
	adrp	x1, l_.str.9@PAGE
Lloh61:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_strcmp
	cmp	x0, #0
	ccmp	w20, #2, #0, eq
	b.eq	LBB0_39
; %bb.31:
	ldr	x0, [x19]
Lloh62:
	adrp	x1, l_.str.10@PAGE
Lloh63:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_strcmp
	cmp	x0, #0
	ccmp	w20, #2, #0, eq
	b.eq	LBB0_40
; %bb.32:
	ldr	x0, [x19]
Lloh64:
	adrp	x1, l_.str.11@PAGE
Lloh65:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_strcmp
	cmp	x0, #0
	ccmp	w20, #2, #0, eq
	b.eq	LBB0_41
; %bb.33:
	ldr	x0, [x19]
Lloh66:
	adrp	x1, l_.str.12@PAGE
Lloh67:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_42
; %bb.34:
	cmp	w20, #2
	b.ne	LBB0_42
; %bb.35:
	mov	w24, #0
	ldr	x23, [x19, #8]
	mov	w20, #7
	b	LBB0_62
LBB0_36:
	mov	w24, #0
	ldr	x23, [x19, #8]
	mov	w20, #2
	b	LBB0_62
LBB0_37:
	mov	w24, #0
	mov	w20, #0
	ldr	x23, [x19, #8]
	b	LBB0_62
LBB0_38:
	mov	w24, #0
	ldr	x23, [x19, #8]
	mov	w20, #10
	b	LBB0_62
LBB0_39:
	mov	w24, #0
	ldr	x23, [x19, #8]
	mov	w20, #4
	b	LBB0_62
LBB0_40:
	mov	w24, #0
	ldr	x23, [x19, #8]
	mov	w20, #5
	b	LBB0_62
LBB0_41:
	mov	w24, #0
	ldr	x23, [x19, #8]
	mov	w20, #6
	b	LBB0_62
LBB0_42:
	ldr	x0, [x19]
Lloh68:
	adrp	x1, l_.str.13@PAGE
Lloh69:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_45
; %bb.43:
	cmp	w20, #3
	b.ne	LBB0_45
; %bb.44:
	mov	w24, #0
	ldr	x8, [x19, #8]
Lloh70:
	adrp	x9, _imagefile@GOTPAGE
Lloh71:
	ldr	x9, [x9, _imagefile@GOTPAGEOFF]
Lloh72:
	str	x8, [x9]
	ldr	x23, [x19, #16]
	mov	w20, #8
	b	LBB0_62
LBB0_45:
	ldr	x0, [x19]
Lloh73:
	adrp	x1, l_.str.14@PAGE
Lloh74:
	add	x1, x1, l_.str.14@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_48
; %bb.46:
	cmp	w20, #2
	b.ne	LBB0_48
; %bb.47:
	mov	w24, #0
	ldr	x23, [x19, #8]
	mov	w20, #9
	b	LBB0_62
LBB0_48:
	ldr	x0, [x19]
Lloh75:
	adrp	x1, l_.str.15@PAGE
Lloh76:
	add	x1, x1, l_.str.15@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_53
; %bb.49:
	cmp	w20, #3
	b.ne	LBB0_53
; %bb.50:
	ldp	x0, x23, [x19, #8]
Lloh77:
	adrp	x1, l_.str.16@PAGE
Lloh78:
	add	x1, x1, l_.str.16@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_58
; %bb.51:
Lloh79:
	adrp	x20, _imagefile@GOTPAGE
Lloh80:
	ldr	x20, [x20, _imagefile@GOTPAGEOFF]
	ldr	x8, [x19, #8]
	str	x8, [x20]
	ldr	x0, [x19, #8]
Lloh81:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh82:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh83:
	ldr	w1, [x8]
	bl	_open
	mov	x24, x0
	tbz	w0, #31, LBB0_59
; %bb.52:
	ldr	w0, [x27]
	ldr	x8, [x20]
	str	x8, [sp, #-16]!
Lloh84:
	adrp	x1, l_.str.18@PAGE
Lloh85:
	add	x1, x1, l_.str.18@PAGEOFF
	bl	_fprintf
	add	sp, sp, #16
	mov	w0, #1
	bl	_exit
LBB0_53:
	ldr	x0, [x19]
Lloh86:
	adrp	x1, l_.str.21@PAGE
Lloh87:
	add	x1, x1, l_.str.21@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_57
; %bb.54:
	cmp	w20, #3
	b.ne	LBB0_57
; %bb.55:
	ldp	x8, x23, [x19, #8]
Lloh88:
	adrp	x9, _imagefile@GOTPAGE
Lloh89:
	ldr	x9, [x9, _imagefile@GOTPAGEOFF]
Lloh90:
	str	x8, [x9]
	mov	x0, x23
	bl	_mtd_check
	cbz	w0, LBB0_91
; %bb.56:
	mov	w24, #0
	mov	w20, #3
	b	LBB0_62
LBB0_57:
	bl	_usage
	mov	w24, #0
	mov	x23, #0
	mov	w20, #-1
	b	LBB0_62
LBB0_58:
	mov	w24, #0
Lloh91:
	adrp	x8, _imagefile@GOTPAGE
Lloh92:
	ldr	x8, [x8, _imagefile@GOTPAGEOFF]
Lloh93:
	adrp	x9, l_.str.17@PAGE
Lloh94:
	add	x9, x9, l_.str.17@PAGEOFF
Lloh95:
	str	x9, [x8]
LBB0_59:
	mov	x0, x23
	bl	_mtd_check
	cbz	w0, LBB0_91
; %bb.60:
	mov	x0, x24
	mov	x1, x23
	bl	_image_check
	orr	w8, w0, w28
	cbz	w8, LBB0_92
; %bb.61:
	mov	w20, #1
LBB0_62:
	bl	_sync
	ldr	x25, [x26]
	cbz	x25, LBB0_66
; %bb.63:
	mov	w19, #0
	add	x21, x26, #8
LBB0_64:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	bl	_mtd_unlock
	mov	x0, x25
	bl	_mtd_erase
	mov	x0, x25
	mov	x1, x23
	bl	_strcmp
	cmp	x0, #0
	csinc	w19, w19, wzr, ne
	ldr	x25, [x21], #8
	cbnz	x25, LBB0_64
; %bb.65:
	cmp	w20, #10
	b.ls	LBB0_67
	b	LBB0_86
LBB0_66:
	mov	w19, #0
	cmp	w20, #10
	b.hi	LBB0_86
LBB0_67:
	mov	w8, w20
Lloh96:
	adrp	x9, lJTI0_1@PAGE
Lloh97:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_68
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_68:
	cbnz	w19, LBB0_70
; %bb.69:
	mov	x0, x23
	bl	_mtd_unlock
LBB0_70:
	mov	x0, x23
	bl	_mtd_erase
	b	LBB0_86
LBB0_71:
	mov	x0, x23
	ldp	x1, x2, [x29, #-112]            ; 16-byte Folded Reload
	bl	_mtd_fixtrx
	b	LBB0_86
LBB0_72:
	cbnz	w19, LBB0_86
; %bb.73:
	mov	x0, x23
	bl	_mtd_unlock
	b	LBB0_86
LBB0_74:
	mov	x0, x23
	ldur	x1, [x29, #-112]                ; 8-byte Folded Reload
	ldur	x2, [x29, #-128]                ; 8-byte Folded Reload
	bl	_mtd_dump
	b	LBB0_86
LBB0_75:
	cbnz	w19, LBB0_77
; %bb.76:
	mov	x0, x23
	bl	_mtd_unlock
LBB0_77:
	mov	x0, x24
	mov	x1, x23
	mov	x2, #0
	ldur	x3, [x29, #-120]                ; 8-byte Folded Reload
	bl	_mtd_write
	b	LBB0_86
LBB0_78:
	cbnz	w19, LBB0_80
; %bb.79:
	mov	x0, x23
	bl	_mtd_unlock
LBB0_80:
Lloh98:
	adrp	x8, _imagefile@GOTPAGE
Lloh99:
	ldr	x8, [x8, _imagefile@GOTPAGEOFF]
Lloh100:
	ldr	x1, [x8]
Lloh101:
	adrp	x8, _jffs2dir@GOTPAGE
Lloh102:
	ldr	x8, [x8, _jffs2dir@GOTPAGEOFF]
Lloh103:
	ldr	x2, [x8]
	mov	x0, x23
	bl	_mtd_write_jffs2
	b	LBB0_86
LBB0_81:
	mov	x0, x23
	mov	w1, #0
	ldur	x2, [x29, #-104]                ; 8-byte Folded Reload
	bl	_mtd_fixwrgg
	b	LBB0_86
LBB0_82:
	mov	x0, x23
	mov	w1, #0
	ldur	x2, [x29, #-104]                ; 8-byte Folded Reload
	bl	_mtd_fixseama
	b	LBB0_86
LBB0_83:
	mov	x0, x23
	mov	w1, #0
	ldur	x2, [x29, #-104]                ; 8-byte Folded Reload
	bl	_mtd_fixwrg
	b	LBB0_86
LBB0_84:
Lloh104:
	adrp	x8, _imagefile@GOTPAGE
Lloh105:
	ldr	x8, [x8, _imagefile@GOTPAGEOFF]
Lloh106:
	ldr	x1, [x8]
	mov	x0, x23
	bl	_mtd_verify
	b	LBB0_86
LBB0_85:
	mov	x0, x23
	bl	_mtd_resetbc
LBB0_86:
	bl	_sync
	ldur	w8, [x29, #-92]                 ; 4-byte Folded Reload
	cbz	w8, LBB0_88
; %bb.87:
	bl	_do_reboot
LBB0_88:
	ldur	x8, [x29, #-88]
Lloh107:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh108:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh109:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_90
; %bb.89:
	mov	w0, #0
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_90:
	bl	___stack_chk_fail
LBB0_91:
	ldr	w0, [x27]
Lloh110:
	adrp	x1, l_.str.19@PAGE
Lloh111:
	add	x1, x1, l_.str.19@PAGEOFF
	b	LBB0_93
LBB0_92:
	ldr	w0, [x27]
Lloh112:
	adrp	x1, l_.str.20@PAGE
Lloh113:
	add	x1, x1, l_.str.20@PAGEOFF
LBB0_93:
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh25
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh16
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotStr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotStr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpLdrGotStr	Lloh70, Lloh71, Lloh72
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGot	Lloh79, Lloh80
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpAdd	Lloh86, Lloh87
	.loh AdrpLdrGotStr	Lloh88, Lloh89, Lloh90
	.loh AdrpAdd	Lloh93, Lloh94
	.loh AdrpLdrGotStr	Lloh91, Lloh92, Lloh95
	.loh AdrpAdd	Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpAdd	Lloh110, Lloh111
	.loh AdrpAdd	Lloh112, Lloh113
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_25-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_3-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_7-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_15-LBB0_1)>>2
	.byte	(LBB0_24-LBB0_1)>>2
	.byte	(LBB0_20-LBB0_1)>>2
	.byte	(LBB0_8-LBB0_1)>>2
	.byte	(LBB0_17-LBB0_1)>>2
	.byte	(LBB0_10-LBB0_1)>>2
	.byte	(LBB0_19-LBB0_1)>>2
	.byte	(LBB0_21-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
lJTI0_1:
	.byte	(LBB0_68-LBB0_68)>>2
	.byte	(LBB0_75-LBB0_68)>>2
	.byte	(LBB0_72-LBB0_68)>>2
	.byte	(LBB0_78-LBB0_68)>>2
	.byte	(LBB0_71-LBB0_68)>>2
	.byte	(LBB0_82-LBB0_68)>>2
	.byte	(LBB0_83-LBB0_68)>>2
	.byte	(LBB0_81-LBB0_68)>>2
	.byte	(LBB0_84-LBB0_68)>>2
	.byte	(LBB0_74-LBB0_68)>>2
	.byte	(LBB0_85-LBB0_68)>>2
                                        ; -- End function
	.comm	_MAX_ARGS,4,2                   ; @MAX_ARGS
	.comm	_buflen,8,3                     ; @buflen
	.comm	_quiet,8,3                      ; @quiet
	.comm	_no_erase,4,2                   ; @no_erase
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"frnqe:d:s:j:p:o:c:t:l:"

	.comm	_optarg,8,3                     ; @optarg
	.comm	_jffs2file,8,3                  ; @jffs2file
	.comm	_errno,4,2                      ; @errno
	.comm	_jffs2_skip_bytes,8,3           ; @jffs2_skip_bytes
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"-s: illegal numeric string\n"

	.comm	_jffs2dir,8,3                   ; @jffs2dir
l_.str.2:                               ; @.str.2
	.asciz	"-p: illegal numeric string\n"

l_.str.3:                               ; @.str.3
	.asciz	"-l: illegal numeric string\n"

l_.str.4:                               ; @.str.4
	.asciz	"-o: illegal numeric string\n"

l_.str.5:                               ; @.str.5
	.asciz	"-c: illegal numeric string\n"

	.comm	_tpl_uboot_args_part,8,3        ; @tpl_uboot_args_part
	.comm	_optind,8,3                     ; @optind
l_.str.6:                               ; @.str.6
	.asciz	"unlock"

l_.str.7:                               ; @.str.7
	.asciz	"erase"

l_.str.8:                               ; @.str.8
	.asciz	"resetbc"

l_.str.9:                               ; @.str.9
	.asciz	"fixtrx"

l_.str.10:                              ; @.str.10
	.asciz	"fixseama"

l_.str.11:                              ; @.str.11
	.asciz	"fixwrg"

l_.str.12:                              ; @.str.12
	.asciz	"fixwrgg"

l_.str.13:                              ; @.str.13
	.asciz	"verify"

	.comm	_imagefile,8,3                  ; @imagefile
l_.str.14:                              ; @.str.14
	.asciz	"dump"

l_.str.15:                              ; @.str.15
	.asciz	"write"

l_.str.16:                              ; @.str.16
	.asciz	"-"

l_.str.17:                              ; @.str.17
	.asciz	"<stdin>"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.18:                              ; @.str.18
	.asciz	"Couldn't open image file: %s!\n"

l_.str.19:                              ; @.str.19
	.asciz	"Can't open device for writing!\n"

l_.str.20:                              ; @.str.20
	.asciz	"Image check failed.\n"

l_.str.21:                              ; @.str.21
	.asciz	"jffs2write"

.subsections_via_symbols
