	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_json_next                      ## -- Begin function json_next
	.p2align	4, 0x90
_json_next:                             ## @json_next
	.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	_JSON_FLAG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
LBB0_42:
	movq	_JSON_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_43
LBB0_1:
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	$0, 8(%r14)
LBB0_43:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpq	$0, 16(%r14)
	jle	LBB0_12
## %bb.4:
	cmpq	$-1, 24(%r14)
	je	LBB0_5
LBB0_12:
	movq	%r14, %rdi
	callq	_next
	movq	24(%r14), %rcx
	cmpq	$-1, %rcx
	je	LBB0_45
## %bb.13:
	movq	32(%r14), %rsi
	shlq	$4, %rcx
	movq	(%rsi,%rcx), %rdx
	movq	_JSON_ARRAY@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rdx
	jne	LBB0_23
## %bb.14:
	leaq	(%rsi,%rcx), %rdi
	addq	$8, %rdi
	movl	8(%rsi,%rcx), %ecx
	testl	%ecx, %ecx
	je	LBB0_15
## %bb.18:
	cmpl	$93, %eax
	je	LBB0_16
## %bb.19:
	cmpl	$44, %eax
	jne	LBB0_22
## %bb.20:
	incl	%ecx
	movl	%ecx, (%rdi)
LBB0_21:
	movq	%r14, %rdi
	callq	_next
	jmp	LBB0_45
LBB0_23:
	movq	_JSON_OBJECT@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rdx
	jne	LBB0_40
## %bb.24:
	movl	8(%rsi,%rcx), %r8d
	testl	%r8d, %r8d
	je	LBB0_25
## %bb.29:
	movl	%r8d, %ebx
	shrl	$31, %ebx
	addl	%r8d, %ebx
	andl	$-2, %ebx
	movl	%r8d, %edi
	subl	%ebx, %edi
	cmpl	$1, %edi
	je	LBB0_37
## %bb.30:
	testl	%edi, %edi
	jne	LBB0_40
## %bb.31:
	cmpl	$44, %eax
	je	LBB0_34
## %bb.32:
	cmpl	$125, %eax
	je	LBB0_26
## %bb.33:
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_41
LBB0_5:
	leaq	40(%r14), %r15
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %edi
	callq	_json_isspace
	testq	%rax, %rax
	je	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	*(%r15)
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_json_isspace
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	*48(%r14)
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_9:
	movq	_JSON_FLAG_STREAMING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_EOF@GOTPCREL(%rip), %rsi
	movq	_JSON_DONE@GOTPCREL(%rip), %rcx
	movq	%rcx, %rdx
	cmpl	(%rsi), %ebx
	je	LBB0_11
## %bb.10:
	movq	_JSON_ERROR@GOTPCREL(%rip), %rdx
LBB0_11:
	testl	%eax, (%r14)
	cmovneq	%rcx, %rdx
	movl	(%rdx), %eax
	jmp	LBB0_43
LBB0_40:
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.6(%rip), %rdx
LBB0_41:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_json_error
	jmp	LBB0_42
LBB0_15:
	cmpl	$93, %eax
	jne	LBB0_44
LBB0_16:
	movq	%r14, %rdi
	movl	$93, %esi
	jmp	LBB0_17
LBB0_22:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_json_error
	jmp	LBB0_42
LBB0_25:
	cmpl	$125, %eax
	jne	LBB0_27
LBB0_26:
	movq	%r14, %rdi
	movl	$125, %esi
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pop                            ## TAILCALL
LBB0_44:
	movl	$1, (%rdi)
LBB0_45:
	movq	%r14, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_read_value                     ## TAILCALL
LBB0_37:
	cmpl	$58, %eax
	jne	LBB0_38
## %bb.39:
	leaq	(%rsi,%rcx), %rax
	addq	$8, %rax
	incl	%r8d
	movl	%r8d, (%rax)
	jmp	LBB0_21
LBB0_27:
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_read_value
                                        ## kill: def $eax killed $eax def $rax
	movq	_JSON_STRING@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_36
## %bb.28:
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_41
LBB0_38:
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_41
LBB0_34:
	movq	%r14, %rdi
	callq	_next
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_read_value
                                        ## kill: def $eax killed $eax def $rax
	movq	_JSON_STRING@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_35
