	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ts_stat_sql
_ts_stat_sql:                           ## @ts_stat_sql
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rdi
	callq	_text_to_cstring
	movq	%rax, %r14
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_SPI_prepare
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_elog
LBB0_2:
	xorl	%edi, %edi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	_SPI_cursor_open
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	callq	_elog
LBB0_4:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$100, %edx
	callq	_SPI_cursor_fetch
	movq	_SPI_tuptable@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	(%rax), %rdi
	cmpl	$1, (%rdi)
	jne	LBB0_7
## %bb.6:
	movl	$1, %esi
	callq	_SPI_gettypeid
	movq	_TSVECTOROID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_IsBinaryCoercible
	testl	%eax, %eax
	jne	LBB0_8
LBB0_7:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_INVALID_PARAMETER_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_8:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	$8, %esi
	callq	_MemoryContextAllocZero
	movq	%rax, %r14
	movl	$1, (%rax)
	testq	%r13, %r13
	je	LBB0_19
## %bb.9:
	movq	%r13, %rdi
	callq	_VARDATA_ANY
	movq	%rax, %r15
	jmp	LBB0_10
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	$1, %eax
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=1
	orl	%eax, 4(%r14)
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r15, %rdi
	callq	_pg_mblen
	cltq
	addq	%rax, %r15
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_VARDATA_ANY
	movq	%r15, %rbx
	subq	%rax, %rbx
	movq	%r13, %rdi
	callq	_VARSIZE_ANY_EXHDR
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r15, %rdi
	callq	_pg_mblen
	cmpl	$1, %eax
	jne	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movsbl	(%r15), %ecx
	addl	$-65, %ecx
	cmpl	$35, %ecx
	ja	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	$8, %eax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	$4, %eax
	jmp	LBB0_17
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	$2, %eax
	jmp	LBB0_17
LBB0_19:
	movq	_SPI_processed@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jle	LBB0_25
## %bb.20:
	xorl	%r13d, %r13d
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax), %rsi
	movq	8(%rax), %rax
	movl	(%rax,%r13,4), %edi
	movl	$1, %edx
	movq	%r15, %rcx
	callq	_SPI_getbinval
	cmpl	$0, -48(%rbp)
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_ts_accum
	movq	%rax, %r14
LBB0_23:                                ##   in Loop: Header=BB0_21 Depth=1
	incq	%r13
	cmpq	(%rbx), %r13
	jl	LBB0_21
## %bb.24:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	(%r12), %rdi
	callq	_SPI_freetuptable
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %esi
	movl	$100, %edx
	callq	_SPI_cursor_fetch
	cmpq	$0, (%rbx)
	movl	$0, %r13d
	jg	LBB0_21
LBB0_25:
	movq	(%r12), %rdi
	callq	_SPI_freetuptable
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_SPI_cursor_close
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_SPI_freeplan
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_pfree
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
LJTI0_0:
	.long	L0_0_set_17
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_16
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_17
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_16
	.end_data_region
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SPI_prepare(\"%s\") failed"

L_.str.1:                               ## @.str.1
	.asciz	"SPI_cursor_open(\"%s\") failed"

	.comm	_SPI_tuptable,8,3               ## @SPI_tuptable
	.comm	_TSVECTOROID,4,2                ## @TSVECTOROID
	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ## @ERRCODE_INVALID_PARAMETER_VALUE
L_.str.2:                               ## @.str.2
	.asciz	"ts_stat query must return one tsvector column"

	.comm	_SPI_processed,8,3              ## @SPI_processed
	.no_dead_strip	_ts_stat_sql
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ts_stat_sql
_ts_stat_sql:                           ; @ts_stat_sql
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x2
	mov	x21, x0
	mov	x0, x1
	bl	_text_to_cstring
	mov	x19, x0
	mov	w1, #0
	mov	x2, #0
	bl	_SPI_prepare
	mov	x20, x0
Lloh0:
	adrp	x24, _ERROR@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ERROR@GOTPAGEOFF]
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x24]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_elog
LBB0_2:
	mov	x0, #0
	mov	x1, x20
	mov	x2, #0
	mov	x3, #0
	mov	w4, #1
	bl	_SPI_cursor_open
	mov	x22, x0
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x24]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_elog
LBB0_4:
	mov	x0, x22
	mov	w1, #1
	mov	w2, #100
	bl	_SPI_cursor_fetch
Lloh6:
	adrp	x26, _SPI_tuptable@GOTPAGE
