	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_reset_scanner                  ## -- Begin function reset_scanner
	.p2align	4, 0x90
_reset_scanner:                         ## @reset_scanner
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	_is_stdin@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jne	LBB0_4
## %bb.3:
	movq	_input@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_fclose
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_fopen
	movq	_input@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movl	$0, (%r14)
	movq	_filename@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rax
	movq	_filename@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_is_stdin@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_8:
	movq	_com_char@GOTPCREL(%rip), %rax
	movb	$35, (%rax)
	movq	_esc_char@GOTPCREL(%rip), %rax
	movb	$92, (%rax)
	movq	_instring@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_escaped@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_lineno@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_nextline@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_tokidx@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_wideidx@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	callq	_reset_scanner.cold.1
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function reset_scanner.cold.1
_reset_scanner.cold.1:                  ## @reset_scanner.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str.2(%rip), %rdi
	callq	_perror
	pushq	$4
	popq	%rdi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"<stdin>"

	.comm	_filename,8,3                   ## @filename
	.comm	_is_stdin,4,2                   ## @is_stdin
	.comm	_input,8,3                      ## @input
L_.str.1:                               ## @.str.1
	.asciz	"r"

L_.str.2:                               ## @.str.2
	.asciz	"fopen"

	.comm	_com_char,1,0                   ## @com_char
	.comm	_esc_char,1,0                   ## @esc_char
	.comm	_instring,8,3                   ## @instring
	.comm	_escaped,8,3                    ## @escaped
	.comm	_lineno,4,2                     ## @lineno
	.comm	_nextline,4,2                   ## @nextline
	.comm	_tokidx,8,3                     ## @tokidx
	.comm	_wideidx,8,3                    ## @wideidx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_reset_scanner                  ; -- Begin function reset_scanner
	.p2align	2
_reset_scanner:                         ; @reset_scanner
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x20, _is_stdin@GOTPAGE
Lloh1:
	ldr	x20, [x20, _is_stdin@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh2:
	adrp	x21, _input@GOTPAGE
Lloh3:
	ldr	x21, [x21, _input@GOTPAGEOFF]
	cbnz	w8, LBB0_3
; %bb.2:
	ldr	x0, [x21]
	bl	_fclose
LBB0_3:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_fopen
	str	x0, [x21]
	cbz	x0, LBB0_7
; %bb.4:
	str	wzr, [x20]
Lloh6:
	adrp	x8, _filename@GOTPAGE
Lloh7:
	ldr	x8, [x8, _filename@GOTPAGEOFF]
Lloh8:
	str	x19, [x8]
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _filename@GOTPAGE
Lloh10:
	ldr	x8, [x8, _filename@GOTPAGEOFF]
Lloh11:
	adrp	x9, l_.str@PAGE
Lloh12:
	add	x9, x9, l_.str@PAGEOFF
Lloh13:
	str	x9, [x8]
Lloh14:
	adrp	x8, _is_stdin@GOTPAGE
Lloh15:
	ldr	x8, [x8, _is_stdin@GOTPAGEOFF]
	mov	w9, #1
Lloh16:
	str	w9, [x8]
LBB0_6:
Lloh17:
	adrp	x8, _com_char@GOTPAGE
Lloh18:
	ldr	x8, [x8, _com_char@GOTPAGEOFF]
	mov	w9, #35
Lloh19:
	strb	w9, [x8]
Lloh20:
	adrp	x8, _esc_char@GOTPAGE
Lloh21:
	ldr	x8, [x8, _esc_char@GOTPAGEOFF]
	mov	w9, #92
Lloh22:
	adrp	x10, _instring@GOTPAGE
Lloh23:
	ldr	x10, [x10, _instring@GOTPAGEOFF]
Lloh24:
	strb	w9, [x8]
Lloh25:
	str	xzr, [x10]
Lloh26:
	adrp	x8, _escaped@GOTPAGE
Lloh27:
	ldr	x8, [x8, _escaped@GOTPAGEOFF]
Lloh28:
	adrp	x9, _lineno@GOTPAGE
Lloh29:
	ldr	x9, [x9, _lineno@GOTPAGEOFF]
Lloh30:
	str	xzr, [x8]
	mov	w8, #1
Lloh31:
	str	w8, [x9]
Lloh32:
	adrp	x9, _nextline@GOTPAGE
Lloh33:
	ldr	x9, [x9, _nextline@GOTPAGEOFF]
Lloh34:
	str	w8, [x9]
Lloh35:
	adrp	x8, _tokidx@GOTPAGE
Lloh36:
	ldr	x8, [x8, _tokidx@GOTPAGEOFF]
Lloh37:
	str	xzr, [x8]
Lloh38:
	adrp	x8, _wideidx@GOTPAGE
Lloh39:
	ldr	x8, [x8, _wideidx@GOTPAGEOFF]
Lloh40:
	str	xzr, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	_reset_scanner.cold.1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotStr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotStr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotStr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh31
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh30
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh25
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh24
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function reset_scanner.cold.1
_reset_scanner.cold.1:                  ; @reset_scanner.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh41:
	adrp	x0, l_.str.2@PAGE
Lloh42:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_perror
	mov	w0, #4
	bl	_exit
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"<stdin>"

	.comm	_filename,8,3                   ; @filename
	.comm	_is_stdin,4,2                   ; @is_stdin
	.comm	_input,8,3                      ; @input
l_.str.1:                               ; @.str.1
	.asciz	"r"

l_.str.2:                               ; @.str.2
	.asciz	"fopen"

	.comm	_com_char,1,0                   ; @com_char
	.comm	_esc_char,1,0                   ; @esc_char
	.comm	_instring,8,3                   ; @instring
	.comm	_escaped,8,3                    ; @escaped
	.comm	_lineno,4,2                     ; @lineno
	.comm	_nextline,4,2                   ; @nextline
	.comm	_tokidx,8,3                     ; @tokidx
	.comm	_wideidx,8,3                    ; @wideidx
.subsections_via_symbols
