	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_plperl_spi_exec_prepared       ## -- Begin function plperl_spi_exec_prepared
	.p2align	4, 0x90
_plperl_spi_exec_prepared:              ## @plperl_spi_exec_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	_CurrentMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_CurrentResourceOwner@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_check_spi_usage_allowed
	xorl	%edi, %edi
	callq	_BeginInternalSubTransaction
	movl	%ebx, -52(%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
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%ebx, %edx
	je	LBB0_6
## %bb.5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_elog
LBB0_6:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	testq	%r13, %r13
	je	LBB0_11
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_hv_fetch_string
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	%rax, %r12
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.9:
	callq	_SvIOK
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	(%r12), %rdi
	callq	_SvIV
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_11:
	testl	%ebx, %ebx
	jle	LBB0_12
## %bb.13:
	movl	%ebx, %edi
	callq	_palloc
	movq	%rax, %r15
	movl	%ebx, %edi
	callq	_palloc
	movq	%rax, %r12
	movl	%ebx, %ecx
	shlq	$2, %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, %rbx
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%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	-60(%rbp), %rax
	movq	%rax, (%rsp)
	movl	$-1, %edx
	xorl	%ecx, %ecx
	callq	_plperl_sv_to_datum
	movb	%al, (%r12)
	cmpl	$0, -60(%rbp)
	movl	$110, %eax
	movl	$32, %ecx
	cmovel	%ecx, %eax
	movb	%al, (%rbx)
	incq	%rbx
	incq	%r12
	addq	$4, %r13
	cmpq	%r13, -96(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_14
## %bb.15:
	movq	_CurrentResourceOwner@GOTPCREL(%rip), %r15
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_12:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
LBB0_16:
	movl	4(%r14), %edi
	movq	_current_call_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movq	%r13, %rsi
	movq	%r12, %rdx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_SPI_execute_plan
	movq	_SPI_tuptable@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_SPI_processed@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edx
	callq	_plperl_spi_execute_fetch_result
	testl	%ebx, %ebx
	jle	LBB0_18
## %bb.17:
	movq	%r13, %rdi
	callq	_pfree
	movq	%r12, %rdi
	callq	_pfree
LBB0_18:
	xorl	%eax, %eax
	callq	_ReleaseCurrentSubTransaction
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_MemoryContextSwitchTo
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, (%r15)
	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	%r12d, (%r15)
	movl	(%r14), %edi
	callq	_croak_cstr
	xorl	%eax, %eax
	addq	$72, %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	_dTHX,4,2                       ## @dTHX
	.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_exec_prepared: Invalid prepared query passed"

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

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

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

	.comm	_current_call_data,8,3          ## @current_call_data
	.comm	_SPI_tuptable,4,2               ## @SPI_tuptable
	.comm	_SPI_processed,4,2              ## @SPI_processed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_plperl_spi_exec_prepared       ; -- Begin function plperl_spi_exec_prepared
	.p2align	2
_plperl_spi_exec_prepared:              ; @plperl_spi_exec_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, x3
	mov	x28, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _CurrentMemoryContext@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CurrentMemoryContext@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
Lloh3:
	adrp	x24, _CurrentResourceOwner@GOTPAGE
Lloh4:
	ldr	x24, [x24, _CurrentResourceOwner@GOTPAGEOFF]
	ldr	w25, [x24]
	bl	_check_spi_usage_allowed
	mov	x0, #0
	bl	_BeginInternalSubTransaction
	mov	x0, x26
	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, x23
	mov	x3, #0
	bl	_hash_search
	mov	x23, x0
	cbz	x0, LBB0_17
; %bb.1:
	ldr	x27, [x23]
	cbz	x27, LBB0_18
LBB0_2:
	ldr	w8, [x27]
	cmp	w8, w28
	b.eq	LBB0_4
; %bb.3:
Lloh11:
	adrp	x9, _ERROR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x9]
	stp	x8, x28, [sp]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_elog
LBB0_4:
	cbz	x22, LBB0_10
; %bb.5:
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_hv_fetch_string
	cbz	x0, LBB0_10
; %bb.6:
	mov	x22, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_10
; %bb.7:
	bl	_SvIOK
	cbz	x0, LBB0_10
; %bb.8:
	ldr	x0, [x22]
	bl	_SvIV
	mov	x4, x0
	cmp	w28, #1
	b.ge	LBB0_11
LBB0_9:
	mov	x20, #0
	mov	x19, #0
	b	LBB0_14
LBB0_10:
	mov	w4, #0
	cmp	w28, #1
	b.lt	LBB0_9
LBB0_11:
	str	w4, [sp, #20]                   ; 4-byte Folded Spill
	stp	w26, w25, [sp, #36]             ; 8-byte Folded Spill
	mov	x0, x28
	bl	_palloc
	mov	x20, x0
	mov	x0, x28
	bl	_palloc
	mov	x19, x0
	mov	x8, x28
	mov	x28, #0
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	mov	w8, w8
	lsl	x25, x8, #2
	mov	w26, #110
	mov	w23, #32
	mov	x24, x0
	mov	x22, x20
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21], #8
	ldr	x8, [x27, #24]
	ldr	w1, [x8, x28]
	ldp	x9, x8, [x27, #8]
	add	x4, x8, x28
	ldr	w5, [x9, x28]
	add	x6, sp, #44
	mov	w2, #-1
	mov	x3, #0
	bl	_plperl_sv_to_datum
	strb	w0, [x24], #1
	ldr	w8, [sp, #44]
	cmp	w8, #0
	csel	w8, w23, w26, eq
	strb	w8, [x22], #1
	add	x28, x28, #4
	cmp	x25, x28
	b.ne	LBB0_12
; %bb.13:
Lloh18:
	adrp	x24, _CurrentResourceOwner@GOTPAGE
Lloh19:
	ldr	x24, [x24, _CurrentResourceOwner@GOTPAGEOFF]
	ldp	w26, w25, [sp, #36]             ; 8-byte Folded Reload
	ldr	x28, [sp, #24]                  ; 8-byte Folded Reload
	ldr	w4, [sp, #20]                   ; 4-byte Folded Reload
LBB0_14:
	ldr	w0, [x27, #4]
Lloh20:
	adrp	x8, _current_call_data@GOTPAGE
Lloh21:
	ldr	x8, [x8, _current_call_data@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w3, [x8]
	mov	x1, x19
	mov	x2, x20
	bl	_SPI_execute_plan
	mov	x2, x0
Lloh23:
	adrp	x8, _SPI_tuptable@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SPI_tuptable@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x8, _SPI_processed@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SPI_processed@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_plperl_spi_execute_fetch_result
	cmp	w28, #1
	b.lt	LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_pfree
	mov	x0, x20
	bl	_pfree
LBB0_16:
	bl	_ReleaseCurrentSubTransaction
	mov	x0, x26
	bl	_MemoryContextSwitchTo
	str	w25, [x24]
	bl	_PG_CATCH
	mov	x0, x26
	bl	_MemoryContextSwitchTo
	bl	_CopyErrorData
	mov	x20, x0
	bl	_FlushErrorState
	bl	_RollbackAndReleaseCurrentSubTransaction
	mov	x0, x26
	bl	_MemoryContextSwitchTo
	str	w25, [x24]
	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
LBB0_17:
Lloh29:
	adrp	x8, _ERROR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
	ldr	x27, [x23]
	cbnz	x27, LBB0_2
LBB0_18:
Lloh34:
	adrp	x8, _ERROR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
Lloh37:
	adrp	x1, l_.str.1@PAGE
Lloh38:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
	b	LBB0_2
	.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 AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_CurrentMemoryContext,4,2       ; @CurrentMemoryContext
	.comm	_CurrentResourceOwner,4,2       ; @CurrentResourceOwner
	.comm	_dTHX,4,2                       ; @dTHX
	.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_exec_prepared: Invalid prepared query passed"

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

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

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

	.comm	_current_call_data,8,3          ; @current_call_data
	.comm	_SPI_tuptable,4,2               ; @SPI_tuptable
	.comm	_SPI_processed,4,2              ; @SPI_processed
.subsections_via_symbols
