	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_logicalrep_read_truncate       ## -- Begin function logicalrep_read_truncate
	.p2align	4, 0x90
_logicalrep_read_truncate:              ## @logicalrep_read_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r13
	movl	%edi, %r14d
	movq	_NIL@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	$4, %esi
	callq	_pq_getmsgint
	movq	%rax, %rbx
	movl	%r14d, %edi
	movl	$1, %esi
	callq	_pq_getmsgint
	movq	_TRUNCATE_CASCADE@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	setg	%dl
	movl	%edx, (%r13)
	movq	_TRUNCATE_RESTART_SEQS@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	setg	%dl
	movl	%edx, (%r12)
	testl	%ebx, %ebx
	jle	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movl	$4, %esi
	callq	_pq_getmsgint
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_lappend_oid
	movq	%rax, %r15
	decl	%ebx
	jne	LBB0_1
LBB0_2:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIL,8,3                        ## @NIL
	.comm	_TRUNCATE_CASCADE,4,2           ## @TRUNCATE_CASCADE
	.comm	_TRUNCATE_RESTART_SEQS,4,2      ## @TRUNCATE_RESTART_SEQS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_logicalrep_read_truncate       ; -- Begin function logicalrep_read_truncate
	.p2align	2
_logicalrep_read_truncate:              ; @logicalrep_read_truncate
	.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	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _NIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIL@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	mov	w1, #4
	bl	_pq_getmsgint
	mov	x21, x0
	mov	x0, x19
	mov	w1, #1
	bl	_pq_getmsgint
Lloh3:
	adrp	x8, _TRUNCATE_CASCADE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRUNCATE_CASCADE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w8, gt
Lloh6:
	adrp	x9, _TRUNCATE_RESTART_SEQS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TRUNCATE_RESTART_SEQS@GOTPAGEOFF]
	str	w8, [x23]
Lloh8:
	ldr	w8, [x9]
	tst	w8, w0
	cset	w8, gt
	str	w8, [x22]
	cmp	w21, #1
	b.lt	LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #4
	bl	_pq_getmsgint
	mov	x1, x0
	mov	x0, x20
	bl	_lappend_oid
	mov	x20, x0
	subs	w21, w21, #1
	b.ne	LBB0_1
LBB0_2:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NIL,8,3                        ; @NIL
	.comm	_TRUNCATE_CASCADE,4,2           ; @TRUNCATE_CASCADE
	.comm	_TRUNCATE_RESTART_SEQS,4,2      ; @TRUNCATE_RESTART_SEQS
.subsections_via_symbols
