	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_env_opt
_do_env_opt:                            ## @do_env_opt
	.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
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_getenv
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	_OPTST_PRESET@GOTPCREL(%rip), %rcx
	movq	_OPTST_ALLOC_ARG@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	orl	(%rcx), %edx
	movq	16(%rbx), %rcx
	orl	(%rcx), %edx
	movl	%edx, 8(%rbx)
	movq	_TOPT_UNDEFINED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 24(%rbx)
	movq	8(%rcx), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	%rax, %rdi
	callq	_streqvcmp
	testq	%rax, %rax
	je	LBB0_14
LBB0_3:
	cmpl	$128, %r15d
	je	LBB0_6
## %bb.4:
	cmpl	$129, %r15d
	jne	LBB0_8
## %bb.5:
	movl	8(%rbx), %edi
	callq	_DO_IMMEDIATELY
	testl	%eax, %eax
	jne	LBB0_8
	jmp	LBB0_13
LBB0_6:
	movl	8(%rbx), %edi
	callq	_DO_NORMALLY
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	8(%rbx), %edi
	callq	_DO_SECOND_TIME
	testl	%eax, %eax
	je	LBB0_13
LBB0_8:
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	callq	_OPTST_GET_ARGTYPE
	movq	_OPARG_TYPE_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.10:
	movq	(%rbx), %rdi
	movq	(%rdi), %rax
	movq	_NUL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.11:
	movq	16(%rbx), %rax
	movq	_OPTST_ARG_OPTIONAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_13
LBB0_9:
	movq	$0, (%rbx)
	jmp	LBB0_16
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_OPTST_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
	movq	$0, (%rbx)
	jmp	LBB0_16
LBB0_15:
	leaq	L_.str(%rip), %rdx
	movq	%rdi, %rsi
	callq	_AGDUPSTR
	movl	(%r12), %eax
	orl	%eax, 8(%rbx)
LBB0_16:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_handle_opt                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OPTST_PRESET,4,2               ## @OPTST_PRESET
	.comm	_OPTST_ALLOC_ARG,4,2            ## @OPTST_ALLOC_ARG
	.comm	_TOPT_UNDEFINED,4,2             ## @TOPT_UNDEFINED
	.comm	_OPTST_DISABLED,4,2             ## @OPTST_DISABLED
	.comm	_OPARG_TYPE_NONE,8,3            ## @OPARG_TYPE_NONE
	.comm	_NUL,8,3                        ## @NUL
	.comm	_OPTST_ARG_OPTIONAL,4,2         ## @OPTST_ARG_OPTIONAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"option argument"

	.no_dead_strip	_do_env_opt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_env_opt
_do_env_opt:                            ; @do_env_opt
	.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	x21, x3
	mov	x19, x2
	mov	x20, x0
	mov	x0, x1
	bl	_getenv
	str	x0, [x20]
	cbz	x0, LBB0_12
; %bb.1:
Lloh0:
	adrp	x8, _OPTST_PRESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OPTST_PRESET@GOTPAGEOFF]
Lloh2:
	adrp	x22, _OPTST_ALLOC_ARG@GOTPAGE
Lloh3:
	ldr	x22, [x22, _OPTST_ALLOC_ARG@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	ldr	x9, [x20, #16]
	ldr	w10, [x9]
	orr	w8, w8, w10
	str	w8, [x20, #8]
Lloh5:
	adrp	x8, _TOPT_UNDEFINED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TOPT_UNDEFINED@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	ldr	x1, [x9, #8]
	cbz	x1, LBB0_3
; %bb.2:
	bl	_streqvcmp
	cbz	x0, LBB0_13
LBB0_3:
	cmp	w21, #128
	b.eq	LBB0_6
; %bb.4:
	cmp	w21, #129
	b.ne	LBB0_8
; %bb.5:
	ldr	w0, [x20, #8]
	bl	_DO_IMMEDIATELY
	cbnz	w0, LBB0_8
	b	LBB0_12
LBB0_6:
	ldr	w0, [x20, #8]
	bl	_DO_NORMALLY
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	w0, [x20, #8]
	bl	_DO_SECOND_TIME
	cbz	w0, LBB0_12
LBB0_8:
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	bl	_OPTST_GET_ARGTYPE
Lloh8:
	adrp	x8, _OPARG_TYPE_NONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OPARG_TYPE_NONE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_11
; %bb.9:
	ldr	x0, [x20]
	ldr	x8, [x0]
Lloh11:
	adrp	x9, _NUL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NUL@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.10:
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _OPTST_ARG_OPTIONAL@GOTPAGE
Lloh15:
	ldr	x9, [x9, _OPTST_ARG_OPTIONAL@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
LBB0_11:
	str	xzr, [x20]
	b	LBB0_15
LBB0_12:
	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
LBB0_13:
Lloh17:
	adrp	x8, _OPTST_DISABLED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _OPTST_DISABLED@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	orr	w8, w9, w8
	str	w8, [x20, #8]
	str	xzr, [x20]
	b	LBB0_15
LBB0_14:
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x0
	bl	_AGDUPSTR
	ldr	w8, [x22]
	ldr	w9, [x20, #8]
	orr	w8, w9, w8
	str	w8, [x20, #8]
LBB0_15:
	mov	x0, x19
	mov	x1, x20
	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	_handle_opt
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_OPTST_PRESET,4,2               ; @OPTST_PRESET
	.comm	_OPTST_ALLOC_ARG,4,2            ; @OPTST_ALLOC_ARG
	.comm	_TOPT_UNDEFINED,4,2             ; @TOPT_UNDEFINED
	.comm	_OPTST_DISABLED,4,2             ; @OPTST_DISABLED
	.comm	_OPARG_TYPE_NONE,8,3            ; @OPARG_TYPE_NONE
	.comm	_NUL,8,3                        ; @NUL
	.comm	_OPTST_ARG_OPTIONAL,4,2         ; @OPTST_ARG_OPTIONAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"option argument"

	.no_dead_strip	_do_env_opt
.subsections_via_symbols
