	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scan
_scan:                                  ## @scan
	.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
	movq	%rdx, %r13
	movl	%esi, %ebx
	movq	%rdi, %r14
	incq	16(%rdi)
	cmpb	$30, %bl
	je	LBB0_13
## %bb.1:
	cmpb	$10, %bl
	jne	LBB0_3
## %bb.2:
	incl	24(%r14)
	movq	$0, 16(%r14)
LBB0_3:
	movl	$0, 8(%r14)
	movq	(%r14), %rax
	movq	_JV_PARSER_NORMAL@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_27
## %bb.4:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movsbl	%bl, %r12d
	movl	%r12d, %edi
	callq	_classify
	cmpl	$131, %eax
	je	LBB0_22
## %bb.5:
	movl	%eax, %r13d
	cmpl	$128, %eax
	jne	LBB0_7
## %bb.6:
	movl	$1, 8(%r14)
LBB0_7:
	movq	%r14, %rdi
	callq	_check_literal
	movq	%rax, %rdi
	callq	_TRY
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_check_done
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_9:
	cmpl	$129, %r13d
	je	LBB0_24
## %bb.10:
	cmpl	$130, %r13d
	je	LBB0_23
## %bb.11:
	cmpl	$132, %r13d
	jne	LBB0_25
## %bb.12:
	leaq	L_.str.2(%rip), %r15
	jmp	LBB0_35
LBB0_13:
	movq	%r14, %rdi
	callq	_check_truncation
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_check_literal
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.14:
	testq	%rax, %rax
	je	LBB0_15
LBB0_17:
	leaq	L_.str.1(%rip), %r15
	jmp	LBB0_35
LBB0_27:
	movq	_JV_PARSER_STRING@GOTPCREL(%rip), %r12
	cmpb	$34, %bl
	jne	LBB0_30
## %bb.28:
	cmpq	(%r12), %rax
	jne	LBB0_30
## %bb.29:
	movq	%r14, %rdi
	callq	_found_string
	movq	%rax, %rdi
	callq	_TRY
	movq	(%r15), %rax
	movq	%rax, (%r14)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_check_done
	movq	%rax, %r15
	jmp	LBB0_26
LBB0_30:
	movsbl	%bl, %esi
	movq	%r14, %rdi
	callq	_tokenadd
	cmpb	$92, %bl
	jne	LBB0_31
## %bb.32:
	movq	(%r12), %rax
	cmpq	%rax, (%r14)
	jne	LBB0_34
## %bb.33:
	movq	_JV_PARSER_STRING_ESCAPE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_34
LBB0_18:
	movq	%rax, %rdi
	callq	_TRY
	movq	(%r14), %rax
	movq	_JV_PARSER_NORMAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.19:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_check_done
	testq	%rax, %rax
	jne	LBB0_20
LBB0_21:
	movl	(%r13), %edi
	callq	_jv_is_valid
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movq	%r14, %rdi
	callq	_parser_reset
	movl	(%r13), %edi
	callq	_jv_free
	xorl	%eax, %eax
	callq	_jv_invalid
	movl	%eax, (%r13)
	jmp	LBB0_20
LBB0_22:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_tokenadd
	xorl	%r15d, %r15d
	jmp	LBB0_25
LBB0_31:
	movq	(%r12), %rax
LBB0_34:
	movq	%rax, (%r14)
	xorl	%r15d, %r15d
	jmp	LBB0_35
LBB0_15:
	movq	%r14, %rdi
	callq	_is_top_num
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	leaq	L_.str(%rip), %r15
	jmp	LBB0_35
LBB0_24:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_token
	movq	%rax, %rdi
	callq	_TRY
	jmp	LBB0_25
LBB0_23:
	movq	_JV_PARSER_STRING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_25:
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_check_done
LBB0_26:
	testq	%rax, %rax
	je	LBB0_35
LBB0_20:
	movq	_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_35:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Potentially truncated top-level numeric value"

L_.str.1:                               ## @.str.1
	.asciz	"Truncated value"

	.comm	_JV_PARSER_NORMAL,8,3           ## @JV_PARSER_NORMAL
	.comm	_OK,8,3                         ## @OK
	.comm	_JV_PARSER_STRING,8,3           ## @JV_PARSER_STRING
L_.str.2:                               ## @.str.2
	.asciz	"Invalid character"

	.comm	_JV_PARSER_STRING_ESCAPE,8,3    ## @JV_PARSER_STRING_ESCAPE
	.no_dead_strip	_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scan
