	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function forward_search_command
_forward_search_command:                ## @forward_search_command
	.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	_last_line_listed@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_re_comp
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_error
LBB0_2:
	movq	_current_source_symtab@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	jne	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	callq	_select_source_symtab
	movq	(%r12), %rdi
LBB0_4:
	callq	_open_source_file
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:
	movq	(%r12), %rax
	movl	4(%rax), %edi
	callq	_perror_with_name
LBB0_6:
	movq	(%r12), %rdi
	cmpq	$0, 8(%rdi)
	jne	LBB0_8
## %bb.7:
	movl	%r14d, %esi
	callq	_find_source_lines
LBB0_8:
	movslq	%ebx, %r15
	testl	%r15d, %r15d
	js	LBB0_10
## %bb.9:
	movq	(%r12), %rax
	cmpl	(%rax), %ebx
	jl	LBB0_11
LBB0_10:
	movl	%r14d, %edi
	callq	_close
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_error
	movq	(%r12), %rax
LBB0_11:
	movq	8(%rax), %rax
	movl	(%rax,%r15,4), %esi
	movl	%r14d, %edi
	xorl	%edx, %edx
	callq	_lseek
	testq	%rax, %rax
	jns	LBB0_13
## %bb.12:
	movl	%r14d, %edi
	callq	_close
	movq	(%r12), %rax
	movl	4(%rax), %edi
	callq	_perror_with_name
LBB0_13:
	movq	_FDOPEN_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_fdopen
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_clearerr
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_14 Depth=1
	movb	$0, (%r15)
	callq	_re_exec
	testq	%rax, %rax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jg	LBB0_22
