	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function array_to_json_internal
_array_to_json_internal:                ## @array_to_json_internal
	.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
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	callq	_DatumGetArrayTypeP
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ARR_ELEMTYPE
	movl	%eax, %r14d
	movl	$0, -64(%rbp)
	movq	%rbx, %rdi
	callq	_ARR_NDIM
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_ARR_DIMS
	movq	%rax, %r13
	movl	%r12d, %edi
	movq	%rax, %rsi
	callq	_ArrayGetNItems
	movl	%eax, -68(%rbp)
	testl	%eax, %eax
	jle	LBB0_2
## %bb.1:
	leaq	-60(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-41(%rbp), %rcx
	movl	%r14d, %edi
	callq	_get_typlenbyvalalign
	leaq	-52(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movl	%r14d, %edi
	callq	_json_categorize_type
	movl	-60(%rbp), %edx
	movl	-56(%rbp), %ecx
	movsbl	-41(%rbp), %r8d
	leaq	-68(%rbp), %rax
	leaq	-80(%rbp), %r10
	leaq	-88(%rbp), %r9
	movq	%rbx, %rdi
	movl	%r14d, %esi
	pushq	%rax
	pushq	%r10
	callq	_deconstruct_array
	addq	$16, %rsp
	movq	-88(%rbp), %r8
	movq	-80(%rbp), %r9
	movl	-52(%rbp), %eax
	movl	-48(%rbp), %ebx
	leaq	-64(%rbp), %r10
	movl	%r15d, %edi
	xorl	%esi, %esi
	movl	%r12d, %edx
	movq	%r13, %rcx
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	%rbx
	pushq	%rax
	pushq	%r10
	callq	_array_dim_to_json
	addq	$32, %rsp
	movq	-88(%rbp), %rdi
	callq	_pfree
	movq	-80(%rbp), %rdi
	callq	_pfree
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_appendStringInfoString         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[]"

	.no_dead_strip	_array_to_json_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function array_to_json_internal
_array_to_json_internal:                ; @array_to_json_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x20, x2
	mov	x19, x1
	bl	_DatumGetArrayTypeP
	mov	x23, x0
	bl	_ARR_ELEMTYPE
	mov	x24, x0
	str	wzr, [sp, #56]
	mov	x0, x23
	bl	_ARR_NDIM
	mov	x21, x0
	mov	x0, x23
	bl	_ARR_DIMS
	mov	x22, x0
	mov	x0, x21
	mov	x1, x22
	bl	_ArrayGetNItems
	stur	w0, [x29, #-52]
	cmp	w0, #0
	b.le	LBB0_2
; %bb.1:
	add	x1, sp, #36
	add	x2, sp, #32
	add	x3, sp, #31
	mov	x0, x24
	bl	_get_typlenbyvalalign
	add	x1, sp, #24
	add	x2, sp, #20
	mov	x0, x24
	bl	_json_categorize_type
	ldp	w3, w2, [sp, #32]
	ldrsb	w4, [sp, #31]
	add	x5, sp, #48
	add	x6, sp, #40
	sub	x7, x29, #52
	mov	x0, x23
	mov	x1, x24
	bl	_deconstruct_array
	ldp	x5, x4, [sp, #40]
	ldp	w8, w7, [sp, #20]
	stp	w8, w20, [sp]
	add	x6, sp, #56
	mov	x0, x19
	mov	w1, #0
	mov	x2, x21
	mov	x3, x22
	bl	_array_dim_to_json
	ldr	x0, [sp, #48]
	bl	_pfree
	ldr	x0, [sp, #40]
	bl	_pfree
	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
	add	sp, sp, #128
	ret
LBB0_2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	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
	add	sp, sp, #128
	b	_appendStringInfoString
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[]"

	.no_dead_strip	_array_to_json_internal
.subsections_via_symbols
