	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_main                       ## -- Begin function cmd_main
	.p2align	4, 0x90
_cmd_main:                              ## @cmd_main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_trace2_cmd_name
	cmpl	$3, %ebx
	je	LBB0_5
## %bb.1:
	cmpl	$2, %ebx
	je	LBB0_4
## %bb.2:
	cmpl	$1, %ebx
	jne	LBB0_8
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_9
LBB0_4:
	movq	_all_variables@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	8(%r14), %rdi
	callq	_note_variables
	xorl	%eax, %eax
	callq	_subst_from_stdin
	jmp	LBB0_10
LBB0_5:
	movq	8(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rdi
	callq	_error
LBB0_7:
	movq	16(%r14), %rdi
	callq	_print_variables
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.4(%rip), %rdi
LBB0_9:
	callq	_error
LBB0_10:
	movq	_errno@GOTPCREL(%rip), %r14
	movq	$0, (%r14)
	movq	_stderr@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_ferror
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movl	(%rbx), %edi
	callq	_fflush
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:
	movl	(%rbx), %edi
	callq	_fclose
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	(%r14), %rax
	movq	_EBADF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
LBB0_16:
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
LBB0_12:
	movl	(%rbx), %edi
	callq	_fclose
LBB0_15:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sh-i18n--envsubst"

L_.str.1:                               ## @.str.1
	.asciz	"we won't substitute all variables on stdin for you"

	.comm	_all_variables,4,2              ## @all_variables
L_.str.2:                               ## @.str.2
	.asciz	"--variables"

L_.str.3:                               ## @.str.3
	.asciz	"first argument must be --variables when two are given"

L_.str.4:                               ## @.str.4
	.asciz	"too many arguments"

	.comm	_errno,8,3                      ## @errno
	.comm	_stderr,4,2                     ## @stderr
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.comm	_EBADF,8,3                      ## @EBADF
	.comm	_EXIT_SUCCESS,4,2               ## @EXIT_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_main                       ; -- Begin function cmd_main
	.p2align	2
_cmd_main:                              ; @cmd_main
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_trace2_cmd_name
	cmp	w20, #3
	b.eq	LBB0_5
; %bb.1:
	cmp	w20, #2
	b.eq	LBB0_4
; %bb.2:
	cmp	w20, #1
	b.ne	LBB0_8
; %bb.3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_4:
Lloh4:
	adrp	x8, _all_variables@GOTPAGE
Lloh5:
	ldr	x8, [x8, _all_variables@GOTPAGEOFF]
Lloh6:
	str	wzr, [x8]
	ldr	x0, [x19, #8]
	bl	_note_variables
	bl	_subst_from_stdin
	b	LBB0_10
LBB0_5:
	ldr	x0, [x19, #8]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_7
; %bb.6:
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_error
LBB0_7:
	ldr	x0, [x19, #16]
	bl	_print_variables
	b	LBB0_10
LBB0_8:
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_9:
	bl	_error
LBB0_10:
Lloh13:
	adrp	x19, _errno@GOTPAGE
Lloh14:
	ldr	x19, [x19, _errno@GOTPAGEOFF]
	str	xzr, [x19]
Lloh15:
	adrp	x20, _stderr@GOTPAGE
Lloh16:
	ldr	x20, [x20, _stderr@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_ferror
	cbnz	x0, LBB0_15
; %bb.11:
	ldr	w0, [x20]
	bl	_fflush
	cbnz	x0, LBB0_15
; %bb.12:
	ldr	w0, [x20]
	bl	_fclose
	cbz	x0, LBB0_14
; %bb.13:
	ldr	x8, [x19]
Lloh17:
	adrp	x9, _EBADF@GOTPAGE
Lloh18:
	ldr	x9, [x9, _EBADF@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
LBB0_14:
Lloh20:
	adrp	x8, _EXIT_SUCCESS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EXIT_SUCCESS@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_exit
LBB0_15:
	ldr	w0, [x20]
	bl	_fclose
LBB0_16:
Lloh23:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sh-i18n--envsubst"

l_.str.1:                               ; @.str.1
	.asciz	"we won't substitute all variables on stdin for you"

	.comm	_all_variables,4,2              ; @all_variables
l_.str.2:                               ; @.str.2
	.asciz	"--variables"

l_.str.3:                               ; @.str.3
	.asciz	"first argument must be --variables when two are given"

l_.str.4:                               ; @.str.4
	.asciz	"too many arguments"

	.comm	_errno,8,3                      ; @errno
	.comm	_stderr,4,2                     ; @stderr
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.comm	_EBADF,8,3                      ; @EBADF
	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
.subsections_via_symbols
