	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_utf8_json_encode               ## -- Begin function utf8_json_encode
	.p2align	4, 0x90
_utf8_json_encode:                      ## @utf8_json_encode
	.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
	cmpl	$9, %esi
	jl	LBB0_19
## %bb.1:
	cmpl	$16777216, %ecx                 ## imm = 0x1000000
	jae	LBB0_19
## %bb.2:
	movq	%rdx, %rbx
	movslq	%esi, %rax
	leaq	(%rdi,%rax), %r13
	addq	$-8, %r13
	movslq	%ecx, %r15
	addq	%rdx, %r15
	movq	_utf8_mode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	je	LBB0_20
## %bb.3:
	testl	%ecx, %ecx
	je	LBB0_73
## %bb.4:
	leaq	LJTI0_0(%rip), %r14
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r13, %r12
	ja	LBB0_74
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movzbl	(%rbx), %eax
	incq	%rbx
	movsbl	%al, %edx
	leal	-8(%rdx), %ecx
	cmpl	$39, %ecx
	ja	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	(%r14,%rcx,4), %rcx
	addq	%r14, %rcx
	jmpq	*%rcx
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movb	$98, %al
	jmp	LBB0_16
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$92, %edx
	je	LBB0_16
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$31, %al
	ja	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.2(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_sprintf
	cltq
	addq	%rax, %r12
	jmp	LBB0_18
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movb	$116, %al
	jmp	LBB0_16
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movb	$110, %al
	jmp	LBB0_16
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movb	$102, %al
	jmp	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movb	$114, %al
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movb	$92, (%r12)
	incq	%r12
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	movb	%al, (%r12)
	incq	%r12
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%r15, %rbx
	jb	LBB0_5
	jmp	LBB0_73
LBB0_19:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_75
LBB0_20:
	testl	%ecx, %ecx
	je	LBB0_73
## %bb.21:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_22:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_47 Depth 2
	cmpq	%r13, %r12
	ja	LBB0_74
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	leaq	1(%rbx), %r14
	movsbl	(%rbx), %edx
	testl	%edx, %edx
	js	LBB0_42
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=1
	cmpb	$38, %dl
	jne	LBB0_59
## %bb.25:                              ##   in Loop: Header=BB0_22 Depth=1
	cmpq	%r15, %r14
	je	LBB0_73
## %bb.26:                              ##   in Loop: Header=BB0_22 Depth=1
	movb	(%r14), %cl
	cmpb	$35, %cl
	jne	LBB0_43
## %bb.27:                              ##   in Loop: Header=BB0_22 Depth=1
	leaq	2(%rbx), %rax
	xorl	%edx, %edx
	cmpq	%r15, %rax
	jae	LBB0_53
## %bb.28:                              ##   in Loop: Header=BB0_22 Depth=1
	movzbl	(%rax), %ecx
	leal	-48(%rcx), %esi
	cmpb	$9, %sil
	ja	LBB0_53
## %bb.29:                              ##   in Loop: Header=BB0_22 Depth=1
	addl	$-48, %ecx
	leaq	3(%rbx), %rax
	cmpq	%r15, %rax
	jae	LBB0_52
## %bb.30:                              ##   in Loop: Header=BB0_22 Depth=1
	movzbl	(%rax), %edx
	leal	-48(%rdx), %esi
	cmpb	$9, %sil
	ja	LBB0_52
## %bb.31:                              ##   in Loop: Header=BB0_22 Depth=1
	leal	(%rcx,%rcx,4), %eax
	leal	(%rdx,%rax,2), %edx
	addl	$-48, %edx
	leaq	4(%rbx), %rax
	cmpq	%r15, %rax
	jae	LBB0_53
## %bb.32:                              ##   in Loop: Header=BB0_22 Depth=1
	movzbl	(%rax), %ecx
	leal	-48(%rcx), %esi
	cmpb	$9, %sil
	ja	LBB0_53
## %bb.33:                              ##   in Loop: Header=BB0_22 Depth=1
	leal	(%rdx,%rdx,4), %eax
	leal	(%rcx,%rax,2), %edx
	addl	$-48, %edx
	leaq	5(%rbx), %rax
	cmpq	%r15, %rax
	jae	LBB0_53
## %bb.34:                              ##   in Loop: Header=BB0_22 Depth=1
	movzbl	(%rax), %ecx
	leal	-48(%rcx), %esi
	cmpb	$9, %sil
	ja	LBB0_53
## %bb.35:                              ##   in Loop: Header=BB0_22 Depth=1
	leal	(%rdx,%rdx,4), %eax
	leal	(%rcx,%rax,2), %edx
	addl	$-48, %edx
	leaq	6(%rbx), %rax
	cmpq	%r15, %rax
	jae	LBB0_53
## %bb.36:                              ##   in Loop: Header=BB0_22 Depth=1
	movzbl	(%rax), %ecx
	leal	-48(%rcx), %esi
	cmpb	$9, %sil
	ja	LBB0_53
## %bb.37:                              ##   in Loop: Header=BB0_22 Depth=1
	leal	(%rdx,%rdx,4), %eax
	leal	(%rcx,%rax,2), %edx
	addl	$-48, %edx
	leaq	7(%rbx), %rax
	cmpq	%r15, %rax
	jae	LBB0_53
## %bb.38:                              ##   in Loop: Header=BB0_22 Depth=1
	movzbl	(%rax), %ecx
	leal	-48(%rcx), %esi
	cmpb	$9, %sil
	ja	LBB0_53
## %bb.39:                              ##   in Loop: Header=BB0_22 Depth=1
	leal	(%rdx,%rdx,4), %eax
	leal	(%rcx,%rax,2), %edx
	addl	$-48, %edx
	leaq	8(%rbx), %rax
	cmpq	%r15, %rax
	jae	LBB0_53
## %bb.40:                              ##   in Loop: Header=BB0_22 Depth=1
	movzbl	(%rax), %ecx
	leal	-48(%rcx), %esi
	cmpb	$9, %sil
	ja	LBB0_53
## %bb.41:                              ##   in Loop: Header=BB0_22 Depth=1
	leal	(%rdx,%rdx,4), %eax
	leal	(%rcx,%rax,2), %edx
	addl	$-48, %edx
	addq	$9, %rbx
	movq	%rbx, %rax
	jmp	LBB0_53
	.p2align	4, 0x90
LBB0_42:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	_cp1251_unicode_codes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subl	$-128, %edx
	movl	(%rax,%rdx,4), %esi
	jmp	LBB0_71
LBB0_43:                                ##   in Loop: Header=BB0_22 Depth=1
	addb	$-97, %cl
	movl	$38, %esi
	cmpb	$25, %cl
	ja	LBB0_71
## %bb.44:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	%r14, %rax
	cmpq	%r15, %r14
	jae	LBB0_50
## %bb.45:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	%r14, %rax
	cmpb	$25, %cl
	ja	LBB0_50
## %bb.46:                              ##   in Loop: Header=BB0_22 Depth=1
	addq	$2, %rbx
	movl	$1, %ecx
	.p2align	4, 0x90
LBB0_47:                                ##   Parent Loop BB0_22 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rax
	cmpq	$15, %rcx
	ja	LBB0_50
## %bb.48:                              ##   in Loop: Header=BB0_47 Depth=2
	cmpq	%r15, %rax
	jae	LBB0_50
## %bb.49:                              ##   in Loop: Header=BB0_47 Depth=2
	movzbl	(%rax), %edx
	addb	$-97, %dl
	leaq	1(%rax), %rbx
	incq	%rcx
	cmpb	$26, %dl
	jb	LBB0_47
LBB0_50:                                ##   in Loop: Header=BB0_22 Depth=1
	cmpq	%r15, %rax
	jne	LBB0_71
	jmp	LBB0_73
LBB0_52:                                ##   in Loop: Header=BB0_22 Depth=1
	movl	%ecx, %edx
LBB0_53:                                ##   in Loop: Header=BB0_22 Depth=1
	cmpq	%r15, %rax
	je	LBB0_73
## %bb.54:                              ##   in Loop: Header=BB0_22 Depth=1
	cmpb	$59, (%rax)
	movl	$38, %esi
	jne	LBB0_71
## %bb.55:                              ##   in Loop: Header=BB0_22 Depth=1
	testl	%edx, %edx
	jle	LBB0_71
## %bb.56:                              ##   in Loop: Header=BB0_22 Depth=1
	cmpl	$60, %edx
	je	LBB0_71
## %bb.57:                              ##   in Loop: Header=BB0_22 Depth=1
	cmpl	$62, %edx
	je	LBB0_71
## %bb.58:                              ##   in Loop: Header=BB0_22 Depth=1
	incq	%rax
	movq	%rax, %r14
	.p2align	4, 0x90
LBB0_59:                                ##   in Loop: Header=BB0_22 Depth=1
	leal	-8(%rdx), %eax
	cmpl	$39, %eax
	ja	LBB0_62
## %bb.60:                              ##   in Loop: Header=BB0_22 Depth=1
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_61:                                ##   in Loop: Header=BB0_22 Depth=1
	movl	$98, %edx
	jmp	LBB0_69
LBB0_62:                                ##   in Loop: Header=BB0_22 Depth=1
	cmpl	$92, %edx
	je	LBB0_69
LBB0_63:                                ##   in Loop: Header=BB0_22 Depth=1
	cmpl	$31, %edx
	ja	LBB0_70
## %bb.64:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.2(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_sprintf
	cltq
	addq	%rax, %r12
	jmp	LBB0_72
LBB0_65:                                ##   in Loop: Header=BB0_22 Depth=1
	movl	$116, %edx
	jmp	LBB0_69
LBB0_66:                                ##   in Loop: Header=BB0_22 Depth=1
	movl	$110, %edx
	jmp	LBB0_69
LBB0_67:                                ##   in Loop: Header=BB0_22 Depth=1
	movl	$102, %edx
	jmp	LBB0_69
LBB0_68:                                ##   in Loop: Header=BB0_22 Depth=1
	movl	$114, %edx
	.p2align	4, 0x90
LBB0_69:                                ##   in Loop: Header=BB0_22 Depth=1
	movb	$92, (%r12)
	incq	%r12
LBB0_70:                                ##   in Loop: Header=BB0_22 Depth=1
	movl	%edx, %esi
LBB0_71:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	%r12, %rdi
	callq	_utf8_char
	movq	%rax, %r12
LBB0_72:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	%r14, %rbx
	cmpq	%r15, %r14
	jb	LBB0_22
LBB0_73:
	subl	-48(%rbp), %r12d                ## 4-byte Folded Reload
	jmp	LBB0_76
LBB0_74:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_75:
	callq	_fprintf
	movl	$-1, %r12d
LBB0_76:
	movl	%r12d, %eax
	addq	$8, %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_8, LBB0_8-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_10
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_16
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_16
.set L0_1_set_61, LBB0_61-LJTI0_1
.set L0_1_set_65, LBB0_65-LJTI0_1
.set L0_1_set_66, LBB0_66-LJTI0_1
.set L0_1_set_63, LBB0_63-LJTI0_1
.set L0_1_set_67, LBB0_67-LJTI0_1
.set L0_1_set_68, LBB0_68-LJTI0_1
.set L0_1_set_69, LBB0_69-LJTI0_1
LJTI0_1:
	.long	L0_1_set_61
	.long	L0_1_set_65
	.long	L0_1_set_66
	.long	L0_1_set_63
	.long	L0_1_set_67
	.long	L0_1_set_68
	.long	L0_1_set_63
	.long	L0_1_set_63
	.long	L0_1_set_63
	.long	L0_1_set_63
	.long	L0_1_set_63
	.long	L0_1_set_63
	.long	L0_1_set_63
	.long	L0_1_set_63
	.long	L0_1_set_63
	.long	L0_1_set_63
	.long	L0_1_set_63
	.long	L0_1_set_63
	.long	L0_1_set_63
	.long	L0_1_set_63
	.long	L0_1_set_63
	.long	L0_1_set_63
	.long	L0_1_set_63
	.long	L0_1_set_63
	.long	L0_1_set_63
	.long	L0_1_set_63
	.long	L0_1_set_69
	.long	L0_1_set_63
	.long	L0_1_set_63
	.long	L0_1_set_63
	.long	L0_1_set_63
	.long	L0_1_set_63
	.long	L0_1_set_63
	.long	L0_1_set_63
	.long	L0_1_set_63
	.long	L0_1_set_63
	.long	L0_1_set_63
	.long	L0_1_set_63
	.long	L0_1_set_63
	.long	L0_1_set_69
	.end_data_region
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"utf8_json_encode: invalid initial data\n"

	.comm	_utf8_mode,8,3                  ## @utf8_mode
L_.str.1:                               ## @.str.1
	.asciz	"utf8_json_encode: buffer overflow\n"

L_.str.2:                               ## @.str.2
	.asciz	"\\u%04x"

	.comm	_cp1251_unicode_codes,8,3       ## @cp1251_unicode_codes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_utf8_json_encode               ; -- Begin function utf8_json_encode
	.p2align	2
_utf8_json_encode:                      ; @utf8_json_encode
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cmp	w1, #9
	b.lt	LBB0_19
; %bb.1:
	lsr	w8, w3, #24
	cbnz	w8, LBB0_19
; %bb.2:
	mov	x22, x2
	mov	x19, x0
	add	x8, x0, w1, sxtw
	sub	x23, x8, #8
	add	x24, x2, w3, sxtw
Lloh0:
	adrp	x8, _utf8_mode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _utf8_mode@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_20
; %bb.3:
	mov	x20, x19
	cbz	w3, LBB0_75
; %bb.4:
	mov	w25, #92
Lloh3:
	adrp	x21, l_.str.2@PAGE
Lloh4:
	add	x21, x21, l_.str.2@PAGEOFF
	mov	x20, x19
Lloh5:
	adrp	x26, lJTI0_0@PAGE
Lloh6:
	add	x26, x26, lJTI0_0@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x20, x23
	b.hi	LBB0_76
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrsb	w2, [x22], #1
	and	w8, w2, #0xff
	sub	w9, w2, #8
	cmp	w9, #39
	b.hi	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	adr	x10, LBB0_8
	ldrb	w11, [x26, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #98
	b	LBB0_16
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w2, #92
	b.eq	LBB0_16
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #31
	b.hi	LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_sprintf
	add	x20, x20, w0, sxtw
	b	LBB0_18
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #116
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #110
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #102
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #114
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	strb	w25, [x20], #1
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	strb	w8, [x20], #1
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x22, x24
	b.lo	LBB0_5
	b	LBB0_75
LBB0_19:
Lloh7:
	adrp	x8, _stderr@GOTPAGE
Lloh8:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_77
LBB0_20:
	mov	x20, x19
	cbz	w3, LBB0_75
; %bb.21:
Lloh12:
	adrp	x25, _cp1251_unicode_codes@GOTPAGE
Lloh13:
	ldr	x25, [x25, _cp1251_unicode_codes@GOTPAGEOFF]
	mov	w27, #92
	mov	x20, x19
Lloh14:
	adrp	x28, lJTI0_1@PAGE
Lloh15:
	add	x28, x28, lJTI0_1@PAGEOFF
	b	LBB0_24
LBB0_22:                                ;   in Loop: Header=BB0_24 Depth=1
	ldr	x8, [x25]
	add	w9, w2, #128
	ldr	w1, [x8, w9, uxtw #2]
	mov	x0, x20
	bl	_utf8_char
	mov	x20, x0
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	mov	x22, x26
	cmp	x26, x24
	b.hs	LBB0_75
LBB0_24:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_52 Depth 2
	cmp	x20, x23
	b.hi	LBB0_76
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	x26, x22
	ldrsb	w2, [x26], #1
	tbnz	w2, #31, LBB0_22
; %bb.26:                               ;   in Loop: Header=BB0_24 Depth=1
	cmp	w2, #38
	b.ne	LBB0_44
; %bb.27:                               ;   in Loop: Header=BB0_24 Depth=1
	cmp	x26, x24
	b.eq	LBB0_75
; %bb.28:                               ;   in Loop: Header=BB0_24 Depth=1
	ldrb	w8, [x26]
	cmp	w8, #35
	b.ne	LBB0_48
; %bb.29:                               ;   in Loop: Header=BB0_24 Depth=1
	add	x21, x22, #2
	cmp	x21, x24
	b.hs	LBB0_56
; %bb.30:                               ;   in Loop: Header=BB0_24 Depth=1
	ldrb	w8, [x21]
	sub	w2, w8, #48
	cmp	w2, #9
	b.hi	LBB0_74
; %bb.31:                               ;   in Loop: Header=BB0_24 Depth=1
	add	x21, x22, #3
	cmp	x21, x24
	b.hs	LBB0_57
; %bb.32:                               ;   in Loop: Header=BB0_24 Depth=1
	ldrb	w8, [x21]
	sub	w9, w8, #48
	cmp	w9, #9
	b.hi	LBB0_57
; %bb.33:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	w9, #10
	madd	w8, w2, w9, w8
	sub	w2, w8, #48
	add	x21, x22, #4
	cmp	x21, x24
	b.hs	LBB0_57
; %bb.34:                               ;   in Loop: Header=BB0_24 Depth=1
	ldrb	w8, [x21]
	sub	w9, w8, #48
	cmp	w9, #9
	b.hi	LBB0_57
; %bb.35:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	w9, #10
	madd	w8, w2, w9, w8
	sub	w2, w8, #48
	add	x21, x22, #5
	cmp	x21, x24
	b.hs	LBB0_57
; %bb.36:                               ;   in Loop: Header=BB0_24 Depth=1
	ldrb	w8, [x21]
	sub	w9, w8, #48
	cmp	w9, #9
	b.hi	LBB0_57
; %bb.37:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	w9, #10
	madd	w8, w2, w9, w8
	sub	w2, w8, #48
	add	x21, x22, #6
	cmp	x21, x24
	b.hs	LBB0_57
; %bb.38:                               ;   in Loop: Header=BB0_24 Depth=1
	ldrb	w8, [x21]
	sub	w9, w8, #48
	cmp	w9, #9
	b.hi	LBB0_57
; %bb.39:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	w9, #10
	madd	w8, w2, w9, w8
	sub	w2, w8, #48
	add	x21, x22, #7
	cmp	x21, x24
	b.hs	LBB0_57
; %bb.40:                               ;   in Loop: Header=BB0_24 Depth=1
	ldrb	w8, [x21]
	sub	w9, w8, #48
	cmp	w9, #9
	b.hi	LBB0_57
; %bb.41:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	w9, #10
	madd	w8, w2, w9, w8
	sub	w2, w8, #48
	add	x21, x22, #8
	cmp	x21, x24
	b.hs	LBB0_57
; %bb.42:                               ;   in Loop: Header=BB0_24 Depth=1
	ldrb	w8, [x21]
	sub	w9, w8, #48
	cmp	w9, #9
	b.hi	LBB0_57
; %bb.43:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	w9, #10
	madd	w8, w2, w9, w8
	sub	w2, w8, #48
	add	x21, x22, #9
	cmp	x21, x24
	b.ne	LBB0_58
	b	LBB0_75
LBB0_44:                                ;   in Loop: Header=BB0_24 Depth=1
	mov	x21, x26
LBB0_45:                                ;   in Loop: Header=BB0_24 Depth=1
	sub	w8, w2, #8
	cmp	w8, #39
	b.hi	LBB0_63
; %bb.46:                               ;   in Loop: Header=BB0_24 Depth=1
	adr	x9, LBB0_47
	ldrb	w10, [x28, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_47:                                ;   in Loop: Header=BB0_24 Depth=1
	mov	w2, #98
	b	LBB0_70
LBB0_48:                                ;   in Loop: Header=BB0_24 Depth=1
	sub	w9, w8, #97
	cmp	w9, #25
	b.hi	LBB0_55
; %bb.49:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	x8, x26
	cmp	x26, x24
	b.hs	LBB0_54
; %bb.50:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	x8, x26
	cmp	w9, #25
	b.hi	LBB0_54
; %bb.51:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	w9, #2
LBB0_52:                                ;   Parent Loop BB0_24 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	x10, x9, #1
	add	x8, x22, x9
	cmp	x10, #15
	ccmp	x8, x24, #2, ls
	b.hs	LBB0_54
; %bb.53:                               ;   in Loop: Header=BB0_52 Depth=2
	ldrb	w10, [x8]
	sub	w10, w10, #97
	add	x9, x9, #1
	cmp	w10, #26
	b.lo	LBB0_52
LBB0_54:                                ;   in Loop: Header=BB0_24 Depth=1
	cmp	x8, x24
	b.eq	LBB0_75
LBB0_55:                                ;   in Loop: Header=BB0_24 Depth=1
	mov	w1, #38
	mov	x21, x26
	b	LBB0_72
LBB0_56:                                ;   in Loop: Header=BB0_24 Depth=1
	mov	w2, #0
LBB0_57:                                ;   in Loop: Header=BB0_24 Depth=1
	cmp	x21, x24
	b.eq	LBB0_75
LBB0_58:                                ;   in Loop: Header=BB0_24 Depth=1
	ldrb	w8, [x21], #1
	mov	w1, #38
	cmp	w8, #59
	b.ne	LBB0_62
; %bb.59:                               ;   in Loop: Header=BB0_24 Depth=1
	cmp	w2, #1
	b.lt	LBB0_62
; %bb.60:                               ;   in Loop: Header=BB0_24 Depth=1
	cmp	w2, #60
	b.eq	LBB0_62
; %bb.61:                               ;   in Loop: Header=BB0_24 Depth=1
	cmp	w2, #62
	b.ne	LBB0_45
LBB0_62:                                ;   in Loop: Header=BB0_24 Depth=1
	mov	x21, x26
	b	LBB0_72
LBB0_63:                                ;   in Loop: Header=BB0_24 Depth=1
	cmp	w2, #92
	b.eq	LBB0_70
LBB0_64:                                ;   in Loop: Header=BB0_24 Depth=1
	cmp	w2, #31
	b.hi	LBB0_71
; %bb.65:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	x0, x20
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_sprintf
	add	x20, x20, w0, sxtw
	b	LBB0_73
LBB0_66:                                ;   in Loop: Header=BB0_24 Depth=1
	mov	w2, #116
	b	LBB0_70
LBB0_67:                                ;   in Loop: Header=BB0_24 Depth=1
	mov	w2, #110
	b	LBB0_70
LBB0_68:                                ;   in Loop: Header=BB0_24 Depth=1
	mov	w2, #102
	b	LBB0_70
LBB0_69:                                ;   in Loop: Header=BB0_24 Depth=1
	mov	w2, #114
LBB0_70:                                ;   in Loop: Header=BB0_24 Depth=1
	strb	w27, [x20], #1
LBB0_71:                                ;   in Loop: Header=BB0_24 Depth=1
	mov	x1, x2
LBB0_72:                                ;   in Loop: Header=BB0_24 Depth=1
	mov	x0, x20
	bl	_utf8_char
	mov	x20, x0
LBB0_73:                                ;   in Loop: Header=BB0_24 Depth=1
	mov	x26, x21
	b	LBB0_23
LBB0_74:                                ;   in Loop: Header=BB0_24 Depth=1
	mov	w2, #0
	cmp	x21, x24
	b.ne	LBB0_58
LBB0_75:
	sub	w0, w20, w19
	b	LBB0_78
LBB0_76:
Lloh18:
	adrp	x8, _stderr@GOTPAGE
Lloh19:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_77:
	bl	_fprintf
	mov	w0, #-1
LBB0_78:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_12-LBB0_8)>>2
	.byte	(LBB0_13-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_16-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_16-LBB0_8)>>2
lJTI0_1:
	.byte	(LBB0_47-LBB0_47)>>2
	.byte	(LBB0_66-LBB0_47)>>2
	.byte	(LBB0_67-LBB0_47)>>2
	.byte	(LBB0_64-LBB0_47)>>2
	.byte	(LBB0_68-LBB0_47)>>2
	.byte	(LBB0_69-LBB0_47)>>2
	.byte	(LBB0_64-LBB0_47)>>2
	.byte	(LBB0_64-LBB0_47)>>2
	.byte	(LBB0_64-LBB0_47)>>2
	.byte	(LBB0_64-LBB0_47)>>2
	.byte	(LBB0_64-LBB0_47)>>2
	.byte	(LBB0_64-LBB0_47)>>2
	.byte	(LBB0_64-LBB0_47)>>2
	.byte	(LBB0_64-LBB0_47)>>2
	.byte	(LBB0_64-LBB0_47)>>2
	.byte	(LBB0_64-LBB0_47)>>2
	.byte	(LBB0_64-LBB0_47)>>2
	.byte	(LBB0_64-LBB0_47)>>2
	.byte	(LBB0_64-LBB0_47)>>2
	.byte	(LBB0_64-LBB0_47)>>2
	.byte	(LBB0_64-LBB0_47)>>2
	.byte	(LBB0_64-LBB0_47)>>2
	.byte	(LBB0_64-LBB0_47)>>2
	.byte	(LBB0_64-LBB0_47)>>2
	.byte	(LBB0_64-LBB0_47)>>2
	.byte	(LBB0_64-LBB0_47)>>2
	.byte	(LBB0_70-LBB0_47)>>2
	.byte	(LBB0_64-LBB0_47)>>2
	.byte	(LBB0_64-LBB0_47)>>2
	.byte	(LBB0_64-LBB0_47)>>2
	.byte	(LBB0_64-LBB0_47)>>2
	.byte	(LBB0_64-LBB0_47)>>2
	.byte	(LBB0_64-LBB0_47)>>2
	.byte	(LBB0_64-LBB0_47)>>2
	.byte	(LBB0_64-LBB0_47)>>2
	.byte	(LBB0_64-LBB0_47)>>2
	.byte	(LBB0_64-LBB0_47)>>2
	.byte	(LBB0_64-LBB0_47)>>2
	.byte	(LBB0_64-LBB0_47)>>2
	.byte	(LBB0_70-LBB0_47)>>2
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"utf8_json_encode: invalid initial data\n"

	.comm	_utf8_mode,8,3                  ; @utf8_mode
l_.str.1:                               ; @.str.1
	.asciz	"utf8_json_encode: buffer overflow\n"

l_.str.2:                               ; @.str.2
	.asciz	"\\u%04x"

	.comm	_cp1251_unicode_codes,8,3       ; @cp1251_unicode_codes
.subsections_via_symbols
