	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_optionFindNextValue            ## -- Begin function optionFindNextValue
	.p2align	4, 0x90
_optionFindNextValue:                   ## @optionFindNextValue
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_EINVAL@GOTPCREL(%rip), %r15
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_OPTST_GET_ARGTYPE
	movq	_OPARG_TYPE_HIERARCHY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.2:
	movq	(%rbx), %rax
	movq	_ENOENT@GOTPCREL(%rip), %r15
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movl	(%rax), %ebx
	movl	4(%rax), %edi
	callq	_VOIDP
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	jle	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	decl	%ebx
	movq	(%rax), %rcx
	addq	$8, %rax
	xorl	%esi, %esi
	cmpq	%r14, %rcx
	sete	%sil
	testl	%edx, %edx
	movl	%esi, %edx
	je	LBB0_4
## %bb.6:
	testq	%rcx, %rcx
	jne	LBB0_8
LBB0_7:
	movl	(%r15), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%ecx, %ecx
LBB0_8:
	movq	%rcx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OPARG_TYPE_HIERARCHY,8,3       ## @OPARG_TYPE_HIERARCHY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_ENOENT,4,2                     ## @ENOENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_optionFindNextValue            ; -- Begin function optionFindNextValue
	.p2align	2
_optionFindNextValue:                   ; @optionFindNextValue
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_OPTST_GET_ARGTYPE
Lloh0:
	adrp	x8, _OPARG_TYPE_HIERARCHY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OPARG_TYPE_HIERARCHY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.2:
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.3:
	ldp	w20, w0, [x8]
	bl	_VOIDP
	mov	w11, #0
Lloh3:
	adrp	x9, _ENOENT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	subs	w20, w20, #1
	b.lt	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x10, x11
	ldr	x8, [x0], #8
	cmp	x8, x19
	cset	w11, eq
	cbz	w10, LBB0_4
; %bb.6:
	cbnz	x8, LBB0_10
LBB0_7:
Lloh5:
	adrp	x9, _ENOENT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh7:
	adrp	x9, _EINVAL@GOTPAGE
Lloh8:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
LBB0_9:
	mov	x8, #0
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _errno@GOTPAGE
Lloh10:
	ldr	x10, [x10, _errno@GOTPAGEOFF]
Lloh11:
	str	w9, [x10]
LBB0_10:
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_OPARG_TYPE_HIERARCHY,8,3       ; @OPARG_TYPE_HIERARCHY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_ENOENT,4,2                     ; @ENOENT
.subsections_via_symbols