LBB0_36:
	movq	24(%r14), %rcx
	movq	32(%r14), %rdx
	shlq	$4, %rcx
	incl	8(%rdx,%rcx)
	jmp	LBB0_43
LBB0_35:
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_41
	.cfi_endproc
                                        ## -- End function
	.comm	_JSON_FLAG_ERROR,4,2            ## @JSON_FLAG_ERROR
	.comm	_JSON_ERROR,4,2                 ## @JSON_ERROR
	.comm	_JSON_FLAG_STREAMING,4,2        ## @JSON_FLAG_STREAMING
	.comm	_EOF,4,2                        ## @EOF
	.comm	_JSON_DONE,4,2                  ## @JSON_DONE
	.comm	_JSON_ARRAY,8,3                 ## @JSON_ARRAY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected byte, '%c'"

	.comm	_JSON_OBJECT,8,3                ## @JSON_OBJECT
	.comm	_JSON_STRING,4,2                ## @JSON_STRING
L_.str.1:                               ## @.str.1
	.asciz	"%s"

L_.str.2:                               ## @.str.2
	.asciz	"expected property name or '}'"

L_.str.3:                               ## @.str.3
	.asciz	"expected ',' or '}'"

L_.str.4:                               ## @.str.4
	.asciz	"expected property name"

L_.str.5:                               ## @.str.5
	.asciz	"expected ':' after property name"

L_.str.6:                               ## @.str.6
	.asciz	"invalid parser state"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_json_next                      ; -- Begin function json_next
	.p2align	2
