	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kludges_json_array_encode      ## -- Begin function kludges_json_array_encode
	.p2align	4, 0x90
_kludges_json_array_encode:             ## @kludges_json_array_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %eax
	cmpl	$8, %esi
	jl	LBB0_23
## %bb.1:
	testl	%ecx, %ecx
	js	LBB0_23
## %bb.2:
	movq	%rdx, %rbx
	movslq	%esi, %rdx
	leaq	1(%rdi), %r13
	movb	$123, (%rdi)
	xorl	%r9d, %r9d
	testl	%ecx, %ecx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_22
## %bb.3:
	cmpl	$10, %esi
	jb	LBB0_22
## %bb.4:
	movslq	%ecx, %r15
	addq	%rbx, %r15
	leaq	(%rdx,%rdi), %rax
	addq	$-8, %rax
	xorl	%r9d, %r9d
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movb	(%rbx), %cl
	leal	-1(%rcx), %edx
	cmpb	$1, %dl
	ja	LBB0_22
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%r15, %rbx
	jae	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$9, %cl
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %r12
	xorl	%r14d, %r14d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %r12
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	1(%rbx), %rsi
	xorl	%r14d, %r14d
	movl	%ecx, %edx
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movq	%rsi, %r12
	leaq	-1(%rsi), %r14
	testq	%rdi, %rdi
	cmovneq	%rdi, %r14
	cmpb	$32, %dl
	cmovneq	%rdi, %r14
	cmpq	%r15, %rsi
	jae	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movzbl	(%r12), %edx
	leaq	1(%r12), %rsi
	cmpb	$9, %dl
	jne	LBB0_11
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movsbl	%cl, %ecx
	testl	%r8d, %ecx
	je	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	testq	%r14, %r14
	je	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movb	$34, (%r13)
	incq	%r13
	movl	%eax, %esi
	subl	%r13d, %esi
	leaq	1(%rbx), %rdx
	notl	%ebx
	addl	%r14d, %ebx
	movq	%r13, %rdi
	movl	%ebx, %ecx
	movq	%rax, %rbx
	callq	_utf8_json_encode
	testl	%eax, %eax
	js	LBB0_23
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %eax
	addq	%rax, %r13
	cmpq	%rbx, %r13
	ja	LBB0_25
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rax
	movw	$14882, (%r13)                  ## imm = 0x3A22
	movb	$34, 2(%r13)
	addq	$3, %r13
	movl	%eax, %esi
	subl	%r13d, %esi
	leaq	1(%r14), %rdx
	notl	%r14d
	leal	(%r12,%r14), %ecx
	movq	%r13, %rdi
	callq	_utf8_json_encode
	testl	%eax, %eax
	js	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %eax
	addq	%rax, %r13
	cmpq	%rbx, %r13
	ja	LBB0_25
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rax
	movw	$11298, (%r13)                  ## imm = 0x2C22
	addq	$2, %r13
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	incl	%r9d
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rbx
	incq	%rbx
	cmpq	%r15, %rbx
	jae	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rax, %r13
	jb	LBB0_5
LBB0_22:
	cmpl	$1, %r9d
	adcq	$-1, %r13
	movb	$125, (%r13)
	incq	%r13
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	%r14, %rax
	xorl	%edi, %edi
	cmpq	%rax, %r13
	setbe	%dil
	callq	_assert
	subl	%r14d, %r13d
	movl	%r13d, %eax
LBB0_23:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movl	$-1, %eax
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kludges_json_array_encode      ; -- Begin function kludges_json_array_encode
	.p2align	2
_kludges_json_array_encode:             ; @kludges_json_array_encode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
                                        ; kill: def $w3 killed $w3 def $x3
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
	mov	w0, #-1
	cmp	w1, #8
	b.lt	LBB0_24
; %bb.1:
	tbnz	w3, #31, LBB0_24
; %bb.2:
	mov	w23, #0
	sxtw	x22, w1
	mov	w8, #123
	mov	x21, x19
	strb	w8, [x21], #1
	cbz	w3, LBB0_23
; %bb.3:
	cmp	w1, #10
	b.lo	LBB0_23
; %bb.4:
	mov	x20, x4
	mov	w23, #0
	sxtw	x8, w3
	add	x24, x2, x8
	add	x9, x22, x19
	sub	x25, x9, #8
	add	x8, x2, x8
	str	x8, [sp]                        ; 8-byte Folded Spill
	sub	x8, x8, #1
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	mov	w28, #32
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldrsb	w8, [x2]
	sub	w9, w8, #1
	cmp	w9, #1
	b.hi	LBB0_23
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x2, x24
	b.hs	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	and	w10, w8, #0xff
	cmp	w10, #9
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x27, #0
	mov	x26, x2
	tst	w8, w20
	b.ne	LBB0_15
	b	LBB0_21
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, x2
	b	LBB0_21
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x27, #0
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	sub	x9, x9, x2
	mov	x11, x2
LBB0_11:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	and	w10, w10, #0xff
	cmp	x27, #0
	ccmp	w10, w28, #0, eq
	csel	x27, x27, x11, ne
	cbz	x9, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	add	x26, x11, #1
	ldrb	w10, [x11, #1]
	sub	x9, x9, #1
	mov	x11, x26
	cmp	w10, #9
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	tst	w8, w20
	b.ne	LBB0_15
	b	LBB0_21
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x26, [sp]                       ; 8-byte Folded Reload
	tst	w8, w20
	b.eq	LBB0_21
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	x27, LBB0_21
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #34
	strb	w8, [x21], #1
	sub	w1, w25, w21
	add	x8, x2, #1
	mvn	w9, w2
	add	w3, w27, w9
	mov	x0, x21
	mov	x2, x8
	bl	_utf8_json_encode
	tbnz	w0, #31, LBB0_24
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x21, w0, uxtw
	cmp	x8, x25
	b.hi	LBB0_25
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w9, #14882
	strh	w9, [x8]
	mov	w9, #34
	strb	w9, [x8, #2]
	add	x21, x8, #3
	sub	w1, w25, w21
	add	x2, x27, #1
	mvn	w8, w27
	add	w3, w8, w26
	mov	x0, x21
	bl	_utf8_json_encode
	tbnz	w0, #31, LBB0_24
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, w0, uxtw
	cmp	x21, x25
	b.hi	LBB0_25
; %bb.20:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #11298
	strh	w8, [x21], #2
	add	w23, w23, #1
LBB0_21:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x2, x26, #1
	cmp	x2, x24
	b.hs	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	x21, x25
	b.lo	LBB0_5
LBB0_23:
	cmp	w23, #0
	cset	w8, ne
	sub	x20, x21, x8
	mov	w8, #125
	strb	w8, [x20], #1
	add	x8, x19, x22
	cmp	x20, x8
	cset	w0, ls
	bl	_assert
	sub	w0, w20, w19
LBB0_24:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_25:
	mov	w0, #-1
	b	LBB0_24
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
