	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getopt                         ## -- Begin function getopt
	.p2align	4, 0x90
_getopt:                                ## @getopt
	.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	_optarg@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_opterr@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_optopt@GOTPCREL(%rip), %r13
	movl	$0, (%r13)
	movq	_optind@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rax
	cmpl	%edi, %eax
	jge	LBB0_6
## %bb.1:
	movq	%rsi, %r15
	movl	%edi, %r12d
	movq	(%rsi,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.2:
	cmpb	$45, (%rdi)
	jne	LBB0_6
## %bb.3:
	movq	%rdx, %r14
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movslq	(%rbx), %rax
	movq	(%r15,%rax,8), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	_optcursor@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.8:
	movb	(%rdx), %al
	testb	%al, %al
	jne	LBB0_10
LBB0_9:
	movslq	(%rbx), %rax
	movq	(%r15,%rax,8), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, (%rcx)
	movb	1(%rax), %al
LBB0_10:
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movsbl	%al, %ebx
	movl	%ebx, (%r13)
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	cmpb	$58, 1(%rax)
	jne	LBB0_13
## %bb.14:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leaq	1(%rdx), %rcx
	movq	_optcursor@GOTPCREL(%rip), %rdi
	movq	%rcx, (%rdi)
	movq	_optarg@GOTPCREL(%rip), %rsi
	movq	%rcx, (%rsi)
	cmpb	$0, 1(%rdx)
	jne	LBB0_20
## %bb.15:
	cmpb	$58, 2(%rax)
	jne	LBB0_16
## %bb.19:
	movq	$0, (%rsi)
	jmp	LBB0_20
LBB0_5:
	incl	(%rbx)
LBB0_6:
	movq	_optcursor@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movl	$-1, %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	$63, %ebx
LBB0_13:
	movq	_optcursor@GOTPCREL(%rip), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leaq	1(%rdx), %rax
	movq	%rax, (%rcx)
	cmpb	$0, 1(%rdx)
	jne	LBB0_22
	jmp	LBB0_21
LBB0_16:
	movq	_optind@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rax
	leal	1(%rax), %ecx
	movl	%ecx, (%rdx)
	cmpl	%r12d, %ecx
	jge	LBB0_18
## %bb.17:
	movq	8(%r15,%rax,8), %rax
	movq	%rax, (%rsi)
	jmp	LBB0_20
LBB0_18:
	movq	$0, (%rsi)
	xorl	%eax, %eax
	cmpb	$58, (%r14)
	setne	%al
	leal	(%rax,%rax,4), %ebx
	addl	$58, %ebx
LBB0_20:
	movq	$0, (%rdi)
LBB0_21:
	movq	_optind@GOTPCREL(%rip), %rax
	incl	(%rax)
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_optarg,8,3                     ## @optarg
	.comm	_opterr,8,3                     ## @opterr
	.comm	_optopt,4,2                     ## @optopt
	.comm	_optind,4,2                     ## @optind
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-"

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

	.comm	_optcursor,8,3                  ## @optcursor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getopt                         ; -- Begin function getopt
	.p2align	2
_getopt:                                ; @getopt
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x24, _optarg@GOTPAGE
Lloh1:
	ldr	x24, [x24, _optarg@GOTPAGEOFF]
	str	xzr, [x24]
Lloh2:
	adrp	x8, _opterr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _opterr@GOTPAGEOFF]
Lloh4:
	adrp	x26, _optopt@GOTPAGE
Lloh5:
	ldr	x26, [x26, _optopt@GOTPAGEOFF]
Lloh6:
	str	xzr, [x8]
	str	wzr, [x26]
Lloh7:
	adrp	x23, _optind@GOTPAGE
Lloh8:
	ldr	x23, [x23, _optind@GOTPAGEOFF]
	ldrsw	x8, [x23]
	cmp	w8, w0
	b.ge	LBB0_14
; %bb.1:
	mov	x20, x1
	mov	x21, x0
	ldr	x0, [x1, x8, lsl #3]
	cbz	x0, LBB0_14
; %bb.2:
	ldrb	w8, [x0]
	cmp	w8, #45
	b.ne	LBB0_14
; %bb.3:
	mov	x19, x2
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_14
; %bb.4:
	ldrsw	x8, [x23]
	ldr	x0, [x20, x8, lsl #3]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_13
; %bb.5:
Lloh13:
	adrp	x25, _optcursor@GOTPAGE
Lloh14:
	ldr	x25, [x25, _optcursor@GOTPAGEOFF]
	ldr	x27, [x25]
	cbz	x27, LBB0_7
; %bb.6:
	ldrb	w8, [x27]
	cbnz	w8, LBB0_8
LBB0_7:
	ldrsw	x8, [x23]
	ldr	x8, [x20, x8, lsl #3]
	add	x27, x8, #1
	str	x27, [x25]
	ldrb	w8, [x8, #1]
LBB0_8:
	sxtb	w22, w8
	str	w22, [x26]
	mov	x0, x19
	mov	x1, x22
	bl	_strchr
	cbz	x0, LBB0_16
; %bb.9:
	ldrb	w8, [x0, #1]
	cmp	w8, #58
	b.ne	LBB0_17
; %bb.10:
	add	x8, x27, #1
	str	x8, [x25]
	str	x8, [x24]
	ldrb	w8, [x27, #1]
	cbnz	w8, LBB0_21
; %bb.11:
	ldrb	w8, [x0, #2]
	cmp	w8, #58
	b.ne	LBB0_18
; %bb.12:
	str	xzr, [x24]
	b	LBB0_21
LBB0_13:
	ldr	w8, [x23]
	add	w8, w8, #1
	str	w8, [x23]
LBB0_14:
Lloh15:
	adrp	x8, _optcursor@GOTPAGE
Lloh16:
	ldr	x8, [x8, _optcursor@GOTPAGEOFF]
Lloh17:
	str	xzr, [x8]
	mov	w22, #-1
LBB0_15:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	w22, #63
LBB0_17:
	add	x8, x27, #1
	str	x8, [x25]
	ldrb	w8, [x27, #1]
	cbnz	w8, LBB0_15
	b	LBB0_22
LBB0_18:
	ldrsw	x8, [x23]
	add	x8, x8, #1
	str	w8, [x23]
	cmp	w8, w21
	b.ge	LBB0_20
; %bb.19:
	ldr	x8, [x20, x8, lsl #3]
	str	x8, [x24]
	b	LBB0_21
LBB0_20:
	str	xzr, [x24]
	ldrb	w8, [x19]
	mov	w9, #63
	cmp	w8, #58
	csel	w22, w8, w9, eq
LBB0_21:
	str	xzr, [x25]
LBB0_22:
	ldr	w8, [x23]
	add	w8, w8, #1
	str	w8, [x23]
	b	LBB0_15
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_optarg,8,3                     ; @optarg
	.comm	_opterr,8,3                     ; @opterr
	.comm	_optopt,4,2                     ; @optopt
	.comm	_optind,4,2                     ; @optind
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-"

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

	.comm	_optcursor,8,3                  ; @optcursor
.subsections_via_symbols
