	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_tuple_of_interest
_get_tuple_of_interest:                 ## @get_tuple_of_interest
	.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	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	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
	callq	_elog
LBB0_2:
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	callq	_initStringInfo
	movq	%rbx, %rdi
	callq	_generate_relation_name
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %r13
	movl	(%r13), %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_appendStringInfoString
	testl	%ebx, %ebx
	jle	LBB0_11
## %bb.3:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_TupleDescAttr
	cmpq	$0, 8(%rax)
	je	LBB0_5
## %bb.4:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_6
LBB0_5:
	movl	(%rax), %edi
	callq	_NameStr
	movl	%eax, %edi
	callq	_quote_ident_cstr
	movq	%rax, %rsi
LBB0_6:
	leaq	-48(%rbp), %rdi
	callq	_appendStringInfoString
	cmpl	$1, %ebx
	jne	LBB0_7
LBB0_11:
	leaq	L_.str.4(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_appendStringInfo
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	jle	LBB0_21
## %bb.12:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_TupleDescAttr
	movl	(%rax), %edi
	callq	_NameStr
	movl	%eax, %edi
	callq	_quote_ident_cstr
	leaq	-48(%rbp), %rdi
	movq	%rax, %rsi
	callq	_appendStringInfoString
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	callq	_quote_literal_cstr
	leaq	L_.str.6(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%rax, %rdx
	callq	_appendStringInfo
	cmpl	$1, %ebx
	je	LBB0_21
	jmp	LBB0_16
LBB0_7:
	movl	$1, %r12d
	leaq	-48(%rbp), %r14
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %rdi
	callq	_appendStringInfoString
	incl	%r12d
	cmpl	%r12d, %ebx
	je	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_TupleDescAttr
	movq	%rax, %r15
	movq	%r14, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_appendStringInfoString
	cmpq	$0, 8(%r15)
	leaq	L_.str.3(%rip), %rsi
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r15), %edi
	callq	_NameStr
	movl	%eax, %edi
	callq	_quote_ident_cstr
	movq	%rax, %rsi
	jmp	LBB0_10
LBB0_14:
	leaq	L_.str.7(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	_appendStringInfoString
	cmpl	$1, %ebx
	jne	LBB0_16
LBB0_21:
	movl	-48(%rbp), %edi
	xorl	%esi, %esi
	callq	_SPI_exec
	movl	%eax, %ebx
	movl	-48(%rbp), %edi
	callq	_pfree
	movq	_SPI_OK_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_SPI_processed@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%ecx, %ebx
	jne	LBB0_24
## %bb.22:
	cmpl	$2, %eax
	jl	LBB0_24
## %bb.23:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_CARDINALITY_VIOLATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.8(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	xorl	%ebx, %ebx
	jmp	LBB0_29
LBB0_24:
	cmpl	%ecx, %ebx
	jne	LBB0_27
## %bb.25:
	cmpl	$1, %eax
	jne	LBB0_27
## %bb.26:
	movq	_SPI_tuptable@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_SPI_copytuple
	movq	%rax, %rbx
	jmp	LBB0_28
LBB0_16:
	movl	%ebx, %r15d
	movl	$1, %r12d
	leaq	-48(%rbp), %r14
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_appendStringInfoString
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	incq	%r12
	cmpq	%r12, %r15
	je	LBB0_21
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r12,4), %esi
	movq	%r13, %rdi
	callq	_TupleDescAttr
	movq	%rax, %rbx
	movq	%r14, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_appendStringInfoString
	movl	(%rbx), %edi
	callq	_NameStr
	movl	%eax, %edi
	callq	_quote_ident_cstr
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_appendStringInfoString
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r12,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	callq	_quote_literal_cstr
	movq	%r14, %rdi
	leaq	L_.str.6(%rip), %rsi
	movq	%rax, %rdx
	callq	_appendStringInfo
	jmp	LBB0_20
LBB0_27:
	xorl	%ebx, %ebx
LBB0_28:
	xorl	%eax, %eax
	callq	_SPI_finish
LBB0_29:
	movq	%rbx, %rax
	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	"SPI connect failure - returned %d"

L_.str.1:                               ## @.str.1
	.asciz	"SELECT "

L_.str.2:                               ## @.str.2
	.asciz	", "

L_.str.3:                               ## @.str.3
	.asciz	"NULL"

L_.str.4:                               ## @.str.4
	.asciz	" FROM %s WHERE "

L_.str.5:                               ## @.str.5
	.asciz	" AND "

L_.str.6:                               ## @.str.6
	.asciz	" = %s"

L_.str.7:                               ## @.str.7
	.asciz	" IS NULL"

	.comm	_SPI_OK_SELECT,4,2              ## @SPI_OK_SELECT
	.comm	_SPI_processed,4,2              ## @SPI_processed
	.comm	_ERRCODE_CARDINALITY_VIOLATION,4,2 ## @ERRCODE_CARDINALITY_VIOLATION
L_.str.8:                               ## @.str.8
	.asciz	"source criteria matched more than one record"

	.comm	_SPI_tuptable,8,3               ## @SPI_tuptable
	.no_dead_strip	_get_tuple_of_interest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_tuple_of_interest
_get_tuple_of_interest:                 ; @get_tuple_of_interest
	.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	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	bl	_SPI_connect
	tbz	w0, #31, LBB0_2
; %bb.1:
	mov	x2, x0
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_2:
	add	x0, sp, #8
	bl	_initStringInfo
	mov	x0, x19
	bl	_generate_relation_name
	mov	x23, x0
	ldr	x19, [x19]
	ldr	w27, [x19]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	bl	_appendStringInfoString
	cmp	w27, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x0, x19
	mov	w1, #0
	bl	_TupleDescAttr
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_5
; %bb.4:
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_5:
	ldr	w0, [x0]
	bl	_NameStr
	bl	_quote_ident_cstr
	mov	x1, x0
LBB0_6:
	add	x0, sp, #8
	bl	_appendStringInfoString
	cmp	w27, #1
	b.ne	LBB0_10
LBB0_7:
Lloh9:
	adrp	x1, l_.str.4@PAGE
Lloh10:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x0, sp, #8
	mov	x2, x23
	bl	_appendStringInfo
	cmp	w22, #1
	b.lt	LBB0_15
; %bb.8:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_TupleDescAttr
	ldr	w0, [x0]
	bl	_NameStr
	bl	_quote_ident_cstr
	mov	x1, x0
	add	x0, sp, #8
	bl	_appendStringInfoString
	ldr	x0, [x21]
	cbz	x0, LBB0_14
; %bb.9:
	bl	_quote_literal_cstr
	mov	x2, x0
Lloh11:
	adrp	x1, l_.str.6@PAGE
Lloh12:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x0, sp, #8
	bl	_appendStringInfo
	cmp	w22, #1
	b.eq	LBB0_15
	b	LBB0_20
LBB0_10:
	mov	w24, #1
Lloh13:
	adrp	x25, l_.str.2@PAGE
Lloh14:
	add	x25, x25, l_.str.2@PAGEOFF
Lloh15:
	adrp	x28, l_.str.3@PAGE
Lloh16:
	add	x28, x28, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x0, sp, #8
	bl	_appendStringInfoString
	add	w24, w24, #1
	cmp	w27, w24
	b.eq	LBB0_7
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x24
	bl	_TupleDescAttr
	mov	x26, x0
	add	x0, sp, #8
	mov	x1, x25
	bl	_appendStringInfoString
	ldr	x8, [x26, #8]
	mov	x1, x28
	cbnz	x8, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [x26]
	bl	_NameStr
	bl	_quote_ident_cstr
	mov	x1, x0
	b	LBB0_11
LBB0_14:
Lloh17:
	adrp	x1, l_.str.7@PAGE
Lloh18:
	add	x1, x1, l_.str.7@PAGEOFF
	add	x0, sp, #8
	bl	_appendStringInfoString
	cmp	w22, #1
	b.ne	LBB0_20
LBB0_15:
	ldr	w0, [sp, #8]
	mov	w1, #0
	bl	_SPI_exec
	mov	x19, x0
	ldr	w0, [sp, #8]
	bl	_pfree
Lloh19:
	adrp	x8, _SPI_OK_SELECT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SPI_OK_SELECT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _SPI_processed@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SPI_processed@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	cmp	w19, w8
	ccmp	w9, #2, #8, eq
	b.ge	LBB0_18
; %bb.16:
	cmp	w19, w8
	ccmp	w9, #1, #0, eq
	b.eq	LBB0_25
; %bb.17:
	bl	_SPI_finish
	b	LBB0_19
LBB0_18:
Lloh25:
	adrp	x8, _ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh27:
	ldr	w19, [x8]
Lloh28:
	adrp	x8, _ERRCODE_CARDINALITY_VIOLATION@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ERRCODE_CARDINALITY_VIOLATION@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_errcode
Lloh31:
	adrp	x0, l_.str.8@PAGE
Lloh32:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
LBB0_19:
	mov	x19, #0
	b	LBB0_26
LBB0_20:
	mov	w8, w22
	add	x24, x21, #8
	add	x25, x20, #4
	sub	x26, x8, #1
Lloh33:
	adrp	x20, l_.str.5@PAGE
Lloh34:
	add	x20, x20, l_.str.5@PAGEOFF
Lloh35:
	adrp	x21, l_.str.7@PAGE
Lloh36:
	add	x21, x21, l_.str.7@PAGEOFF
Lloh37:
	adrp	x22, l_.str.6@PAGE
Lloh38:
	add	x22, x22, l_.str.6@PAGEOFF
	b	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x0, sp, #8
	mov	x1, x21
	bl	_appendStringInfoString
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x24, x24, #8
	add	x25, x25, #4
	subs	x26, x26, #1
	b.eq	LBB0_15
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	mov	x0, x19
	bl	_TupleDescAttr
	mov	x23, x0
	add	x0, sp, #8
	mov	x1, x20
	bl	_appendStringInfoString
	ldr	w0, [x23]
	bl	_NameStr
	bl	_quote_ident_cstr
	mov	x1, x0
	add	x0, sp, #8
	bl	_appendStringInfoString
	ldr	x0, [x24]
	cbz	x0, LBB0_21
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	bl	_quote_literal_cstr
	mov	x2, x0
	add	x0, sp, #8
	mov	x1, x22
	bl	_appendStringInfo
	b	LBB0_22
LBB0_25:
Lloh39:
	adrp	x8, _SPI_tuptable@GOTPAGE
Lloh40:
	ldr	x8, [x8, _SPI_tuptable@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_SPI_copytuple
	mov	x19, x0
	bl	_SPI_finish
LBB0_26:
	mov	x0, x19
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SPI connect failure - returned %d"

l_.str.1:                               ; @.str.1
	.asciz	"SELECT "

l_.str.2:                               ; @.str.2
	.asciz	", "

l_.str.3:                               ; @.str.3
	.asciz	"NULL"

l_.str.4:                               ; @.str.4
	.asciz	" FROM %s WHERE "

l_.str.5:                               ; @.str.5
	.asciz	" AND "

l_.str.6:                               ; @.str.6
	.asciz	" = %s"

l_.str.7:                               ; @.str.7
	.asciz	" IS NULL"

	.comm	_SPI_OK_SELECT,4,2              ; @SPI_OK_SELECT
	.comm	_SPI_processed,4,2              ; @SPI_processed
	.comm	_ERRCODE_CARDINALITY_VIOLATION,4,2 ; @ERRCODE_CARDINALITY_VIOLATION
l_.str.8:                               ; @.str.8
	.asciz	"source criteria matched more than one record"

	.comm	_SPI_tuptable,8,3               ; @SPI_tuptable
	.no_dead_strip	_get_tuple_of_interest
.subsections_via_symbols
