	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function array_to_jsonb_internal
_array_to_jsonb_internal:               ## @array_to_jsonb_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
	movq	%rsi, %r14
	callq	_DatumGetArrayTypeP
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ARR_ELEMTYPE
	movl	%eax, %r13d
	movl	$0, -64(%rbp)
	movq	%rbx, %rdi
	callq	_ARR_NDIM
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_ARR_DIMS
	movq	%rax, %r12
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_ArrayGetNItems
	movl	%eax, -68(%rbp)
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	leaq	-60(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-41(%rbp), %rcx
	movl	%r13d, %edi
	callq	_get_typlenbyvalalign
	leaq	-52(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movl	%r13d, %edi
	callq	_jsonb_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	%r13d, %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
	subq	$8, %rsp
	leaq	-64(%rbp), %r10
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	movq	%r12, %rcx
	pushq	%rbx
	pushq	%rax
	pushq	%r10
	callq	_array_dim_to_jsonb
	addq	$32, %rsp
	movq	-88(%rbp), %rdi
	callq	_pfree
	movq	-80(%rbp), %rdi
	callq	_pfree
	jmp	LBB0_3
LBB0_1:
	movq	_WJB_BEGIN_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_pushJsonbValue
	movq	%rax, 8(%r14)
	movq	_WJB_END_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_pushJsonbValue
	movq	%rax, 8(%r14)
LBB0_3:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WJB_BEGIN_ARRAY,4,2            ## @WJB_BEGIN_ARRAY
	.comm	_WJB_END_ARRAY,4,2              ## @WJB_END_ARRAY
	.no_dead_strip	_array_to_jsonb_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_jsonb_internal
_array_to_jsonb_internal:               ; @array_to_jsonb_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x1
	bl	_DatumGetArrayTypeP
	mov	x22, x0
	bl	_ARR_ELEMTYPE
	mov	x23, x0
	str	wzr, [sp, #40]
	mov	x0, x22
	bl	_ARR_NDIM
	mov	x20, x0
	mov	x0, x22
	bl	_ARR_DIMS
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_ArrayGetNItems
	str	w0, [sp, #44]
	cmp	w0, #0
	b.le	LBB0_2
; %bb.1:
	add	x1, sp, #20
	add	x2, sp, #16
	add	x3, sp, #15
	mov	x0, x23
	bl	_get_typlenbyvalalign
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x0, x23
	bl	_jsonb_categorize_type
	ldp	w3, w2, [sp, #16]
	ldrsb	w4, [sp, #15]
	add	x5, sp, #32
	add	x6, sp, #24
	add	x7, sp, #44
	mov	x0, x22
	mov	x1, x23
	bl	_deconstruct_array
	ldp	x5, x4, [sp, #24]
	ldp	w8, w7, [sp, #4]
	str	w8, [sp]
	add	x6, sp, #40
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	mov	x3, x21
	bl	_array_dim_to_jsonb
	ldr	x0, [sp, #32]
	bl	_pfree
	ldr	x0, [sp, #24]
	bl	_pfree
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _WJB_BEGIN_ARRAY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WJB_BEGIN_ARRAY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_pushJsonbValue
	str	x0, [x19, #8]
Lloh3:
	adrp	x8, _WJB_END_ARRAY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WJB_END_ARRAY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_pushJsonbValue
	str	x0, [x19, #8]
LBB0_3:
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WJB_BEGIN_ARRAY,4,2            ; @WJB_BEGIN_ARRAY
	.comm	_WJB_END_ARRAY,4,2              ; @WJB_END_ARRAY
	.no_dead_strip	_array_to_jsonb_internal
.subsections_via_symbols
