	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CreateReplicationSlot          ## -- Begin function CreateReplicationSlot
	.p2align	4, 0x90
_CreateReplicationSlot:                 ## @CreateReplicationSlot
	.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
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r15d
	movl	%ecx, %r13d
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_createPQExpBuffer
	movq	%rax, %r12
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	testq	%rbx, %rbx
	sete	%al
	setne	%cl
	testl	%r15d, %r15d
	cmovel	%ecx, %eax
	movzbl	%al, %edi
	callq	_Assert
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	callq	_Assert
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdx
	callq	_appendPQExpBuffer
	testl	%r13d, %r13d
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_appendPQExpBufferStr
LBB0_2:
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_appendPQExpBufferStr
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_8
## %bb.4:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_appendPQExpBuffer
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_PQserverVersion
	cmpl	$100000, %eax                   ## imm = 0x186A0
	jl	LBB0_8
## %bb.6:
	leaq	L_.str.5(%rip), %rsi
LBB0_7:
	movq	%r12, %rdi
	callq	_appendPQExpBufferStr
LBB0_8:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_PQexec
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PQresultStatus
	movq	_PGRES_TUPLES_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.14:
	movq	%rbx, %rdi
	callq	_PQntuples
	cmpl	$1, %eax
	jne	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	callq	_PQnfields
	movl	$1, %r15d
	cmpl	$4, %eax
	je	LBB0_17
LBB0_16:
	movq	%rbx, %rdi
	callq	_PQntuples
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_PQnfields
	leaq	L_.str.7(%rip), %rdi
	xorl	%r15d, %r15d
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	movl	%eax, %ecx
	movl	$1, %r8d
	movl	$4, %r9d
	xorl	%eax, %eax
	callq	_pg_log_error
	jmp	LBB0_17
LBB0_9:
	movl	16(%rbp), %r14d
	movq	_PG_DIAG_SQLSTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_PQresultErrorField
	testl	%r14d, %r14d
	je	LBB0_13
## %bb.10:
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	_ERRCODE_DUPLICATE_OBJECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_12
LBB0_13:
	movslq	(%r12), %r14
	movq	%r15, %rdi
	callq	_PQerrorMessage
	leaq	L_.str.6(%rip), %rdi
	xorl	%r15d, %r15d
	movq	%r14, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_pg_log_error
	jmp	LBB0_17
LBB0_12:
	movl	$1, %r15d
LBB0_17:
	movq	%r12, %rdi
	callq	_destroyPQExpBuffer
	movq	%rbx, %rdi
	callq	_PQclear
	movl	%r15d, %eax
	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	" PHYSICAL"

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

L_.str.4:                               ## @.str.4
	.asciz	" LOGICAL \"%s\""

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

	.comm	_PGRES_TUPLES_OK,8,3            ## @PGRES_TUPLES_OK
	.comm	_PG_DIAG_SQLSTATE,4,2           ## @PG_DIAG_SQLSTATE
	.comm	_ERRCODE_DUPLICATE_OBJECT,4,2   ## @ERRCODE_DUPLICATE_OBJECT
L_.str.6:                               ## @.str.6
	.asciz	"could not send replication command \"%s\": %s"

L_.str.7:                               ## @.str.7
	.asciz	"could not create replication slot \"%s\": got %d rows and %d fields, expected %d rows and %d fields"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CreateReplicationSlot          ; -- Begin function CreateReplicationSlot
	.p2align	2
_CreateReplicationSlot:                 ; @CreateReplicationSlot
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x6
	mov	x22, x5
	mov	x25, x4
	mov	x26, x3
	mov	x24, x2
	mov	x20, x1
	mov	x21, x0
	bl	_createPQExpBuffer
	mov	x19, x0
	cmp	x24, #0
	cset	w8, eq
	cset	w9, ne
	cmp	w25, #0
	csel	w0, w9, w8, eq
	bl	_Assert
	cmp	x20, #0
	cset	w0, ne
	bl	_Assert
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_appendPQExpBuffer
	cbz	w26, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_appendPQExpBufferStr
LBB0_2:
	cbz	w25, LBB0_5
; %bb.3:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_appendPQExpBufferStr
	cbz	w22, LBB0_8
; %bb.4:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_5:
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x2, x24
	bl	_appendPQExpBuffer
	mov	x0, x21
	bl	_PQserverVersion
	mov	w8, #34464
	movk	w8, #1, lsl #16
	cmp	w0, w8
	b.lt	LBB0_8
; %bb.6:
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_appendPQExpBufferStr
LBB0_8:
	ldr	w1, [x19]
	mov	x0, x21
	bl	_PQexec
	mov	x22, x0
	bl	_PQresultStatus
Lloh12:
	adrp	x8, _PGRES_TUPLES_OK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PGRES_TUPLES_OK@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.9:
	mov	x0, x22
	bl	_PQntuples
	cmp	w0, #1
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x22
	bl	_PQnfields
	cmp	w0, #4
	b.eq	LBB0_17
LBB0_11:
	mov	x0, x22
	bl	_PQntuples
	mov	x21, x0
	mov	x0, x22
	bl	_PQnfields
                                        ; kill: def $w0 killed $w0 def $x0
	mov	w9, #4
	mov	w8, #1
	stp	x8, x9, [sp, #8]
	str	x0, [sp]
Lloh15:
	adrp	x0, l_.str.7@PAGE
Lloh16:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	b	LBB0_16
LBB0_12:
Lloh17:
	adrp	x8, _PG_DIAG_SQLSTATE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PG_DIAG_SQLSTATE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_PQresultErrorField
	cbz	w23, LBB0_15
; %bb.13:
	cbz	x0, LBB0_15
; %bb.14:
Lloh20:
	adrp	x8, _ERRCODE_DUPLICATE_OBJECT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERRCODE_DUPLICATE_OBJECT@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_strcmp
	cbz	x0, LBB0_17
LBB0_15:
	ldrsw	x20, [x19]
	mov	x0, x21
	bl	_PQerrorMessage
	mov	x2, x0
Lloh23:
	adrp	x0, l_.str.6@PAGE
Lloh24:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x20
LBB0_16:
	bl	_pg_log_error
	mov	w20, #0
	b	LBB0_18
LBB0_17:
	mov	w20, #1
LBB0_18:
	mov	x0, x19
	bl	_destroyPQExpBuffer
	mov	x0, x22
	bl	_PQclear
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.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	" PHYSICAL"

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

l_.str.4:                               ; @.str.4
	.asciz	" LOGICAL \"%s\""

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

	.comm	_PGRES_TUPLES_OK,8,3            ; @PGRES_TUPLES_OK
	.comm	_PG_DIAG_SQLSTATE,4,2           ; @PG_DIAG_SQLSTATE
	.comm	_ERRCODE_DUPLICATE_OBJECT,4,2   ; @ERRCODE_DUPLICATE_OBJECT
l_.str.6:                               ; @.str.6
	.asciz	"could not send replication command \"%s\": %s"

l_.str.7:                               ; @.str.7
	.asciz	"could not create replication slot \"%s\": got %d rows and %d fields, expected %d rows and %d fields"

.subsections_via_symbols
