	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function plperl_spi_execute_fetch_result
_plperl_spi_execute_fetch_result:       ## @plperl_spi_execute_fetch_result
	.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	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r13
	xorl	%eax, %eax
	callq	_check_spi_usage_allowed
	xorl	%eax, %eax
	callq	_newHV
	movq	%rax, %r14
	movl	%r12d, %edi
	callq	_SPI_result_code_string
	movl	%eax, %edi
	callq	_cstr2sv
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_hv_store_string
	movq	_UV_MAX@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jge	LBB0_2
## %bb.1:
	movl	%r15d, %edi
	callq	_newSVnv
	jmp	LBB0_3
LBB0_2:
	movl	%r15d, %edi
	callq	_newSVuv
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_hv_store_string
	testq	%r13, %r13
	je	LBB0_11
## %bb.4:
	testl	%r12d, %r12d
	jle	LBB0_11
## %bb.5:
	movq	_AV_SIZE_MAX@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jge	LBB0_7
## %bb.6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_PROGRAM_LIMIT_EXCEEDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_7:
	xorl	%eax, %eax
	callq	_newAV
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_av_extend
	testq	%r15, %r15
	jle	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	movl	(%r13), %esi
	movl	$1, %edx
	callq	_plperl_hash_from_tuple
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_av_push
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_9
LBB0_10:
	movq	%r12, %rdi
	callq	_newRV_noinc
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_hv_store_string
LBB0_11:
	movq	%r13, %rdi
	callq	_SPI_freetuptable
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dTHX,4,2                       ## @dTHX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"status"

L_.str.1:                               ## @.str.1
	.asciz	"processed"

	.comm	_UV_MAX,8,3                     ## @UV_MAX
	.comm	_AV_SIZE_MAX,8,3                ## @AV_SIZE_MAX
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_PROGRAM_LIMIT_EXCEEDED,4,2 ## @ERRCODE_PROGRAM_LIMIT_EXCEEDED
L_.str.2:                               ## @.str.2
	.asciz	"query result has too many rows to fit in a Perl array"

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

	.no_dead_strip	_plperl_spi_execute_fetch_result
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function plperl_spi_execute_fetch_result
_plperl_spi_execute_fetch_result:       ; @plperl_spi_execute_fetch_result
	.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	x22, x2
	mov	x21, x1
	mov	x19, x0
	bl	_check_spi_usage_allowed
	bl	_newHV
	mov	x20, x0
	mov	x0, x22
	bl	_SPI_result_code_string
	bl	_cstr2sv
	mov	x2, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_hv_store_string
Lloh2:
	adrp	x8, _UV_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _UV_MAX@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	mov	x0, x21
	cmp	x8, x21
	b.ge	LBB0_2
; %bb.1:
	bl	_newSVnv
	b	LBB0_3
LBB0_2:
	bl	_newSVuv
LBB0_3:
	mov	x2, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_hv_store_string
	cbz	x19, LBB0_11
; %bb.4:
	cmp	w22, #1
	b.lt	LBB0_11
; %bb.5:
Lloh7:
	adrp	x8, _AV_SIZE_MAX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AV_SIZE_MAX@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ge	LBB0_7
; %bb.6:
Lloh10:
	adrp	x8, _ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
Lloh13:
	adrp	x8, _ERRCODE_PROGRAM_LIMIT_EXCEEDED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERRCODE_PROGRAM_LIMIT_EXCEEDED@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_errcode
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_7:
	bl	_newAV
	mov	x22, x0
	mov	x1, x21
	bl	_av_extend
	cmp	x21, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x23, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x23, lsl #2]
	ldr	w1, [x19]
	mov	w2, #1
	bl	_plperl_hash_from_tuple
	mov	x1, x0
	mov	x0, x22
	bl	_av_push
	add	x23, x23, #1
	cmp	x21, x23
	b.ne	LBB0_9
LBB0_10:
	mov	x0, x22
	bl	_newRV_noinc
	mov	x2, x0
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_hv_store_string
LBB0_11:
	mov	x0, x19
	bl	_SPI_freetuptable
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_dTHX,4,2                       ; @dTHX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"status"

l_.str.1:                               ; @.str.1
	.asciz	"processed"

	.comm	_UV_MAX,8,3                     ; @UV_MAX
	.comm	_AV_SIZE_MAX,8,3                ; @AV_SIZE_MAX
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_PROGRAM_LIMIT_EXCEEDED,4,2 ; @ERRCODE_PROGRAM_LIMIT_EXCEEDED
l_.str.2:                               ; @.str.2
	.asciz	"query result has too many rows to fit in a Perl array"

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

	.no_dead_strip	_plperl_spi_execute_fetch_result
.subsections_via_symbols
