	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r15d
	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)
	movq	_opterr@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	leaq	L_.str(%rip), %r12
	leaq	LJTI0_0(%rip), %r14
	movq	_optarg@GOTPCREL(%rip), %r13
	jmp	LBB0_4
LBB0_1:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_usage
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	testl	%eax, %eax
	jne	LBB0_15
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_getopt
                                        ## kill: def $eax killed $eax def $rax
	leal	-66(%rax), %ecx
	cmpl	$52, %ecx
	ja	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	(%r14,%rcx,4), %rcx
	addq	%r14, %rcx
	jmpq	*%rcx
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %esi
	movl	%eax, %edi
	callq	_parse_opt_block
	jmp	LBB0_3
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %esi
	movl	$66, %edi
	callq	_parse_opt_board
	jmp	LBB0_3
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %esi
	movl	$111, %edi
	callq	_parse_opt_ofname
	jmp	LBB0_3
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_verblevel@GOTPCREL(%rip), %rax
	incl	(%rax)
	jmp	LBB0_2
LBB0_10:
	cmpl	$-1, %eax
	jne	LBB0_15
## %bb.11:
	movq	_board@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_19
## %bb.12:
	movq	_ofname@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_20
## %bb.13:
	movq	_optind@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpl	%r15d, %eax
	jge	LBB0_22
## %bb.14:
	movq	(%rbx,%rax,8), %rsi
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_16
LBB0_15:
	movq	_optopt@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.1(%rip), %rdi
LBB0_16:
	xorl	%eax, %eax
	callq	_ERR
LBB0_17:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_21
LBB0_20:
	leaq	L_.str.3(%rip), %rdi
LBB0_21:
	xorl	%eax, %eax
	callq	_ERR
	jmp	LBB0_17
LBB0_22:
	xorl	%eax, %eax
	callq	_process_blocks
	testq	%rax, %rax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_18
## %bb.23:
	movq	(%r14), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_28
## %bb.24:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_write_out_image
	testq	%rax, %rax
	jne	LBB0_26
## %bb.25:
	movq	(%r14), %rdx
	leaq	L_.str.7(%rip), %rsi
	movl	$1, %edi
	callq	_DBG
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_26:
	movq	%r15, %rdi
	callq	_fflush
	movq	%r15, %rdi
	callq	_fclose
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_18
## %bb.27:
	movq	(%r14), %rdi
	callq	_unlink
	jmp	LBB0_18
LBB0_28:
	movq	(%r14), %rsi
	leaq	L_.str.6(%rip), %rdi
	callq	_ERRS
	jmp	LBB0_18
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_1, LBB0_1-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_7
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_6
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_1
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_8
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_6
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.comm	_progname,4,2                   ## @progname
	.comm	_opterr,8,3                     ## @opterr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"b:B:ho:r:v"

	.comm	_optarg,4,2                     ## @optarg
	.comm	_verblevel,4,2                  ## @verblevel
	.comm	_EXIT_SUCCESS,4,2               ## @EXIT_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"invalid option: -%c"

	.comm	_optopt,8,3                     ## @optopt
	.comm	_board,8,3                      ## @board
L_.str.2:                               ## @.str.2
	.asciz	"no board specified"

	.comm	_ofname,8,3                     ## @ofname
L_.str.3:                               ## @.str.3
	.asciz	"no output file specified"

	.comm	_optind,4,2                     ## @optind
L_.str.4:                               ## @.str.4
	.asciz	"invalid option: %s"

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

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

L_.str.7:                               ## @.str.7
	.asciz	"Image file %s completed."

.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, #96
	.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
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	ldr	x0, [x1]
	bl	_basename
Lloh3:
	adrp	x8, _progname@GOTPAGE
Lloh4:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh5:
	adrp	x9, _opterr@GOTPAGE
Lloh6:
	ldr	x9, [x9, _opterr@GOTPAGEOFF]
Lloh7:
	str	w0, [x8]
Lloh8:
	str	xzr, [x9]
Lloh9:
	adrp	x22, l_.str@PAGE
Lloh10:
	add	x22, x22, l_.str@PAGEOFF
Lloh11:
	adrp	x24, lJTI0_0@PAGE
Lloh12:
	add	x24, x24, lJTI0_0@PAGEOFF