_scan:                                  ; @scan
	.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	x20, x2
	mov	x19, x0
	ldr	x8, [x0, #16]
	add	x8, x8, #1
	str	x8, [x0, #16]
	cmp	w1, #30
	b.eq	LBB0_11
; %bb.1:
	mov	x21, x1
	cmp	w1, #10
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
	str	xzr, [x19, #16]
LBB0_3:
	str	wzr, [x19, #8]
	ldr	x8, [x19]
Lloh0:
	adrp	x22, _JV_PARSER_NORMAL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _JV_PARSER_NORMAL@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.4:
	mov	x0, x21
	bl	_classify
	cmp	w0, #131
	b.eq	LBB0_24
; %bb.5:
	mov	x22, x0
	cmp	w0, #128
	b.ne	LBB0_7
; %bb.6:
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_7:
	mov	x0, x19
	bl	_check_literal
	bl	_TRY
	mov	x0, x19
	mov	x1, x20
	bl	_check_done
Lloh2:
	adrp	x8, _OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OK@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x23, xzr, x8, eq
	cmp	w22, #129
	b.eq	LBB0_30
; %bb.8:
	cmp	w22, #130
	b.eq	LBB0_31
; %bb.9:
	cmp	w22, #132
	b.ne	LBB0_32
; %bb.10:
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_33
LBB0_11:
	mov	x0, x19
	bl	_check_truncation
	mov	x21, x0
	mov	x0, x19
	bl	_check_literal
	cbz	x21, LBB0_20
; %bb.12:
	cbz	x0, LBB0_25
LBB0_13:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_33
LBB0_14:
Lloh9:
	adrp	x23, _JV_PARSER_STRING@GOTPAGE
Lloh10:
	ldr	x23, [x23, _JV_PARSER_STRING@GOTPAGEOFF]
	cmp	w21, #34
	b.ne	LBB0_17
; %bb.15:
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_found_string
	bl	_TRY
	ldr	x8, [x22]
	str	x8, [x19]
	mov	x0, x19
	mov	x1, x20
	bl	_check_done
Lloh11:
	adrp	x8, _OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OK@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x0, xzr, x8, eq
	b	LBB0_33
LBB0_17:
	mov	x0, x19
	mov	x1, x21
	bl	_tokenadd
	cmp	w21, #92
	b.ne	LBB0_27
; %bb.18:
	ldr	x9, [x19]
	ldr	x8, [x23]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.19:
	mov	x0, #0
Lloh14:
	adrp	x8, _JV_PARSER_STRING_ESCAPE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _JV_PARSER_STRING_ESCAPE@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	b	LBB0_29
LBB0_20:
	bl	_TRY
	ldr	x8, [x19]
Lloh17:
	adrp	x9, _JV_PARSER_NORMAL@GOTPAGE
Lloh18:
	ldr	x9, [x9, _JV_PARSER_NORMAL@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.21:
	mov	x0, x19
	mov	x1, x20
	bl	_check_done
	cbnz	x0, LBB0_23
LBB0_22:
	ldr	w0, [x20]
	bl	_jv_is_valid
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	mov	x0, x19
	bl	_parser_reset
	ldr	w0, [x20]
	bl	_jv_free
	bl	_jv_invalid
	str	w0, [x20]
LBB0_23:
Lloh20:
	adrp	x8, _OK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _OK@GOTPAGEOFF]
Lloh22:
	ldr	x0, [x8]
	b	LBB0_33
LBB0_24:
	mov	x0, x19
	mov	x1, x21
	bl	_tokenadd
	mov	x23, #0
	b	LBB0_32
LBB0_25:
	mov	x0, x19
	bl	_is_top_num
	cbz	x0, LBB0_13
; %bb.26:
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_33
LBB0_27:
	ldr	x8, [x23]
LBB0_28:
	mov	x0, #0
LBB0_29:
	str	x8, [x19]
	b	LBB0_33
LBB0_30:
	mov	x0, x19
	mov	x1, x21
	bl	_token
	bl	_TRY
	b	LBB0_32
LBB0_31:
Lloh25:
	adrp	x8, _JV_PARSER_STRING@GOTPAGE
Lloh26:
	ldr	x8, [x8, _JV_PARSER_STRING@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_32:
	mov	x0, x19
	mov	x1, x20
	bl	_check_done
Lloh28:
	adrp	x8, _OK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _OK@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x0, x23, x8, eq
LBB0_33:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Potentially truncated top-level numeric value"

l_.str.1:                               ; @.str.1
	.asciz	"Truncated value"

	.comm	_JV_PARSER_NORMAL,8,3           ; @JV_PARSER_NORMAL
	.comm	_OK,8,3                         ; @OK
	.comm	_JV_PARSER_STRING,8,3           ; @JV_PARSER_STRING
l_.str.2:                               ; @.str.2
	.asciz	"Invalid character"

	.comm	_JV_PARSER_STRING_ESCAPE,8,3    ; @JV_PARSER_STRING_ESCAPE
	.no_dead_strip	_scan
.subsections_via_symbols
