	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pgoutput_truncate
_pgoutput_truncate:                     ## @pgoutput_truncate
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%rax), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %ebx
	leal	(,%r14,4), %edi
	callq	_palloc0
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_8
## %bb.1:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%r14d, %ebx
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	cmpq	%r12, %rbx
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r12,4), %r14d
	movl	%r14d, %edi
	callq	_RelationGetRelid
	movl	%eax, %r13d
	movl	%r14d, %edi
	callq	_is_publishable_relation
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_get_rel_sync_entry
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r15d, %rcx
	incl	%r15d
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%r13d, (%rdx,%rcx,4)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movq	%rax, %rdx
	callq	_maybe_send_schema
	jmp	LBB0_5
LBB0_6:
	testl	%r15d, %r15d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jle	LBB0_8
## %bb.7:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_OutputPluginPrepareWrite
	movl	(%r14), %edi
	movl	(%r12), %r8d
	movl	4(%r12), %ecx
	movl	%r15d, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_logicalrep_write_truncate
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_OutputPluginWrite
LBB0_8:
	movl	%ebx, %edi
	callq	_MemoryContextSwitchTo
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_MemoryContextReset             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pgoutput_truncate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pgoutput_truncate
_pgoutput_truncate:                     ; @pgoutput_truncate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x4
	mov	x24, x3
	mov	x26, x2
	mov	x20, x0
	ldr	x19, [x0, #8]
	ldr	w0, [x19]
	bl	_MemoryContextSwitchTo
	mov	x21, x0
	lsl	w0, w26, #2
	bl	_palloc0
	cmp	w26, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x23, x0
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
	mov	w22, #0
	mov	w28, w26
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #4
	subs	x28, x28, #1
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w26, [x24]
	mov	x0, x26
	bl	_RelationGetRelid
	mov	x27, x0
	mov	x0, x26
	bl	_is_publishable_relation
	cbz	w0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x27
	bl	_get_rel_sync_entry
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x2, x0
	add	w25, w22, #1
	str	w27, [x23, w22, sxtw #2]
	mov	x0, x20
	mov	x1, x26
	bl	_maybe_send_schema
	mov	x22, x25
	b	LBB0_2
LBB0_6:
	cmp	w22, #1
	ldr	x24, [sp, #8]                   ; 8-byte Folded Reload
	b.lt	LBB0_8
; %bb.7:
	mov	x0, x20
	mov	w1, #1
	bl	_OutputPluginPrepareWrite
	ldr	w0, [x20]
	ldp	w4, w3, [x24]
	mov	x1, x22
	mov	x2, x23
	bl	_logicalrep_write_truncate
	mov	x0, x20
	mov	w1, #1
	bl	_OutputPluginWrite
LBB0_8:
	mov	x0, x21
	bl	_MemoryContextSwitchTo
	ldr	w0, [x19]
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_MemoryContextReset
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pgoutput_truncate
.subsections_via_symbols
