	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Var_Export1
_Var_Export1:                           ## @Var_Export1
	.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
	movl	%esi, %r13d
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rcx
	movsbl	(%r12), %eax
	xorl	%ebx, %ebx
	cmpl	$46, %eax
	je	LBB0_18
## %bb.1:
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	_VAR_EXPORT_PARENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	cmpb	$0, 1(%r12)
	je	LBB0_2
LBB0_4:
	movq	_VAR_GLOBAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_VarFind
	testq	%rax, %rax
	je	LBB0_18
## %bb.5:
	movq	%rax, %r14
	testl	%r13d, -52(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_7
## %bb.6:
	movq	_VAR_EXPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_VAR_REEXPORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%eax, %ecx
	andl	(%r14), %ecx
	cmpl	%eax, %ecx
	je	LBB0_18
LBB0_7:
	movq	%r14, %rdi
	addq	$4, %rdi
	xorl	%esi, %esi
	callq	_Buf_GetAll
	movq	%rax, %rsi
	movq	_VAR_EXPORT_LITERAL@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_8
LBB0_14:
	testl	%r13d, -52(%rbp)                ## 4-byte Folded Reload
	je	LBB0_15
## %bb.17:
	movq	_VAR_REEXPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r14)
	movl	$1, %ebx
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_setenv
	movq	_VAR_EXPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	jmp	LBB0_18
LBB0_2:
	addl	$-33, %eax
	cmpl	$31, %eax
	ja	LBB0_4
## %bb.3:
	movl	$-2147483119, %ecx              ## imm = 0x80000211
	btl	%eax, %ecx
	jae	LBB0_4
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rsi, %rdi
	movq	%rsi, %rbx
	movl	$36, %esi
	callq	_strchr
	movq	%rbx, %rsi
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	testl	%r13d, -52(%rbp)                ## 4-byte Folded Reload
	je	LBB0_11
## %bb.10:
	movq	_VAR_EXPORTED@GOTPCREL(%rip), %rax
	movq	_VAR_REEXPORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, (%r14)
	movl	$1, %ebx
	jmp	LBB0_18
LBB0_15:
	movq	_VAR_EXPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$1, %ebx
	testl	%eax, (%r14)
	jne	LBB0_18
## %bb.16:
	movl	$1, %ebx
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_setenv
	jmp	LBB0_18
LBB0_11:
	movq	_VAR_IN_USE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	testl	%eax, (%r14)
	jne	LBB0_18
## %bb.12:
	leaq	L_.str(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movq	%r12, %rcx
	callq	_snprintf
	movl	$1, %ebx
	cmpl	%r15d, %eax
	jge	LBB0_18
## %bb.13:
	movq	_VAR_GLOBAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_VARF_WANTRES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_Var_Subst
	movq	%rax, %r14
	movl	$1, %ebx
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	$1, %edx
	callq	_setenv
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_18
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFSIZ,4,2                     ## @BUFSIZ
	.comm	_VAR_EXPORT_PARENT,4,2          ## @VAR_EXPORT_PARENT
	.comm	_VAR_GLOBAL,4,2                 ## @VAR_GLOBAL
	.comm	_VAR_EXPORTED,4,2               ## @VAR_EXPORTED
	.comm	_VAR_REEXPORT,4,2               ## @VAR_REEXPORT
	.comm	_VAR_EXPORT_LITERAL,4,2         ## @VAR_EXPORT_LITERAL
	.comm	_VAR_IN_USE,4,2                 ## @VAR_IN_USE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"${%s}"

	.comm	_VARF_WANTRES,4,2               ## @VARF_WANTRES
	.no_dead_strip	_Var_Export1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Var_Export1
_Var_Export1:                           ; @Var_Export1
	.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
	sub	sp, sp, #16
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _BUFSIZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BUFSIZ@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x9, x21
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	ldrsb	w8, [x0]
	cmp	w8, #46
	b.eq	LBB0_9
; %bb.1:
Lloh8:
	adrp	x9, _VAR_EXPORT_PARENT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _VAR_EXPORT_PARENT@GOTPAGEOFF]
