	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fsm_readopt                    ## -- Begin function fsm_readopt
	.p2align	4, 0x90
_fsm_readopt:                           ## @fsm_readopt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rbx
	movslq	(%rbx), %rdx
	cmpq	$3, %rdx
	ja	LBB0_2
## %bb.1:
	movq	_LogERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_log_Printf
	jmp	LBB0_4
LBB0_2:
	leaq	(%rbx,%rdx,4), %rax
	movq	%rax, (%rdi)
	cmpl	$4, %edx
	je	LBB0_4
## %bb.3:
	movq	_LogERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	$4, %ecx
	xorl	%eax, %eax
	callq	_log_Printf
	movl	$4, (%rbx)
LBB0_4:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LogERROR,4,2                   ## @LogERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad option length %d (out of phase?)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Warning: Truncating option length from %d to %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fsm_readopt                    ; -- Begin function fsm_readopt
	.p2align	2
_fsm_readopt:                           ; @fsm_readopt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
	ldrsw	x2, [x19]
	cmp	w2, #3
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _LogERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LogERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_log_Printf
	mov	x19, #0
	b	LBB0_4
LBB0_2:
	add	x8, x19, x2, lsl #2
	str	x8, [x0]
	cmp	w2, #4
	b.eq	LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _LogERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LogERROR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	w20, #4
	str	x20, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_log_Printf
	str	w20, [x19]
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_LogERROR,4,2                   ; @LogERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad option length %d (out of phase?)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Warning: Truncating option length from %d to %d\n"

.subsections_via_symbols
