	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_crosstab_tuplestore
_get_crosstab_tuplestore:               ## @get_crosstab_tuplestore
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movq	%rdx, %r12
	movq	%rdi, %r15
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_hash_get_num_entries
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_TupleDescGetAttInMetadata
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_work_mem@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_tuplestore_begin_heap
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_SPI_connect
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_elog
LBB0_2:
	movq	%r15, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_SPI_execute
	movq	_SPI_OK_SELECT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_23
## %bb.3:
	movq	_SPI_processed@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	jle	LBB0_23
## %bb.4:
	movq	_SPI_tuptable@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	8(%rax), %rax
	movl	(%rax), %r13d
	testl	%r14d, %r14d
	movq	%rax, %rbx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.6:
	cmpl	$2, %r13d
	jg	LBB0_8
LBB0_7:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INVALID_PARAMETER_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	callq	_errmsg
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_errdetail
	movl	%ebx, %edi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_ereport
LBB0_8:
	leal	-2(%r13), %r15d
	leal	(%r14,%r13), %eax
	addl	$-2, %eax
	cmpl	%eax, (%r12)
	movq	%r13, %r14
	movq	%rax, %r13
	je	LBB0_10
## %bb.9:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_SYNTAX_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.4(%rip), %rdi
	callq	_errmsg
	movl	(%r12), %esi
	leaq	L_.str.5(%rip), %rdi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_errdetail
	movl	%ebx, %edi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_ereport