Lloh10:
	ldr	w24, [x9]
	ldrb	w9, [x19, #1]
	cbz	w9, LBB0_8
LBB0_2:
Lloh11:
	adrp	x25, _VAR_GLOBAL@GOTPAGE
Lloh12:
	ldr	x25, [x25, _VAR_GLOBAL@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #0
	bl	_VarFind
	cbz	x0, LBB0_9
; %bb.3:
	mov	x22, x0
	and	w26, w24, w23
	cbnz	w26, LBB0_5
; %bb.4:
	ldr	w8, [x22]
Lloh13:
	adrp	x9, _VAR_EXPORTED@GOTPAGE
Lloh14:
	ldr	x9, [x9, _VAR_EXPORTED@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _VAR_REEXPORT@GOTPAGE
Lloh17:
	ldr	x10, [x10, _VAR_REEXPORT@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	orr	w10, w10, w9
	and	w8, w10, w8
	cmp	w8, w9
	b.eq	LBB0_9
LBB0_5:
	add	x0, x22, #4
	mov	x1, #0
	bl	_Buf_GetAll
	mov	x24, x0
Lloh19:
	adrp	x8, _VAR_EXPORT_LITERAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _VAR_EXPORT_LITERAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_12
LBB0_6:
	cbz	w26, LBB0_15
; %bb.7:
Lloh22:
	adrp	x8, _VAR_REEXPORT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _VAR_REEXPORT@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [x22]
	bic	w8, w9, w8
	str	w8, [x22]
	mov	w20, #1
	mov	x0, x19
	mov	x1, x24
	mov	w2, #1
	bl	_setenv
Lloh25:
	adrp	x8, _VAR_EXPORTED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _VAR_EXPORTED@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
	b	LBB0_10
LBB0_8:
	sub	w8, w8, #33
	cmp	w8, #31
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #529
	movk	w9, #32768, lsl #16
	and	w8, w8, w9
	ccmp	w8, #0, #4, ls
	b.eq	LBB0_2
LBB0_9:
	mov	w20, #0
LBB0_10:
	ldur	x8, [x29, #-72]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.11:
	mov	x0, x20
	sub	sp, x29, #64
	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_12:
	mov	x0, x24
	mov	w1, #36
	bl	_strchr
	cbz	x0, LBB0_6
; %bb.13:
	cbz	w26, LBB0_17
; %bb.14:
Lloh31:
	adrp	x8, _VAR_EXPORTED@GOTPAGE
Lloh32:
	ldr	x8, [x8, _VAR_EXPORTED@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _VAR_REEXPORT@GOTPAGE
Lloh35:
	ldr	x9, [x9, _VAR_REEXPORT@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x22]
	orr	w8, w8, w9
	str	w8, [x22]
	mov	w20, #1
	b	LBB0_10
LBB0_15:
	ldr	w8, [x22]
Lloh37:
	adrp	x9, _VAR_EXPORTED@GOTPAGE
Lloh38:
	ldr	x9, [x9, _VAR_EXPORTED@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	mov	w20, #1
	tst	w9, w8
	b.ne	LBB0_10
; %bb.16:
	mov	x0, x19
	mov	x1, x24
	mov	w2, #1
	bl	_setenv
	b	LBB0_10
LBB0_17:
	ldr	w8, [x22]
Lloh40:
	adrp	x9, _VAR_IN_USE@GOTPAGE
Lloh41:
	ldr	x9, [x9, _VAR_IN_USE@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_9
; %bb.18:
Lloh43:
	adrp	x2, l_.str@PAGE
Lloh44:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x3, x19
	bl	_snprintf
	cmp	w0, w21
	b.ge	LBB0_20
; %bb.19:
	ldr	w2, [x25]
Lloh45:
	adrp	x8, _VARF_WANTRES@GOTPAGE
Lloh46:
	ldr	x8, [x8, _VARF_WANTRES@GOTPAGEOFF]
Lloh47:
	ldr	w3, [x8]
	mov	x0, #0
	mov	x1, x20
	bl	_Var_Subst
	mov	x21, x0
	mov	w20, #1
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_setenv
	mov	x0, x21
	bl	_free
	b	LBB0_10
LBB0_20:
	mov	w20, #1
	b	LBB0_10
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFSIZ,4,2                     ; @BUFSIZ
	.comm	_VAR_EXPORT_PARENT,4,2          ; @VAR_EXPORT_PARENT
	.comm	_VAR_GLOBAL,4,2                 ; @VAR_GLOBAL
	.comm	_VAR_EXPORTED,4,2               ; @VAR_EXPORTED
	.comm	_VAR_REEXPORT,4,2               ; @VAR_REEXPORT
	.comm	_VAR_EXPORT_LITERAL,4,2         ; @VAR_EXPORT_LITERAL
	.comm	_VAR_IN_USE,4,2                 ; @VAR_IN_USE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"${%s}"

	.comm	_VARF_WANTRES,4,2               ; @VARF_WANTRES
	.no_dead_strip	_Var_Export1
.subsections_via_symbols
