	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function libpqrcv_create_slot
_libpqrcv_create_slot:                  ## @libpqrcv_create_slot
	.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	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r12
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	callq	_initStringInfo
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_appendStringInfo
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	_appendStringInfoString
LBB0_2:
	cmpq	$0, 8(%r12)
	je	LBB0_5
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	_appendStringInfoString
	addl	$-128, %r13d
	cmpl	$2, %r13d
	ja	LBB0_5
## %bb.4:
	movslq	%r13d, %rax
	leaq	l_reltable.libpqrcv_create_slot(%rip), %rcx
	movslq	(%rcx,%rax,4), %rsi
	addq	%rcx, %rsi
	leaq	-48(%rbp), %rdi
	callq	_appendStringInfoString
LBB0_5:
	movl	(%r12), %edi
	movl	-48(%rbp), %esi
	callq	_libpqrcv_PQexec
	movq	%rax, %r13
	movl	-48(%rbp), %edi
	callq	_pfree
	movq	%r13, %rdi
	callq	_PQresultStatus
	movq	_PGRES_TUPLES_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	callq	_PQclear
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%r12), %edi
	callq	_PQerrorMessage
	movl	%eax, %edi
	callq	_pchomp
	leaq	L_.str.6(%rip), %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_7:
	movq	_pg_lsn_in@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_CStringGetDatum
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_DirectFunctionCall1Coll
	movl	%eax, %edi
	callq	_DatumGetLSN
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	callq	_PQgetisnull
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_pstrdup
	movq	%rax, %r15
LBB0_9:
	movq	%r13, %rdi
	callq	_PQclear
	movq	%r15, %rax
	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	"CREATE_REPLICATION_SLOT \"%s\""

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

L_.str.2:                               ## @.str.2
	.asciz	" LOGICAL pgoutput"

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

L_.str.4:                               ## @.str.4
	.asciz	" NOEXPORT_SNAPSHOT"

L_.str.5:                               ## @.str.5
	.asciz	" USE_SNAPSHOT"

	.comm	_PGRES_TUPLES_OK,8,3            ## @PGRES_TUPLES_OK
	.comm	_ERROR,4,2                      ## @ERROR
L_.str.6:                               ## @.str.6
	.asciz	"could not create replication slot \"%s\": %s"

	.comm	_pg_lsn_in,4,2                  ## @pg_lsn_in
	.comm	_InvalidOid,4,2                 ## @InvalidOid
	.no_dead_strip	_libpqrcv_create_slot
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.libpqrcv_create_slot
l_reltable.libpqrcv_create_slot:
	.long	L_.str.5-l_reltable.libpqrcv_create_slot
	.long	L_.str.4-l_reltable.libpqrcv_create_slot
	.long	L_.str.3-l_reltable.libpqrcv_create_slot

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function libpqrcv_create_slot
_libpqrcv_create_slot:                  ; @libpqrcv_create_slot
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x23, x2
	mov	x21, x1
	mov	x22, x0
	add	x0, sp, #8
	bl	_initStringInfo
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	x2, x21
	bl	_appendStringInfo
	cbz	w23, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	bl	_appendStringInfoString
LBB0_2:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_5
; %bb.3:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #8
	bl	_appendStringInfoString
	sub	w8, w20, #128
	cmp	w8, #2
	b.hi	LBB0_5
; %bb.4:
Lloh6:
	adrp	x9, l_switch.table.libpqrcv_create_slot@PAGE
Lloh7:
	add	x9, x9, l_switch.table.libpqrcv_create_slot@PAGEOFF
	ldr	x1, [x9, w8, sxtw #3]
	add	x0, sp, #8
	bl	_appendStringInfoString
LBB0_5:
	ldr	w0, [x22]
	ldr	w1, [sp, #8]
	bl	_libpqrcv_PQexec
	mov	x20, x0
	ldr	w0, [sp, #8]
	bl	_pfree
	mov	x0, x20
	bl	_PQresultStatus
Lloh8:
	adrp	x8, _PGRES_TUPLES_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PGRES_TUPLES_OK@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_PQclear
Lloh11:
	adrp	x8, _ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w23, [x8]
	ldr	w0, [x22]
	bl	_PQerrorMessage
	bl	_pchomp
	mov	x2, x0
Lloh14:
	adrp	x0, l_.str.6@PAGE
Lloh15:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x21
	bl	_errmsg
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
LBB0_7:
Lloh16:
	adrp	x8, _pg_lsn_in@GOTPAGE
Lloh17:
	ldr	x8, [x8, _pg_lsn_in@GOTPAGEOFF]
Lloh18:
	ldr	w21, [x8]
Lloh19:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh20:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh21:
	ldr	w22, [x8]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #1
	bl	_PQgetvalue
	bl	_CStringGetDatum
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_DirectFunctionCall1Coll
	bl	_DatumGetLSN
	str	w0, [x19]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #2
	bl	_PQgetisnull
	cbz	w0, LBB0_9
; %bb.8:
	mov	x19, #0
	b	LBB0_10
LBB0_9:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #2
	bl	_PQgetvalue
	bl	_pstrdup
	mov	x19, x0
LBB0_10:
	mov	x0, x20
	bl	_PQclear
	mov	x0, x19
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CREATE_REPLICATION_SLOT \"%s\""

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

l_.str.2:                               ; @.str.2
	.asciz	" LOGICAL pgoutput"

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

l_.str.4:                               ; @.str.4
	.asciz	" NOEXPORT_SNAPSHOT"

l_.str.5:                               ; @.str.5
	.asciz	" USE_SNAPSHOT"

	.comm	_PGRES_TUPLES_OK,8,3            ; @PGRES_TUPLES_OK
	.comm	_ERROR,4,2                      ; @ERROR
l_.str.6:                               ; @.str.6
	.asciz	"could not create replication slot \"%s\": %s"

	.comm	_pg_lsn_in,4,2                  ; @pg_lsn_in
	.comm	_InvalidOid,4,2                 ; @InvalidOid
	.no_dead_strip	_libpqrcv_create_slot
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.libpqrcv_create_slot
l_switch.table.libpqrcv_create_slot:
	.quad	l_.str.5
	.quad	l_.str.4
	.quad	l_.str.3

.subsections_via_symbols