_json_next:                             ; @json_next
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _JSON_FLAG_ERROR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _JSON_FLAG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_1:
Lloh3:
	adrp	x8, _JSON_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _JSON_ERROR@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_3:
	mov	x19, x0
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_6
; %bb.4:
	str	xzr, [x19, #8]
LBB0_5:
                                        ; kill: def $w0 killed $w0 killed $x0
	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_6:
	ldr	x8, [x19, #16]
	cmp	x8, #1
	b.lt	LBB0_8
; %bb.7:
	ldr	x8, [x19, #24]
	cmn	x8, #1
	b.eq	LBB0_21
LBB0_8:
	mov	x0, x19
	bl	_next
	mov	x1, x0
	ldr	x8, [x19, #24]
	cmn	x8, #1
	b.eq	LBB0_30
; %bb.9:
	ldr	x9, [x19, #32]
	lsl	x10, x8, #4
	ldr	x2, [x9, x10]
Lloh5:
	adrp	x10, _JSON_ARRAY@GOTPAGE
Lloh6:
	ldr	x10, [x10, _JSON_ARRAY@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x2, x10
	b.ne	LBB0_14
; %bb.10:
	add	x8, x9, x8, lsl #4
	ldr	w9, [x8, #8]!
	cbz	w9, LBB0_28
; %bb.11:
	cmp	w1, #93
	b.eq	LBB0_35
; %bb.12:
	cmp	w1, #44
	b.ne	LBB0_32
LBB0_13:
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x19
	bl	_next
	mov	x1, x0
	mov	x0, x19
	b	LBB0_31
LBB0_14:
Lloh8:
	adrp	x10, _JSON_OBJECT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _JSON_OBJECT@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x2, x10
	b.ne	LBB0_26
; %bb.15:
	add	x8, x9, x8, lsl #4
	ldr	w9, [x8, #8]!
	cbz	w9, LBB0_34
; %bb.16:
	and	w10, w9, #0x1
	cmp	w9, #0
	cneg	w10, w10, lt
	cmp	w10, #1
	b.eq	LBB0_36
; %bb.17:
	cbnz	w10, LBB0_26
; %bb.18:
	cmp	w1, #44
	b.eq	LBB0_40
; %bb.19:
	cmp	w1, #125
	b.eq	LBB0_35
; %bb.20:
Lloh11:
	adrp	x8, l_.str.3@PAGE
Lloh12:
	add	x8, x8, l_.str.3@PAGEOFF
	b	LBB0_27
LBB0_21:
	add	x20, x19, #40
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x21
	bl	_json_isspace
	cbz	x0, LBB0_25
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	mov	x0, x20
	blr	x8
	mov	x21, x0
	bl	_json_isspace
	cbz	x0, LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	x8, [x19, #48]
	mov	x0, x20
	blr	x8
	mov	x21, x0
	b	LBB0_22
LBB0_25:
	ldr	w8, [x19]
Lloh13:
	adrp	x9, _JSON_FLAG_STREAMING@GOTPAGE
Lloh14:
	ldr	x9, [x9, _JSON_FLAG_STREAMING@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh16:
	adrp	x9, _EOF@GOTPAGE
Lloh17:
	ldr	x9, [x9, _EOF@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	w21, w9
	ccmp	w8, #0, #0, ne
Lloh19:
	adrp	x8, _JSON_DONE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _JSON_DONE@GOTPAGEOFF]
Lloh21:
	adrp	x9, _JSON_ERROR@GOTPAGE
Lloh22:
	ldr	x9, [x9, _JSON_ERROR@GOTPAGEOFF]
	csel	x8, x8, x9, ne
	b	LBB0_2
LBB0_26:
Lloh23:
	adrp	x8, l_.str.6@PAGE
Lloh24:
	add	x8, x8, l_.str.6@PAGEOFF
LBB0_27:
	str	x8, [sp]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_33
LBB0_28:
	cmp	w1, #93
	b.eq	LBB0_35
; %bb.29:
	mov	w9, #1
	str	w9, [x8]
LBB0_30:
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
LBB0_31:
	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	_read_value
LBB0_32:
	str	x1, [sp]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
LBB0_33:
	mov	x0, x19
	bl	_json_error
	b	LBB0_1
LBB0_34:
	cmp	w1, #125
	b.ne	LBB0_38
LBB0_35:
	mov	x0, 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
	add	sp, sp, #64
	b	_pop
LBB0_36:
	cmp	w1, #58
	b.eq	LBB0_13
; %bb.37:
Lloh29:
	adrp	x8, l_.str.5@PAGE
Lloh30:
	add	x8, x8, l_.str.5@PAGEOFF
	b	LBB0_27
LBB0_38:
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_read_value
                                        ; kill: def $w0 killed $w0 def $x0
Lloh31:
	adrp	x8, _JSON_STRING@GOTPAGE
Lloh32:
	ldr	x8, [x8, _JSON_STRING@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_41
; %bb.39:
Lloh34:
	adrp	x8, l_.str.2@PAGE
Lloh35:
	add	x8, x8, l_.str.2@PAGEOFF
	b	LBB0_27
LBB0_40:
	mov	x0, x19
	bl	_next
	mov	x1, x0
	mov	x0, x19
	bl	_read_value
                                        ; kill: def $w0 killed $w0 def $x0
Lloh36:
	adrp	x8, _JSON_STRING@GOTPAGE
Lloh37:
	ldr	x8, [x8, _JSON_STRING@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_42
LBB0_41:
	ldp	x9, x8, [x19, #24]
	add	x8, x8, x9, lsl #4
	ldr	w9, [x8, #8]
	add	w9, w9, #1
	str	w9, [x8, #8]
	b	LBB0_5
LBB0_42:
Lloh39:
	adrp	x8, l_.str.4@PAGE
Lloh40:
	add	x8, x8, l_.str.4@PAGEOFF
	b	LBB0_27
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_JSON_FLAG_ERROR,4,2            ; @JSON_FLAG_ERROR
	.comm	_JSON_ERROR,4,2                 ; @JSON_ERROR
	.comm	_JSON_FLAG_STREAMING,4,2        ; @JSON_FLAG_STREAMING
	.comm	_EOF,4,2                        ; @EOF
	.comm	_JSON_DONE,4,2                  ; @JSON_DONE
	.comm	_JSON_ARRAY,8,3                 ; @JSON_ARRAY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected byte, '%c'"

	.comm	_JSON_OBJECT,8,3                ; @JSON_OBJECT
	.comm	_JSON_STRING,4,2                ; @JSON_STRING
l_.str.1:                               ; @.str.1
	.asciz	"%s"

l_.str.2:                               ; @.str.2
	.asciz	"expected property name or '}'"

l_.str.3:                               ; @.str.3
	.asciz	"expected ',' or '}'"

l_.str.4:                               ; @.str.4
	.asciz	"expected property name"

l_.str.5:                               ; @.str.5
	.asciz	"expected ':' after property name"

l_.str.6:                               ; @.str.6
	.asciz	"invalid parser state"

.subsections_via_symbols
