	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lcc_getopt                     ## -- Begin function lcc_getopt
	.p2align	4, 0x90
_lcc_getopt:                            ## @lcc_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	%rsi, %r14
	movl	%edi, %ebx
	movl	_lcc_getopt.sp(%rip), %eax
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.1:
	movq	_optind@GOTPCREL(%rip), %r15
	movslq	(%r15), %rax
	movl	$-1, %r12d
	cmpl	%ebx, %eax
	jge	LBB0_20
## %bb.2:
	movq	(%r14,%rax,8), %rdi
	cmpb	$45, (%rdi)
	jne	LBB0_20
## %bb.3:
	cmpb	$0, 1(%rdi)
	je	LBB0_20
## %bb.4:
	movq	%rdx, %r13
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_21
## %bb.5:
	movl	_lcc_getopt.sp(%rip), %eax
	movq	%r13, %rdx
LBB0_6:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	_optind@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	(%r14,%rcx,8), %rbx
	movslq	%eax, %r13
	movsbl	(%rbx,%r13), %r12d
	movq	_optopt@GOTPCREL(%rip), %rax
	movl	%r12d, (%rax)
	cmpl	$58, %r12d
	je	LBB0_8
## %bb.7:
	movq	%rdx, %rdi
	movl	%r12d, %esi
	movq	%r14, %r15
	movq	%rcx, %r14
	callq	_strchr
	movq	%r14, %rdx
	movq	%r15, %r14
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:
	incq	%r13
	cmpb	$58, 1(%rax)
	jne	LBB0_17
## %bb.11:
	leal	1(%rdx), %eax
	cmpb	$0, (%rbx,%r13)
	movq	_optind@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	je	LBB0_13
## %bb.12:
	addq	%r13, %rbx
	jmp	LBB0_16
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	callq	_ERR
	movq	_optind@GOTPCREL(%rip), %rdi
	movslq	(%rdi), %rax
	movq	(%r14,%rax,8), %rcx
	movslq	_lcc_getopt.sp(%rip), %rdx
	leaq	1(%rdx), %rsi
	movl	%esi, _lcc_getopt.sp(%rip)
	movl	$63, %r12d
	cmpb	$0, 1(%rcx,%rdx)
	jne	LBB0_20
## %bb.9:
	incl	%eax
	movl	%eax, (%rdi)
	movl	$1, _lcc_getopt.sp(%rip)
	jmp	LBB0_20
LBB0_17:
	movl	%r13d, _lcc_getopt.sp(%rip)
	cmpb	$0, (%rbx,%r13)
	jne	LBB0_19
## %bb.18:
	movl	$1, _lcc_getopt.sp(%rip)
	incl	%edx
	movq	_optind@GOTPCREL(%rip), %rax
	movl	%edx, (%rax)
LBB0_19:
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	jmp	LBB0_20
LBB0_13:
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jge	LBB0_14
## %bb.15:
	leal	2(%rdx), %eax
	movl	%eax, (%rcx)
	movq	8(%r14,%rdx,8), %rbx
LBB0_16:
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	movl	$1, _lcc_getopt.sp(%rip)
	jmp	LBB0_20
LBB0_21:
	incl	(%r15)
	jmp	LBB0_20
LBB0_14:
	leaq	L_.str.2(%rip), %rdi
	movl	%r12d, %esi
	callq	_ERR
	movl	$1, _lcc_getopt.sp(%rip)
	movl	$63, %r12d
LBB0_20:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	2                               ## @lcc_getopt.sp
_lcc_getopt.sp:
	.long	1                               ## 0x1

	.comm	_optind,4,2                     ## @optind
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"--"

	.comm	_optopt,4,2                     ## @optopt
L_.str.1:                               ## @.str.1
	.asciz	": illegal option -- "

	.comm	_optarg,8,3                     ## @optarg
L_.str.2:                               ## @.str.2
	.asciz	": option requires an argument -- "

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lcc_getopt                     ; -- Begin function lcc_getopt
	.p2align	2
_lcc_getopt:                            ; @lcc_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
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	adrp	x23, _lcc_getopt.sp@PAGE
	ldr	w8, [x23, _lcc_getopt.sp@PAGEOFF]
