	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_opt_board                ## -- Begin function parse_opt_board
	.p2align	4, 0x90
_parse_opt_board:                       ## @parse_opt_board
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	callq	_required_arg
	movl	$-1, %r14d
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_find_board
	movq	_board@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movups	4(%rax), %xmm0
	movq	_fw_header@GOTPCREL(%rip), %rcx
	movups	%xmm0, (%rcx)
	movl	(%rax), %eax
	movq	_flash_size@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%r14d, %r14d
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	movq	%rbx, %rdx
	callq	_errmsg
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_board,8,3                      ## @board
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid/unknown board specified: %s"

	.comm	_fw_header,16,2                 ## @fw_header
	.comm	_flash_size,4,2                 ## @flash_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_opt_board                ; -- Begin function parse_opt_board
	.p2align	2
_parse_opt_board:                       ; @parse_opt_board
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_required_arg
	cbz	x0, LBB0_2
LBB0_1:
	mov	w0, #-1
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_find_board
Lloh0:
	adrp	x9, _board@GOTPAGE
Lloh1:
	ldr	x9, [x9, _board@GOTPAGEOFF]
Lloh2:
	str	x0, [x9]
	cbz	x0, LBB0_5
; %bb.3:
	mov	x8, x0
	mov	w0, #0
Lloh3:
	adrp	x9, _fw_header@GOTPAGE
Lloh4:
	ldr	x9, [x9, _fw_header@GOTPAGEOFF]
	ldur	q0, [x8, #4]
Lloh5:
	str	q0, [x9]
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _flash_size@GOTPAGE
Lloh7:
	ldr	x9, [x9, _flash_size@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_errmsg
	b	LBB0_1
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_board,8,3                      ; @board
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid/unknown board specified: %s"

	.comm	_fw_header,16,2                 ; @fw_header
	.comm	_flash_size,4,2                 ; @flash_size
.subsections_via_symbols
