	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_option                   ## -- Begin function parse_option
	.p2align	4, 0x90
_parse_option:                          ## @parse_option
	.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	%rcx, %r13
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rcx, %rdi
	callq	_find_option
	movq	%rax, %rbx
	cmpq	$0, 8(%rax)
	je	LBB0_6
## %bb.1:
	leaq	L_.str.1(%rip), %rax
LBB0_2:
	movq	_OPT_BOOL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	cmovneq	%rax, %r12
	jmp	LBB0_3
LBB0_6:
	cmpb	$110, (%r14)
	jne	LBB0_10
## %bb.7:
	cmpb	$111, 1(%r14)
	jne	LBB0_10
## %bb.8:
	leaq	2(%r14), %rsi
	movq	%r13, %rdi
	callq	_find_option
	cmpq	$0, 8(%rax)
	je	LBB0_11
## %bb.9:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rax
	jmp	LBB0_2
LBB0_10:
	movq	_OPT_BOOL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	leaq	L_.str.1(%rip), %rax
	cmovneq	%rax, %r12
LBB0_11:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_find_option
	movq	%rax, %rbx
	cmpq	$0, 8(%rax)
	je	LBB0_12
LBB0_3:
	movq	_HAS_ARG@GOTPCREL(%rip), %r13
	testq	%r12, %r12
	jne	LBB0_14
## %bb.4:
	movl	(%r13), %eax
	andl	(%rbx), %eax
	je	LBB0_14
## %bb.5:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_13
LBB0_14:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_write_option
	testl	%eax, %eax
	js	LBB0_16
## %bb.15:
	movl	(%r13), %ecx
	xorl	%eax, %eax
	testl	%ecx, (%rbx)
	setne	%al
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
LBB0_13:
	xorl	%edi, %edi
	movq	%r14, %rcx
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OPT_BOOL,4,2                   ## @OPT_BOOL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0"

L_.str.1:                               ## @.str.1
	.asciz	"1"

L_.str.2:                               ## @.str.2
	.asciz	"default"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.3:                               ## @.str.3
	.asciz	"Unrecognized option '%s'\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HAS_ARG,4,2                    ## @HAS_ARG
L_.str.4:                               ## @.str.4
	.asciz	"Missing argument for option '%s'\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_option                   ; -- Begin function parse_option
	.p2align	2
_parse_option:                          ; @parse_option
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x3
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	x0, x3
	bl	_find_option
	mov	x22, x0
	ldr	x9, [x0, #8]
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
	cbz	x9, LBB0_2
LBB0_1:
	ldr	w9, [x22]
Lloh2:
	adrp	x10, _OPT_BOOL@GOTPAGE
Lloh3:
	ldr	x10, [x10, _OPT_BOOL@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	tst	w10, w9
	csel	x20, x20, x8, eq
	b	LBB0_8
LBB0_2:
	ldrb	w9, [x19]
	cmp	w9, #110
	b.ne	LBB0_6
; %bb.3:
	ldrb	w9, [x19, #1]
	cmp	w9, #111
	b.ne	LBB0_6
; %bb.4:
	add	x1, x19, #2
	mov	x0, x23
	bl	_find_option
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_7
; %bb.5:
	mov	x22, x0
Lloh5:
	adrp	x8, l_.str@PAGE
Lloh6:
	add	x8, x8, l_.str@PAGEOFF
	b	LBB0_1
LBB0_6:
	ldr	w9, [x22]
Lloh7:
	adrp	x10, _OPT_BOOL@GOTPAGE
Lloh8:
	ldr	x10, [x10, _OPT_BOOL@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	tst	w10, w9
	csel	x20, x20, x8, eq
LBB0_7:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	bl	_find_option
	mov	x22, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_13
LBB0_8:
	ldr	w8, [x22]
Lloh12:
	adrp	x23, _HAS_ARG@GOTPAGE
Lloh13:
	ldr	x23, [x23, _HAS_ARG@GOTPAGEOFF]
	ldr	w9, [x23]
	and	w8, w9, w8
	cmp	x20, #0
	ccmp	w8, #0, #4, eq
	b.ne	LBB0_12
; %bb.9:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x19
	mov	x3, x20
	bl	_write_option
	tbnz	w0, #31, LBB0_11
; %bb.10:
	ldr	w8, [x22]
	ldr	w9, [x23]
	tst	w9, w8
	cset	w0, ne
LBB0_11:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh14:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str.4@PAGE
Lloh18:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh19:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x2, l_.str.3@PAGE
Lloh23:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_14:
	mov	x0, #0
	mov	x3, x19
	bl	_av_log
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_OPT_BOOL,4,2                   ; @OPT_BOOL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0"

l_.str.1:                               ; @.str.1
	.asciz	"1"

l_.str.2:                               ; @.str.2
	.asciz	"default"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.3:                               ; @.str.3
	.asciz	"Unrecognized option '%s'\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HAS_ARG,4,2                    ; @HAS_ARG
l_.str.4:                               ; @.str.4
	.asciz	"Missing argument for option '%s'\n"

.subsections_via_symbols
