	.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	$24, %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	_hd_id@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_10
## %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	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movq	_ifname@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_2
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movq	_ofname@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_2
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movq	_region@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_2
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movq	_version@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_2
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-1, %eax
	je	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %edi
	callq	_usage
	jmp	LBB0_2
LBB0_13:
	movq	_board_id@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_18
## %bb.14:
	movq	_ifname@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.15:
	movq	_ofname@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_20
## %bb.16:
	leaq	-48(%rbp), %rsi
	callq	_stat
	testl	%eax, %eax
	je	LBB0_21
## %bb.17:
	movq	(%rbx), %rsi
	leaq	L_.str.4(%rip), %rdi
	callq	_ERRS
	jmp	LBB0_34
LBB0_18:
	leaq	L_.str.1(%rip), %rdi
	callq	_ERR
	jmp	LBB0_34
LBB0_19:
	leaq	L_.str.2(%rip), %rdi
	callq	_ERR
	jmp	LBB0_34
LBB0_20:
	leaq	L_.str.3(%rip), %rdi
	callq	_ERR
	jmp	LBB0_34
LBB0_21:
	movl	-48(%rbp), %r13d
	movq	_DNI_HDR_LEN@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	leal	(%rax,%r13), %r15d
	incl	%r15d
	movl	%r15d, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_31
## %bb.22:
	movq	%rax, %r14
	movl	(%r12), %edx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	(%r12), %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.6(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_snprintf
	testl	%eax, %eax
	js	LBB0_26
## %bb.23:
	movl	(%r12), %esi
	subl	%eax, %esi
	cmpl	$2, %esi
	jl	LBB0_26
## %bb.24:
	movq	_hd_id@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_26
## %bb.25:
	movl	%eax, %edi
	addq	%r14, %rdi
	leaq	L_.str.7(%rip), %rdx
	xorl	%eax, %eax
	callq	_snprintf
LBB0_26:
	movq	(%rbx), %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_32
## %bb.27:
	movq	%rax, %rbx
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movq	_errno@GOTPCREL(%rip), %r15
	movq	$0, (%r15)
	movslq	(%r12), %rdi
	addq	%r14, %rdi
	movl	%r13d, %esi
	movl	$1, %edx
	movq	%rax, %rcx
	callq	_fread
	cmpq	$0, (%r15)
	je	LBB0_35
## %bb.28:
	movq	_ifname@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.10(%rip), %rdi
LBB0_29:
	callq	_ERRS
LBB0_30:
	movq	%rbx, %rdi
	callq	_fclose
	jmp	LBB0_33
LBB0_31:
	leaq	L_.str.5(%rip), %rdi
	callq	_ERR
	jmp	LBB0_34
LBB0_32:
	movq	(%rbx), %rsi
	leaq	L_.str.9(%rip), %rdi
	callq	_ERRS
LBB0_33:
	movq	%r14, %rdi
	callq	_free
LBB0_34:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	addl	(%r12), %r13d
	testl	%r13d, %r13d
	jle	LBB0_38
## %bb.36:
	movl	%r13d, %esi
	leaq	-1(%rsi), %rcx
	movl	%esi, %eax
	andl	$3, %eax
	cmpq	$3, %rcx
	jae	LBB0_39
## %bb.37:
	xorl	%edx, %edx
                                        ## implicit-def: $ecx
	xorl	%edi, %edi
	jmp	LBB0_41
LBB0_38:
	movb	$-1, %cl
	jmp	LBB0_45
LBB0_39:
	andl	$-4, %esi
	xorl	%edx, %edx
	xorl	%edi, %edi
LBB0_40:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14,%rdx), %ecx
	addl	%edi, %ecx
	movzbl	1(%r14,%rdx), %edi
	addl	%ecx, %edi
	movzbl	2(%r14,%rdx), %ecx
	addl	%edi, %ecx
	movsbl	%cl, %edi
	movzbl	3(%r14,%rdx), %ecx
	addl	%edi, %ecx
	addq	$4, %rdx
	movsbl	%cl, %edi
	cmpq	%rdx, %rsi
	jne	LBB0_40
LBB0_41:
	testq	%rax, %rax
	je	LBB0_44
## %bb.42:
	movq	%r14, %rsi
	addq	%rdx, %rsi
	xorl	%edx, %edx
LBB0_43:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rsi,%rdx), %ecx
	addl	%edi, %ecx
	movsbl	%cl, %edi
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_43
LBB0_44:
	notb	%cl
