	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_string
_read_string:                           ## @read_string
	.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
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_make_buffer
	movq	%rax, %r12
	movq	_EOF@GOTPCREL(%rip), %r13
	movq	_pos@GOTPCREL(%rip), %r14
	leaq	L_.str(%rip), %r15
	jmp	LBB0_1
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movsbl	%al, %esi
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_buf_write
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_readc
	movl	%eax, %ebx
	cmpl	(%r13), %eax
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$92, %ebx
	je	LBB0_7
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$34, %ebx
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movsbl	%bl, %esi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_errorp
	cmpl	$92, %ebx
	jne	LBB0_4
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_peek
	cmpb	$117, %al
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_read_escaped_char
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_peek
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_read_escaped_char
	cmpb	$85, %bl
	jne	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_write_utf8
	jmp	LBB0_1
LBB0_12:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_buf_write
	movq	%r12, %rdi
	callq	_buf_body
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_buf_len
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_make_strtok                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EOF,4,2                        ## @EOF
	.comm	_pos,4,2                        ## @pos
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unterminated string"

	.no_dead_strip	_read_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_string
_read_string:                           ; @read_string
	.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	x19, x0
	bl	_make_buffer
	mov	x20, x0
Lloh0:
	adrp	x23, _EOF@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EOF@GOTPAGEOFF]
Lloh2:
	adrp	x24, _pos@GOTPAGE
Lloh3:
	ldr	x24, [x24, _pos@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	sxtb	w1, w1
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_buf_write
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_readc
	mov	x22, x0
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w22, #92
	b.eq	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w22, #34
	b.eq	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtb	w1, w22
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x24]
	mov	x1, x21
	bl	_errorp
	cmp	w22, #92
	b.ne	LBB0_5
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_peek
	cmp	w0, #117
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_read_escaped_char
	mov	x1, x0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_peek
	mov	x22, x0
	bl	_read_escaped_char
	mov	x1, x0
	cmp	w22, #85
	b.ne	LBB0_1
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_write_utf8
	b	LBB0_3
LBB0_12:
	mov	x0, x20
	mov	w1, #0
	bl	_buf_write
	mov	x0, x20
	bl	_buf_body
	mov	x21, x0
	mov	x0, x20
	bl	_buf_len
	mov	x1, x0
	mov	x0, x21
	mov	x2, x19
	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	_make_strtok
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EOF,4,2                        ; @EOF
	.comm	_pos,4,2                        ; @pos
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unterminated string"

	.no_dead_strip	_read_string
.subsections_via_symbols
