	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nextopt                        ## -- Begin function nextopt
	.p2align	4, 0x90
_nextopt:                               ## @nextopt
	.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	%rdi, %rbx
	movq	_nextopt_optptr@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	testq	%r13, %r13
	je	LBB0_2
## %bb.1:
	movb	(%r13), %r12b
	testb	%r12b, %r12b
	je	LBB0_2
LBB0_7:
	movb	(%rbx), %cl
	movsbl	%r12b, %r14d
	cmpb	%r12b, %cl
	jne	LBB0_9
## %bb.8:
	movq	%rbx, %rax
LBB0_16:
	incq	%r13
	cmpb	$58, 1(%rax)
	movq	_nextopt_optptr@GOTPCREL(%rip), %rbx
	jne	LBB0_21
## %bb.17:
	cmpb	$0, (%r13)
	jne	LBB0_20
## %bb.18:
	movq	_argptr@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	8(%rcx), %rdx
	movq	%rdx, (%rax)
	movq	(%rcx), %r13
	testq	%r13, %r13
	jne	LBB0_20
## %bb.19:
	movsbl	%r12b, %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_error
	xorl	%r13d, %r13d
LBB0_20:
	movq	_shoptarg@GOTPCREL(%rip), %rax
	movq	%r13, (%rax)
	xorl	%r13d, %r13d
LBB0_21:
	movq	%r13, (%rbx)
	jmp	LBB0_22
LBB0_2:
	movq	_argptr@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	(%rdx), %rax
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_22
## %bb.3:
	cmpb	$45, (%rax)
	jne	LBB0_22
## %bb.4:
	cmpb	$0, 1(%rax)
	je	LBB0_22
## %bb.5:
	leaq	1(%rax), %r13
	addq	$8, %rdx
	movq	%rdx, (%rcx)
	movb	(%r13), %r12b
	cmpb	$45, %r12b
	jne	LBB0_7
## %bb.6:
	movb	$45, %r12b
	cmpb	$0, 2(%rax)
	jne	LBB0_7
LBB0_22:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str(%rip), %r15
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	leaq	1(%rbx), %rax
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	movb	%dl, %cl
	movzbl	1(%rcx,%rbx), %ecx
	movq	%rax, %rbx
	cmpb	%r12b, %cl
	je	LBB0_16
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	testb	%cl, %cl
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_error
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	xorl	%ecx, %ecx
	cmpb	$58, 1(%rbx)
	sete	%dl
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	leaq	2(%rbx), %rax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_nextopt_optptr,8,3             ## @nextopt_optptr
	.comm	_argptr,8,3                     ## @argptr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Illegal option -%c"

L_.str.1:                               ## @.str.1
	.asciz	"No arg for -%c option"

	.comm	_shoptarg,8,3                   ## @shoptarg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nextopt                        ; -- Begin function nextopt
	.p2align	2
_nextopt:                               ; @nextopt
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
Lloh0:
	adrp	x22, _nextopt_optptr@GOTPAGE
Lloh1:
	ldr	x22, [x22, _nextopt_optptr@GOTPAGEOFF]
	ldr	x23, [x22]
	cbz	x23, LBB0_10
; %bb.1:
	ldrb	w24, [x23]
	cbz	w24, LBB0_10
LBB0_2:
	ldrb	w8, [x20]
	sxtb	w19, w24
	cmp	w8, w24
	b.ne	LBB0_18
; %bb.3:
	mov	x9, x20
LBB0_4:
	add	x8, x23, #1
	ldrb	w9, [x9, #1]
	cmp	w9, #58
	b.ne	LBB0_9
; %bb.5:
	ldrb	w9, [x8]
	cbnz	w9, LBB0_8
; %bb.6:
Lloh2:
	adrp	x8, _argptr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _argptr@GOTPAGEOFF]
	ldr	x9, [x8]
	add	x10, x9, #8
	str	x10, [x8]
	ldr	x8, [x9]
	cbnz	x8, LBB0_8
; %bb.7:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_error
	mov	x8, #0
LBB0_8:
Lloh6:
	adrp	x9, _shoptarg@GOTPAGE
Lloh7:
	ldr	x9, [x9, _shoptarg@GOTPAGEOFF]
Lloh8:
	str	x8, [x9]
	mov	x8, #0
LBB0_9:
	str	x8, [x22]
	b	LBB0_17
LBB0_10:
Lloh9:
	adrp	x9, _argptr@GOTPAGE
Lloh10:
	ldr	x9, [x9, _argptr@GOTPAGEOFF]
	ldr	x10, [x9]
	ldr	x8, [x10]
	cbz	x8, LBB0_16
; %bb.11:
	ldrb	w11, [x8]
	cmp	w11, #45
	b.ne	LBB0_16
; %bb.12:
	mov	x23, x8
	ldrb	w11, [x23, #1]!
	cbz	w11, LBB0_16
; %bb.13:
	add	x10, x10, #8
	str	x10, [x9]
	ldrb	w24, [x23]
	cmp	w24, #45
	b.ne	LBB0_2
; %bb.14:
	ldrb	w8, [x8, #2]
	cbz	w8, LBB0_16
; %bb.15:
	mov	w24, #45
	b	LBB0_2
LBB0_16:
	mov	w19, #0
LBB0_17:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_18:
Lloh11:
	adrp	x21, l_.str@PAGE
Lloh12:
	add	x21, x21, l_.str@PAGEOFF
	mov	w25, #1
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	x8, x20
	ldrb	w9, [x8, #1]!
	add	x10, x20, #2
	cmp	w9, #58
	cinc	x11, x25, eq
	csel	x9, x10, x8, eq
	ldrb	w8, [x20, x11]
	mov	x20, x9
	cmp	w8, w24
	b.eq	LBB0_4
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	tst	w8, #0xff
	b.ne	LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x0, x21
	mov	x1, x19
	bl	_error
	b	LBB0_19
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_nextopt_optptr,8,3             ; @nextopt_optptr
	.comm	_argptr,8,3                     ; @argptr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Illegal option -%c"

l_.str.1:                               ; @.str.1
	.asciz	"No arg for -%c option"

	.comm	_shoptarg,8,3                   ; @shoptarg
.subsections_via_symbols
