	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function logicalrep_write_tuple
_logicalrep_write_tuple:                ## @logicalrep_write_tuple
	.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	%rdx, %r14
	movl	%esi, %r15d
	movl	%edi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MaxTupleAttributeNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, %edi
	callq	_RelationGetDescr
	movq	%rax, %r13
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	cmpl	(%r13), %ebx
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_TupleDescAttr
	cmpq	$0, 16(%rax)
	jne	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_TupleDescAttr
	cmpq	$1, 8(%rax)
	adcl	$0, %r15d
	jmp	LBB0_2
LBB0_5:
	xorl	%r15d, %r15d
LBB0_6:
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	_pq_sendint16
	leal	(%r15,%r15,4), %eax
	movslq	%eax, %rsi
	addq	(%r14), %rsi
	movl	%r12d, %edi
	callq	_enlargeStringInfo
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rcx
	callq	_heap_deform_tuple
	cmpl	$0, (%r13)
	jle	LBB0_20
## %bb.7:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %rdi
	callq	_GETSTRUCT
	movq	%rax, %r15
	movl	%r12d, %edi
	movl	$116, %esi
	callq	_pq_sendbyte
	movl	(%r15), %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%rbx,4), %esi
	callq	_OidOutputFunctionCall
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_strlen
	movl	%r12d, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_pq_sendcountedtext
	movq	%r15, %rdi
	callq	_pfree
	movq	%r14, %rdi
	callq	_ReleaseSysCache
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_20
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_TupleDescAttr
	cmpq	$0, 16(%rax)
	jne	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %r15
	cmpq	$0, 8(%rax)
	jne	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$0, (%r14,%rbx,4)
	je	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_11 Depth=1
	movl	%r12d, %edi
	movl	$110, %esi
LBB0_9:                                 ##   in Loop: Header=BB0_11 Depth=1
	callq	_pq_sendbyte
	jmp	LBB0_10
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$-1, (%r15)
	je	LBB0_18
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_TYPEOID@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	4(%r15), %edi
	callq	_ObjectIdGetDatum
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_SearchSysCache1
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r15), %edx
	leaq	L_.str(%rip), %rsi
	callq	_elog
	jmp	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%rbx,4), %edi
	callq	_VARATT_IS_EXTERNAL_ONDISK
	testq	%rax, %rax
	je	LBB0_15
## %bb.19:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%r12d, %edi
	movl	$117, %esi
	jmp	LBB0_9
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MaxTupleAttributeNumber,4,2    ## @MaxTupleAttributeNumber
	.comm	_TYPEOID,4,2                    ## @TYPEOID
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cache lookup failed for type %u"

	.no_dead_strip	_logicalrep_write_tuple
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function logicalrep_write_tuple
_logicalrep_write_tuple:                ; @logicalrep_write_tuple
	.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
	sub	sp, sp, #16
	mov	x23, x2
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MaxTupleAttributeNumber@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MaxTupleAttributeNumber@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x7fffffff0
	sub	x20, x9, x12
	mov	sp, x20
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x21, x8, x12
	mov	sp, x21
	mov	x0, x1
	bl	_RelationGetDescr
	mov	x22, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w25, #0
	mov	w24, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w25, w25, #1
	ldr	w8, [x22]
	cmp	w25, w8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x25
	bl	_TupleDescAttr
	ldr	x8, [x0, #16]
	cbnz	x8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	mov	x1, x25
	bl	_TupleDescAttr
	ldr	x8, [x0, #8]
	cmp	x8, #0
	cinc	w24, w24, eq
	b	LBB0_2
LBB0_5:
	mov	w24, #0
LBB0_6:
	mov	x0, x19
	mov	x1, x24
	bl	_pq_sendint16
	ldr	x8, [x23]
	add	w9, w24, w24, lsl #2
	add	x1, x8, w9, sxtw
	mov	x0, x19
	bl	_enlargeStringInfo
	mov	x0, x23
	mov	x1, x22
	mov	x2, x20
	mov	x3, x21
	bl	_heap_deform_tuple
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.7:
	mov	x23, #0
Lloh10:
	adrp	x27, _TYPEOID@GOTPAGE
Lloh11:
	ldr	x27, [x27, _TYPEOID@GOTPAGEOFF]
Lloh12:
	adrp	x28, _ERROR@GOTPAGE
Lloh13:
	ldr	x28, [x28, _ERROR@GOTPAGEOFF]
Lloh14:
	adrp	x24, l_.str@PAGE
Lloh15:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x25
	bl	_GETSTRUCT
	mov	x26, x0
	mov	x0, x19
	mov	w1, #116
	bl	_pq_sendbyte
	ldr	w0, [x26]
	ldr	w1, [x20, x23, lsl #2]
	bl	_OidOutputFunctionCall
	mov	x26, x0
	bl	_strlen
	mov	x2, x0
	mov	x0, x19
	mov	x1, x26
	mov	w3, #0
	bl	_pq_sendcountedtext
	mov	x0, x26
	bl	_pfree
	mov	x0, x25
	bl	_ReleaseSysCache
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.ge	LBB0_20
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x23
	bl	_TupleDescAttr
	ldr	x8, [x0, #16]
	cbnz	x8, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x26, x0
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x21, x23, lsl #2]
	cbz	w8, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x19
	mov	w1, #110
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
	bl	_pq_sendbyte
	b	LBB0_9
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x26]
	cmn	w8, #1
	b.eq	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	w25, [x27]
	ldr	w0, [x26, #4]
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x25
	bl	_SearchSysCache1
	mov	x25, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_8
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x28]
	ldr	w2, [x26, #4]
	mov	x1, x24
	bl	_elog
	b	LBB0_8
LBB0_18:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x20, x23, lsl #2]
	bl	_VARATT_IS_EXTERNAL_ONDISK
	cbz	x0, LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x19
	mov	w1, #117
	b	LBB0_14
LBB0_20:
	ldur	x8, [x29, #-88]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	sub	sp, x29, #80
	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
	ret
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MaxTupleAttributeNumber,4,2    ; @MaxTupleAttributeNumber
	.comm	_TYPEOID,4,2                    ; @TYPEOID
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cache lookup failed for type %u"

	.no_dead_strip	_logicalrep_write_tuple
.subsections_via_symbols
