	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DecodeTextArrayToCString
_DecodeTextArrayToCString:              ## @DecodeTextArrayToCString
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_DatumGetArrayTypeP
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ARR_NDIM
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_ARR_HASNULL
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_ARR_ELEMTYPE
	movq	%rax, %rsi
	movq	_TEXTOID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_4
LBB0_3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
	movq	_TEXTOID@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
LBB0_4:
	leaq	-28(%rbp), %rax
	leaq	-40(%rbp), %r9
	movq	%rbx, %rdi
	movl	$-1, %edx
	xorl	%ecx, %ecx
	movl	$105, %r8d
	pushq	%rax
	pushq	$0
	callq	_deconstruct_array
	addq	$16, %rsp
	movl	-28(%rbp), %edi
	shll	$3, %edi
	callq	_palloc
	movq	%rax, %r15
	cmpl	$0, -28(%rbp)
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-40(%rbp), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_TextDatumGetCString
	movq	%rax, (%r15,%rbx,8)
	incq	%rbx
	movslq	-28(%rbp), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	movq	-40(%rbp), %rdi
	callq	_pfree
	movq	%r15, (%r14)
	movl	-28(%rbp), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TEXTOID,8,3                    ## @TEXTOID
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"expected 1-D text array"

	.no_dead_strip	_DecodeTextArrayToCString
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DecodeTextArrayToCString
_DecodeTextArrayToCString:              ; @DecodeTextArrayToCString
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	bl	_DatumGetArrayTypeP
	mov	x20, x0
	bl	_ARR_NDIM
Lloh0:
	adrp	x21, _TEXTOID@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TEXTOID@GOTPAGEOFF]
	cmp	w0, #1
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_ARR_HASNULL
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_ARR_ELEMTYPE
	mov	x1, x0
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
	ldr	x1, [x21]
LBB0_4:
	add	x5, sp, #8
	add	x7, sp, #4
	mov	x0, x20
	mov	w2, #-1
	mov	w3, #0
	mov	w4, #105
	mov	x6, #0
	bl	_deconstruct_array
	ldr	w8, [sp, #4]
	lsl	w0, w8, #3
	bl	_palloc
	mov	x20, x0
	ldr	w8, [sp, #4]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x21, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	ldr	w0, [x8, x21, lsl #2]
	bl	_TextDatumGetCString
	str	x0, [x20, x21, lsl #3]
	add	x21, x21, #1
	ldrsw	x8, [sp, #4]
	cmp	x21, x8
	b.lt	LBB0_6
LBB0_7:
	ldr	x0, [sp, #8]
	bl	_pfree
	str	x20, [x19]
	ldr	w0, [sp, #4]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TEXTOID,8,3                    ; @TEXTOID
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"expected 1-D text array"

	.no_dead_strip	_DecodeTextArrayToCString
.subsections_via_symbols
