	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_unicode
_read_unicode:                          ## @read_unicode
	.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, %r14
	callq	_read_unicode_cp
	cmpq	$-1, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	andq	$-1024, %rax                    ## imm = 0xFC00
	cmpq	$56320, %rax                    ## imm = 0xDC00
	je	LBB0_16
## %bb.2:
	cmpq	$55296, %rax                    ## imm = 0xD800
	jne	LBB0_18
## %bb.3:
	movq	%r14, %rdi
	callq	*(%r14)
	movq	_EOF@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	je	LBB0_4
## %bb.7:
	cmpl	$92, %eax
	jne	LBB0_8
## %bb.10:
	movq	%r14, %rdi
	callq	*(%r14)
	cmpl	(%r15), %eax
	jne	LBB0_11
LBB0_4:
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	jmp	LBB0_5
LBB0_16:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
LBB0_5:
	xorl	%eax, %eax
	callq	_json_error
LBB0_6:
	movl	$-1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
LBB0_9:
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_json_error
	jmp	LBB0_6
LBB0_11:
	cmpl	$117, %eax
	jne	LBB0_12
## %bb.13:
	movq	%r14, %rdi
	callq	_read_unicode_cp
	cmpq	$-1, %rax
	je	LBB0_6
## %bb.14:
	leaq	-57344(%rax), %rcx
	cmpq	$-1025, %rcx                    ## imm = 0xFBFF
	ja	LBB0_17
## %bb.15:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	jmp	LBB0_5
LBB0_12:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_9
LBB0_17:
	shlq	$10, %rbx
	addq	%rax, %rbx
	addq	$-56613888, %rbx                ## imm = 0xFCA02400
LBB0_18:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_encode_utf8                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EOF,4,2                        ## @EOF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

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

L_.str.2:                               ## @.str.2
	.asciz	"invalid continuation for surrogate pair: '%c', expected '\\'"

L_.str.3:                               ## @.str.3
	.asciz	"invalid continuation for surrogate pair: '%c', expected 'u'"

L_.str.4:                               ## @.str.4
	.asciz	"invalid surrogate pair continuation \\u%04lx out of range (dc00-dfff)"

L_.str.5:                               ## @.str.5
	.asciz	"dangling surrogate \\u%04lx"

	.no_dead_strip	_read_unicode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_unicode
_read_unicode:                          ; @read_unicode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	bl	_read_unicode_cp
	cmn	x0, #1
	b.eq	LBB0_10
; %bb.1:
	mov	x20, x0
	and	x8, x0, #0xfffffffffffffc00
	mov	w9, #56320
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.2:
	mov	w9, #55296
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.3:
	ldr	x8, [x19]
	mov	x0, x19
	blr	x8
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x21, _EOF@GOTPAGE
Lloh1:
	ldr	x21, [x21, _EOF@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w0, w8
	b.eq	LBB0_6
; %bb.4:
	cmp	w0, #92
	b.ne	LBB0_8
; %bb.5:
	ldr	x8, [x19]
	mov	x0, x19
	blr	x8
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_11
LBB0_6:
Lloh2:
	adrp	x8, l_.str.1@PAGE
Lloh3:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_7:
	str	x20, [sp]
Lloh6:
	adrp	x1, l_.str.5@PAGE
Lloh7:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_9
LBB0_8:
	str	x0, [sp]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_json_error
LBB0_10:
	mov	w0, #-1
	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
	add	sp, sp, #64
	ret
LBB0_11:
	cmp	w0, #117
	b.ne	LBB0_15
; %bb.12:
	mov	x0, x19
	bl	_read_unicode_cp
	cmn	x0, #1
	b.eq	LBB0_10
; %bb.13:
	sub	x8, x0, #14, lsl #12            ; =57344
	cmn	x8, #1025
	b.hi	LBB0_16
; %bb.14:
	str	x0, [sp]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_9
LBB0_15:
	str	x0, [sp]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_16:
	add	x8, x0, x20, lsl #10
	mov	x9, #-56320
	movk	x9, #64672, lsl #16
	add	x20, x8, x9
LBB0_17:
	mov	x0, x19
	mov	x1, x20
	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
	add	sp, sp, #64
	b	_encode_utf8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EOF,4,2                        ; @EOF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

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

l_.str.2:                               ; @.str.2
	.asciz	"invalid continuation for surrogate pair: '%c', expected '\\'"

l_.str.3:                               ; @.str.3
	.asciz	"invalid continuation for surrogate pair: '%c', expected 'u'"

l_.str.4:                               ; @.str.4
	.asciz	"invalid surrogate pair continuation \\u%04lx out of range (dc00-dfff)"

l_.str.5:                               ; @.str.5
	.asciz	"dangling surrogate \\u%04lx"

	.no_dead_strip	_read_unicode
.subsections_via_symbols
