	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function expand_vars
_expand_vars:                           ## @expand_vars
	.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	%rcx, %r13
	movq	%rdx, %r12
	movq	(%rcx), %r15
	leaq	1(%r15), %rbx
	leaq	2(%r15), %r14
	cmpb	$123, 1(%r15)
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_8
## %bb.1:
	movb	(%r14), %al
	cmpb	$95, %al
	je	LBB0_3
## %bb.2:
	movsbl	%al, %edi
	callq	_isalphach
	testq	%rax, %rax
	je	LBB0_8
LBB0_3:
	addq	$3, %r15
	movq	%r15, %rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	cmpb	$95, %al
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movsbl	%al, %edi
	callq	_isalnumch
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:
	cmpb	$125, (%rbx)
	je	LBB0_9
LBB0_8:
	movq	(%r13), %rdx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_9:
	movq	%rbx, (%r13)
	subq	%r14, %rbx
	incq	%rbx
	movq	%rbx, %rdi
	callq	_malloc
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_strlcpy
	movq	%r15, %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%rax, %r14
	cmpb	$0, (%rax)
	je	LBB0_11
## %bb.14:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	_env_verbosity@GOTPCREL(%rip), %rax
	cmpl	$3, (%rax)
	jl	LBB0_16
## %bb.15:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_16:
	movq	%r15, %rdi
	callq	_strlen
	movq	%rax, %r12
	addq	$3, %r12
	movq	%r14, %rdi
	callq	_strlen
	cmpq	%rax, %r12
	jae	LBB0_21
## %bb.17:
	movq	%rax, %rbx
	movq	(%r13), %rdi
	callq	_strlen
	addq	%rax, %rbx
	incq	%rbx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_19
## %bb.18:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	(%r13), %rax
	movb	$0, (%rax)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r12
	movq	%r12, %rdi
	callq	_strlen
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_malloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r12, %rsi
	movq	%r13, %r12
	callq	_strcpy
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	jmp	LBB0_20
LBB0_11:
	movq	_env_verbosity@GOTPCREL(%rip), %rax
	cmpl	$3, (%rax)
	jl	LBB0_12
## %bb.13:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_21
LBB0_12:
	xorl	%r14d, %r14d
	jmp	LBB0_21
LBB0_19:
	movq	%rbx, %rdi
	callq	_malloc
	movq	%rax, %rbx
	movb	$0, (%rax)
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_20:
	movq	%rbx, %rdi
	callq	_strlen
	addq	%rbx, %rax
	movq	%rax, (%r12)
LBB0_21:
	movq	%r15, %rdi
	callq	_free
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Only ${VARNAME} expansion is supported, error at: %s"

	.comm	_env_verbosity,4,2              ## @env_verbosity
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"#env  replacing ${%s} with null string\n"

L_.str.2:                               ## @.str.2
	.asciz	"#env  expanding ${%s} into '%s'\n"

	.no_dead_strip	_expand_vars
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function expand_vars
_expand_vars:                           ; @expand_vars
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x25, [x3]
	mov	x22, x25
	ldrb	w8, [x22, #1]!
	add	x24, x25, #2
	cmp	w8, #123
	b.ne	LBB0_8
; %bb.1:
	ldrb	w8, [x24]
	cmp	w8, #95
	b.eq	LBB0_3
; %bb.2:
	sxtb	w0, w8
	bl	_isalphach
	cbz	x0, LBB0_8
LBB0_3:
	add	x22, x25, #3
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x22]
	cmp	w8, #95
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sxtb	w0, w8
	bl	_isalnumch
	cbnz	x0, LBB0_4
; %bb.7:
	ldrb	w8, [x22]
	cmp	w8, #125
	b.eq	LBB0_9
LBB0_8:
	ldr	x2, [x23]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_9:
	str	x22, [x23]
	sub	x8, x22, x24
	add	x25, x8, #1
	mov	x0, x25
	bl	_malloc
	mov	x22, x0
	mov	x1, x24
	mov	x2, x25
	bl	_strlcpy
	mov	x0, x22
	bl	_getenv
	cbz	x0, LBB0_16
; %bb.10:
	mov	x24, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_16
; %bb.11:
Lloh2:
	adrp	x8, _env_verbosity@GOTPAGE
Lloh3:
	ldr	x8, [x8, _env_verbosity@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, #3
	b.lt	LBB0_13
; %bb.12:
Lloh5:
	adrp	x8, _stderr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	str	x24, [sp]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x22
	bl	_fprintf
LBB0_13:
	mov	x0, x22
	bl	_strlen
	add	x26, x0, #3
	mov	x0, x24
	bl	_strlen
	cmp	x26, x0
	b.hs	LBB0_21
; %bb.14:
	mov	x25, x0
	ldr	x0, [x23]
	bl	_strlen
	add	x8, x25, x0
	add	x23, x8, #1
	cbz	w21, LBB0_19
; %bb.15:
	ldr	x8, [x19]
	strb	wzr, [x8]
	ldr	x25, [x20]
	mov	x0, x25
	bl	_strlen
	add	x0, x0, x23
	bl	_malloc
	mov	x21, x0
	mov	x1, x25
	bl	_strcpy
	str	x21, [x20]
	b	LBB0_20
LBB0_16:
Lloh10:
	adrp	x8, _env_verbosity@GOTPAGE
Lloh11:
	ldr	x8, [x8, _env_verbosity@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, #3
	b.lt	LBB0_18
; %bb.17:
Lloh13:
	adrp	x8, _stderr@GOTPAGE
Lloh14:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_fprintf
LBB0_18:
	mov	x24, #0
	b	LBB0_21
LBB0_19:
	mov	x0, x23
	bl	_malloc
	mov	x21, x0
	strb	wzr, [x0]
LBB0_20:
	mov	x0, x21
	bl	_strlen
	add	x8, x21, x0
	str	x8, [x19]
LBB0_21:
	mov	x0, x22
	bl	_free
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Only ${VARNAME} expansion is supported, error at: %s"

	.comm	_env_verbosity,4,2              ; @env_verbosity
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"#env  replacing ${%s} with null string\n"

l_.str.2:                               ; @.str.2
	.asciz	"#env  expanding ${%s} into '%s'\n"

	.no_dead_strip	_expand_vars
.subsections_via_symbols
