	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function populate_array
_populate_array:                        ## @populate_array
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rcx, %rbx
	movq	%rsi, %r14
	movq	%rdi, -24(%rbp)
	movl	%edx, -32(%rbp)
	movq	_CurrentMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, -40(%rbp)
	movl	(%rdi), %edi
	movl	$1, %edx
	callq	_initArrayResult
	movl	%eax, -36(%rbp)
	movq	%r14, -72(%rbp)
	movl	$0, -64(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -56(%rbp)
	cmpq	$0, 24(%rbx)
	je	LBB0_4
## %bb.1:
	movl	16(%rbx), %r14d
	movq	8(%rbx), %rdx
	testq	%rdx, %rdx
	jns	LBB0_3
## %bb.2:
	movl	%r14d, %edi
	callq	_strlen
	movq	%rax, %rdx
LBB0_3:
	leaq	-72(%rbp), %rdi
	movl	%r14d, %esi
	callq	_populate_array_json
	jmp	LBB0_5
LBB0_4:
	movl	(%rbx), %esi
	leaq	-72(%rbp), %rdi
	movl	$1, %edx
	callq	_populate_array_dim_jsonb
	movq	-56(%rbp), %rax
	movq	-48(%rbp), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
LBB0_5:
	xorl	%edi, %edi
	cmpl	$0, -64(%rbp)
	setg	%dil
	callq	_Assert
	movl	-64(%rbp), %edi
	shll	$2, %edi
	callq	_palloc
	movq	%rax, %rbx
	movl	-64(%rbp), %esi
	testl	%esi, %esi
	jle	LBB0_8
## %bb.6:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, (%rbx,%rax,4)
	incq	%rax
	movslq	-64(%rbp), %rsi
	cmpq	%rsi, %rax
	jl	LBB0_7
LBB0_8:
	movl	-36(%rbp), %edi
	movq	-56(%rbp), %rdx
	movl	-40(%rbp), %r8d
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%rbx, %rcx
	movl	$1, %r9d
	callq	_makeMdArrayResult
	movl	%eax, %r14d
	movq	-56(%rbp), %rdi
	callq	_pfree
	movq	-48(%rbp), %rdi
	callq	_pfree
	movq	%rbx, %rdi
	callq	_pfree
	movl	%r14d, %eax
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CurrentMemoryContext,4,2       ## @CurrentMemoryContext
	.no_dead_strip	_populate_array
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function populate_array
_populate_array:                        ; @populate_array
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x3
	mov	x20, x1
	str	x0, [sp, #56]
Lloh0:
	adrp	x8, _CurrentMemoryContext@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CurrentMemoryContext@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	str	w2, [sp, #48]
	str	w1, [sp, #40]
	ldr	w0, [x0]
	mov	w2, #1
	bl	_initArrayResult
	str	w0, [sp, #44]
	str	x20, [sp, #8]
	str	wzr, [sp, #16]
	stp	xzr, xzr, [sp, #24]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	w20, [x19, #16]
	ldr	x2, [x19, #8]
	tbz	x2, #63, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
LBB0_3:
	add	x0, sp, #8
	mov	x1, x20
	bl	_populate_array_json
	b	LBB0_5
LBB0_4:
	ldr	w1, [x19]
	add	x0, sp, #8
	mov	w2, #1
	bl	_populate_array_dim_jsonb
	ldp	x9, x8, [sp, #24]
	ldr	w8, [x8]
	str	w8, [x9]
LBB0_5:
	ldr	w8, [sp, #16]
	cmp	w8, #0
	cset	w0, gt
	bl	_Assert
	ldr	w8, [sp, #16]
	lsl	w0, w8, #2
	bl	_palloc
	mov	x19, x0
	ldr	w1, [sp, #16]
	cmp	w1, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x8, #0
	mov	w9, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	str	w9, [x19, x8, lsl #2]
	add	x8, x8, #1
	ldrsw	x1, [sp, #16]
	cmp	x8, x1
	b.lt	LBB0_7
LBB0_8:
	ldr	x2, [sp, #24]
	ldp	w4, w0, [sp, #40]
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x3, x19
	mov	w5, #1
	bl	_makeMdArrayResult
	mov	x20, x0
	ldr	x0, [sp, #24]
	bl	_pfree
	ldr	x0, [sp, #32]
	bl	_pfree
	mov	x0, x19
	bl	_pfree
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CurrentMemoryContext,4,2       ; @CurrentMemoryContext
	.no_dead_strip	_populate_array
.subsections_via_symbols
