	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function JSON_Writer_OutputString
_JSON_Writer_OutputString:              ## @JSON_Writer_OutputString
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movslq	(%rdi), %rdi
	leaq	_JSON_Writer_OutputString.quoteEncodings(%rip), %rax
	movq	-8(%rax,%rdi,8), %r12
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_SHORTEST_ENCODING_SEQUENCE
	movslq	%eax, %r15
	leaq	-44(%rbp), %rdi
	callq	_WriteBuffer_Reset
	leaq	-44(%rbp), %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, %rcx
	callq	_WriteBuffer_WriteBytes
	movq	_JSON_Failure@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_26
## %bb.1:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	callq	_Decoder_Reset
	xorl	%r12d, %r12d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	cmpq	-72(%rbp), %r12                 ## 8-byte Folded Reload
	jae	LBB0_14
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	(%r14,%r12), %edx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_Decoder_ProcessByte
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_DECODER_RESULT_CODE
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=2
	movl	%ebx, %edi
	callq	_DECODER_CODEPOINT
	movsbl	%al, %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	callq	_JSON_Writer_GetCodepointEscapeCharacter
	movsbl	%al, %ebx
	cmpl	$117, %ebx
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	testl	%ebx, %ebx
	leaq	-44(%rbp), %rdi
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_11
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=2
	leaq	-44(%rbp), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_WriteBuffer_WriteHexEscapeSequence
	testl	%eax, %eax
	jne	LBB0_13
	jmp	LBB0_25
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	$92, %edx
	callq	_WriteBuffer_WriteCodepoint
	testl	%eax, %eax
	je	LBB0_25
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=2
	leaq	-44(%rbp), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=2
	callq	_WriteBuffer_WriteCodepoint
	testl	%eax, %eax
	je	LBB0_25
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=2
	incq	%r12
	cmpq	-72(%rbp), %r12                 ## 8-byte Folded Reload
	jne	LBB0_3
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %edi
	movq	_WRITER_REPLACE_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GET_FLAGS
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_REPLACEMENT_CHARACTER_CODEPOINT@GOTPCREL(%rip), %rax
	movsbl	(%rax), %edx
	leaq	-44(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_WriteBuffer_WriteHexEscapeSequence
	testl	%eax, %eax
	jne	LBB0_2
	jmp	LBB0_25
LBB0_14:
	leaq	-64(%rbp), %rdi
	callq	_Decoder_SequencePending
	testq	%rax, %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_17
## %bb.15:
	movl	4(%rbx), %edi
	movq	_WRITER_REPLACE_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GET_FLAGS
	testq	%rax, %rax
	je	LBB0_23
## %bb.16:
	movq	_REPLACEMENT_CHARACTER_CODEPOINT@GOTPCREL(%rip), %rax
	movsbl	(%rax), %edx
	leaq	-44(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_WriteBuffer_WriteHexEscapeSequence
	testl	%eax, %eax
	je	LBB0_25
LBB0_17:
	leaq	-44(%rbp), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	callq	_WriteBuffer_WriteBytes
	testl	%eax, %eax
	movq	_JSON_Failure@GOTPCREL(%rip), %rcx
	je	LBB0_26
## %bb.18:
	leaq	-44(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_WriteBuffer_Flush
	testq	%rax, %rax
	je	LBB0_25
## %bb.19:
	movq	_JSON_Success@GOTPCREL(%rip), %rcx
	jmp	LBB0_26
LBB0_23:
	leaq	-44(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_WriteBuffer_Flush
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movq	_JSON_Error_InvalidEncodingSequence@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_JSON_Writer_SetError
LBB0_25:
	movq	_JSON_Failure@GOTPCREL(%rip), %rcx
LBB0_26:
	movl	(%rcx), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_20
	.long	L0_0_set_21
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__const
_JSON_Writer_OutputString.quoteUTF:     ## @JSON_Writer_OutputString.quoteUTF
	.asciz	"\000\000\000\"\000\000"

	.section	__DATA,__const
	.p2align	4                               ## @JSON_Writer_OutputString.quoteEncodings
_JSON_Writer_OutputString.quoteEncodings:
	.quad	_JSON_Writer_OutputString.quoteUTF+3
	.quad	_JSON_Writer_OutputString.quoteUTF+3
	.quad	_JSON_Writer_OutputString.quoteUTF+2
	.quad	_JSON_Writer_OutputString.quoteUTF+3
	.quad	_JSON_Writer_OutputString.quoteUTF

	.comm	_JSON_Failure,4,2               ## @JSON_Failure
	.comm	_WRITER_REPLACE_INVALID,4,2     ## @WRITER_REPLACE_INVALID
	.comm	_REPLACEMENT_CHARACTER_CODEPOINT,1,0 ## @REPLACEMENT_CHARACTER_CODEPOINT
	.comm	_JSON_Error_InvalidEncodingSequence,4,2 ## @JSON_Error_InvalidEncodingSequence
	.comm	_JSON_Success,4,2               ## @JSON_Success
	.no_dead_strip	_JSON_Writer_OutputString
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function JSON_Writer_OutputString
_JSON_Writer_OutputString:              ; @JSON_Writer_OutputString
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
	ldr	w0, [x0]
	sub	w8, w0, #1
Lloh0:
	adrp	x9, _JSON_Writer_OutputString.quoteEncodings@PAGE
Lloh1:
	add	x9, x9, _JSON_Writer_OutputString.quoteEncodings@PAGEOFF
	ldr	x20, [x9, w8, sxtw #3]
	bl	_SHORTEST_ENCODING_SEQUENCE
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x21, w0
	add	x0, sp, #24
	bl	_WriteBuffer_Reset
	add	x0, sp, #24
	mov	x1, x19
	mov	x2, x20
	mov	x3, x21
	bl	_WriteBuffer_WriteBytes
	cbz	w0, LBB0_22
; %bb.1:
	stp	x21, x20, [sp, #8]              ; 16-byte Folded Spill
	add	x0, sp, #28
	bl	_Decoder_Reset
	mov	x21, #0
Lloh2:
	adrp	x20, _WRITER_REPLACE_INVALID@GOTPAGE
Lloh3:
	ldr	x20, [x20, _WRITER_REPLACE_INVALID@GOTPAGEOFF]
Lloh4:
	adrp	x28, _REPLACEMENT_CHARACTER_CODEPOINT@GOTPAGE
Lloh5:
	ldr	x28, [x28, _REPLACEMENT_CHARACTER_CODEPOINT@GOTPAGEOFF]
Lloh6:
	adrp	x27, lJTI0_0@PAGE
Lloh7:
	add	x27, x27, lJTI0_0@PAGEOFF
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	cmp	x21, x23
	b.hs	LBB0_15
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w2, [x24, x21]
	add	x0, sp, #28
	mov	x1, x22
	bl	_Decoder_ProcessByte
	mov	x25, x0
	bl	_DECODER_RESULT_CODE
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	adr	x9, LBB0_5
	ldrb	w10, [x27, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=2
	mov	x0, x25
	bl	_DECODER_CODEPOINT
	mov	x25, x0
	mov	x0, x19
	mov	x1, x25
	bl	_JSON_Writer_GetCodepointEscapeCharacter
	cmp	w0, #117
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=2
	mov	x26, x0
	cbnz	w0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=2
	add	x0, sp, #24
	mov	x1, x19
	mov	x2, x25
	bl	_WriteBuffer_WriteCodepoint
	cbnz	w0, LBB0_11
	b	LBB0_22
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=2
	add	x0, sp, #24
	mov	x1, x19
	mov	x2, x25
	bl	_WriteBuffer_WriteHexEscapeSequence
	cbnz	w0, LBB0_11
	b	LBB0_22
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=2
	add	x0, sp, #24
	mov	x1, x19
	mov	w2, #92
	bl	_WriteBuffer_WriteCodepoint
	cbz	w0, LBB0_22
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=2
	add	x0, sp, #24
	mov	x1, x19
	mov	x2, x26
	bl	_WriteBuffer_WriteCodepoint
	cbz	w0, LBB0_22
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=2
	add	x21, x21, #1
	cmp	x21, x23
	b.ne	LBB0_3
	b	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x19, #4]
	ldr	w1, [x20]
	bl	_GET_FLAGS
	cbz	x0, LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	ldrsb	w2, [x28]
	add	x0, sp, #24
	mov	x1, x19
	bl	_WriteBuffer_WriteHexEscapeSequence
	cbnz	w0, LBB0_2
	b	LBB0_22
LBB0_15:
	add	x0, sp, #28
	bl	_Decoder_SequencePending
	cbz	x0, LBB0_18
; %bb.16:
	ldr	w0, [x19, #4]
	ldr	w1, [x20]
	bl	_GET_FLAGS
	cbz	x0, LBB0_20
; %bb.17:
	ldrsb	w2, [x28]
	add	x0, sp, #24
	mov	x1, x19
	bl	_WriteBuffer_WriteHexEscapeSequence
	cbz	w0, LBB0_22
LBB0_18:
	add	x0, sp, #24
	mov	x1, x19
	ldp	x3, x2, [sp, #8]                ; 16-byte Folded Reload
	bl	_WriteBuffer_WriteBytes
Lloh8:
	adrp	x20, _JSON_Failure@GOTPAGE
Lloh9:
	ldr	x20, [x20, _JSON_Failure@GOTPAGEOFF]
	cbz	w0, LBB0_23
; %bb.19:
	add	x0, sp, #24
	mov	x1, x19
	bl	_WriteBuffer_Flush
Lloh10:
	adrp	x8, _JSON_Success@GOTPAGE
Lloh11:
	ldr	x8, [x8, _JSON_Success@GOTPAGEOFF]
	cmp	x0, #0
	csel	x20, x20, x8, eq
	b	LBB0_23
LBB0_20:
	add	x0, sp, #24
	mov	x1, x19
	bl	_WriteBuffer_Flush
	cbz	x0, LBB0_22
; %bb.21:
Lloh12:
	adrp	x8, _JSON_Error_InvalidEncodingSequence@GOTPAGE
Lloh13:
	ldr	x8, [x8, _JSON_Error_InvalidEncodingSequence@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_JSON_Writer_SetError
LBB0_22:
Lloh15:
	adrp	x20, _JSON_Failure@GOTPAGE
Lloh16:
	ldr	x20, [x20, _JSON_Failure@GOTPAGEOFF]
LBB0_23:
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_12-LBB0_5)>>2
	.byte	(LBB0_13-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
                                        ; -- End function
_JSON_Writer_OutputString.quoteUTF:     ; @JSON_Writer_OutputString.quoteUTF
	.asciz	"\000\000\000\"\000\000"

	.section	__DATA,__const
	.p2align	3                               ; @JSON_Writer_OutputString.quoteEncodings
_JSON_Writer_OutputString.quoteEncodings:
	.quad	_JSON_Writer_OutputString.quoteUTF+3
	.quad	_JSON_Writer_OutputString.quoteUTF+3
	.quad	_JSON_Writer_OutputString.quoteUTF+2
	.quad	_JSON_Writer_OutputString.quoteUTF+3
	.quad	_JSON_Writer_OutputString.quoteUTF

	.comm	_JSON_Failure,4,2               ; @JSON_Failure
	.comm	_WRITER_REPLACE_INVALID,4,2     ; @WRITER_REPLACE_INVALID
	.comm	_REPLACEMENT_CHARACTER_CODEPOINT,1,0 ; @REPLACEMENT_CHARACTER_CODEPOINT
	.comm	_JSON_Error_InvalidEncodingSequence,4,2 ; @JSON_Error_InvalidEncodingSequence
	.comm	_JSON_Success,4,2               ; @JSON_Success
	.no_dead_strip	_JSON_Writer_OutputString
.subsections_via_symbols
