	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PLy_cursor_dealloc
_PLy_cursor_dealloc:                    ## @PLy_cursor_dealloc
	.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
	movq	%rdi, %rbx
	cmpl	$0, (%rdi)
	jne	LBB0_4
## %bb.1:
	movl	16(%rbx), %edi
	callq	_GetPortalByName
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_PortalIsValid
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	%r14d, %edi
	callq	_UnpinPortal
	movl	%r14d, %edi
	callq	_SPI_cursor_close
LBB0_3:
	movl	$1, (%rbx)
LBB0_4:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_MemoryContextDelete
	movq	$0, 8(%rbx)
LBB0_6:
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*(%rax)                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_PLy_cursor_dealloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PLy_cursor_dealloc
_PLy_cursor_dealloc:                    ; @PLy_cursor_dealloc
	.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
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_4
; %bb.1:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_3
LBB0_2:
	bl	_MemoryContextDelete
	str	xzr, [x19, #8]
LBB0_3:
	ldr	x8, [x19]
	ldr	x1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x1
LBB0_4:
	ldr	w0, [x19, #16]
	bl	_GetPortalByName
	mov	x20, x0
	bl	_PortalIsValid
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_UnpinPortal
	mov	x0, x20
	bl	_SPI_cursor_close
LBB0_6:
	mov	w8, #1
	str	w8, [x19]
	ldr	x0, [x19, #8]
	cbnz	x0, LBB0_2
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_PLy_cursor_dealloc
.subsections_via_symbols