LBB0_10:
	leal	(,%r13,8), %edi
	callq	_palloc0
	movq	%r13, %rcx
	movq	%rax, %r13
	movq	%r14, %rax
	movq	%r14, -120(%rbp)                ## 8-byte Spill
	leal	-1(%r14), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movl	%ecx, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	%r15d, %r15d
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	movq	%r13, -152(%rbp)                ## 8-byte Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_11 Depth=1
	xorl	%edi, %edi
	callq	_xpfree
	xorl	%edi, %edi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_xpstrdup
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	incq	%rcx
	movb	$1, %r14b
	cmpq	-136(%rbp), %rcx                ## 8-byte Folded Reload
	je	LBB0_22
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
                                        ##     Child Loop BB0_18 Depth 2
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rcx, -144(%rbp)                ## 8-byte Spill
	movl	(%rax,%rcx,4), %edi
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_SPI_getvalue
	movq	%rax, %r12
	testb	$1, %r14b
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%edi, %edi
	movq	%r12, %rsi
	callq	_xstreq
	testl	%eax, %eax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r13, %rcx
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rcx, %r13
	movq	%rcx, %rsi
	callq	_BuildTupleFromCStrings
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_tuplestore_puttuple
	cmpl	$0, -104(%rbp)                  ## 4-byte Folded Reload
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	jle	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13,%rbx,8), %rdi
	callq	_xpfree
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_15
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r12, (%r13)
	cmpl	$4, -120(%rbp)                  ## 4-byte Folded Reload
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r13, %rcx
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	jl	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %r13
	leaq	1(%r14), %r15
	movl	%ebx, %edi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_SPI_getvalue
	movq	-152(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, (%rcx,%r14,8)
	movq	%r15, %r14
	cmpq	%r15, %r13
	movq	%r13, %r15
	jne	LBB0_18
LBB0_19:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rcx, %r13
	movl	%ebx, %edi
	movq	%r12, %rbx
	movq	%r12, %rsi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_SPI_getvalue
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movq	%rax, %rsi
	callq	_crosstab_HashTableLookup
	jmp	LBB0_21
LBB0_22:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_BuildTupleFromCStrings
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_tuplestore_puttuple
LBB0_23:
	xorl	%eax, %eax
	callq	_SPI_finish
	movq	_SPI_OK_FINISH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_25
## %bb.24:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
LBB0_25:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_tuplestore_donestoring
	movq	%rbx, %rax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_SYNTAX_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_ereport
	cmpl	$2, %r13d
	jle	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_work_mem,4,2                   ## @work_mem
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get_crosstab_tuplestore: SPI_connect returned %d"

	.comm	_SPI_processed,8,3              ## @SPI_processed
	.comm	_SPI_OK_SELECT,4,2              ## @SPI_OK_SELECT
	.comm	_SPI_tuptable,8,3               ## @SPI_tuptable
	.comm	_ERRCODE_SYNTAX_ERROR,4,2       ## @ERRCODE_SYNTAX_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"provided \"categories\" SQL must return 1 column of at least one row"

	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ## @ERRCODE_INVALID_PARAMETER_VALUE
L_.str.2:                               ## @.str.2
	.asciz	"invalid source data SQL statement"

L_.str.3:                               ## @.str.3
	.asciz	"The provided SQL must return 3  columns; rowid, category, and values."

L_.str.4:                               ## @.str.4
	.asciz	"invalid return type"

L_.str.5:                               ## @.str.5
	.asciz	"Query-specified return tuple has %d columns but crosstab returns %d."

	.comm	_SPI_OK_FINISH,8,3              ## @SPI_OK_FINISH
L_.str.6:                               ## @.str.6
	.asciz	"get_crosstab_tuplestore: SPI_finish() failed"

	.no_dead_strip	_get_crosstab_tuplestore
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_crosstab_tuplestore
_get_crosstab_tuplestore:               ; @get_crosstab_tuplestore
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x19, x4
	mov	x23, x2
	mov	x22, x0
	str	x1, [sp, #40]                   ; 8-byte Folded Spill
	mov	x0, x1
	bl	_hash_get_num_entries
	mov	x24, x0
	mov	x0, x23
	bl	_TupleDescGetAttInMetadata
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x8, _work_mem@GOTPAGE
Lloh1:
	ldr	x8, [x8, _work_mem@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_tuplestore_begin_heap
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
	bl	_SPI_connect
                                        ; kill: def $w0 killed $w0 def $x0
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	x0, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_elog
LBB0_2:
	mov	x0, x22
	mov	w1, #1
	mov	w2, #0
	bl	_SPI_execute
Lloh8:
	adrp	x8, _SPI_processed@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SPI_processed@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x8]
Lloh11:
	adrp	x8, _SPI_OK_SELECT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SPI_OK_SELECT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w0, w8
	str	x9, [sp, #56]                   ; 8-byte Folded Spill
	ccmp	x9, #1, #8, eq
	b.lt	LBB0_21
; %bb.3:
Lloh14:
	adrp	x8, _SPI_tuptable@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SPI_tuptable@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	ldr	x22, [x8, #8]
	ldr	w26, [x22]
	cbz	w24, LBB0_24
; %bb.4:
	subs	w20, w26, #2
	b.gt	LBB0_6
LBB0_5:
Lloh17:
	adrp	x8, _ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w25, [x8]
Lloh20:
	adrp	x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_errcode
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
Lloh25:
	adrp	x0, l_.str.3@PAGE
Lloh26:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_errdetail
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
LBB0_6:
	ldr	w8, [x23]
	add	w19, w20, w24
	cmp	w8, w19
	b.eq	LBB0_8
; %bb.7:
Lloh27:
	adrp	x8, _ERROR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh29:
	ldr	w24, [x8]
Lloh30:
	adrp	x8, _ERRCODE_SYNTAX_ERROR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ERRCODE_SYNTAX_ERROR@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_errcode
Lloh33:
	adrp	x0, l_.str.4@PAGE
Lloh34:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_errmsg
	mov	x8, x19
	ldr	w9, [x23]
	stp	x9, x8, [sp]
Lloh35:
	adrp	x0, l_.str.5@PAGE
Lloh36:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_errdetail
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_8:
	str	x19, [sp, #24]                  ; 8-byte Folded Spill
	lsl	w0, w19, #3
	bl	_palloc0
	mov	x21, x0
	mov	w27, #0
	mov	x19, #0
	mov	x28, x26
	sub	w24, w26, #1
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, #0
	bl	_xpfree
	mov	x0, #0
	mov	x1, x25
	bl	_xpstrdup
	add	x19, x19, #1
	mov	w27, #1
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	cmp	x19, x8
	b.eq	LBB0_20
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
                                        ;     Child Loop BB0_17 Depth 2
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldr	w26, [x8, x19, lsl #2]
	mov	x0, x26
	mov	x1, x22
	mov	w2, #1
	bl	_SPI_getvalue
	mov	x25, x0
	tbz	w27, #0, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, #0
	mov	x1, x25
	bl	_xstreq
	cbnz	w0, LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x1, x21
	bl	_BuildTupleFromCStrings
	mov	x1, x0
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	bl	_tuplestore_puttuple
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x27, [sp, #24]                  ; 8-byte Folded Reload
	mov	x23, x21
LBB0_14:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x23], #8
	bl	_xpfree
	subs	x27, x27, #1
	b.ne	LBB0_14
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
	str	x25, [x21]
	cmp	w28, #4
	b.lt	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w23, #1
LBB0_17:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x27, x23, #1
	mov	x0, x26
	mov	x1, x22
	mov	x2, x27
	bl	_SPI_getvalue
	str	x0, [x21, x23, lsl #3]
	mov	x23, x27
	cmp	x20, x27
	b.ne	LBB0_17
LBB0_18:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x26
	mov	x1, x22
	mov	x2, x24
	bl	_SPI_getvalue
	cbz	x0, LBB0_9
; %bb.19:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x1, x0
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	bl	_crosstab_HashTableLookup
	b	LBB0_9
LBB0_20:
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x1, x21
	bl	_BuildTupleFromCStrings
	mov	x1, x0
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	bl	_tuplestore_puttuple
LBB0_21:
	bl	_SPI_finish
Lloh37:
	adrp	x8, _SPI_OK_FINISH@GOTPAGE
Lloh38:
	ldr	x8, [x8, _SPI_OK_FINISH@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_23
; %bb.22:
Lloh40:
	adrp	x8, _ERROR@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
Lloh43:
	adrp	x1, l_.str.6@PAGE
Lloh44:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_elog
LBB0_23:
	ldr	x19, [sp, #32]                  ; 8-byte Folded Reload
	mov	x0, x19
	bl	_tuplestore_donestoring
	mov	x0, x19
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_24:
Lloh45:
	adrp	x8, _ERROR@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh47:
	ldr	w25, [x8]
Lloh48:
	adrp	x8, _ERRCODE_SYNTAX_ERROR@GOTPAGE
Lloh49:
	ldr	x8, [x8, _ERRCODE_SYNTAX_ERROR@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x8]
	bl	_errcode
Lloh51:
	adrp	x0, l_.str.1@PAGE
Lloh52:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
	subs	w20, w26, #2
	b.le	LBB0_5
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_work_mem,4,2                   ; @work_mem
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get_crosstab_tuplestore: SPI_connect returned %d"

	.comm	_SPI_processed,8,3              ; @SPI_processed
	.comm	_SPI_OK_SELECT,4,2              ; @SPI_OK_SELECT
	.comm	_SPI_tuptable,8,3               ; @SPI_tuptable
	.comm	_ERRCODE_SYNTAX_ERROR,4,2       ; @ERRCODE_SYNTAX_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"provided \"categories\" SQL must return 1 column of at least one row"

	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ; @ERRCODE_INVALID_PARAMETER_VALUE
l_.str.2:                               ; @.str.2
	.asciz	"invalid source data SQL statement"

l_.str.3:                               ; @.str.3
	.asciz	"The provided SQL must return 3  columns; rowid, category, and values."

l_.str.4:                               ; @.str.4
	.asciz	"invalid return type"

l_.str.5:                               ; @.str.5
	.asciz	"Query-specified return tuple has %d columns but crosstab returns %d."

	.comm	_SPI_OK_FINISH,8,3              ; @SPI_OK_FINISH
l_.str.6:                               ; @.str.6
	.asciz	"get_crosstab_tuplestore: SPI_finish() failed"

	.no_dead_strip	_get_crosstab_tuplestore
.subsections_via_symbols