LBB0_45:
	movslq	%r13d, %rax
	movb	%cl, (%r14,%rax)
	movq	_ofname@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	leaq	L_.str.11(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_48
## %bb.46:
	movq	%rax, %r15
	movq	_errno@GOTPCREL(%rip), %r12
	movq	$0, (%r12)
	movq	%r14, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	$1, %edx
	movq	%rax, %rcx
	callq	_fwrite
	cmpq	$0, (%r12)
	je	LBB0_49
## %bb.47:
	movq	_ofname@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	leaq	L_.str.13(%rip), %rdi
	callq	_ERRS
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_50
LBB0_48:
	movq	(%r12), %rsi
	leaq	L_.str.12(%rip), %rdi
	jmp	LBB0_29
LBB0_49:
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r15, %rdi
	callq	_fflush
	movq	_ofname@GOTPCREL(%rip), %r13
LBB0_50:
	movq	%r15, %rdi
	callq	_fclose
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_30
## %bb.51:
	movq	(%r13), %rdi
	callq	_unlink
	jmp	LBB0_30
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_11, LBB0_11-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
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_1
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_7
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_8
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_9
	.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:H: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	_hd_id,8,3                      ## @hd_id
	.comm	_EXIT_SUCCESS,4,2               ## @EXIT_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"no board specified"

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

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

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

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

L_.str.6:                               ## @.str.6
	.asciz	"device:%s\nversion:V%s\nregion:%s\n"

L_.str.7:                               ## @.str.7
	.asciz	"hd_id:%s\n"

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

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

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

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

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

L_.str.13:                              ## @.str.13
	.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
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x27, _EXIT_FAILURE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _EXIT_FAILURE@GOTPAGEOFF]
	ldr	w8, [x27]
	str	w8, [sp, #20]                   ; 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	x25, lJTI0_0@PAGE
Lloh8:
	add	x25, x25, lJTI0_0@PAGEOFF
Lloh9:
	adrp	x26, _optarg@GOTPAGE
Lloh10:
	ldr	x26, [x26, _optarg@GOTPAGEOFF]
Lloh11:
	adrp	x28, _ifname@GOTPAGE
Lloh12:
	ldr	x28, [x28, _ifname@GOTPAGEOFF]
Lloh13:
	adrp	x24, _ofname@GOTPAGE
Lloh14:
	ldr	x24, [x24, _ofname@GOTPAGEOFF]
Lloh15:
	adrp	x23, _region@GOTPAGE
Lloh16:
	ldr	x23, [x23, _region@GOTPAGEOFF]
Lloh17:
	adrp	x19, _version@GOTPAGE
Lloh18:
	ldr	x19, [x19, _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_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	adr	x9, LBB0_1
	ldrb	w10, [x25, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x26]
Lloh22:
	adrp	x9, _board_id@GOTPAGE
Lloh23:
	ldr	x9, [x9, _board_id@GOTPAGEOFF]
Lloh24:
	str	x8, [x9]
	b	LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x26]
Lloh25:
	adrp	x9, _hd_id@GOTPAGE
Lloh26:
	ldr	x9, [x9, _hd_id@GOTPAGEOFF]
Lloh27:
	str	x8, [x9]
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x26]
	str	x8, [x28]
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x26]
	str	x8, [x24]
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x26]
	str	x8, [x23]
	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
	cmn	w0, #1
	b.eq	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x27]
	bl	_usage
	b	LBB0_2
LBB0_12:
Lloh28:
	adrp	x8, _board_id@GOTPAGE
