	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function subst_from_stdin
_subst_from_stdin:                      ## @subst_from_stdin
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_do_getc
	movq	_EOF@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jne	LBB0_1
LBB0_36:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_stdout@GOTPCREL(%rip), %r13
	movq	_all_variables@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %edi
LBB0_34:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_putchar
LBB0_35:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_do_getc
	cmpl	(%r12), %eax
	je	LBB0_36
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	cmpl	$36, %eax
	jne	LBB0_33
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_do_getc
	movl	%eax, %r15d
	movl	%eax, %ebx
	cmpl	$123, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_do_getc
	movl	%eax, %ebx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	-65(%rbx), %eax
	cmpl	$26, %eax
	jae	LBB0_6
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, _subst_from_stdin.buflen(%rip)
	xorl	%ecx, %ecx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	_subst_from_stdin.buflen(%rip), %rcx
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_subst_from_stdin.bufmax(%rip), %rax
	cmpq	%rax, %rcx
	jae	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	_subst_from_stdin.buffer(%rip), %rax
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=2
	leaq	(%rax,%rax), %rsi
	addq	$10, %rsi
	movq	%rsi, _subst_from_stdin.bufmax(%rip)
	movq	_subst_from_stdin.buffer(%rip), %rdi
	callq	_xrealloc
	movq	%rax, _subst_from_stdin.buffer(%rip)
	movq	_subst_from_stdin.buflen(%rip), %rcx
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=2
	leaq	1(%rcx), %rdx
	movq	%rdx, _subst_from_stdin.buflen(%rip)
	movb	%bl, (%rax,%rcx)
	xorl	%eax, %eax
	callq	_do_getc
	movl	%eax, %ebx
	andl	$-33, %eax
	addl	$-65, %eax
	cmpl	$25, %eax
	jbe	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=2
	leal	-48(%rbx), %eax
	cmpl	$95, %ebx
	je	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=2
	cmpl	$10, %eax
	jb	LBB0_13
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$123, %r15d
	jne	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$125, %ebx
	je	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_do_ungetc
	movl	$36, %edi
	callq	_putchar
	movl	$123, %edi
	callq	_putchar
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_subst_from_stdin.buffer(%rip), %rdi
	movq	_subst_from_stdin.buflen(%rip), %rsi
	movl	(%r13), %ecx
	movl	$1, %edx
	callq	_fwrite
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$95, %ebx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-97(%rbx), %eax
	cmpl	$25, %eax
	jbe	LBB0_8
## %bb.31:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_do_ungetc
	movl	$36, %edi
	callq	_putchar
	cmpl	$123, %r15d
	jne	LBB0_35
## %bb.32:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$123, %edi
	jmp	LBB0_34
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_do_ungetc
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_subst_from_stdin.buflen(%rip), %rcx
	movq	_subst_from_stdin.bufmax(%rip), %rax
	cmpq	%rax, %rcx
	jae	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_subst_from_stdin.buffer(%rip), %rax
	jmp	LBB0_24
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rax,%rax), %rsi
	addq	$10, %rsi
	movq	%rsi, _subst_from_stdin.bufmax(%rip)
	movq	_subst_from_stdin.buffer(%rip), %rdi
	callq	_xrealloc
	movq	%rax, _subst_from_stdin.buffer(%rip)
	movq	_subst_from_stdin.buflen(%rip), %rcx
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	movb	$0, (%rax,%rcx)
	cmpl	$0, (%r14)
	jne	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_variables_set@GOTPCREL(%rip), %rdi
	movq	%rax, %rsi
	callq	_sorted_string_list_member
	testl	%eax, %eax
	je	LBB0_29
## %bb.26:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_subst_from_stdin.buffer(%rip), %rax
LBB0_27:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_35
## %bb.28:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %esi
	movq	%rax, %rdi
	callq	_fputs
	jmp	LBB0_35
LBB0_29:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$36, %edi
	callq	_putchar
	cmpl	$123, %r15d
	jne	LBB0_19
## %bb.30:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$123, %edi
	callq	_putchar
	movq	_subst_from_stdin.buffer(%rip), %rdi
	movq	_subst_from_stdin.buflen(%rip), %rsi
	movl	(%r13), %ecx
	movl	$1, %edx
	callq	_fwrite
	movl	$125, %edi
	jmp	LBB0_34
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_subst_from_stdin.buffer,8,3 ## @subst_from_stdin.buffer
.zerofill __DATA,__bss,_subst_from_stdin.bufmax,8,3 ## @subst_from_stdin.bufmax
.zerofill __DATA,__bss,_subst_from_stdin.buflen,8,3 ## @subst_from_stdin.buflen
	.comm	_EOF,4,2                        ## @EOF
	.comm	_all_variables,4,2              ## @all_variables
	.comm	_variables_set,4,2              ## @variables_set
	.comm	_stdout,4,2                     ## @stdout
	.no_dead_strip	_subst_from_stdin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function subst_from_stdin
_subst_from_stdin:                      ; @subst_from_stdin
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	bl	_do_getc
Lloh0:
	adrp	x22, _EOF@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EOF@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_2
LBB0_1:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_2:
	adrp	x23, _subst_from_stdin.buflen@PAGE
	adrp	x24, _subst_from_stdin.bufmax@PAGE
	adrp	x25, _subst_from_stdin.buffer@PAGE
Lloh2:
	adrp	x26, _stdout@GOTPAGE
Lloh3:
	ldr	x26, [x26, _stdout@GOTPAGEOFF]
