	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PLy_cursor_iternext
_PLy_cursor_iternext:                   ## @PLy_cursor_iternext
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_PLy_current_execution_context
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movq	_PyExc_ValueError@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_PLy_exception_set
	jmp	LBB0_8
LBB0_2:
	movq	%rax, %r14
	movl	4(%rbx), %edi
	callq	_GetPortalByName
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_PortalIsValid
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_CurrentMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	_CurrentResourceOwner@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movl	-32(%rbp), %edi
	movl	-28(%rbp), %esi
	callq	_PLy_spi_subtransaction_begin
	xorl	%eax, %eax
	callq	_PG_TRY
	movl	%r15d, %edi
	movl	$1, %esi
	movl	$1, %edx
	callq	_SPI_cursor_fetch
	movq	_SPI_processed@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.6:
	movq	_SPI_tuptable@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_PLy_input_setup_tuple
	movq	(%r15), %rax
	movq	8(%rax), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_PLy_input_from_tuple
	jmp	LBB0_7
LBB0_3:
	movq	_PyExc_ValueError@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_PLy_exception_set
	jmp	LBB0_8
LBB0_5:
	movq	_PyExc_StopIteration@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PyErr_SetNone
LBB0_7:
	movq	_SPI_tuptable@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_SPI_freetuptable
	movl	-32(%rbp), %edi
	movl	-28(%rbp), %esi
	callq	_PLy_spi_subtransaction_commit
	xorl	%eax, %eax
	callq	_PG_CATCH
	movl	-32(%rbp), %edi
	movl	-28(%rbp), %esi
	callq	_PLy_spi_subtransaction_abort
LBB0_8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PyExc_ValueError,4,2           ## @PyExc_ValueError
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"iterating a closed cursor"

L_.str.1:                               ## @.str.1
	.asciz	"iterating a cursor in an aborted subtransaction"

	.comm	_CurrentMemoryContext,4,2       ## @CurrentMemoryContext
	.comm	_CurrentResourceOwner,4,2       ## @CurrentResourceOwner
	.comm	_SPI_processed,8,3              ## @SPI_processed
	.comm	_PyExc_StopIteration,4,2        ## @PyExc_StopIteration
	.comm	_SPI_tuptable,8,3               ## @SPI_tuptable
	.no_dead_strip	_PLy_cursor_iternext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PLy_cursor_iternext
_PLy_cursor_iternext:                   ; @PLy_cursor_iternext
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	bl	_PLy_current_execution_context
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _PyExc_ValueError@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PyExc_ValueError@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PLy_exception_set
	b	LBB0_8
LBB0_2:
	mov	x20, x0
	ldr	w0, [x19, #4]
	bl	_GetPortalByName
	mov	x21, x0
	bl	_PortalIsValid
	cbz	w0, LBB0_5
; %bb.3:
Lloh5:
	adrp	x8, _CurrentMemoryContext@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CurrentMemoryContext@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp, #12]
Lloh8:
	adrp	x8, _CurrentResourceOwner@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CurrentResourceOwner@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	w0, [sp, #12]
	ldr	w1, [sp, #8]
	bl	_PLy_spi_subtransaction_begin
	bl	_PG_TRY
	mov	x0, x21
	mov	w1, #1
	mov	w2, #1
	bl	_SPI_cursor_fetch
Lloh11:
	adrp	x8, _SPI_processed@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SPI_processed@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
Lloh14:
	adrp	x21, _SPI_tuptable@GOTPAGE
Lloh15:
	ldr	x21, [x21, _SPI_tuptable@GOTPAGEOFF]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	x8, [x21]
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_PLy_input_setup_tuple
	ldr	x8, [x21]
	ldr	x9, [x8, #8]
	ldr	w1, [x9]
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_PLy_input_from_tuple
	b	LBB0_7
LBB0_5:
Lloh16:
	adrp	x8, _PyExc_ValueError@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PyExc_ValueError@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_PLy_exception_set
	b	LBB0_8
LBB0_6:
Lloh21:
	adrp	x8, _PyExc_StopIteration@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PyExc_StopIteration@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_PyErr_SetNone
LBB0_7:
	ldr	x0, [x21]
	bl	_SPI_freetuptable
	ldr	w0, [sp, #12]
	ldr	w1, [sp, #8]
	bl	_PLy_spi_subtransaction_commit
	bl	_PG_CATCH
	ldr	w0, [sp, #12]
	ldr	w1, [sp, #8]
	bl	_PLy_spi_subtransaction_abort
LBB0_8:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_PyExc_ValueError,4,2           ; @PyExc_ValueError
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iterating a closed cursor"

l_.str.1:                               ; @.str.1
	.asciz	"iterating a cursor in an aborted subtransaction"

	.comm	_CurrentMemoryContext,4,2       ; @CurrentMemoryContext
	.comm	_CurrentResourceOwner,4,2       ; @CurrentResourceOwner
	.comm	_SPI_processed,8,3              ; @SPI_processed
	.comm	_PyExc_StopIteration,4,2        ; @PyExc_StopIteration
	.comm	_SPI_tuptable,8,3               ; @SPI_tuptable
	.no_dead_strip	_PLy_cursor_iternext
.subsections_via_symbols
