	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_doforeach                      ## -- Begin function doforeach
	.p2align	4, 0x90
_doforeach:                             ## @doforeach
	.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	%rdi, %r15
	movq	%rsi, %rdi
	callq	_USE
	movq	8(%r15), %rdi
	callq	_strip
	movq	%rax, %rbx
	movsbl	(%rax), %edi
	callq	_letter
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ERR_NAME@GOTPCREL(%rip), %rax
	movq	_ERR_VARBEGIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_stderror
LBB0_2:
	incq	%rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%rbx), %edi
	callq	_alnum
	incq	%rbx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	cmpb	$0, -1(%rbx)
	je	LBB0_6
## %bb.5:
	movq	_ERR_NAME@GOTPCREL(%rip), %rax
	movq	_ERR_VARALNUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_stderror
LBB0_6:
	movq	8(%r15), %r14
	movq	16(%r15), %rax
	cmpb	$40, (%rax)
	jne	LBB0_8
## %bb.7:
	leaq	16(%r15), %rbx
	movq	%rbx, %rdi
	callq	_blklen
	cltq
	movq	-8(%rbx,%rax,8), %rax
	cmpb	$41, (%rax)
	je	LBB0_9
LBB0_8:
	movq	_ERR_NAME@GOTPCREL(%rip), %rax
	movq	_ERR_NOPAREN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_stderror
LBB0_9:
	addq	$24, %r15
	movq	%r15, %rdi
	callq	_tglob
	movq	%r15, %rdi
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:
	movl	%eax, %esi
	callq	_globall
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_14
## %bb.11:
	movq	_noexec@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_14
## %bb.12:
	movq	_ERR_NAME@GOTPCREL(%rip), %rax
	movq	_ERR_NOMATCH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_stderror
	xorl	%r15d, %r15d
	jmp	LBB0_14
LBB0_13:
	callq	_saveblk
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_trim
LBB0_14:
	movl	$1, %edi
	movl	$40, %esi
	callq	_xcalloc
	movq	%rax, %rbx
	movq	%r15, 8(%rax)
	movq	%r15, (%rax)
	leaq	36(%rax), %rdi
	callq	_btell
	movq	%r14, %rdi
	callq	_Strsave
	movl	%eax, 32(%rbx)
	movq	_whyles@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, 24(%rbx)
	movq	_TCSH_F_SEEK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rbx)
	movq	%rbx, (%rax)
	movq	_TC_FOREACH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_zlast@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_intty@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_16
## %bb.15:
	xorl	%eax, %eax
	callq	_preread
LBB0_16:
	movq	_noexec@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_18
## %bb.17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_doagain                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_NAME,4,2                   ## @ERR_NAME
	.comm	_ERR_VARBEGIN,4,2               ## @ERR_VARBEGIN
	.comm	_ERR_VARALNUM,4,2               ## @ERR_VARALNUM
	.comm	_ERR_NOPAREN,4,2                ## @ERR_NOPAREN
	.comm	_noexec,4,2                     ## @noexec
	.comm	_ERR_NOMATCH,4,2                ## @ERR_NOMATCH
	.comm	_whyles,8,3                     ## @whyles
	.comm	_TCSH_F_SEEK,4,2                ## @TCSH_F_SEEK
	.comm	_TC_FOREACH,4,2                 ## @TC_FOREACH
	.comm	_zlast,4,2                      ## @zlast
	.comm	_intty,8,3                      ## @intty
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_doforeach                      ; -- Begin function doforeach
	.p2align	2
_doforeach:                             ; @doforeach
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	mov	x0, x1
	bl	_USE
	ldr	x0, [x20, #8]
	bl	_strip
	mov	x19, x0
	ldrsb	w0, [x0]
	bl	_letter
Lloh0:
	adrp	x22, _ERR_NAME@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ERR_NAME@GOTPAGEOFF]
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w8, [x22]
Lloh2:
	adrp	x9, _ERR_VARBEGIN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ERR_VARBEGIN@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_stderror