LBB0_14:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
                                        ## kill: def $ebx killed $ebx def $rbx
	movl	$256, %edi                      ## imm = 0x100
	callq	_xmalloc
	movq	%rax, %r15
	movq	%rax, _forward_search_command.buf(%rip)
	movq	%r12, %rdi
	callq	_getc
	movl	%eax, %r14d
	movq	_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_23
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leal	1(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$256, %r13d                     ## imm = 0x100
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movb	%r14b, (%r15)
	incq	%r15
	movq	_forward_search_command.buf(%rip), %rdi
	movq	%r15, %rbx
	subq	%rdi, %rbx
	movslq	%r13d, %rax
	cmpq	%rax, %rbx
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	movl	%r13d, %eax
	shrl	$31, %eax
	addl	%r13d, %eax
	sarl	%eax
	addl	%eax, %r13d
	movl	%r13d, %esi
	callq	_xrealloc
	movq	%rax, %rdi
	movq	%rax, _forward_search_command.buf(%rip)
	addq	%rax, %rbx
	movq	%rbx, %r15
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=2
	cmpl	$10, %r14d
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	%r12, %rdi
	callq	_getc
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_16
## %bb.20:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_forward_search_command.buf(%rip), %rdi
	jmp	LBB0_21
LBB0_22:
	movq	%r12, %rdi
	callq	_fclose
	movq	_current_source_symtab@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	addl	$2, %edx
	movl	%ebx, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%ecx, %ecx
	callq	_print_source_lines
	leaq	L_.str.2(%rip), %rdi
	callq	_lookup_internalvar
	movl	%eax, %r14d
	movq	_builtin_type_int@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_value_from_longest
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_set_internalvar
	movq	_lines_to_list@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	subl	%ecx, %ebx
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_max
	movq	_current_source_line@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	leaq	L_.str.3(%rip), %rdi
	callq	_printf_filtered
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fclose                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_last_line_listed,4,2           ## @last_line_listed
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_current_source_symtab,8,3      ## @current_source_symtab
L_.str.1:                               ## @.str.1
	.asciz	"Expression not found"

	.comm	_FDOPEN_MODE,4,2                ## @FDOPEN_MODE
.zerofill __DATA,__bss,_forward_search_command.buf,8,3 ## @forward_search_command.buf
	.comm	_EOF,4,2                        ## @EOF
L_.str.2:                               ## @.str.2
	.asciz	"_"

	.comm	_builtin_type_int,4,2           ## @builtin_type_int
	.comm	_lines_to_list,4,2              ## @lines_to_list
	.comm	_current_source_line,4,2        ## @current_source_line
L_.str.3:                               ## @.str.3
	.asciz	"Expression not found\n"

	.no_dead_strip	_forward_search_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function forward_search_command
_forward_search_command:                ; @forward_search_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, _last_line_listed@GOTPAGE
Lloh1:
	ldr	x8, [x8, _last_line_listed@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	bl	_re_comp
	cbz	x0, LBB0_2
; %bb.1:
	str	x0, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
LBB0_2:
Lloh5:
	adrp	x24, _current_source_symtab@GOTPAGE
Lloh6:
	ldr	x24, [x24, _current_source_symtab@GOTPAGEOFF]
	ldr	x0, [x24]
	cbnz	x0, LBB0_4
; %bb.3:
	bl	_select_source_symtab
	ldr	x0, [x24]
LBB0_4:
	bl	_open_source_file
	mov	x20, x0
	tbz	w0, #31, LBB0_6
; %bb.5:
	ldr	x8, [x24]
	ldr	w0, [x8, #4]
	bl	_perror_with_name
LBB0_6:
	ldr	x0, [x24]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_8
; %bb.7:
	sxtw	x21, w19
	tbz	w19, #31, LBB0_9
	b	LBB0_10
LBB0_8:
	mov	x1, x20
	bl	_find_source_lines
	sxtw	x21, w19
	tbnz	w19, #31, LBB0_10
LBB0_9:
	ldr	x8, [x24]
	ldr	w9, [x8]
	cmp	w19, w9
	b.lt	LBB0_11
LBB0_10:
	mov	x0, x20
	bl	_close
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
	ldr	x8, [x24]
LBB0_11:
	ldr	x8, [x8, #8]
	ldr	w1, [x8, x21, lsl #2]
	mov	x0, x20
	mov	w2, #0
	bl	_lseek
	tbz	x0, #63, LBB0_13
; %bb.12:
	mov	x0, x20
	bl	_close
	ldr	x8, [x24]
	ldr	w0, [x8, #4]
	bl	_perror_with_name
LBB0_13:
Lloh9:
	adrp	x8, _FDOPEN_MODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FDOPEN_MODE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_fdopen
	mov	x20, x0
	bl	_clearerr
	adrp	x26, _forward_search_command.buf@PAGE
Lloh12:
	adrp	x27, _EOF@GOTPAGE
Lloh13:
	ldr	x27, [x27, _EOF@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	strb	wzr, [x21]
	bl	_re_exec
	cmp	x0, #1
	b.ge	LBB0_22
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
	mov	x25, x19
	mov	w0, #256
	bl	_xmalloc
	mov	x21, x0
	str	x0, [x26, _forward_search_command.buf@PAGEOFF]
	mov	x0, x20
	bl	_getc
	ldr	w8, [x27]
	cmp	w0, w8
	b.eq	LBB0_23
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x22, x0
	add	w19, w25, #1
	mov	w23, #256
LBB0_17:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	strb	w22, [x21], #1
	ldr	x0, [x26, _forward_search_command.buf@PAGEOFF]
	sub	x28, x21, x0
	cmp	x28, w23, sxtw
	b.ne	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=2
	cmp	w23, #0
	cinc	w8, w23, lt
	add	w23, w23, w8, asr #1
	mov	x1, x23
	bl	_xrealloc
	str	x0, [x26, _forward_search_command.buf@PAGEOFF]
	add	x21, x0, x28
LBB0_19:                                ;   in Loop: Header=BB0_17 Depth=2
	cmp	w22, #10
	b.eq	LBB0_14
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=2
	mov	x0, x20
	bl	_getc
	mov	x22, x0
	tbz	w0, #31, LBB0_17
; %bb.21:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x0, [x26, _forward_search_command.buf@PAGEOFF]
	b	LBB0_14
LBB0_22:
	mov	x0, x20
	bl	_fclose
	ldr	x0, [x24]
	add	w2, w25, #2
	mov	x1, x19
	mov	w3, #0
	bl	_print_source_lines
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_lookup_internalvar
	mov	x20, x0
Lloh16:
	adrp	x8, _builtin_type_int@GOTPAGE
Lloh17:
	ldr	x8, [x8, _builtin_type_int@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_value_from_longest
	mov	x1, x0
	mov	x0, x20
	bl	_set_internalvar
Lloh19:
	adrp	x8, _lines_to_list@GOTPAGE
Lloh20:
	ldr	x8, [x8, _lines_to_list@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	sub	w0, w19, w8, asr #1
	mov	w1, #1
	bl	_max
Lloh22:
	adrp	x8, _current_source_line@GOTPAGE
Lloh23:
	ldr	x8, [x8, _current_source_line@GOTPAGEOFF]
Lloh24:
	str	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_23:
Lloh25:
	adrp	x0, l_.str.3@PAGE
Lloh26:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf_filtered
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_fclose
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_last_line_listed,4,2           ; @last_line_listed
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_current_source_symtab,8,3      ; @current_source_symtab
l_.str.1:                               ; @.str.1
	.asciz	"Expression not found"

	.comm	_FDOPEN_MODE,4,2                ; @FDOPEN_MODE
.zerofill __DATA,__bss,_forward_search_command.buf,8,3 ; @forward_search_command.buf
	.comm	_EOF,4,2                        ; @EOF
l_.str.2:                               ; @.str.2
	.asciz	"_"

	.comm	_builtin_type_int,4,2           ; @builtin_type_int
	.comm	_lines_to_list,4,2              ; @lines_to_list
	.comm	_current_source_line,4,2        ; @current_source_line
l_.str.3:                               ; @.str.3
	.asciz	"Expression not found\n"

	.no_dead_strip	_forward_search_command
.subsections_via_symbols
