	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PLy_cursor_close
_PLy_cursor_close:                      ## @PLy_cursor_close
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$0, (%rdi)
	jne	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_GetPortalByName
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_PortalIsValid
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%r14d, %edi
	callq	_UnpinPortal
	movl	%r14d, %edi
	callq	_SPI_cursor_close
	movl	$1, (%rbx)
	jmp	LBB0_4
LBB0_2:
	movq	_PyExc_ValueError@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_PLy_exception_set
LBB0_4:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PyExc_ValueError,4,2           ## @PyExc_ValueError
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"closing a cursor in an aborted subtransaction"

	.comm	_Py_RETURN_NONE,4,2             ## @Py_RETURN_NONE
	.no_dead_strip	_PLy_cursor_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PLy_cursor_close
_PLy_cursor_close:                      ; @PLy_cursor_close
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
	cbnz	w8, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_GetPortalByName
	mov	x20, x0
	bl	_PortalIsValid
	cbz	w0, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_UnpinPortal
	mov	x0, x20
	bl	_SPI_cursor_close
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_4
LBB0_3:
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
LBB0_4:
	mov	x0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PyExc_ValueError,4,2           ; @PyExc_ValueError
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"closing a cursor in an aborted subtransaction"

	.comm	_Py_RETURN_NONE,4,2             ; @Py_RETURN_NONE
	.no_dead_strip	_PLy_cursor_close
.subsections_via_symbols
