	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_init_string
	movq	_JSON_ERROR@GOTPCREL(%rip), %r15
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	movq	%r14, %rdi
	callq	*(%r14)
	movq	_EOF@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	je	LBB0_7
## %bb.2:
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$92, %ebx
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$34, %ebx
	je	LBB0_5
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$128, %ebx
	jb	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_read_utf8
	testq	%rax, %rax
	je	LBB0_13
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_read_escaped
	testq	%rax, %rax
	je	LBB0_13
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	callq	_char_needs_escaping
	testq	%rax, %rax
	jne	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_pushchar
	testq	%rax, %rax
	jne	LBB0_9
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	*(%r14)
	movl	%eax, %ebx
	cmpl	(%r12), %eax
	jne	LBB0_3
LBB0_7:
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
LBB0_8:
	movq	%r14, %rdi
	callq	_json_error
LBB0_9:
	movl	(%r15), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pushchar
	testq	%rax, %rax
	jne	LBB0_6
## %bb.10:
	movq	_JSON_STRING@GOTPCREL(%rip), %r15
	jmp	LBB0_9
LBB0_17:
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_8
LBB0_6:
	movq	_JSON_ERROR@GOTPCREL(%rip), %r15
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_JSON_ERROR,4,2                 ## @JSON_ERROR
	.comm	_EOF,4,2                        ## @EOF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

L_.str.1:                               ## @.str.1
	.asciz	"unterminated string literal"

	.comm	_JSON_STRING,4,2                ## @JSON_STRING
L_.str.2:                               ## @.str.2
	.asciz	"unescaped control character in 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	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
	mov	x19, x0
	bl	_init_string
	cbnz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x19]
	mov	x0, x19
	blr	x8
Lloh0:
	adrp	x22, _EOF@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EOF@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_6
LBB0_2:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_3:
	mov	x0, x19
	bl	_json_error
LBB0_4:
Lloh6:
	adrp	x21, _JSON_ERROR@GOTPAGE
Lloh7:
	ldr	x21, [x21, _JSON_ERROR@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x21]
	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_6:
	mov	x20, x0
Lloh8:
	adrp	x21, _JSON_ERROR@GOTPAGE
Lloh9:
	ldr	x21, [x21, _JSON_ERROR@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	bl	_read_escaped
	cbnz	x0, LBB0_5
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_2
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w20, #92
	b.eq	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w20, #34
	b.eq	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w20, #128
	b.lo	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_read_utf8
	cbz	x0, LBB0_8
	b	LBB0_5
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	bl	_char_needs_escaping
	cbnz	x0, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_pushchar
	cbz	x0, LBB0_8
	b	LBB0_5
LBB0_15:
	mov	x0, x19
	mov	w1, #0
	bl	_pushchar
Lloh10:
	adrp	x8, _JSON_STRING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _JSON_STRING@GOTPAGEOFF]
	cmp	x0, #0
	csel	x21, x8, x21, eq
	b	LBB0_5
LBB0_16:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
Lloh14:
	adrp	x2, l_.str.2@PAGE
Lloh15:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_JSON_ERROR,4,2                 ; @JSON_ERROR
	.comm	_EOF,4,2                        ; @EOF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

l_.str.1:                               ; @.str.1
	.asciz	"unterminated string literal"

	.comm	_JSON_STRING,4,2                ; @JSON_STRING
l_.str.2:                               ; @.str.2
	.asciz	"unescaped control character in string"

	.no_dead_strip	_read_string
.subsections_via_symbols