Lloh0:
	adrp	x24, _optind@GOTPAGE
Lloh1:
	ldr	x24, [x24, _optind@GOTPAGEOFF]
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.1:
	ldrsw	x8, [x24]
	cmp	w8, w21
	b.ge	LBB0_21
; %bb.2:
	ldr	x0, [x20, x8, lsl #3]
	ldrb	w8, [x0]
	cmp	w8, #45
	b.ne	LBB0_21
; %bb.3:
	ldrb	w8, [x0, #1]
	cbz	w8, LBB0_21
; %bb.4:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_20
; %bb.5:
	ldr	w8, [x23, _lcc_getopt.sp@PAGEOFF]
LBB0_6:
	ldrsw	x25, [x24]
	ldr	x26, [x20, x25, lsl #3]
	sxtw	x27, w8
	ldrsb	w19, [x26, x27]
Lloh4:
	adrp	x8, _optopt@GOTPAGE
Lloh5:
	ldr	x8, [x8, _optopt@GOTPAGEOFF]
Lloh6:
	str	w19, [x8]
	cmp	w19, #58
	b.eq	LBB0_13
; %bb.7:
	mov	x0, x22
	mov	x1, x19
	bl	_strchr
	cbz	x0, LBB0_13
; %bb.8:
	ldrb	w9, [x0, #1]
	add	x8, x27, #1
	cmp	w9, #58
	b.ne	LBB0_17
; %bb.9:
	add	x8, x26, x8
	ldrb	w10, [x8]
	add	w9, w25, #1
	str	w9, [x24]
	cbnz	w10, LBB0_12
; %bb.10:
	cmp	w9, w21
	b.ge	LBB0_23
; %bb.11:
	add	w8, w25, #2
	str	w8, [x24]
	ldr	x8, [x20, w9, sxtw #3]
LBB0_12:
Lloh7:
	adrp	x9, _optarg@GOTPAGE
Lloh8:
	ldr	x9, [x9, _optarg@GOTPAGEOFF]
Lloh9:
	str	x8, [x9]
	mov	w8, #1
	str	w8, [x23, _lcc_getopt.sp@PAGEOFF]
	b	LBB0_22
LBB0_13:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_ERR
	ldrsw	x8, [x24]
	ldr	x9, [x20, x8, lsl #3]
	ldrsw	x10, [x23, _lcc_getopt.sp@PAGEOFF]
	add	x10, x10, #1
	str	w10, [x23, _lcc_getopt.sp@PAGEOFF]
	ldrb	w9, [x9, x10]
	cbz	w9, LBB0_15
; %bb.14:
	mov	w19, #63
	b	LBB0_22
LBB0_15:
	add	w8, w8, #1
	str	w8, [x24]
LBB0_16:
	mov	w8, #1
	str	w8, [x23, _lcc_getopt.sp@PAGEOFF]
	mov	w19, #63
	b	LBB0_22
LBB0_17:
	str	w8, [x23, _lcc_getopt.sp@PAGEOFF]
	ldrb	w8, [x26, x8]
	cbnz	w8, LBB0_19
; %bb.18:
	mov	w8, #1
	str	w8, [x23, _lcc_getopt.sp@PAGEOFF]
	add	w8, w25, #1
	str	w8, [x24]
LBB0_19:
Lloh12:
	adrp	x8, _optarg@GOTPAGE
Lloh13:
	ldr	x8, [x8, _optarg@GOTPAGEOFF]
Lloh14:
	str	xzr, [x8]
	b	LBB0_22
LBB0_20:
	ldr	w8, [x24]
	add	w8, w8, #1
	str	w8, [x24]
LBB0_21:
	mov	w19, #-1
LBB0_22:
	mov	x0, x19
	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_23:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_ERR
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @lcc_getopt.sp
_lcc_getopt.sp:
	.long	1                               ; 0x1

	.comm	_optind,4,2                     ; @optind
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"--"

	.comm	_optopt,4,2                     ; @optopt
l_.str.1:                               ; @.str.1
	.asciz	": illegal option -- "

	.comm	_optarg,8,3                     ; @optarg
l_.str.2:                               ; @.str.2
	.asciz	": option requires an argument -- "

.subsections_via_symbols
