	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_physical_replication_slot
_create_physical_replication_slot:      ## @create_physical_replication_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	_MyReplicationSlot@GOTPCREL(%rip), %r13
	xorl	%edi, %edi
	cmpq	$0, (%r13)
	sete	%dil
	callq	_Assert
	testl	%ebx, %ebx
	jne	LBB0_1
## %bb.2:
	movq	_RS_PERSISTENT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_RS_TEMPORARY@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_ReplicationSlotCreate
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.4:
	movl	%r14d, %edi
	callq	_XLogRecPtrIsInvalid
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_ReplicationSlotReserveWal
	jmp	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	(%r13), %rax
	movl	%r14d, (%rax)
LBB0_7:
	xorl	%eax, %eax
	callq	_ReplicationSlotMarkDirty
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ReplicationSlotSave            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MyReplicationSlot,8,3          ## @MyReplicationSlot
	.comm	_RS_TEMPORARY,4,2               ## @RS_TEMPORARY
	.comm	_RS_PERSISTENT,4,2              ## @RS_PERSISTENT
	.no_dead_strip	_create_physical_replication_slot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_physical_replication_slot
_create_physical_replication_slot:      ; @create_physical_replication_slot
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x23, _MyReplicationSlot@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MyReplicationSlot@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
Lloh2:
	adrp	x8, _RS_TEMPORARY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RS_TEMPORARY@GOTPAGEOFF]
Lloh4:
	adrp	x9, _RS_PERSISTENT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _RS_PERSISTENT@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x9, x8, eq
	ldr	w2, [x8]
	mov	x0, x22
	mov	w1, #0
	bl	_ReplicationSlotCreate
	cbz	w21, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_XLogRecPtrIsInvalid
	cbz	x0, LBB0_4
; %bb.2:
	bl	_ReplicationSlotReserveWal
	b	LBB0_5
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x8, [x23]
	str	w19, [x8]
LBB0_5:
	bl	_ReplicationSlotMarkDirty
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ReplicationSlotSave
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MyReplicationSlot,8,3          ; @MyReplicationSlot
	.comm	_RS_TEMPORARY,4,2               ; @RS_TEMPORARY
	.comm	_RS_PERSISTENT,4,2              ; @RS_PERSISTENT
	.no_dead_strip	_create_physical_replication_slot
.subsections_via_symbols
