	.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	$40, %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	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%rsi), %rdi
	callq	_basename
	movq	_progname@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	leaq	L_.str(%rip), %r12
	leaq	LJTI0_0(%rip), %r15
	movq	_optarg@GOTPCREL(%rip), %r13
	jmp	LBB0_2
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movq	_kernel_size@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_getopt
                                        ## kill: def $eax killed $eax def $rax
	leal	-66(%rax), %ecx
	cmpl	$52, %ecx
	ja	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r15,%rcx,4), %rax
	addq	%r15, %rax
	jmpq	*%rax
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movq	_board_id@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_2
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movq	_rootfs_size@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_2
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movq	_ifname@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_2
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movq	_ofname@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_2
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movq	_region@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_2
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movq	_version@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_2
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-1, %eax
	je	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %edi
	callq	_usage
	jmp	LBB0_2
LBB0_14:
	movq	_board_id@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_21
## %bb.15:
	movq	_rootfs_size@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	je	LBB0_22
## %bb.16:
	movq	_kernel_size@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_23
## %bb.17:
	movq	_ifname@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.18:
	movq	_ofname@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_25
## %bb.19:
	leaq	-64(%rbp), %rsi
	callq	_stat
	testl	%eax, %eax
	je	LBB0_26
## %bb.20:
	movq	(%rbx), %rsi
	leaq	L_.str.6(%rip), %rdi
	callq	_ERRS
	jmp	LBB0_35
LBB0_21:
	leaq	L_.str.1(%rip), %rdi
	callq	_ERR
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_35
LBB0_22:
	leaq	L_.str.2(%rip), %rdi
	callq	_ERR
	jmp	LBB0_35
LBB0_23:
	leaq	L_.str.3(%rip), %rdi
	callq	_ERR
	jmp	LBB0_35
LBB0_24:
	leaq	L_.str.4(%rip), %rdi
	callq	_ERR
	jmp	LBB0_35
LBB0_25:
	leaq	L_.str.5(%rip), %rdi
	callq	_ERR
	jmp	LBB0_35
LBB0_26:
	movl	-64(%rbp), %ebx
	movq	_DNI_HDR_LEN@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	leal	(%rbx,%rax), %r12d
	incl	%r12d
	movl	%r12d, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_32
