	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_cursor
_create_cursor:                         ## @create_cursor
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r14
	movl	(%r14), %r12d
	movq	8(%r14), %r15
	movq	72(%r14), %r13
	testl	%r12d, %r12d
	jle	LBB0_2
## %bb.1:
	movq	(%rdi), %rbx
	movl	(%rbx), %edi
	callq	_MemoryContextSwitchTo
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %r13d
	movl	64(%r14), %edx
	movl	68(%r14), %esi
	movq	%rbx, %rdi
	movq	%r15, %rcx
	callq	_process_query_params
	movl	%r13d, %edi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	callq	_MemoryContextSwitchTo
LBB0_2:
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_initStringInfo
	movl	56(%r14), %ecx
	movl	60(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_appendStringInfo
	movl	-48(%rbp), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	movq	%r15, %r8
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_PQsendQueryParams
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-48(%rbp), %r8d
	xorl	%esi, %esi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	callq	_pgfdw_report_error
LBB0_4:
	movl	-48(%rbp), %esi
	movq	%r13, %rdi
	callq	_pgfdw_get_result
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PQresultStatus
	movq	_PGRES_COMMAND_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	56(%r14), %r8d
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movl	$1, %ecx
	callq	_pgfdw_report_error
LBB0_6:
	movq	%rbx, %rdi
	callq	_PQclear
	movl	$1, 16(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 20(%r14)
	movups	%xmm0, 36(%r14)
	movl	$0, 52(%r14)
	movl	-48(%rbp), %edi
	callq	_pfree
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DECLARE c%u CURSOR FOR\n%s"

	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_PGRES_COMMAND_OK,8,3           ## @PGRES_COMMAND_OK
	.no_dead_strip	_create_cursor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_cursor
_create_cursor:                         ; @create_cursor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x24, [x0, #8]
	ldr	w20, [x24]
	ldr	x21, [x24, #8]
	ldr	x19, [x24, #72]
	cmp	w20, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	x22, [x0]
	ldr	w0, [x22]
	bl	_MemoryContextSwitchTo
	mov	x23, x0
	ldp	w2, w1, [x24, #64]
	mov	x0, x22
	mov	x3, x21
	bl	_process_query_params
	mov	x0, x23
	bl	_MemoryContextSwitchTo
LBB0_2:
	add	x0, sp, #8
	bl	_initStringInfo
	ldp	w3, w2, [x24, #56]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_appendStringInfo
	ldr	w1, [sp, #8]
	mov	x0, x19
	mov	x2, x20
	mov	x3, #0
	mov	x4, x21
	mov	x5, #0
	mov	x6, #0
	mov	w7, #0
	bl	_PQsendQueryParams
	cbnz	w0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w4, [sp, #8]
	mov	x1, #0
	mov	x2, x19
	mov	w3, #0
	bl	_pgfdw_report_error
LBB0_4:
	ldr	w1, [sp, #8]
	mov	x0, x19
	bl	_pgfdw_get_result
	mov	x20, x0
	bl	_PQresultStatus
Lloh5:
	adrp	x8, _PGRES_COMMAND_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PGRES_COMMAND_OK@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.5:
Lloh8:
	adrp	x8, _ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w4, [x24, #56]
	mov	x1, x20
	mov	x2, x19
	mov	w3, #1
	bl	_pgfdw_report_error
LBB0_6:
	mov	x0, x20
	bl	_PQclear
	mov	w8, #1
	str	w8, [x24, #16]
	movi.2d	v0, #0000000000000000
	stur	q0, [x24, #20]
	stur	q0, [x24, #36]
	str	wzr, [x24, #52]
	ldr	w0, [sp, #8]
	bl	_pfree
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DECLARE c%u CURSOR FOR\n%s"

	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_PGRES_COMMAND_OK,8,3           ; @PGRES_COMMAND_OK
	.no_dead_strip	_create_cursor
.subsections_via_symbols
