	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function logicalrep_write_attrs
_logicalrep_write_attrs:                ## @logicalrep_write_attrs
	.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	%rsi, %r15
	movl	%edi, %r14d
	movq	%rsi, %rdi
	callq	_RelationGetDescr
	movq	%rax, %r12
	xorl	%ebx, %ebx
	cmpl	$0, (%rax)
	jle	LBB0_1
## %bb.2:
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	cmpl	(%r12), %ebx
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_TupleDescAttr
	cmpq	$0, 40(%rax)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_TupleDescAttr
	cmpq	$1, 32(%rax)
	adcq	$0, %r13
	jmp	LBB0_5
LBB0_1:
	xorl	%r13d, %r13d
LBB0_6:
	movl	%r14d, %edi
	movq	%r13, %rsi
	callq	_pq_sendint16
	movq	(%r15), %rax
	movq	(%rax), %rcx
	movq	_REPLICA_IDENTITY_FULL@GOTPCREL(%rip), %rax
	movq	%r15, %rdi
	movq	(%rax), %r15
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	cmpq	%r15, %rcx
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_8:
	movq	_INDEX_ATTR_BITMAP_IDENTITY_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_RelationGetIndexAttrBitmap
LBB0_9:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r12)
	jle	LBB0_19
## %bb.10:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_LOGICALREP_IS_REPLICA_IDENTITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	%r14d, %edi
	callq	_pq_sendbyte
	movl	16(%r13), %edi
	callq	_NameStr
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_pq_sendstring
	movl	8(%r13), %esi
	movl	%r14d, %edi
	callq	_pq_sendint32
	movl	(%r13), %esi
	movl	%r14d, %edi
	callq	_pq_sendint32
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=1
	incl	%ebx
	cmpl	(%r12), %ebx
	jge	LBB0_19
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_TupleDescAttr
	cmpq	$0, 40(%rax)
	jne	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %r13
	cmpq	$0, 32(%rax)
	jne	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpq	%r15, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	24(%r13), %rdi
	movq	_FirstLowInvalidHeapAttributeNumber@GOTPCREL(%rip), %rax
	subq	(%rax), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_bms_is_member
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%esi, %esi
	jmp	LBB0_17
LBB0_19:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bms_free                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REPLICA_IDENTITY_FULL,8,3      ## @REPLICA_IDENTITY_FULL
	.comm	_INDEX_ATTR_BITMAP_IDENTITY_KEY,4,2 ## @INDEX_ATTR_BITMAP_IDENTITY_KEY
	.comm	_FirstLowInvalidHeapAttributeNumber,8,3 ## @FirstLowInvalidHeapAttributeNumber
	.comm	_LOGICALREP_IS_REPLICA_IDENTITY,4,2 ## @LOGICALREP_IS_REPLICA_IDENTITY
	.no_dead_strip	_logicalrep_write_attrs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function logicalrep_write_attrs
_logicalrep_write_attrs:                ; @logicalrep_write_attrs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_RelationGetDescr
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w23, #0
	mov	x22, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w23, w23, #1
	ldr	w8, [x20]
	cmp	w23, w8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_TupleDescAttr
	ldr	x8, [x0, #40]
	cbnz	x8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_TupleDescAttr
	ldr	x8, [x0, #32]
	cmp	x8, #0
	cinc	x22, x22, eq
	b	LBB0_2
LBB0_5:
	mov	x22, #0
LBB0_6:
	mov	x0, x19
	mov	x1, x22
	bl	_pq_sendint16
	ldr	x8, [x21]
	ldr	x24, [x8]
Lloh0:
	adrp	x8, _REPLICA_IDENTITY_FULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REPLICA_IDENTITY_FULL@GOTPAGEOFF]
Lloh2:
	ldr	x25, [x8]
	cmp	x24, x25
	b.ne	LBB0_8
; %bb.7:
	mov	x21, #0
	b	LBB0_9
LBB0_8:
Lloh3:
	adrp	x8, _INDEX_ATTR_BITMAP_IDENTITY_KEY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INDEX_ATTR_BITMAP_IDENTITY_KEY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_RelationGetIndexAttrBitmap
	mov	x21, x0
LBB0_9:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.10:
	mov	w22, #0
Lloh6:
	adrp	x26, _LOGICALREP_IS_REPLICA_IDENTITY@GOTPAGE
Lloh7:
	ldr	x26, [x26, _LOGICALREP_IS_REPLICA_IDENTITY@GOTPAGEOFF]
Lloh8:
	adrp	x27, _FirstLowInvalidHeapAttributeNumber@GOTPAGE
Lloh9:
	ldr	x27, [x27, _FirstLowInvalidHeapAttributeNumber@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w1, [x26]
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x19
	bl	_pq_sendbyte
	ldr	w0, [x23, #16]
	bl	_NameStr
	mov	x1, x0
	mov	x0, x19
	bl	_pq_sendstring
	ldr	w1, [x23, #8]
	mov	x0, x19
	bl	_pq_sendint32
	ldr	w1, [x23]
	mov	x0, x19
	bl	_pq_sendint32
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	w22, w22, #1
	ldr	w8, [x20]
	cmp	w22, w8
	b.ge	LBB0_19
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_TupleDescAttr
	ldr	x8, [x0, #40]
	cbnz	x8, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x23, x0
	ldr	x8, [x0, #32]
	cbnz	x8, LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	cmp	x24, x25
	b.eq	LBB0_11
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x23, #24]
	ldr	x9, [x27]
	sub	x0, x8, x9
	mov	x1, x21
	bl	_bms_is_member
	cbnz	x0, LBB0_11
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	w1, #0
	b	LBB0_12
LBB0_19:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_bms_free
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_REPLICA_IDENTITY_FULL,8,3      ; @REPLICA_IDENTITY_FULL
	.comm	_INDEX_ATTR_BITMAP_IDENTITY_KEY,4,2 ; @INDEX_ATTR_BITMAP_IDENTITY_KEY
	.comm	_FirstLowInvalidHeapAttributeNumber,8,3 ; @FirstLowInvalidHeapAttributeNumber
	.comm	_LOGICALREP_IS_REPLICA_IDENTITY,4,2 ; @LOGICALREP_IS_REPLICA_IDENTITY
	.no_dead_strip	_logicalrep_write_attrs
.subsections_via_symbols