## %bb.27:
	movq	%rax, %r14
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	(%r13), %edx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	(%r13), %esi
	movq	_board_id@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_version@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	_region@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	leaq	L_.str.8(%rip), %rdx
	movq	%r14, %rdi
	movq	_kernel_size@GOTPCREL(%rip), %rax
	pushq	(%rax)
	movq	_rootfs_size@GOTPCREL(%rip), %rax
	pushq	(%rax)
	callq	_snprintf
	addq	$16, %rsp
	movslq	(%r13), %rax
	movb	$18, -2(%rax,%r14)
	movslq	(%r13), %rax
	movb	$50, -1(%rax,%r14)
	movq	_ifname@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	leaq	L_.str.9(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_33
## %bb.28:
	movl	%r12d, -68(%rbp)                ## 4-byte Spill
	movq	_errno@GOTPCREL(%rip), %r12
	movq	$0, (%r12)
	movslq	(%r13), %rcx
	movq	%r14, %rdi
	addq	%rcx, %rdi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	$1, %edx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rcx
	callq	_fread
	cmpq	$0, (%r12)
	je	LBB0_36
## %bb.29:
	movq	_ifname@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.11(%rip), %rdi
LBB0_30:
	callq	_ERRS
LBB0_31:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_fclose
	jmp	LBB0_34
LBB0_32:
	leaq	L_.str.7(%rip), %rdi
	callq	_ERR
	jmp	LBB0_35
LBB0_33:
	movq	(%rbx), %rsi
	leaq	L_.str.10(%rip), %rdi
	callq	_ERRS
LBB0_34:
	movq	%r14, %rdi
	callq	_free
LBB0_35:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_36:
	addl	(%r13), %ebx
	testl	%ebx, %ebx
	jle	LBB0_39
## %bb.37:
	movl	%ebx, %eax
	cmpl	$8, %ebx
	movq	_ofname@GOTPCREL(%rip), %r13
	jae	LBB0_40
## %bb.38:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	jmp	LBB0_47
LBB0_39:
	movb	$-1, %dl
	movq	_ofname@GOTPCREL(%rip), %r13
	jmp	LBB0_49
LBB0_40:
	movl	%eax, %ecx
	andl	$-8, %ecx
	leaq	-8(%rcx), %rsi
	movq	%rsi, %rdx
	shrq	$3, %rdx
	incq	%rdx
	testq	%rsi, %rsi
	je	LBB0_43
## %bb.41:
	movq	%rdx, %rdi
	andq	$-2, %rdi
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	pxor	%xmm1, %xmm1
LBB0_42:                                ## =>This Inner Loop Header: Depth=1
	pmovzxbd	(%r14,%rsi), %xmm2              ## xmm2 = mem[0],zero,zero,zero,mem[1],zero,zero,zero,mem[2],zero,zero,zero,mem[3],zero,zero,zero
	paddd	%xmm0, %xmm2
	pmovzxbd	4(%r14,%rsi), %xmm3             ## xmm3 = mem[0],zero,zero,zero,mem[1],zero,zero,zero,mem[2],zero,zero,zero,mem[3],zero,zero,zero
	paddd	%xmm1, %xmm3
	pmovzxbd	8(%r14,%rsi), %xmm0             ## xmm0 = mem[0],zero,zero,zero,mem[1],zero,zero,zero,mem[2],zero,zero,zero,mem[3],zero,zero,zero
	pmovzxbd	12(%r14,%rsi), %xmm1            ## xmm1 = mem[0],zero,zero,zero,mem[1],zero,zero,zero,mem[2],zero,zero,zero,mem[3],zero,zero,zero
	paddd	%xmm2, %xmm0
	paddd	%xmm3, %xmm1
	addq	$16, %rsi
	addq	$-2, %rdi
	jne	LBB0_42
	jmp	LBB0_44
LBB0_43:
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	pxor	%xmm1, %xmm1
LBB0_44:
	testb	$1, %dl
	je	LBB0_46
## %bb.45:
	pmovzxbd	(%r14,%rsi), %xmm2              ## xmm2 = mem[0],zero,zero,zero,mem[1],zero,zero,zero,mem[2],zero,zero,zero,mem[3],zero,zero,zero
	paddd	%xmm2, %xmm0
	pmovzxbd	4(%r14,%rsi), %xmm2             ## xmm2 = mem[0],zero,zero,zero,mem[1],zero,zero,zero,mem[2],zero,zero,zero,mem[3],zero,zero,zero
	paddd	%xmm2, %xmm1
LBB0_46:
	paddd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	cmpq	%rax, %rcx
	je	LBB0_48
LBB0_47:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14,%rcx), %esi
	addl	%esi, %edx
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_47
LBB0_48:
	notb	%dl
