	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_plperl_spi_query_prepared      ## -- Begin function plperl_spi_query_prepared
	.p2align	4, 0x90
_plperl_spi_query_prepared:             ## @plperl_spi_query_prepared
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	_CurrentMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_CurrentResourceOwner@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_check_spi_usage_allowed
	xorl	%edi, %edi
	callq	_BeginInternalSubTransaction
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_MemoryContextSwitchTo
	xorl	%eax, %eax
	callq	_PG_TRY
	movq	_plperl_active_interp@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	_HASH_FIND@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	callq	_hash_search
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
LBB0_2:
	movq	(%r12), %r14
	testq	%r14, %r14
	jne	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
LBB0_4:
	movl	(%r14), %edx
	cmpl	%r15d, %edx
	je	LBB0_6
## %bb.5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_elog
LBB0_6:
	testl	%r15d, %r15d
	jle	LBB0_7
## %bb.8:
	movl	%r15d, %edi
	callq	_palloc
	movq	%rax, %rbx
	movl	%r15d, %edi
	callq	_palloc
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, %ecx
	shlq	$2, %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %r15
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%r13,2), %rdi
	movq	8(%r14), %rax
	movq	24(%r14), %rcx
	movl	(%rcx,%r13), %esi
	movq	16(%r14), %r8
	addq	%r13, %r8
	movl	(%rax,%r13), %r9d
	leaq	-56(%rbp), %rax
	movq	%rax, (%rsp)
	movl	$-1, %edx
	xorl	%ecx, %ecx
	callq	_plperl_sv_to_datum
	movb	%al, (%r15)
	cmpl	$0, -56(%rbp)
	movl	$110, %eax
	movl	$32, %ecx
	cmovel	%ecx, %eax
	movb	%al, (%rbx)
	incq	%rbx
	incq	%r15
	addq	$4, %r13
	cmpq	%r13, -88(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_9
## %bb.10:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_7:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
LBB0_11:
	movl	4(%r14), %esi
	movq	_current_call_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %r8d
	xorl	%edi, %edi
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_SPI_cursor_open
	movq	%rax, %rbx
	testl	%r15d, %r15d
	jle	LBB0_13
## %bb.12:
	movq	%r13, %rdi
	callq	_pfree
	movq	%r12, %rdi
	callq	_pfree
LBB0_13:
	testq	%rbx, %rbx
	movq	_CurrentResourceOwner@GOTPCREL(%rip), %r12
	jne	LBB0_15
## %bb.14:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_SPI_result@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SPI_result_code_string
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_elog
LBB0_15:
	movl	(%rbx), %edi
	callq	_cstr2sv
	movq	%rbx, %rdi
	callq	_PinPortal
	xorl	%eax, %eax
	callq	_ReleaseCurrentSubTransaction
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_MemoryContextSwitchTo
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, (%r12)
	xorl	%eax, %eax
	callq	_PG_CATCH
	movl	%ebx, %edi
	callq	_MemoryContextSwitchTo
	xorl	%eax, %eax
	callq	_CopyErrorData
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_FlushErrorState
	xorl	%eax, %eax
	callq	_RollbackAndReleaseCurrentSubTransaction
	movl	%ebx, %edi
	callq	_MemoryContextSwitchTo
	movl	%r15d, (%r12)
	movl	(%r14), %edi
	callq	_croak_cstr
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CurrentMemoryContext,4,2       ## @CurrentMemoryContext
	.comm	_CurrentResourceOwner,4,2       ## @CurrentResourceOwner
	.comm	_plperl_active_interp,8,3       ## @plperl_active_interp
	.comm	_HASH_FIND,4,2                  ## @HASH_FIND
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"spi_query_prepared: Invalid prepared query passed"

L_.str.1:                               ## @.str.1
	.asciz	"spi_query_prepared: plperl query_hash value vanished"

L_.str.2:                               ## @.str.2
	.asciz	"spi_query_prepared: expected %d argument(s), %d passed"

	.comm	_current_call_data,8,3          ## @current_call_data
L_.str.3:                               ## @.str.3
	.asciz	"SPI_cursor_open() failed:%s"

	.comm	_SPI_result,4,2                 ## @SPI_result
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_plperl_spi_query_prepared      ; -- Begin function plperl_spi_query_prepared
	.p2align	2
_plperl_spi_query_prepared:             ; @plperl_spi_query_prepared
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _CurrentMemoryContext@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CurrentMemoryContext@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
Lloh3:
	adrp	x23, _CurrentResourceOwner@GOTPAGE
Lloh4:
	ldr	x23, [x23, _CurrentResourceOwner@GOTPAGEOFF]
	ldr	w24, [x23]
	bl	_check_spi_usage_allowed
	mov	x0, #0
	bl	_BeginInternalSubTransaction
	mov	x0, x25
	bl	_MemoryContextSwitchTo
	bl	_PG_TRY
Lloh5:
	adrp	x8, _plperl_active_interp@GOTPAGE
Lloh6:
	ldr	x8, [x8, _plperl_active_interp@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _HASH_FIND@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HASH_FIND@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x1, x22
	mov	x3, #0
	bl	_hash_search
	mov	x22, x0
	cbz	x0, LBB0_8
; %bb.1:
	ldr	x26, [x22]
	cbz	x26, LBB0_9
LBB0_2:
	ldr	w8, [x26]
	cmp	w8, w20
	b.eq	LBB0_4
; %bb.3:
Lloh11:
	adrp	x9, _ERROR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x9]
	stp	x8, x20, [sp]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_elog
LBB0_4:
	cmp	w20, #1
	b.lt	LBB0_10
; %bb.5:
	stp	w25, w24, [sp, #36]             ; 8-byte Folded Spill
	mov	x0, x20
	bl	_palloc
	mov	x22, x0
	mov	x0, x20
	bl	_palloc
	mov	x19, x0
	mov	x27, #0
	mov	w8, w20
	lsl	x28, x8, #2
	mov	w24, #110
	mov	w25, #32
	mov	x23, x0
	str	x22, [sp, #24]                  ; 8-byte Folded Spill
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21], #8
	ldr	x8, [x26, #24]
	ldr	w1, [x8, x27]
	ldp	x9, x8, [x26, #8]
	add	x4, x8, x27
	ldr	w5, [x9, x27]
	add	x6, sp, #44
	mov	w2, #-1
	mov	x3, #0
	bl	_plperl_sv_to_datum
	strb	w0, [x23], #1
	ldr	w8, [sp, #44]
	cmp	w8, #0
	csel	w8, w25, w24, eq
	strb	w8, [x22], #1
	add	x27, x27, #4
	cmp	x28, x27
	b.ne	LBB0_6
; %bb.7:
Lloh16:
	adrp	x23, _CurrentResourceOwner@GOTPAGE
Lloh17:
	ldr	x23, [x23, _CurrentResourceOwner@GOTPAGEOFF]
	ldp	w25, w24, [sp, #36]             ; 8-byte Folded Reload
	ldr	x22, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_11
LBB0_8:
Lloh18:
	adrp	x8, _ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
	ldr	x26, [x22]
	cbnz	x26, LBB0_2
LBB0_9:
Lloh23:
	adrp	x8, _ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
	b	LBB0_2
LBB0_10:
	mov	x22, #0
	mov	x19, #0
LBB0_11:
	ldr	w1, [x26, #4]
Lloh28:
	adrp	x8, _current_call_data@GOTPAGE
Lloh29:
	ldr	x8, [x8, _current_call_data@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w4, [x8]
	mov	x0, #0
	mov	x2, x19
	mov	x3, x22
	bl	_SPI_cursor_open
	mov	x21, x0
	cmp	w20, #1
	b.lt	LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_pfree
	mov	x0, x22
	bl	_pfree
LBB0_13:
	cbnz	x21, LBB0_15
; %bb.14:
Lloh31:
	adrp	x8, _ERROR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh33:
	ldr	w20, [x8]
Lloh34:
	adrp	x8, _SPI_result@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SPI_result@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	bl	_SPI_result_code_string
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh37:
	adrp	x1, l_.str.3@PAGE
Lloh38:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_elog
LBB0_15:
	ldr	w0, [x21]
	bl	_cstr2sv
	mov	x0, x21
	bl	_PinPortal
	bl	_ReleaseCurrentSubTransaction
	mov	x0, x25
	bl	_MemoryContextSwitchTo
	str	w24, [x23]
	bl	_PG_CATCH
	mov	x0, x25
	bl	_MemoryContextSwitchTo
	bl	_CopyErrorData
	mov	x20, x0
	bl	_FlushErrorState
	bl	_RollbackAndReleaseCurrentSubTransaction
	mov	x0, x25
	bl	_MemoryContextSwitchTo
	str	w24, [x23]
	ldr	w0, [x20]
	bl	_croak_cstr
	mov	x0, #0
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_CurrentMemoryContext,4,2       ; @CurrentMemoryContext
	.comm	_CurrentResourceOwner,4,2       ; @CurrentResourceOwner
	.comm	_plperl_active_interp,8,3       ; @plperl_active_interp
	.comm	_HASH_FIND,4,2                  ; @HASH_FIND
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"spi_query_prepared: Invalid prepared query passed"

l_.str.1:                               ; @.str.1
	.asciz	"spi_query_prepared: plperl query_hash value vanished"

l_.str.2:                               ; @.str.2
	.asciz	"spi_query_prepared: expected %d argument(s), %d passed"

	.comm	_current_call_data,8,3          ; @current_call_data
l_.str.3:                               ; @.str.3
	.asciz	"SPI_cursor_open() failed:%s"

	.comm	_SPI_result,4,2                 ; @SPI_result
.subsections_via_symbols
