	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function JSON_Parser_FlushDecoder
_JSON_Parser_FlushDecoder:              ## @JSON_Parser_FlushDecoder
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	(%rdi), %rax
	movq	_JSON_UnknownEncoding@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.1:
	movl	8(%rbx), %edx
	movq	_DECODER_RESET@GOTPCREL(%rip), %r15
	cmpl	(%r15), %edx
	je	LBB0_16
## %bb.2:
	movl	12(%rbx), %ecx
	movl	%ecx, %eax
	sarl	$24, %eax
	movl	%eax, -44(%rbp)
	movl	%ecx, %eax
	sarl	$16, %eax
	movl	%eax, -40(%rbp)
	movl	%ecx, %eax
	sarl	$8, %eax
	movl	%eax, -36(%rbp)
	movq	_JSON_UTF8@GOTPCREL(%rip), %rax
	cmpl	$128, %edx
	je	LBB0_11
## %bb.3:
	cmpl	$130, %edx
	je	LBB0_4
## %bb.5:
	cmpl	$129, %edx
	jne	LBB0_6
## %bb.7:
	movl	$2, %r14d
	cmpl	$16777215, %ecx                 ## imm = 0xFFFFFF
	ja	LBB0_12
## %bb.8:
	cmpl	$65535, %ecx                    ## imm = 0xFFFF
	ja	LBB0_9
## %bb.10:
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_JSON_Parser_HandleInvalidEncodingSequence
	jmp	LBB0_20
LBB0_11:
	movl	$3, %r14d
	jmp	LBB0_12
LBB0_4:
	movl	$1, %r14d
LBB0_12:
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_13
LBB0_6:
	xorl	%r14d, %r14d
LBB0_13:
	movq	%rbx, %rdi
	callq	_JSON_Parser_CallEncodingDetectedHandler
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	movl	(%r15), %eax
	movl	%eax, 8(%rbx)
	movl	$0, 12(%rbx)
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_JSON_Parser_ProcessInputBytes
	testl	%eax, %eax
	je	LBB0_14
LBB0_16:
	leaq	8(%rbx), %rdi
	callq	_Decoder_SequencePending
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movl	8(%rbx), %edi
	callq	_DECODER_STATE_BYTES
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_JSON_Parser_HandleInvalidEncodingSequence
	jmp	LBB0_20
LBB0_18:
	movq	_JSON_Success@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_14:
	movq	_JSON_Failure@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %eax
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_22
## %bb.21:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_JSON_UTF16BE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_JSON_UnknownEncoding,8,3       ## @JSON_UnknownEncoding
	.comm	_DECODER_RESET,4,2              ## @DECODER_RESET
	.comm	_JSON_UTF8,8,3                  ## @JSON_UTF8
	.comm	_JSON_UTF16LE,8,3               ## @JSON_UTF16LE
	.comm	_JSON_UTF16BE,8,3               ## @JSON_UTF16BE
	.comm	_JSON_Failure,4,2               ## @JSON_Failure
	.comm	_JSON_Success,4,2               ## @JSON_Success
	.no_dead_strip	_JSON_Parser_FlushDecoder
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function JSON_Parser_FlushDecoder
lCPI0_0:
	.long	4294967272                      ; 0xffffffe8
	.long	4294967280                      ; 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_JSON_Parser_FlushDecoder:              ; @JSON_Parser_FlushDecoder
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _JSON_UnknownEncoding@GOTPAGE
Lloh4:
	ldr	x9, [x9, _JSON_UnknownEncoding@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.1:
	ldr	w8, [x19, #8]
Lloh6:
	adrp	x21, _DECODER_RESET@GOTPAGE
Lloh7:
	ldr	x21, [x21, _DECODER_RESET@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w8, w9
	b.eq	LBB0_17
; %bb.2:
	ldr	w9, [x19, #12]
	dup.2s	v0, w9
Lloh8:
	adrp	x10, lCPI0_0@PAGE
Lloh9:
	ldr	d1, [x10, lCPI0_0@PAGEOFF]
	sshl.2s	v0, v0, v1
	str	d0, [sp, #8]
	asr	w10, w9, #8
	str	w10, [sp, #16]
	cmp	w8, #128
	b.eq	LBB0_8
; %bb.3:
	cmp	w8, #130
	b.eq	LBB0_9
; %bb.4:
	cmp	w8, #129
	b.ne	LBB0_10
; %bb.5:
	lsr	w8, w9, #24
	cbnz	w8, LBB0_11
; %bb.6:
	lsr	w8, w9, #16
	cbnz	w8, LBB0_12
; %bb.7:
	mov	x0, x19
	mov	w1, #2
	bl	_JSON_Parser_HandleInvalidEncodingSequence
	b	LBB0_22
LBB0_8:
Lloh10:
	adrp	x8, _JSON_UTF8@GOTPAGE
Lloh11:
	ldr	x8, [x8, _JSON_UTF8@GOTPAGEOFF]
	mov	w20, #3
	b	LBB0_14
LBB0_9:
Lloh12:
	adrp	x8, _JSON_UTF8@GOTPAGE
Lloh13:
	ldr	x8, [x8, _JSON_UTF8@GOTPAGEOFF]
	mov	w20, #1
	b	LBB0_14
LBB0_10:
	mov	x20, #0
	b	LBB0_15
LBB0_11:
Lloh14:
	adrp	x8, _JSON_UTF8@GOTPAGE
Lloh15:
	ldr	x8, [x8, _JSON_UTF8@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh16:
	adrp	x8, _JSON_UTF16BE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _JSON_UTF16BE@GOTPAGEOFF]
LBB0_13:
	mov	w20, #2
LBB0_14:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_15:
	mov	x0, x19
	bl	_JSON_Parser_CallEncodingDetectedHandler
	cbz	w0, LBB0_20
; %bb.16:
	ldr	w8, [x21]
	stp	w8, wzr, [x19, #8]
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x20
	bl	_JSON_Parser_ProcessInputBytes
	cbz	w0, LBB0_20
LBB0_17:
	add	x0, x19, #8
	bl	_Decoder_SequencePending
	cbz	x0, LBB0_19
; %bb.18:
	ldr	w0, [x19, #8]
	bl	_DECODER_STATE_BYTES
	mov	x1, x0
	mov	x0, x19
	bl	_JSON_Parser_HandleInvalidEncodingSequence
	b	LBB0_22
LBB0_19:
Lloh18:
	adrp	x8, _JSON_Success@GOTPAGE
Lloh19:
	ldr	x8, [x8, _JSON_Success@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:
Lloh20:
	adrp	x8, _JSON_Failure@GOTPAGE
Lloh21:
	ldr	x8, [x8, _JSON_Failure@GOTPAGEOFF]
LBB0_21:
	ldr	w0, [x8]
LBB0_22:
	ldr	x8, [sp, #24]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.23:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_JSON_UnknownEncoding,8,3       ; @JSON_UnknownEncoding
	.comm	_DECODER_RESET,4,2              ; @DECODER_RESET
	.comm	_JSON_UTF8,8,3                  ; @JSON_UTF8
	.comm	_JSON_UTF16LE,8,3               ; @JSON_UTF16LE
	.comm	_JSON_UTF16BE,8,3               ; @JSON_UTF16BE
	.comm	_JSON_Failure,4,2               ; @JSON_Failure
	.comm	_JSON_Success,4,2               ; @JSON_Success
	.no_dead_strip	_JSON_Parser_FlushDecoder
.subsections_via_symbols