Lloh13:
	adrp	x25, _optarg@GOTPAGE
Lloh14:
	ldr	x25, [x25, _optarg@GOTPAGEOFF]
Lloh15:
	adrp	x23, _EXIT_SUCCESS@GOTPAGE
Lloh16:
	ldr	x23, [x23, _EXIT_SUCCESS@GOTPAGEOFF]
Lloh17:
	adrp	x26, _verblevel@GOTPAGE
Lloh18:
	ldr	x26, [x26, _verblevel@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x23]
	bl	_usage
	mov	w0, #0
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w0, LBB0_14
LBB0_3:                                 ; =>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_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	adr	x9, LBB0_1
	ldrb	w10, [x24, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x25]
	bl	_parse_opt_block
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x25]
	mov	w0, #66
	bl	_parse_opt_board
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x25]
	mov	w0, #111
	bl	_parse_opt_ofname
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #0
	ldr	w8, [x26]
	add	w8, w8, #1
	str	w8, [x26]
	b	LBB0_2
LBB0_9:
	cmn	w0, #1
	b.ne	LBB0_14
; %bb.10:
Lloh19:
	adrp	x8, _board@GOTPAGE
Lloh20:
	ldr	x8, [x8, _board@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cbz	x8, LBB0_17
; %bb.11:
Lloh22:
	adrp	x22, _ofname@GOTPAGE
Lloh23:
	ldr	x22, [x22, _ofname@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_18
; %bb.12:
Lloh24:
	adrp	x8, _optind@GOTPAGE
Lloh25:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh26:
	ldrsw	x8, [x8]
	cmp	w8, w21
	b.ge	LBB0_19
; %bb.13:
	ldr	x8, [x20, x8, lsl #3]
	str	x8, [sp]
Lloh27:
	adrp	x0, l_.str.4@PAGE
Lloh28:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_15
LBB0_14:
Lloh29:
	adrp	x8, _optopt@GOTPAGE
Lloh30:
	ldr	x8, [x8, _optopt@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh32:
	adrp	x0, l_.str.1@PAGE
Lloh33:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_15:
	bl	_ERR
LBB0_16:
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
LBB0_17:
Lloh34:
	adrp	x0, l_.str.2@PAGE
Lloh35:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_18:
Lloh36:
	adrp	x0, l_.str.3@PAGE
Lloh37:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_15
LBB0_19:
	bl	_process_blocks
	cbnz	x0, LBB0_16
; %bb.20:
	ldr	x0, [x22]
Lloh38:
	adrp	x1, l_.str.5@PAGE
Lloh39:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_25
; %bb.21:
	mov	x20, x0
	bl	_write_out_image
	cbnz	x0, LBB0_23
; %bb.22:
	ldr	x2, [x22]
Lloh40:
	adrp	x1, l_.str.7@PAGE
Lloh41:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #1
	bl	_DBG
	ldr	w19, [x23]
LBB0_23:
	mov	x0, x20
	bl	_fflush
	mov	x0, x20
	bl	_fclose
	ldr	w8, [x23]
	cmp	w19, w8
	b.eq	LBB0_16
; %bb.24:
	ldr	x0, [x22]
	bl	_unlink
	b	LBB0_16
LBB0_25:
	ldr	x1, [x22]
Lloh42:
	adrp	x0, l_.str.6@PAGE
Lloh43:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_ERRS
	b	LBB0_16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_7-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_8-LBB0_1)>>2
                                        ; -- End function
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.comm	_progname,4,2                   ; @progname
	.comm	_opterr,8,3                     ; @opterr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"b:B:ho:r:v"

	.comm	_optarg,4,2                     ; @optarg
	.comm	_verblevel,4,2                  ; @verblevel
	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"invalid option: -%c"

	.comm	_optopt,8,3                     ; @optopt
	.comm	_board,8,3                      ; @board
l_.str.2:                               ; @.str.2
	.asciz	"no board specified"

	.comm	_ofname,8,3                     ; @ofname
l_.str.3:                               ; @.str.3
	.asciz	"no output file specified"

	.comm	_optind,4,2                     ; @optind
l_.str.4:                               ; @.str.4
	.asciz	"invalid option: %s"

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

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

l_.str.7:                               ; @.str.7
	.asciz	"Image file %s completed."

.subsections_via_symbols
