	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_ts_template_func
_get_ts_template_func:                  ## @get_ts_template_func
	.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
	movl	%esi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_defGetQualifiedName
	movq	%rax, %r14
	movq	_INTERNALOID@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, -80(%rbp)
	movq	%rbx, -72(%rbp)
	movq	%rbx, -64(%rbp)
	movq	%rbx, -56(%rbp)
	cmpl	$129, %r15d
	je	LBB0_1
## %bb.2:
	cmpl	$128, %r15d
	jne	LBB0_4
## %bb.3:
	movl	$4, %r12d
	jmp	LBB0_5
LBB0_1:
	movl	$1, %r12d
	jmp	LBB0_5
LBB0_4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_elog
	xorl	%r12d, %r12d
LBB0_5:
	leaq	-80(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r12d, %esi
	xorl	%ecx, %ecx
	callq	_LookupFuncName
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_get_func_rettype
	cmpq	%rbx, %rax
	je	LBB0_7
## %bb.6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_ERRCODE_INVALID_OBJECT_DEFINITION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	_NIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-80(%rbp), %rcx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_func_signature_string
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_format_type_be
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_errmsg
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_7:
	movq	%r15, %rdi
	callq	_ObjectIdGetDatum
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_INTERNALOID,8,3                ## @INTERNALOID
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unrecognized attribute for text search template: %d"

	.comm	_ERRCODE_INVALID_OBJECT_DEFINITION,4,2 ## @ERRCODE_INVALID_OBJECT_DEFINITION
L_.str.1:                               ## @.str.1
	.asciz	"function %s should return type %s"

	.comm	_NIL,4,2                        ## @NIL
	.no_dead_strip	_get_ts_template_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_ts_template_func
_get_ts_template_func:                  ; @get_ts_template_func
	.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	x21, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	bl	_defGetQualifiedName
	mov	x20, x0
Lloh3:
	adrp	x8, _INTERNALOID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INTERNALOID@GOTPAGEOFF]
Lloh5:
	ldr	x19, [x8]
	stp	x19, x19, [sp, #8]
	stp	x19, x19, [sp, #24]
	cmp	w21, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w21, #128
	b.ne	LBB0_4
; %bb.2:
	mov	w22, #4
	b	LBB0_5
LBB0_3:
	mov	w22, #1
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_elog
	mov	w22, #0
LBB0_5:
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x22
	mov	w3, #0
	bl	_LookupFuncName
	mov	x21, x0
	bl	_get_func_rettype
	cmp	x0, x19
	b.eq	LBB0_7
; %bb.6:
Lloh11:
	adrp	x8, _ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w23, [x8]
Lloh14:
	adrp	x8, _ERRCODE_INVALID_OBJECT_DEFINITION@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERRCODE_INVALID_OBJECT_DEFINITION@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_errcode
Lloh17:
	adrp	x8, _NIL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NIL@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x22
	bl	_func_signature_string
	mov	x20, x0
	mov	x0, x19
	bl	_format_type_be
	mov	x2, x0
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_errmsg
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
LBB0_7:
	mov	x0, x21
	bl	_ObjectIdGetDatum
	ldr	x8, [sp, #40]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	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
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_INTERNALOID,8,3                ; @INTERNALOID
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unrecognized attribute for text search template: %d"

	.comm	_ERRCODE_INVALID_OBJECT_DEFINITION,4,2 ; @ERRCODE_INVALID_OBJECT_DEFINITION
l_.str.1:                               ; @.str.1
	.asciz	"function %s should return type %s"

	.comm	_NIL,4,2                        ; @NIL
	.no_dead_strip	_get_ts_template_func
.subsections_via_symbols
