	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getoldopt                      ## -- Begin function getoldopt
	.p2align	4, 0x90
_getoldopt:                             ## @getoldopt
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	_optarg@GOTPCREL(%rip), %r12
	movq	$0, (%r12)
	movq	_getoldopt.key(%rip), %rax
	testq	%rax, %rax
	je	LBB0_1
LBB0_5:
	movb	_getoldopt.use_getopt(%rip), %cl
	testb	%cl, %cl
	je	LBB0_7
LBB0_18:
	movl	%r15d, %edi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_getopt                         ## TAILCALL
LBB0_1:
	movl	$-1, %ebx
	cmpl	$2, %r15d
	jl	LBB0_17
## %bb.2:
	movq	8(%r14), %rax
	movq	%rax, _getoldopt.key(%rip)
	cmpb	$45, (%rax)
	jne	LBB0_4
## %bb.3:
	movb	_getoldopt.use_getopt(%rip), %cl
	incb	%cl
	movb	%cl, _getoldopt.use_getopt(%rip)
	testb	%cl, %cl
	jne	LBB0_18
LBB0_7:
	leaq	1(%rax), %rcx
	movq	%rcx, _getoldopt.key(%rip)
	movsbl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.9:
	movq	%rdx, %rdi
	movl	%ebx, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	cmpb	$58, %bl
	je	LBB0_11
## %bb.12:
	cmpb	$58, 1(%rax)
	jne	LBB0_17
## %bb.13:
	movq	_optind@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	cmpl	%r15d, %ecx
	jge	LBB0_15
## %bb.14:
	movq	(%r14,%rcx,8), %rdx
	movq	%rdx, (%r12)
	incl	%ecx
	movl	%ecx, (%rax)
	jmp	LBB0_17
LBB0_8:
	movq	%rax, _getoldopt.key(%rip)
	movl	$-1, %ebx
	jmp	LBB0_17
LBB0_11:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rdx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_16
LBB0_4:
	movq	_optind@GOTPCREL(%rip), %rcx
	movl	$2, (%rcx)
	jmp	LBB0_5
LBB0_15:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rdx
	leaq	L_.str.1(%rip), %rsi
LBB0_16:
	movl	%ebx, %ecx
	callq	_fprintf
	movl	$63, %ebx
LBB0_17:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_getoldopt.key,8,3 ## @getoldopt.key
.zerofill __DATA,__bss,_getoldopt.use_getopt,1,0 ## @getoldopt.use_getopt
	.comm	_optarg,8,3                     ## @optarg
	.comm	_optind,4,2                     ## @optind
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: unknown option %c\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: %c argument missing\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getoldopt                      ; -- Begin function getoldopt
	.p2align	2
_getoldopt:                             ; @getoldopt
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _optarg@GOTPAGE
Lloh1:
	ldr	x22, [x22, _optarg@GOTPAGEOFF]
	str	xzr, [x22]
	adrp	x8, _getoldopt.key@PAGE
	ldr	x9, [x8, _getoldopt.key@PAGEOFF]
	cbz	x9, LBB0_3
LBB0_1:
	adrp	x10, _getoldopt.use_getopt@PAGE
	ldrb	w10, [x10, _getoldopt.use_getopt@PAGEOFF]
	tst	w10, #0xff
	b.eq	LBB0_7
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_getopt
LBB0_3:
	cmp	w20, #2
	b.ge	LBB0_5
; %bb.4:
	mov	w21, #-1
	b	LBB0_18
LBB0_5:
	ldr	x9, [x19, #8]
	str	x9, [x8, _getoldopt.key@PAGEOFF]
	ldrb	w10, [x9]
	cmp	w10, #45
	b.ne	LBB0_15
; %bb.6:
	adrp	x11, _getoldopt.use_getopt@PAGE
	ldrb	w10, [x11, _getoldopt.use_getopt@PAGEOFF]
	add	w10, w10, #1
	strb	w10, [x11, _getoldopt.use_getopt@PAGEOFF]
	tst	w10, #0xff
	b.ne	LBB0_2
LBB0_7:
	add	x10, x9, #1
	str	x10, [x8, _getoldopt.key@PAGEOFF]
	ldrsb	w21, [x9]
	cbz	w21, LBB0_13
; %bb.8:
	mov	x0, x2
	mov	x1, x21
	bl	_strchr
	cbz	x0, LBB0_14
; %bb.9:
	cmp	w21, #58
	b.eq	LBB0_14
; %bb.10:
	ldrb	w8, [x0, #1]
	cmp	w8, #58
	b.ne	LBB0_18
; %bb.11:
Lloh2:
	adrp	x8, _optind@GOTPAGE
Lloh3:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
	ldrsw	x9, [x8]
	cmp	w9, w20
	b.ge	LBB0_16
; %bb.12:
	ldr	x10, [x19, x9, lsl #3]
	str	x10, [x22]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_18
LBB0_13:
	str	x9, [x8, _getoldopt.key@PAGEOFF]
	mov	w21, #-1
	b	LBB0_18
LBB0_14:
Lloh4:
	adrp	x8, _stderr@GOTPAGE
Lloh5:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	x2, [x19]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_17
LBB0_15:
Lloh9:
	adrp	x10, _optind@GOTPAGE
Lloh10:
	ldr	x10, [x10, _optind@GOTPAGEOFF]
	mov	w11, #2
Lloh11:
	str	w11, [x10]
	b	LBB0_1
LBB0_16:
Lloh12:
	adrp	x8, _stderr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	x2, [x19]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_17:
	mov	x3, x21
	bl	_fprintf
	mov	w21, #63
LBB0_18:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_getoldopt.key,8,3 ; @getoldopt.key
.zerofill __DATA,__bss,_getoldopt.use_getopt,1,0 ; @getoldopt.use_getopt
	.comm	_optarg,8,3                     ; @optarg
	.comm	_optind,4,2                     ; @optind
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: unknown option %c\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: %c argument missing\n"

.subsections_via_symbols