Lloh7:
	ldr	x26, [x26, _SPI_tuptable@GOTPAGEOFF]
	ldr	x8, [x26]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	x0, [x8]
	ldr	w8, [x0]
	cmp	w8, #1
	b.ne	LBB0_7
; %bb.6:
	mov	w1, #1
	bl	_SPI_gettypeid
Lloh8:
	adrp	x8, _TSVECTOROID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TSVECTOROID@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_IsBinaryCoercible
	cbnz	w0, LBB0_8
LBB0_7:
	ldr	w24, [x24]
Lloh11:
	adrp	x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_errcode
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_8:
	mov	x0, x21
	mov	w1, #8
	bl	_MemoryContextAllocZero
	mov	x24, x0
	mov	w8, #1
	str	w8, [x0]
	cbz	x23, LBB0_19
; %bb.9:
	mov	x0, x23
	bl	_VARDATA_ANY
	mov	x25, x0
	mov	x0, x23
	bl	_VARDATA_ANY
	sub	x27, x25, x0
	mov	x0, x23
	bl	_VARSIZE_ANY_EXHDR
	cmp	x27, w0, sxtw
	b.ge	LBB0_19
; %bb.10:
Lloh16:
	adrp	x27, lJTI0_0@PAGE
Lloh17:
	add	x27, x27, lJTI0_0@PAGEOFF
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	w8, #1
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w9, [x24, #4]
	orr	w8, w9, w8
	str	w8, [x24, #4]
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x25
	bl	_pg_mblen
	add	x25, x25, w0, sxtw
	mov	x0, x23
	bl	_VARDATA_ANY
	sub	x28, x25, x0
	mov	x0, x23
	bl	_VARSIZE_ANY_EXHDR
	cmp	x28, w0, sxtw
	b.ge	LBB0_19
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	bl	_pg_mblen
	cmp	w0, #1
	b.ne	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldrsb	w8, [x25]
	sub	w9, w8, #65
	cmp	w9, #35
	b.hi	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	w8, #8
	adr	x10, LBB0_11
	ldrb	w11, [x27, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_17:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	w8, #4
	b	LBB0_12
LBB0_18:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	w8, #2
	b	LBB0_12
LBB0_19:
Lloh18:
	adrp	x23, _SPI_processed@GOTPAGE
Lloh19:
	ldr	x23, [x23, _SPI_processed@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x8, #1
	b.lt	LBB0_25
; %bb.20:
	mov	x25, #0
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	ldp	x1, x9, [x8]
	ldr	w0, [x9, x25, lsl #2]
	add	x3, sp, #12
	mov	w2, #1
	bl	_SPI_getbinval
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x2, x0
	mov	x0, x21
	mov	x1, x24
	bl	_ts_accum
	mov	x24, x0
LBB0_23:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x25, x25, #1
	ldr	x8, [x23]
	cmp	x25, x8
	b.lt	LBB0_21
; %bb.24:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x0, [x26]
	bl	_SPI_freetuptable
	mov	x0, x22
	mov	w1, #1
	mov	w2, #100
	bl	_SPI_cursor_fetch
	mov	x25, #0
	ldr	x8, [x23]
	cmp	x8, #0
	b.gt	LBB0_21
LBB0_25:
	ldr	x0, [x26]
	bl	_SPI_freetuptable
	mov	x0, x22
	bl	_SPI_cursor_close
	mov	x0, x20
	bl	_SPI_freeplan
	mov	x0, x19
	bl	_pfree
	mov	x0, x24
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_12-LBB0_11)>>2
	.byte	(LBB0_17-LBB0_11)>>2
	.byte	(LBB0_18-LBB0_11)>>2
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_12-LBB0_11)>>2
	.byte	(LBB0_17-LBB0_11)>>2
	.byte	(LBB0_18-LBB0_11)>>2
	.byte	(LBB0_11-LBB0_11)>>2
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SPI_prepare(\"%s\") failed"

l_.str.1:                               ; @.str.1
	.asciz	"SPI_cursor_open(\"%s\") failed"

	.comm	_SPI_tuptable,8,3               ; @SPI_tuptable
	.comm	_TSVECTOROID,4,2                ; @TSVECTOROID
	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ; @ERRCODE_INVALID_PARAMETER_VALUE
l_.str.2:                               ; @.str.2
	.asciz	"ts_stat query must return one tsvector column"

	.comm	_SPI_processed,8,3              ; @SPI_processed
	.no_dead_strip	_ts_stat_sql
.subsections_via_symbols
