	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pltcl_build_tuple_result
_pltcl_build_tuple_result:              ## @pltcl_build_tuple_result
	.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	%edx, %r13d
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	24(%rcx), %rbx
	testq	%rbx, %rbx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movq	16(%rcx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
LBB0_2:
	movq	8(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%rax), %edi
	callq	_RelationGetDescr
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TupleDescGetAttInMetadata
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
LBB0_4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
LBB0_5:
	movl	(%rbx), %edi
	shll	$3, %edi
	callq	_palloc0
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testb	$1, %r13b
	je	LBB0_7
## %bb.6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_INVALID_PARAMETER_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_7:
	testl	%r13d, %r13d
	jle	LBB0_18
## %bb.8:
	xorl	%r12d, %r12d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax,%r12,8), %rdi
	callq	_Tcl_GetString
	movl	%eax, %edi
	callq	_utf_u2e
	movslq	%r14d, %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rdx,%rcx,8)
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	addq	$2, %r12
	cmpl	%r13d, %r12d
	jge	LBB0_18
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r12,8), %rdi
	callq	_Tcl_GetString
	movl	%eax, %edi
	callq	_utf_u2e
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_SPI_fnumber
	movl	%eax, %r14d
	movq	_SPI_ERROR_NOATTRIBUTE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%r13d, %ebx
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_ERRCODE_UNDEFINED_COLUMN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.3(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r13d, %edi
	movl	%ebx, %r13d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_ereport
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	testl	%r14d, %r14d
	jg	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_FEATURE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.4(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_ereport
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	decl	%r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_TupleDescAttr
	cmpq	$0, (%rax)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_E_R_I_E_TRIGGER_PROTOCOL_VIOLATED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.5(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_16
LBB0_18:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_BuildTupleFromCStrings
	movl	%eax, %r14d
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_20
## %bb.19:
	movl	%r14d, %edi
	callq	_HeapTupleGetDatum
	movq	(%rbx), %rcx
	movl	(%rcx), %r8d
	movl	8(%rcx), %edx
	addq	$4, %rcx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_domain_check
LBB0_20:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PL/Tcl function does not return a tuple"

	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ## @ERRCODE_INVALID_PARAMETER_VALUE
L_.str.1:                               ## @.str.1
	.asciz	"column name/value list must have even number of elements"

	.comm	_SPI_ERROR_NOATTRIBUTE,4,2      ## @SPI_ERROR_NOATTRIBUTE
L_.str.2:                               ## @.str.2
	.asciz	".tupno"

	.comm	_ERRCODE_UNDEFINED_COLUMN,4,2   ## @ERRCODE_UNDEFINED_COLUMN
L_.str.3:                               ## @.str.3
	.asciz	"column name/value list contains nonexistent column name \"%s\""

	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ## @ERRCODE_FEATURE_NOT_SUPPORTED
L_.str.4:                               ## @.str.4
	.asciz	"cannot set system attribute \"%s\""

	.comm	_ERRCODE_E_R_I_E_TRIGGER_PROTOCOL_VIOLATED,4,2 ## @ERRCODE_E_R_I_E_TRIGGER_PROTOCOL_VIOLATED
L_.str.5:                               ## @.str.5
	.asciz	"cannot set generated column \"%s\""

	.no_dead_strip	_pltcl_build_tuple_result
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pltcl_build_tuple_result
_pltcl_build_tuple_result:              ; @pltcl_build_tuple_result
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x3
	mov	x20, x2
	mov	x21, x1
	ldr	x22, [x3, #24]
Lloh0:
	adrp	x26, _ERROR@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ERROR@GOTPAGEOFF]
	cbz	x22, LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	b	LBB0_5
LBB0_2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x8]
	bl	_RelationGetDescr
	mov	x22, x0
	bl	_TupleDescGetAttInMetadata
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	b	LBB0_5
LBB0_4:
	ldr	w0, [x26]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
	str	xzr, [sp, #16]                  ; 8-byte Folded Spill
	mov	x22, #0
LBB0_5:
	str	x19, [sp, #24]                  ; 8-byte Folded Spill
	ldr	w8, [x22]
	lsl	w0, w8, #3
	bl	_palloc0
	mov	x24, x0
	tbz	w20, #0, LBB0_7
; %bb.6:
	ldr	w19, [x26]
Lloh4:
	adrp	x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_errcode
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
LBB0_7:
	cmp	w20, #1
	b.lt	LBB0_18
; %bb.8:
	mov	x25, #0
Lloh9:
	adrp	x28, _SPI_ERROR_NOATTRIBUTE@GOTPAGE
Lloh10:
	ldr	x28, [x28, _SPI_ERROR_NOATTRIBUTE@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	add	x8, x21, x25, lsl #3
	ldr	x0, [x8, #8]
	bl	_Tcl_GetString
	bl	_utf_u2e
	str	x0, [x24, w19, sxtw #3]
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x25, x25, #2
	cmp	w25, w20
	b.ge	LBB0_18
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21, x25, lsl #3]
	bl	_Tcl_GetString
	bl	_utf_u2e
	mov	x23, x0
	mov	x0, x22
	mov	x1, x23
	bl	_SPI_fnumber
	mov	x19, x0
	ldr	w8, [x28]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x23
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w27, [x26]
Lloh13:
	adrp	x8, _ERRCODE_UNDEFINED_COLUMN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERRCODE_UNDEFINED_COLUMN@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_errcode
	str	x23, [sp]
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x27
	bl	_ereport
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=1
	cmp	w19, #0
	b.gt	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w27, [x26]
Lloh18:
	adrp	x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_errcode
	str	x23, [sp]
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x27
	bl	_ereport
LBB0_16:                                ;   in Loop: Header=BB0_11 Depth=1
	sub	w19, w19, #1
	mov	x0, x22
	mov	x1, x19
	bl	_TupleDescAttr
	ldr	x8, [x0]
	cbz	x8, LBB0_9
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w27, [x26]
Lloh23:
	adrp	x8, _ERRCODE_E_R_I_E_TRIGGER_PROTOCOL_VIOLATED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERRCODE_E_R_I_E_TRIGGER_PROTOCOL_VIOLATED@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_errcode
	str	x23, [sp]
Lloh26:
	adrp	x0, l_.str.5@PAGE
Lloh27:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x27
	bl	_ereport
	b	LBB0_9
LBB0_18:
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x1, x24
	bl	_BuildTupleFromCStrings
	mov	x19, x0
	ldr	x20, [sp, #24]                  ; 8-byte Folded Reload
	ldr	x8, [x20]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_20
; %bb.19:
	mov	x0, x19
	bl	_HeapTupleGetDatum
	ldr	x8, [x20]
	ldr	w2, [x8, #8]
	add	x3, x8, #4
	ldr	w4, [x8]
	mov	w1, #0
	bl	_domain_check
LBB0_20:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PL/Tcl function does not return a tuple"

	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ; @ERRCODE_INVALID_PARAMETER_VALUE
l_.str.1:                               ; @.str.1
	.asciz	"column name/value list must have even number of elements"

	.comm	_SPI_ERROR_NOATTRIBUTE,4,2      ; @SPI_ERROR_NOATTRIBUTE
l_.str.2:                               ; @.str.2
	.asciz	".tupno"

	.comm	_ERRCODE_UNDEFINED_COLUMN,4,2   ; @ERRCODE_UNDEFINED_COLUMN
l_.str.3:                               ; @.str.3
	.asciz	"column name/value list contains nonexistent column name \"%s\""

	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ; @ERRCODE_FEATURE_NOT_SUPPORTED
l_.str.4:                               ; @.str.4
	.asciz	"cannot set system attribute \"%s\""

	.comm	_ERRCODE_E_R_I_E_TRIGGER_PROTOCOL_VIOLATED,4,2 ; @ERRCODE_E_R_I_E_TRIGGER_PROTOCOL_VIOLATED
l_.str.5:                               ; @.str.5
	.asciz	"cannot set generated column \"%s\""

	.no_dead_strip	_pltcl_build_tuple_result
.subsections_via_symbols
