	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_plperl_spi_query               ## -- Begin function plperl_spi_query
	.p2align	4, 0x90
_plperl_spi_query:                      ## @plperl_spi_query
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_CurrentMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_CurrentResourceOwner@GOTPCREL(%rip), %r12
	movl	(%r12), %r13d
	xorl	%eax, %eax
	callq	_check_spi_usage_allowed
	xorl	%edi, %edi
	callq	_BeginInternalSubTransaction
	movl	%r14d, %edi
	callq	_MemoryContextSwitchTo
	xorl	%eax, %eax
	callq	_PG_TRY
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_pg_verifymbstr
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_SPI_prepare
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_SPI_result@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SPI_result_code_string
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_elog
LBB0_2:
	xorl	%edi, %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_SPI_cursor_open
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_SPI_freeplan
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.3:
	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.1(%rip), %rsi
	movl	%r15d, %edi
	movl	%eax, %edx
	callq	_elog
LBB0_4:
	movl	(%rbx), %edi
	callq	_cstr2sv
	movq	%rbx, %rdi
	callq	_PinPortal
	xorl	%eax, %eax
	callq	_ReleaseCurrentSubTransaction
	movl	%r14d, %edi
	callq	_MemoryContextSwitchTo
	movl	%r13d, (%r12)
	xorl	%eax, %eax
	callq	_PG_CATCH
	movl	%r14d, %edi
	callq	_MemoryContextSwitchTo
	xorl	%eax, %eax
	callq	_CopyErrorData
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_FlushErrorState
	xorl	%eax, %eax
	callq	_RollbackAndReleaseCurrentSubTransaction
	movl	%r14d, %edi
	callq	_MemoryContextSwitchTo
	movl	%r13d, (%r12)
	movl	(%rbx), %edi
	callq	_croak_cstr
	xorl	%eax, %eax
	addq	$8, %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	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SPI_prepare() failed:%s"

	.comm	_SPI_result,4,2                 ## @SPI_result
L_.str.1:                               ## @.str.1
	.asciz	"SPI_cursor_open() failed:%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_plperl_spi_query               ; -- Begin function plperl_spi_query
	.p2align	2
_plperl_spi_query:                      ; @plperl_spi_query
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
Lloh0:
	adrp	x8, _CurrentMemoryContext@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CurrentMemoryContext@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x22, _CurrentResourceOwner@GOTPAGE
Lloh4:
	ldr	x22, [x22, _CurrentResourceOwner@GOTPAGEOFF]
	ldr	w23, [x22]
	bl	_check_spi_usage_allowed
	mov	x0, #0
	bl	_BeginInternalSubTransaction
	mov	x0, x19
	bl	_MemoryContextSwitchTo
	bl	_PG_TRY
	mov	x0, x20
	bl	_strlen
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_pg_verifymbstr
	mov	x0, x20
	mov	w1, #0
	mov	x2, #0
	bl	_SPI_prepare
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
Lloh8:
	adrp	x8, _SPI_result@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SPI_result@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_SPI_result_code_string
	mov	x2, x0
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_elog
LBB0_2:
	mov	x0, #0
	mov	x1, x20
	mov	x2, #0
	mov	x3, #0
	mov	w4, #0
	bl	_SPI_cursor_open
	mov	x21, x0
	mov	x0, x20
	bl	_SPI_freeplan
	cbnz	x21, LBB0_4
; %bb.3:
Lloh13:
	adrp	x8, _ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w20, [x8]
Lloh16:
	adrp	x8, _SPI_result@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SPI_result@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_SPI_result_code_string
	mov	x2, x0
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_elog
LBB0_4:
	ldr	w0, [x21]
	bl	_cstr2sv
	mov	x0, x21
	bl	_PinPortal
	bl	_ReleaseCurrentSubTransaction
	mov	x0, x19
	bl	_MemoryContextSwitchTo
	str	w23, [x22]
	bl	_PG_CATCH
	mov	x0, x19
	bl	_MemoryContextSwitchTo
	bl	_CopyErrorData
	mov	x20, x0
	bl	_FlushErrorState
	bl	_RollbackAndReleaseCurrentSubTransaction
	mov	x0, x19
	bl	_MemoryContextSwitchTo
	str	w23, [x22]
	ldr	w0, [x20]
	bl	_croak_cstr
	mov	x0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_CurrentMemoryContext,4,2       ; @CurrentMemoryContext
	.comm	_CurrentResourceOwner,4,2       ; @CurrentResourceOwner
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SPI_prepare() failed:%s"

	.comm	_SPI_result,4,2                 ; @SPI_result
l_.str.1:                               ; @.str.1
	.asciz	"SPI_cursor_open() failed:%s"

.subsections_via_symbols
