	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exec_prepare_plan
_exec_prepare_plan:                     ## @exec_prepare_plan
	.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
	movl	%ecx, %r15d
	movl	%edx, %ecx
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rdi), %eax
	movl	%eax, 20(%rsi)
	movl	16(%rsi), %edi
	movq	_plpgsql_parser_setup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_SPI_prepare_params
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	testl	%r15d, %r15d
	je	LBB0_4
LBB0_3:
	movq	%r12, %rdi
	callq	_SPI_keepplan
LBB0_4:
	movq	%r12, 8(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_exec_simple_check_plan
	movl	$-1, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	16(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_SPI_result@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SPI_result_code_string
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	callq	_elog
	testl	%r15d, %r15d
	jne	LBB0_3
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_plpgsql_parser_setup,8,3       ## @plpgsql_parser_setup
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SPI_prepare_params failed for \"%s\": %s"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exec_prepare_plan
_exec_prepare_plan:                     ; @exec_prepare_plan
	.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	x21, x3
	mov	x3, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
	str	w8, [x1, #20]
	ldr	w0, [x1, #16]
Lloh0:
	adrp	x8, _plpgsql_parser_setup@GOTPAGE
Lloh1:
	ldr	x8, [x8, _plpgsql_parser_setup@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_SPI_prepare_params
	mov	x22, x0
	cbz	x0, LBB0_4
; %bb.1:
	cbz	w21, LBB0_3
LBB0_2:
	mov	x0, x22
	bl	_SPI_keepplan
LBB0_3:
	str	x22, [x19, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_exec_simple_check_plan
	mov	w8, #-1
	str	w8, [x19]
	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
LBB0_4:
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	ldr	w24, [x19, #16]
Lloh6:
	adrp	x8, _SPI_result@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SPI_result@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_SPI_result_code_string
	mov	x3, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x24
	bl	_elog
	cbnz	w21, LBB0_2
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_plpgsql_parser_setup,8,3       ; @plpgsql_parser_setup
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SPI_prepare_params failed for \"%s\": %s"

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