Lloh4:
	adrp	x27, _all_variables@GOTPAGE
Lloh5:
	ldr	x27, [x27, _all_variables@GOTPAGEOFF]
Lloh6:
	adrp	x19, _variables_set@GOTPAGE
Lloh7:
	ldr	x19, [x19, _variables_set@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #123
	bl	_putchar
	ldr	x0, [x25, _subst_from_stdin.buffer@PAGEOFF]
	ldr	x1, [x23, _subst_from_stdin.buflen@PAGEOFF]
	ldr	w3, [x26]
	mov	w2, #1
	bl	_fwrite
	mov	w0, #125
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_putchar
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_do_getc
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_1
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	cmp	w0, #36
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_do_getc
	mov	x20, x0
	mov	x21, x0
	cmp	w0, #123
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_do_getc
	mov	x21, x0
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	w8, w21, #65
	cmp	w8, #26
	b.hs	LBB0_22
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x8, #0
	str	xzr, [x23, _subst_from_stdin.buflen@PAGEOFF]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	ldr	x8, [x23, _subst_from_stdin.buflen@PAGEOFF]
LBB0_12:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x24, _subst_from_stdin.bufmax@PAGEOFF]
	cmp	x8, x9
	b.hs	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x0, [x25, _subst_from_stdin.buffer@PAGEOFF]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=2
	lsl	x8, x9, #1
	add	x1, x8, #10
	str	x1, [x24, _subst_from_stdin.bufmax@PAGEOFF]
	ldr	x0, [x25, _subst_from_stdin.buffer@PAGEOFF]
	bl	_xrealloc
	str	x0, [x25, _subst_from_stdin.buffer@PAGEOFF]
	ldr	x8, [x23, _subst_from_stdin.buflen@PAGEOFF]
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x9, x8, #1
	str	x9, [x23, _subst_from_stdin.buflen@PAGEOFF]
	strb	w21, [x0, x8]
	bl	_do_getc
	mov	x21, x0
	and	w8, w0, #0xffffffdf
	sub	w8, w8, #65
	cmp	w8, #25
	b.ls	LBB0_11
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=2
	sub	w8, w21, #48
	cmp	w21, #95
	b.eq	LBB0_11
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=2
	cmp	w8, #10
	b.lo	LBB0_11
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w20, #123
	b.ne	LBB0_26
; %bb.19:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w21, #125
	b.eq	LBB0_27
; %bb.20:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_do_ungetc
	mov	w0, #36
	bl	_putchar
	mov	w0, #123
	bl	_putchar
LBB0_21:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x25, _subst_from_stdin.buffer@PAGEOFF]
	ldr	x1, [x23, _subst_from_stdin.buflen@PAGEOFF]
	ldr	w3, [x26]
	mov	w2, #1
	bl	_fwrite
	b	LBB0_5
LBB0_22:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w21, #95
	b.eq	LBB0_10
; %bb.23:                               ;   in Loop: Header=BB0_6 Depth=1
	sub	w8, w21, #97
	cmp	w8, #25
	b.ls	LBB0_10
; %bb.24:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_do_ungetc
	mov	w0, #36
	bl	_putchar
	cmp	w20, #123
	b.ne	LBB0_5
; %bb.25:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #123
	b	LBB0_4
LBB0_26:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_do_ungetc
LBB0_27:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x23, _subst_from_stdin.buflen@PAGEOFF]
	ldr	x9, [x24, _subst_from_stdin.bufmax@PAGEOFF]
	cmp	x8, x9
	b.hs	LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x25, _subst_from_stdin.buffer@PAGEOFF]
	b	LBB0_30
LBB0_29:                                ;   in Loop: Header=BB0_6 Depth=1
	lsl	x8, x9, #1
	add	x1, x8, #10
	str	x1, [x24, _subst_from_stdin.bufmax@PAGEOFF]
	ldr	x0, [x25, _subst_from_stdin.buffer@PAGEOFF]
	bl	_xrealloc
	mov	x1, x0
	str	x0, [x25, _subst_from_stdin.buffer@PAGEOFF]
	ldr	x8, [x23, _subst_from_stdin.buflen@PAGEOFF]
LBB0_30:                                ;   in Loop: Header=BB0_6 Depth=1
	strb	wzr, [x1, x8]
	ldr	w8, [x27]
	cbnz	w8, LBB0_33
; %bb.31:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_sorted_string_list_member
	cbz	w0, LBB0_35
; %bb.32:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x25, _subst_from_stdin.buffer@PAGEOFF]
LBB0_33:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x1
	bl	_getenv
	cbz	x0, LBB0_5
; %bb.34:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x26]
	bl	_fputs
	b	LBB0_5
LBB0_35:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #36
	bl	_putchar
	cmp	w20, #123
	b.eq	LBB0_3
	b	LBB0_21
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_subst_from_stdin.buffer,8,3 ; @subst_from_stdin.buffer
.zerofill __DATA,__bss,_subst_from_stdin.bufmax,8,3 ; @subst_from_stdin.bufmax
.zerofill __DATA,__bss,_subst_from_stdin.buflen,8,3 ; @subst_from_stdin.buflen
	.comm	_EOF,4,2                        ; @EOF
	.comm	_all_variables,4,2              ; @all_variables
	.comm	_variables_set,4,2              ; @variables_set
	.comm	_stdout,4,2                     ; @stdout
	.no_dead_strip	_subst_from_stdin
.subsections_via_symbols
