	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Var_Exists                     ## -- Begin function Var_Exists
	.p2align	4, 0x90
_Var_Exists:                            ## @Var_Exists
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movl	$36, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_VARF_WANTRES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_Var_Subst
	movq	%rax, %r15
	jmp	LBB0_3
LBB0_1:
	xorl	%r15d, %r15d
LBB0_3:
	testq	%r15, %r15
	cmovneq	%r15, %rbx
	movq	_FIND_CMD@GOTPCREL(%rip), %rax
	movq	_FIND_GLOBAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_FIND_ENV@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_VarFind
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_free
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.5:
	movq	_TRUE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_VarFreeEnv
	jmp	LBB0_6
LBB0_4:
	movq	_FALSE@GOTPCREL(%rip), %r14
LBB0_6:
	movl	(%r14), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VARF_WANTRES,4,2               ## @VARF_WANTRES
	.comm	_FIND_CMD,4,2                   ## @FIND_CMD
	.comm	_FIND_GLOBAL,4,2                ## @FIND_GLOBAL
	.comm	_FIND_ENV,4,2                   ## @FIND_ENV
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Var_Exists                     ; -- Begin function Var_Exists
	.p2align	2
_Var_Exists:                            ; @Var_Exists
	.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
	mov	w1, #36
	bl	_strchr
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _VARF_WANTRES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VARF_WANTRES@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, #0
	mov	x1, x20
	mov	x2, x19
	bl	_Var_Subst
	mov	x21, x0
	b	LBB0_3
LBB0_2:
	mov	x21, #0
LBB0_3:
	cmp	x21, #0
	csel	x0, x20, x21, eq
Lloh3:
	adrp	x8, _FIND_CMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FIND_CMD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _FIND_GLOBAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FIND_GLOBAL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _FIND_ENV@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FIND_ENV@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x1, x19
	bl	_VarFind
	mov	x19, x0
	mov	x0, x21
	bl	_free
	cbz	x19, LBB0_5
; %bb.4:
Lloh12:
	adrp	x20, _TRUE@GOTPAGE
Lloh13:
	ldr	x20, [x20, _TRUE@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_VarFreeEnv
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x20, _FALSE@GOTPAGE
Lloh15:
	ldr	x20, [x20, _FALSE@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_VARF_WANTRES,4,2               ; @VARF_WANTRES
	.comm	_FIND_CMD,4,2                   ; @FIND_CMD
	.comm	_FIND_GLOBAL,4,2                ; @FIND_GLOBAL
	.comm	_FIND_ENV,4,2                   ; @FIND_ENV
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
