	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getopt_long                    ## -- Begin function getopt_long
	.p2align	4, 0x90
_getopt_long:                           ## @getopt_long
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r13d
	movq	_optind@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	$1, (%r14)
	movl	$1, %eax
LBB0_2:
	movl	$-1, %r15d
	cmpl	$2, %r13d
	jl	LBB0_15
## %bb.3:
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%rax,8), %rdi
	callq	_find_short_index
	movl	%eax, %r12d
	movq	(%r14), %rax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%rax,8), %rdi
	callq	_find_long_index
	movl	%eax, %r14d
	cmpl	$-1, %r12d
	jne	LBB0_5
## %bb.4:
	cmpl	$-1, %r14d
	je	LBB0_15
LBB0_5:
	cmpl	$-1, %r14d
	sete	%al
	cmpl	%r14d, %r12d
	setl	%cl
	testl	%r12d, %r12d
	jle	LBB0_8
## %bb.6:
	orb	%al, %cl
	je	LBB0_8
## %bb.7:
	movl	%r12d, %eax
	xorl	%r12d, %r12d
	movl	%r14d, %r15d
LBB0_12:
	movq	_optind@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,8), %rdi
	movl	%eax, %eax
	addq	%rcx, %rax
	leaq	(%rdx,%rax,8), %rsi
	movl	%r13d, %eax
	leaq	(%rdx,%rax,8), %rdx
	callq	_shuffle_block
	movl	%r15d, %r14d
	jmp	LBB0_13
LBB0_8:
	testl	%r14d, %r14d
	jle	LBB0_13
## %bb.9:
	xorl	%r15d, %r15d
	cmpl	$-1, %r12d
	je	LBB0_10
## %bb.11:
	movl	%r14d, %eax
	cmpl	%r12d, %r14d
	movl	$1, %r14d
	jl	LBB0_12
LBB0_13:
	testl	%r12d, %r12d
	sete	%al
	testl	%r14d, %r14d
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_retro_assert
	testl	%r12d, %r12d
	je	LBB0_16
## %bb.14:
	movl	$63, %r15d
	testl	%r14d, %r14d
	je	LBB0_17
LBB0_15:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_parse_short                    ## TAILCALL
LBB0_17:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_parse_long                     ## TAILCALL
LBB0_10:
	movl	%r14d, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_optind,8,3                     ## @optind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getopt_long                    ; -- Begin function getopt_long
	.p2align	2
_getopt_long:                           ; @getopt_long
	.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	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x23, x0
Lloh0:
	adrp	x25, _optind@GOTPAGE
Lloh1:
	ldr	x25, [x25, _optind@GOTPAGEOFF]
	ldr	x8, [x25]
	cbz	x8, LBB0_3
; %bb.1:
	cmp	w23, #2
	b.ge	LBB0_4
LBB0_2:
	mov	w0, #-1
	b	LBB0_16
LBB0_3:
	mov	w8, #1
	str	x8, [x25]
	cmp	w23, #2
	b.lt	LBB0_2
LBB0_4:
	add	x0, x20, x8, lsl #3
	bl	_find_short_index
	mov	x22, x0
	ldr	x8, [x25]
	add	x0, x20, x8, lsl #3
	bl	_find_long_index
	mov	x24, x0
	mov	w0, #-1
	cmn	w22, #1
	ccmn	w24, #1, #0, eq
	b.eq	LBB0_16
; %bb.5:
	cmp	w22, w24
	ccmp	w24, w0, #4, ge
	cset	w8, eq
	cmp	w22, #1
	b.lt	LBB0_8
; %bb.6:
	tbz	w8, #0, LBB0_8
; %bb.7:
	mov	x8, x22
	mov	w22, #0
	b	LBB0_11
LBB0_8:
	cmp	w24, #1
	b.lt	LBB0_13
; %bb.9:
	cmn	w22, #1
	ccmp	w24, w22, #8, ne
	b.ge	LBB0_12
; %bb.10:
	mov	x8, x24
	mov	w24, #0
LBB0_11:
	ldr	x9, [x25]
	add	x0, x20, x9, lsl #3
	add	x8, x9, w8, uxtw
	add	x1, x20, x8, lsl #3
	add	x2, x20, w23, uxtw #3
	bl	_shuffle_block
	b	LBB0_13
LBB0_12:
	mov	w24, #1
LBB0_13:
	cmp	w22, #0
	ccmp	w24, #0, #4, ne
	cset	w0, eq
	bl	_retro_assert
	cbz	w22, LBB0_17
; %bb.14:
	cbz	w24, LBB0_18
; %bb.15:
	mov	w0, #63
LBB0_16:
	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_17:
	ldr	x8, [x25]
	add	x1, x20, x8, lsl #3
	mov	x0, x21
	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
	b	_parse_short
LBB0_18:
	ldr	x8, [x25]
	add	x1, x20, x8, lsl #3
	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
	b	_parse_long
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_optind,8,3                     ; @optind
.subsections_via_symbols
