	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_plperl_spi_fetchrow            ## -- Begin function plperl_spi_fetchrow
	.p2align	4, 0x90
_plperl_spi_fetchrow:                   ## @plperl_spi_fetchrow
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_CurrentMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_CurrentResourceOwner@GOTPCREL(%rip), %r15
	movl	(%r15), %r12d
	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	_SPI_cursor_find
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movl	%eax, %ebx
	movl	%eax, %edi
	movl	$1, %esi
	movl	$1, %edx
	callq	_SPI_cursor_fetch
	movq	_SPI_processed@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.3:
	movq	_SPI_tuptable@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_plperl_hash_from_tuple
	jmp	LBB0_4
LBB0_2:
	movl	%ebx, %edi
	callq	_UnpinPortal
	movl	%ebx, %edi
	callq	_SPI_cursor_close
LBB0_4:
	movq	_SPI_tuptable@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_SPI_freetuptable
LBB0_5:
	xorl	%eax, %eax
	callq	_ReleaseCurrentSubTransaction
	movl	%r14d, %edi
	callq	_MemoryContextSwitchTo
	movl	%r12d, (%r15)
	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	%r12d, (%r15)
	movl	(%rbx), %edi
	callq	_croak_cstr
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	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	_PL_sv_undef,4,2                ## @PL_sv_undef
	.comm	_SPI_processed,8,3              ## @SPI_processed
	.comm	_SPI_tuptable,8,3               ## @SPI_tuptable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_plperl_spi_fetchrow            ; -- Begin function plperl_spi_fetchrow
	.p2align	2
_plperl_spi_fetchrow:                   ; @plperl_spi_fetchrow
	.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	x21, _CurrentResourceOwner@GOTPAGE
Lloh4:
	ldr	x21, [x21, _CurrentResourceOwner@GOTPAGEOFF]
	ldr	w22, [x21]
	bl	_check_spi_usage_allowed
	mov	x0, #0
	bl	_BeginInternalSubTransaction
	mov	x0, x19
	bl	_MemoryContextSwitchTo
	bl	_PG_TRY
	mov	x0, x20
	bl	_SPI_cursor_find
	cbz	w0, LBB0_5
; %bb.1:
	mov	x20, x0
	mov	w1, #1
	mov	w2, #1
	bl	_SPI_cursor_fetch
Lloh5:
	adrp	x8, _SPI_processed@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SPI_processed@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x23, _SPI_tuptable@GOTPAGE
Lloh9:
	ldr	x23, [x23, _SPI_tuptable@GOTPAGEOFF]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x23]
	ldr	x9, [x8, #8]
	ldr	w0, [x9]
	ldr	w1, [x8]
	mov	w2, #1
	bl	_plperl_hash_from_tuple
	b	LBB0_4
LBB0_3:
	mov	x0, x20
	bl	_UnpinPortal
	mov	x0, x20
	bl	_SPI_cursor_close
LBB0_4:
	ldr	x0, [x23]
	bl	_SPI_freetuptable
LBB0_5:
	bl	_ReleaseCurrentSubTransaction
	mov	x0, x19
	bl	_MemoryContextSwitchTo
	str	w22, [x21]
	bl	_PG_CATCH
	mov	x0, x19
	bl	_MemoryContextSwitchTo
	bl	_CopyErrorData
	mov	x20, x0
	bl	_FlushErrorState
	bl	_RollbackAndReleaseCurrentSubTransaction
	mov	x0, x19
	bl	_MemoryContextSwitchTo
	str	w22, [x21]
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CurrentMemoryContext,4,2       ; @CurrentMemoryContext
	.comm	_CurrentResourceOwner,4,2       ; @CurrentResourceOwner
	.comm	_dTHX,4,2                       ; @dTHX
	.comm	_PL_sv_undef,4,2                ; @PL_sv_undef
	.comm	_SPI_processed,8,3              ; @SPI_processed
	.comm	_SPI_tuptable,8,3               ; @SPI_tuptable
.subsections_via_symbols