LBB0_49:
	movslq	%ebx, %rax
	movb	%dl, (%r14,%rax)
	movq	(%r13), %rdi
	leaq	L_.str.12(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_52
## %bb.50:
	movq	%rax, %rbx
	movq	_errno@GOTPCREL(%rip), %r12
	movq	$0, (%r12)
	movq	%r14, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movl	$1, %edx
	movq	%rax, %rcx
	callq	_fwrite
	cmpq	$0, (%r12)
	je	LBB0_53
## %bb.51:
	movq	(%r13), %rsi
	leaq	L_.str.14(%rip), %rdi
	callq	_ERRS
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %r12
	jmp	LBB0_54
LBB0_52:
	movq	(%r13), %rsi
	leaq	L_.str.13(%rip), %rdi
	jmp	LBB0_30
LBB0_53:
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %r12
	movl	(%r12), %r15d
	movq	%rbx, %rdi
	callq	_fflush
LBB0_54:
	movq	%rbx, %rdi
	callq	_fclose
	cmpl	(%r12), %r15d
	je	LBB0_31
## %bb.55:
	movq	(%r13), %rdi
	callq	_unlink
	jmp	LBB0_31
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-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_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_1
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_5
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_8
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_9
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.comm	_progname,4,2                   ## @progname
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"B:i:o:v:r:R:K:h"

	.comm	_optarg,8,3                     ## @optarg
	.comm	_board_id,8,3                   ## @board_id
	.comm	_ifname,8,3                     ## @ifname
	.comm	_ofname,8,3                     ## @ofname
	.comm	_version,8,3                    ## @version
	.comm	_region,8,3                     ## @region
	.comm	_rootfs_size,8,3                ## @rootfs_size
	.comm	_kernel_size,8,3                ## @kernel_size
	.comm	_EXIT_SUCCESS,4,2               ## @EXIT_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"no board specified"

L_.str.2:                               ## @.str.2
	.asciz	"no rootfs_size specified"

L_.str.3:                               ## @.str.3
	.asciz	"no kernel_size specified"

L_.str.4:                               ## @.str.4
	.asciz	"no input file specified"

L_.str.5:                               ## @.str.5
	.asciz	"no output file specified"

L_.str.6:                               ## @.str.6
	.asciz	"stat failed on %s"

	.comm	_DNI_HDR_LEN,4,2                ## @DNI_HDR_LEN
L_.str.7:                               ## @.str.7
	.asciz	"no memory for buffer\n"

L_.str.8:                               ## @.str.8
	.asciz	"device:%s\nversion:%s\nregion:%s\nRootfsSize:%s\nKernelSize:%s\nInfoHeadSize:128\n"

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

L_.str.10:                              ## @.str.10
	.asciz	"could not open \"%s\" for reading"

	.comm	_errno,8,3                      ## @errno
L_.str.11:                              ## @.str.11
	.asciz	"unable to read from file %s"

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

L_.str.13:                              ## @.str.13
	.asciz	"could not open \"%s\" for writing"

L_.str.14:                              ## @.str.14
	.asciz	"unable to write to file %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function main
lCPI0_0:
	.byte	12                              ; 0xc
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	13                              ; 0xd
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	14                              ; 0xe
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	15                              ; 0xf
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
lCPI0_1:
	.byte	0                               ; 0x0
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	1                               ; 0x1
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	2                               ; 0x2
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	3                               ; 0x3
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
lCPI0_2:
	.byte	4                               ; 0x4
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	5                               ; 0x5
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	6                               ; 0x6
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	7                               ; 0x7
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
lCPI0_3:
	.byte	8                               ; 0x8
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	9                               ; 0x9
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	10                              ; 0xa
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	11                              ; 0xb
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x25, _EXIT_FAILURE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _EXIT_FAILURE@GOTPAGEOFF]
	ldr	w8, [x25]
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	ldr	x0, [x1]
	bl	_basename
Lloh2:
	adrp	x8, _progname@GOTPAGE
Lloh3:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh4:
	str	w0, [x8]
Lloh5:
	adrp	x22, l_.str@PAGE
Lloh6:
	add	x22, x22, l_.str@PAGEOFF
Lloh7:
	adrp	x27, lJTI0_0@PAGE
Lloh8:
	add	x27, x27, lJTI0_0@PAGEOFF
Lloh9:
	adrp	x26, _optarg@GOTPAGE
Lloh10:
	ldr	x26, [x26, _optarg@GOTPAGEOFF]
Lloh11:
	adrp	x23, _board_id@GOTPAGE
Lloh12:
	ldr	x23, [x23, _board_id@GOTPAGEOFF]
Lloh13:
	adrp	x28, _ofname@GOTPAGE
Lloh14:
	ldr	x28, [x28, _ofname@GOTPAGEOFF]
Lloh15:
	adrp	x19, _region@GOTPAGE
Lloh16:
	ldr	x19, [x19, _region@GOTPAGEOFF]
Lloh17:
	adrp	x24, _version@GOTPAGE
Lloh18:
	ldr	x24, [x24, _version@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh19:
	adrp	x8, _EXIT_SUCCESS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EXIT_SUCCESS@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_usage
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_getopt
	sub	w8, w0, #66
	cmp	w8, #52
	b.hi	LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	adr	x9, LBB0_1
	ldrb	w10, [x27, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x26]
	str	x8, [x23]
	b	LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x26]
Lloh22:
	adrp	x9, _kernel_size@GOTPAGE
Lloh23:
	ldr	x9, [x9, _kernel_size@GOTPAGEOFF]
Lloh24:
	str	x8, [x9]
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x26]
Lloh25:
	adrp	x9, _rootfs_size@GOTPAGE
Lloh26:
	ldr	x9, [x9, _rootfs_size@GOTPAGEOFF]
Lloh27:
	str	x8, [x9]
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x26]
Lloh28:
	adrp	x9, _ifname@GOTPAGE
Lloh29:
	ldr	x9, [x9, _ifname@GOTPAGEOFF]
Lloh30:
	str	x8, [x9]
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x26]
	str	x8, [x28]
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x26]
	str	x8, [x19]
	b	LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x26]
	str	x8, [x24]
	b	LBB0_2
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.eq	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x25]
	bl	_usage
	b	LBB0_2
