	.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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%ebx, %edx
	movq	%r14, %rcx
	callq	_DBG
	movq	_board@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
LBB0_10:
	xorl	%eax, %eax
	callq	_ERR
	jmp	LBB0_11
LBB0_2:
	movsbl	%bl, %edi
	movq	%r14, %rsi
	callq	_required_arg
	testq	%rax, %rax
	je	LBB0_3
LBB0_11:
	movq	_ERR_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r14, %rdi
	callq	_find_board
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	(%rax), %ecx
	cmpl	$128, %ecx
	je	LBB0_8
## %bb.6:
	cmpl	$129, %ecx
	jne	LBB0_9
## %bb.7:
	movq	_header@GOTPCREL(%rip), %rcx
	movl	$129, 8(%rcx)
	movl	4(%rax), %eax
	movl	%eax, 12(%rcx)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_ERR
	jmp	LBB0_11
LBB0_8:
	movq	_header@GOTPCREL(%rip), %rcx
	movl	$128, (%rcx)
	movl	4(%rax), %eax
	movl	%eax, 4(%rcx)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"parsing board option: -%c %s"

	.comm	_board,8,3                      ## @board
L_.str.1:                               ## @.str.1
	.asciz	"only one board option allowed"

	.comm	_ERR_FATAL,4,2                  ## @ERR_FATAL
L_.str.2:                               ## @.str.2
	.asciz	"invalid/unknown board specified: %s"

	.comm	_header,16,2                    ## @header
L_.str.3:                               ## @.str.3
	.asciz	"internal error, unknown header type\n"

.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:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	mov	x3, x19
	bl	_DBG
Lloh2:
	adrp	x21, _board@GOTPAGE
Lloh3:
	ldr	x21, [x21, _board@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_3
; %bb.1:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_2:
	bl	_ERR
	b	LBB0_4
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	bl	_required_arg
	cbz	x0, LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _ERR_FATAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_FATAL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	mov	x0, x19
	bl	_find_board
	str	x0, [x21]
	cbz	x0, LBB0_10
; %bb.7:
	mov	x8, x0
	ldr	w9, [x0]
	cmp	w9, #128
	b.eq	LBB0_11
; %bb.8:
	cmp	w9, #129
	b.ne	LBB0_12
; %bb.9:
	mov	w0, #0
Lloh9:
	adrp	x9, _header@GOTPAGE
Lloh10:
	ldr	x9, [x9, _header@GOTPAGEOFF]
	mov	w10, #129
	ldr	w8, [x8, #4]
	stp	w10, w8, [x9, #8]
	b	LBB0_5
LBB0_10:
	str	x19, [sp]
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_11:
	mov	w0, #0
Lloh13:
	adrp	x9, _header@GOTPAGE
Lloh14:
	ldr	x9, [x9, _header@GOTPAGEOFF]
	mov	w10, #128
	ldr	w8, [x8, #4]
	stp	w10, w8, [x9]
	b	LBB0_5
LBB0_12:
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_2
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"parsing board option: -%c %s"

	.comm	_board,8,3                      ; @board
l_.str.1:                               ; @.str.1
	.asciz	"only one board option allowed"

	.comm	_ERR_FATAL,4,2                  ; @ERR_FATAL
l_.str.2:                               ; @.str.2
	.asciz	"invalid/unknown board specified: %s"

	.comm	_header,16,2                    ; @header
l_.str.3:                               ; @.str.3
	.asciz	"internal error, unknown header type\n"

.subsections_via_symbols
