	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_json_count_array_elements      ## -- Begin function json_count_array_elements
	.p2align	4, 0x90
_json_count_array_elements:             ## @json_count_array_elements
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rsi
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_memcpy
	movq	$0, -48(%rbp)
	incl	-56(%rbp)
	movq	_JSON_PARSE_ARRAY_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_JSON_TOKEN_ARRAY_START@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rbx, %rsi
	callq	_lex_expect
	movq	%rbx, %rdi
	callq	_lex_peek
	movq	_JSON_TOKEN_ARRAY_END@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_2:
	xorl	%ebx, %ebx
	movq	_nullSemAction@GOTPCREL(%rip), %r14
	leaq	-56(%rbp), %r15
	movq	_JSON_TOKEN_COMMA@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_parse_array_element
	movl	(%r13), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_lex_accept
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	movq	(%r12), %rax
LBB0_5:
	movq	_JSON_PARSE_ARRAY_NEXT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	-56(%rbp), %rsi
	movq	%rax, %rdx
	callq	_lex_expect
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_JSON_PARSE_ARRAY_START,4,2     ## @JSON_PARSE_ARRAY_START
	.comm	_JSON_TOKEN_ARRAY_START,8,3     ## @JSON_TOKEN_ARRAY_START
	.comm	_JSON_TOKEN_ARRAY_END,8,3       ## @JSON_TOKEN_ARRAY_END
	.comm	_nullSemAction,4,2              ## @nullSemAction
	.comm	_JSON_TOKEN_COMMA,4,2           ## @JSON_TOKEN_COMMA
	.comm	_JSON_PARSE_ARRAY_NEXT,4,2      ## @JSON_PARSE_ARRAY_NEXT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_json_count_array_elements      ; -- Begin function json_count_array_elements
	.p2align	2
_json_count_array_elements:             ; @json_count_array_elements
	.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	x1, x0
	mov	x0, sp
	mov	w2, #16
	bl	_memcpy
	str	xzr, [sp, #8]
	ldr	w8, [sp]
	add	w8, w8, #1
	str	w8, [sp]
Lloh0:
	adrp	x8, _JSON_PARSE_ARRAY_START@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JSON_PARSE_ARRAY_START@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _JSON_TOKEN_ARRAY_START@GOTPAGE
Lloh4:
	ldr	x8, [x8, _JSON_TOKEN_ARRAY_START@GOTPAGEOFF]
Lloh5:
	ldr	x2, [x8]
	mov	x1, sp
	bl	_lex_expect
	mov	x0, sp
	bl	_lex_peek
Lloh6:
	adrp	x21, _JSON_TOKEN_ARRAY_END@GOTPAGE
Lloh7:
	ldr	x21, [x21, _JSON_TOKEN_ARRAY_END@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x2, x0
	mov	w19, #0
	b	LBB0_5
LBB0_2:
	mov	w19, #0
Lloh8:
	adrp	x20, _nullSemAction@GOTPAGE
Lloh9:
	ldr	x20, [x20, _nullSemAction@GOTPAGEOFF]
Lloh10:
	adrp	x22, _JSON_TOKEN_COMMA@GOTPAGE
Lloh11:
	ldr	x22, [x22, _JSON_TOKEN_COMMA@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	w19, w19, #1
	mov	x0, sp
	mov	x1, x20
	bl	_parse_array_element
	ldr	w1, [x22]
	mov	x0, sp
	mov	x2, #0
	bl	_lex_accept
	cbnz	x0, LBB0_3
; %bb.4:
	ldr	x2, [x21]
LBB0_5:
Lloh12:
	adrp	x8, _JSON_PARSE_ARRAY_NEXT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _JSON_PARSE_ARRAY_NEXT@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, sp
	bl	_lex_expect
	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
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_JSON_PARSE_ARRAY_START,4,2     ; @JSON_PARSE_ARRAY_START
	.comm	_JSON_TOKEN_ARRAY_START,8,3     ; @JSON_TOKEN_ARRAY_START
	.comm	_JSON_TOKEN_ARRAY_END,8,3       ; @JSON_TOKEN_ARRAY_END
	.comm	_nullSemAction,4,2              ; @nullSemAction
	.comm	_JSON_TOKEN_COMMA,4,2           ; @JSON_TOKEN_COMMA
	.comm	_JSON_PARSE_ARRAY_NEXT,4,2      ; @JSON_PARSE_ARRAY_NEXT
.subsections_via_symbols