LBB0_13:
	ldr	x8, [x23]
	cbz	x8, LBB0_20
; %bb.14:
Lloh31:
	adrp	x8, _rootfs_size@GOTPAGE
Lloh32:
	ldr	x8, [x8, _rootfs_size@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	cbz	x8, LBB0_21
; %bb.15:
Lloh34:
	adrp	x8, _kernel_size@GOTPAGE
Lloh35:
	ldr	x8, [x8, _kernel_size@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	cbz	x8, LBB0_22
; %bb.16:
Lloh37:
	adrp	x26, _ifname@GOTPAGE
Lloh38:
	ldr	x26, [x26, _ifname@GOTPAGEOFF]
	ldr	x0, [x26]
	cbz	x0, LBB0_23
; %bb.17:
	ldr	x8, [x28]
	cbz	x8, LBB0_24
; %bb.18:
	mov	x27, x28
	add	x1, sp, #8
	bl	_stat
	cbz	w0, LBB0_28
; %bb.19:
	ldr	x1, [x26]
Lloh39:
	adrp	x0, l_.str.6@PAGE
Lloh40:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_ERRS
	b	LBB0_26
LBB0_20:
Lloh41:
	adrp	x0, l_.str.1@PAGE
Lloh42:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_25
LBB0_21:
Lloh43:
	adrp	x0, l_.str.2@PAGE
Lloh44:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_25
LBB0_22:
Lloh45:
	adrp	x0, l_.str.3@PAGE
Lloh46:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_25
LBB0_23:
Lloh47:
	adrp	x0, l_.str.4@PAGE
Lloh48:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_25
LBB0_24:
Lloh49:
	adrp	x0, l_.str.5@PAGE
Lloh50:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_25:
	bl	_ERR
LBB0_26:
	ldr	w19, [sp, #4]                   ; 4-byte Folded Reload
LBB0_27:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_28:
	ldr	w21, [sp, #8]
Lloh51:
	adrp	x25, _DNI_HDR_LEN@GOTPAGE
Lloh52:
	ldr	x25, [x25, _DNI_HDR_LEN@GOTPAGEOFF]
	ldr	w8, [x25]
	add	w8, w21, w8
	add	w22, w8, #1
	mov	x0, x22
	bl	_malloc
	cbz	x0, LBB0_33
; %bb.29:
	mov	x20, x0
	ldr	w2, [x25]
	mov	w1, #0
	bl	_memset
	ldr	w1, [x25]
	ldr	x3, [x23]
	ldr	x4, [x24]
	ldr	x5, [x19]
Lloh53:
	adrp	x8, _rootfs_size@GOTPAGE
Lloh54:
	ldr	x8, [x8, _rootfs_size@GOTPAGEOFF]
Lloh55:
	ldr	x6, [x8]
Lloh56:
	adrp	x8, _kernel_size@GOTPAGE
Lloh57:
	ldr	x8, [x8, _kernel_size@GOTPAGEOFF]
Lloh58:
	ldr	x7, [x8]
Lloh59:
	adrp	x2, l_.str.8@PAGE
Lloh60:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_snprintf
	ldrsw	x8, [x25]
	add	x8, x8, x20
	mov	w9, #18
	sturb	w9, [x8, #-2]
	ldrsw	x8, [x25]
	add	x8, x8, x20
	mov	w9, #50
	sturb	w9, [x8, #-1]
	ldr	x0, [x26]
Lloh61:
	adrp	x1, l_.str.9@PAGE
Lloh62:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_34
; %bb.30:
	mov	x28, x0
Lloh63:
	adrp	x26, _errno@GOTPAGE
Lloh64:
	ldr	x26, [x26, _errno@GOTPAGEOFF]
	str	xzr, [x26]
	ldrsw	x8, [x25]
	add	x0, x20, x8
	mov	x1, x21
	mov	w2, #1
	mov	x3, x28
	bl	_fread
	ldr	x8, [x26]
	cbz	x8, LBB0_36
; %bb.31:
Lloh65:
	adrp	x8, _ifname@GOTPAGE
Lloh66:
	ldr	x8, [x8, _ifname@GOTPAGEOFF]
Lloh67:
	ldr	x1, [x8]
Lloh68:
	adrp	x0, l_.str.11@PAGE
Lloh69:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_ERRS
	ldr	w19, [sp, #4]                   ; 4-byte Folded Reload
LBB0_32:
	mov	x0, x28
	bl	_fclose
	b	LBB0_35
LBB0_33:
Lloh70:
	adrp	x0, l_.str.7@PAGE
Lloh71:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_25
LBB0_34:
	ldr	x1, [x26]
Lloh72:
	adrp	x0, l_.str.10@PAGE
Lloh73:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_ERRS
	ldr	w19, [sp, #4]                   ; 4-byte Folded Reload
LBB0_35:
	mov	x0, x20
	bl	_free
	b	LBB0_27
LBB0_36:
	ldr	w8, [x25]
	add	w8, w8, w21
	cmp	w8, #1
	ldr	w19, [sp, #4]                   ; 4-byte Folded Reload
	b.lt	LBB0_39
; %bb.37:
	cmp	w8, #8
	b.hs	LBB0_40
; %bb.38:
	mov	x9, #0
	mov	w12, #0
	b	LBB0_49
LBB0_39:
	mov	w9, #255
	b	LBB0_52
LBB0_40:
	adrp	x10, lCPI0_1@PAGE
	adrp	x11, lCPI0_2@PAGE
	cmp	w8, #32
	b.hs	LBB0_42
; %bb.41:
	mov	w12, #0
	mov	x9, #0
	b	LBB0_46
LBB0_42:
	and	x9, x8, #0xffffffe0
	add	x12, x20, #16
	movi.2d	v0, #0000000000000000
Lloh74:
	adrp	x13, lCPI0_0@PAGE
Lloh75:
	ldr	q1, [x13, lCPI0_0@PAGEOFF]
	ldr	q2, [x10, lCPI0_1@PAGEOFF]
	ldr	q3, [x11, lCPI0_2@PAGEOFF]
	movi.2d	v5, #0000000000000000
Lloh76:
	adrp	x13, lCPI0_3@PAGE
Lloh77:
	ldr	q17, [x13, lCPI0_3@PAGEOFF]
	mov	x13, x9
	movi.2d	v4, #0000000000000000
	movi.2d	v7, #0000000000000000
	movi.2d	v6, #0000000000000000
	movi.2d	v18, #0000000000000000
	movi.2d	v16, #0000000000000000
	movi.2d	v19, #0000000000000000
LBB0_43:                                ; =>This Inner Loop Header: Depth=1
	ldp	q20, q24, [x12, #-16]
	tbl.16b	v21, { v20 }, v1
	tbl.16b	v22, { v20 }, v2
	tbl.16b	v23, { v20 }, v3
	tbl.16b	v20, { v20 }, v17
	tbl.16b	v25, { v24 }, v1
	tbl.16b	v26, { v24 }, v2
	tbl.16b	v27, { v24 }, v3
	tbl.16b	v24, { v24 }, v17
	add.4s	v4, v4, v20
	add.4s	v5, v5, v23
	add.4s	v0, v0, v22
	add.4s	v7, v7, v21
	add.4s	v16, v16, v24
	add.4s	v18, v18, v27
	add.4s	v6, v6, v26
	add.4s	v19, v19, v25
	add	x12, x12, #32
	subs	x13, x13, #32
	b.ne	LBB0_43
; %bb.44:
	add.4s	v1, v18, v5
	add.4s	v2, v19, v7
	add.4s	v0, v6, v0
	add.4s	v3, v16, v4
	add.4s	v0, v0, v3
	add.4s	v1, v1, v2
	add.4s	v0, v0, v1
	addv.4s	s0, v0
	fmov	w12, s0
	cmp	x9, x8
	b.eq	LBB0_51
; %bb.45:
	tst	x8, #0x18
	b.eq	LBB0_49
LBB0_46:
	mov	x13, x9
	and	x9, x8, #0xfffffff8
	movi.2d	v0, #0000000000000000
	movi.2d	v1, #0000000000000000
	mov.s	v1[0], w12
	add	x12, x20, x13
	sub	x13, x13, x9
	ldr	q2, [x10, lCPI0_1@PAGEOFF]
	ldr	q3, [x11, lCPI0_2@PAGEOFF]
LBB0_47:                                ; =>This Inner Loop Header: Depth=1
	ldr	d4, [x12], #8
	tbl.16b	v5, { v4 }, v2
	tbl.16b	v4, { v4 }, v3
	add.4s	v0, v0, v4
	add.4s	v1, v1, v5
	adds	x13, x13, #8
	b.ne	LBB0_47
; %bb.48:
	add.4s	v0, v1, v0
	addv.4s	s0, v0
	fmov	w12, s0
	cmp	x9, x8
	b.eq	LBB0_51
LBB0_49:
	add	x10, x20, x9
	sub	x9, x8, x9
LBB0_50:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x10], #1
	add	w12, w12, w11
	subs	x9, x9, #1
	b.ne	LBB0_50
LBB0_51:
	mvn	w9, w12
LBB0_52:
	strb	w9, [x20, w8, sxtw]
	ldr	x0, [x27]
Lloh78:
	adrp	x1, l_.str.12@PAGE
Lloh79:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_55
; %bb.53:
	mov	x23, x0
	str	xzr, [x26]
	mov	x0, x20
	mov	x1, x22
	mov	w2, #1
	mov	x3, x23
	bl	_fwrite
	ldr	x8, [x26]
	cbz	x8, LBB0_56
; %bb.54:
	ldr	x1, [x27]
Lloh80:
	adrp	x0, l_.str.14@PAGE
Lloh81:
	add	x0, x0, l_.str.14@PAGEOFF
	bl	_ERRS
Lloh82:
	adrp	x21, _EXIT_SUCCESS@GOTPAGE
Lloh83:
	ldr	x21, [x21, _EXIT_SUCCESS@GOTPAGEOFF]
	b	LBB0_57
LBB0_55:
	ldr	x1, [x27]
Lloh84:
	adrp	x0, l_.str.13@PAGE
Lloh85:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_ERRS
	b	LBB0_32
LBB0_56:
Lloh86:
	adrp	x21, _EXIT_SUCCESS@GOTPAGE
Lloh87:
	ldr	x21, [x21, _EXIT_SUCCESS@GOTPAGEOFF]
	ldr	w19, [x21]
	mov	x0, x23
	bl	_fflush
LBB0_57:
	mov	x0, x23
	bl	_fclose
	ldr	w8, [x21]
	cmp	w19, w8
	b.eq	LBB0_32
; %bb.58:
	ldr	x0, [x27]
	bl	_unlink
	b	LBB0_32
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpLdr	Lloh76, Lloh77
	.loh AdrpAdrp	Lloh74, Lloh76
	.loh AdrpLdr	Lloh74, Lloh75
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpLdrGot	Lloh82, Lloh83
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpLdrGot	Lloh86, Lloh87
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_7-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_8-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_10-LBB0_1)>>2
                                        ; -- End function
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.comm	_progname,4,2                   ; @progname
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"B:i:o:v:r:R:K:h"

	.comm	_optarg,8,3                     ; @optarg
	.comm	_board_id,8,3                   ; @board_id
	.comm	_ifname,8,3                     ; @ifname
	.comm	_ofname,8,3                     ; @ofname
	.comm	_version,8,3                    ; @version
	.comm	_region,8,3                     ; @region
	.comm	_rootfs_size,8,3                ; @rootfs_size
	.comm	_kernel_size,8,3                ; @kernel_size
	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"no board specified"

l_.str.2:                               ; @.str.2
	.asciz	"no rootfs_size specified"

l_.str.3:                               ; @.str.3
	.asciz	"no kernel_size specified"

l_.str.4:                               ; @.str.4
	.asciz	"no input file specified"

l_.str.5:                               ; @.str.5
	.asciz	"no output file specified"

l_.str.6:                               ; @.str.6
	.asciz	"stat failed on %s"

	.comm	_DNI_HDR_LEN,4,2                ; @DNI_HDR_LEN
l_.str.7:                               ; @.str.7
	.asciz	"no memory for buffer\n"

l_.str.8:                               ; @.str.8
	.asciz	"device:%s\nversion:%s\nregion:%s\nRootfsSize:%s\nKernelSize:%s\nInfoHeadSize:128\n"

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

l_.str.10:                              ; @.str.10
	.asciz	"could not open \"%s\" for reading"

	.comm	_errno,8,3                      ; @errno
l_.str.11:                              ; @.str.11
	.asciz	"unable to read from file %s"

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

l_.str.13:                              ; @.str.13
	.asciz	"could not open \"%s\" for writing"

l_.str.14:                              ; @.str.14
	.asciz	"unable to write to file %s"

.subsections_via_symbols