LBB0_2:
	add	x19, x19, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x19], #1
	bl	_alnum
	cbnz	x0, LBB0_3
; %bb.4:
	ldurb	w8, [x19, #-1]
	cbz	w8, LBB0_6
; %bb.5:
	ldr	w8, [x22]
Lloh5:
	adrp	x9, _ERR_VARALNUM@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ERR_VARALNUM@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_stderror
LBB0_6:
	mov	x21, x20
	ldr	x8, [x21, #16]!
	ldur	x19, [x21, #-8]
	ldrb	w8, [x8]
	cmp	w8, #40
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_blklen
	sub	w8, w0, #1
	ldr	x8, [x21, w8, sxtw #3]
	ldrb	w8, [x8]
	cmp	w8, #41
	b.eq	LBB0_9
LBB0_8:
	ldr	w8, [x22]
Lloh8:
	adrp	x9, _ERR_NOPAREN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ERR_NOPAREN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_stderror
LBB0_9:
	add	x20, x20, #24
	mov	x0, x20
	bl	_tglob
Lloh11:
	adrp	x23, _noexec@GOTPAGE
Lloh12:
	ldr	x23, [x23, _noexec@GOTPAGEOFF]
	cbz	w0, LBB0_13
; %bb.10:
	mov	x1, x0
	mov	x0, x20
	bl	_globall
	mov	x20, x0
	cbnz	x0, LBB0_14
; %bb.11:
	ldr	w8, [x23]
	cbnz	w8, LBB0_14
; %bb.12:
	ldr	w8, [x22]
Lloh13:
	adrp	x9, _ERR_NOMATCH@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ERR_NOMATCH@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_stderror
	mov	x20, #0
	b	LBB0_14
LBB0_13:
	mov	x0, x20
	bl	_saveblk
	mov	x20, x0
	bl	_trim
LBB0_14:
	mov	w0, #1
	mov	w1, #40
	bl	_xcalloc
	mov	x21, x0
	stp	x20, x20, [x0]
	add	x0, x0, #36
	bl	_btell
	mov	x0, x19
	bl	_Strsave
	str	w0, [x21, #32]
Lloh16:
	adrp	x8, _whyles@GOTPAGE
Lloh17:
	ldr	x8, [x8, _whyles@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x9, [x21, #24]
Lloh18:
	adrp	x9, _TCSH_F_SEEK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _TCSH_F_SEEK@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	str	w9, [x21, #16]
	str	x21, [x8]
Lloh21:
	adrp	x8, _TC_FOREACH@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TC_FOREACH@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _zlast@GOTPAGE
Lloh25:
	ldr	x9, [x9, _zlast@GOTPAGEOFF]
Lloh26:
	str	w8, [x9]
Lloh27:
	adrp	x8, _intty@GOTPAGE
Lloh28:
	ldr	x8, [x8, _intty@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.15:
	bl	_preread
LBB0_16:
	ldr	w8, [x23]
	cbz	w8, LBB0_18
; %bb.17:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_18:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_doagain
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_NAME,4,2                   ; @ERR_NAME
	.comm	_ERR_VARBEGIN,4,2               ; @ERR_VARBEGIN
	.comm	_ERR_VARALNUM,4,2               ; @ERR_VARALNUM
	.comm	_ERR_NOPAREN,4,2                ; @ERR_NOPAREN
	.comm	_noexec,4,2                     ; @noexec
	.comm	_ERR_NOMATCH,4,2                ; @ERR_NOMATCH
	.comm	_whyles,8,3                     ; @whyles
	.comm	_TCSH_F_SEEK,4,2                ; @TCSH_F_SEEK
	.comm	_TC_FOREACH,4,2                 ; @TC_FOREACH
	.comm	_zlast,4,2                      ; @zlast
	.comm	_intty,8,3                      ; @intty
.subsections_via_symbols