Lloh29:
	ldr	x8, [x8, _board_id@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	cbz	x8, LBB0_17
; %bb.13:
	ldr	x0, [x28]
	cbz	x0, LBB0_18
; %bb.14:
	ldr	x8, [x24]
	cbz	x8, LBB0_19
; %bb.15:
	add	x1, sp, #24
	bl	_stat
	cbz	w0, LBB0_23
; %bb.16:
	ldr	x1, [x28]
Lloh31:
	adrp	x0, l_.str.4@PAGE
Lloh32:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_ERRS
	b	LBB0_21
LBB0_17:
Lloh33:
	adrp	x0, l_.str.1@PAGE
Lloh34:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_20
LBB0_18:
Lloh35:
	adrp	x0, l_.str.2@PAGE
Lloh36:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_20
LBB0_19:
Lloh37:
	adrp	x0, l_.str.3@PAGE
Lloh38:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_20:
	bl	_ERR
LBB0_21:
	ldr	w19, [sp, #20]                  ; 4-byte Folded Reload
LBB0_22:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_23:
	ldr	w21, [sp, #24]
Lloh39:
	adrp	x22, _DNI_HDR_LEN@GOTPAGE
Lloh40:
	ldr	x22, [x22, _DNI_HDR_LEN@GOTPAGEOFF]
	ldr	w8, [x22]
	add	w8, w21, w8
	add	w26, w8, #1
	mov	x0, x26
	bl	_malloc
	cbz	x0, LBB0_32
; %bb.24:
	mov	x20, x0
	ldr	w2, [x22]
	mov	w1, #0
	bl	_memset
	ldr	w1, [x22]
Lloh41:
	adrp	x8, _board_id@GOTPAGE
Lloh42:
	ldr	x8, [x8, _board_id@GOTPAGEOFF]
Lloh43:
	ldr	x3, [x8]
	ldr	x8, [x19]
	ldr	x9, [x23]
	stp	x8, x9, [sp]
Lloh44:
	adrp	x2, l_.str.6@PAGE
Lloh45:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_snprintf
	tbnz	w0, #31, LBB0_27
; %bb.25:
	ldr	w8, [x22]
	sub	w1, w8, w0
Lloh46:
	adrp	x8, _hd_id@GOTPAGE
Lloh47:
	ldr	x8, [x8, _hd_id@GOTPAGEOFF]
Lloh48:
	ldr	x3, [x8]
	cmp	w1, #2
	ccmp	x3, #0, #4, ge
	b.eq	LBB0_27
; %bb.26:
	add	x0, x20, w0, uxtw
Lloh49:
	adrp	x2, l_.str.7@PAGE
Lloh50:
	add	x2, x2, l_.str.7@PAGEOFF
	bl	_snprintf
LBB0_27:
	ldr	x0, [x28]
Lloh51:
	adrp	x1, l_.str.8@PAGE
Lloh52:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_33
; %bb.28:
	mov	x27, x0
Lloh53:
	adrp	x19, _errno@GOTPAGE
Lloh54:
	ldr	x19, [x19, _errno@GOTPAGEOFF]
	str	xzr, [x19]
	ldrsw	x8, [x22]
	add	x0, x20, x8
	mov	x1, x21
	mov	w2, #1
	mov	x3, x27
	bl	_fread
	ldr	x8, [x19]
	cbz	x8, LBB0_35
; %bb.29:
	ldr	x1, [x28]
Lloh55:
	adrp	x0, l_.str.10@PAGE
Lloh56:
	add	x0, x0, l_.str.10@PAGEOFF
LBB0_30:
	bl	_ERRS
	ldr	w19, [sp, #20]                  ; 4-byte Folded Reload
LBB0_31:
	mov	x0, x27
	bl	_fclose
	b	LBB0_34
LBB0_32:
Lloh57:
	adrp	x0, l_.str.5@PAGE
Lloh58:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_20
LBB0_33:
	ldr	x1, [x28]
Lloh59:
	adrp	x0, l_.str.9@PAGE
Lloh60:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_ERRS
	ldr	w19, [sp, #20]                  ; 4-byte Folded Reload
LBB0_34:
	mov	x0, x20
	bl	_free
	b	LBB0_22
LBB0_35:
	ldr	w8, [x22]
	add	w8, w8, w21
	cmp	w8, #1
	b.lt	LBB0_39
; %bb.36:
	mov	w9, #0
	mov	x10, x8
	mov	x11, x20
LBB0_37:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w12, [x11], #1
	add	w12, w9, w12
	sxtb	w9, w12
	subs	x10, x10, #1
	b.ne	LBB0_37
; %bb.38:
	mvn	w9, w12
	b	LBB0_40
LBB0_39:
	mov	w9, #255
LBB0_40:
Lloh61:
	adrp	x21, _EXIT_SUCCESS@GOTPAGE
Lloh62:
	ldr	x21, [x21, _EXIT_SUCCESS@GOTPAGEOFF]
	strb	w9, [x20, w8, sxtw]
	ldr	x0, [x24]
Lloh63:
	adrp	x1, l_.str.11@PAGE
Lloh64:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_43
; %bb.41:
	mov	x23, x0
	str	xzr, [x19]
	mov	x0, x20
	mov	x1, x26
	mov	w2, #1
	mov	x3, x23
	bl	_fwrite
	ldr	x8, [x19]
	cbz	x8, LBB0_44
; %bb.42:
	ldr	x1, [x24]
Lloh65:
	adrp	x0, l_.str.13@PAGE
Lloh66:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_ERRS
	ldr	w19, [sp, #20]                  ; 4-byte Folded Reload
	b	LBB0_45
LBB0_43:
	ldr	x1, [x24]
Lloh67:
	adrp	x0, l_.str.12@PAGE
Lloh68:
	add	x0, x0, l_.str.12@PAGEOFF
	b	LBB0_30
LBB0_44:
	ldr	w19, [x21]
	mov	x0, x23
	bl	_fflush
LBB0_45:
	mov	x0, x23
	bl	_fclose
	ldr	w8, [x21]
	cmp	w19, w8
	b.eq	LBB0_31
; %bb.46:
	ldr	x0, [x24]
	bl	_unlink
	b	LBB0_31
	.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 AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh67, Lloh68
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_7-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_8-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_9-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:H: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	_hd_id,8,3                      ; @hd_id
	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"no board specified"

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

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

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

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

l_.str.6:                               ; @.str.6
	.asciz	"device:%s\nversion:V%s\nregion:%s\n"

l_.str.7:                               ; @.str.7
	.asciz	"hd_id:%s\n"

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

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

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

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

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

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

.subsections_via_symbols
