	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fixup_whole_row_references
_fixup_whole_row_references:            ## @fixup_whole_row_references
	.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	%rsi, %r13
	movl	%edi, %r15d
	movq	_InvalidAttrNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_FirstLowInvalidHeapAttributeNumber@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_bms_is_member
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_RELOID@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r15d, %edi
	callq	_ObjectIdGetDatum
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_SearchSysCache1
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_elog
LBB0_4:
	movl	%r12d, %edi
	callq	_GETSTRUCT
	movl	(%rax), %r14d
	movl	%r12d, %edi
	callq	_ReleaseSysCache
	movq	%r13, %rdi
	callq	_bms_copy
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_bms_del_member
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_10
## %bb.5:
	negl	%r14d
	movl	$1, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	leal	(%r14,%rbx), %eax
	incl	%eax
	movl	%ebx, %ecx
	incl	%ecx
	movl	%ecx, %ebx
	cmpl	$1, %eax
	je	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_ATTNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r15d, %edi
	callq	_ObjectIdGetDatum
	movl	%eax, %r13d
	movl	%ebx, %edi
	callq	_Int16GetDatum
	movl	%r12d, %edi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_SearchSysCache2
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%r12d, %edi
	callq	_GETSTRUCT
	cmpq	$0, (%rax)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %esi
	movq	_FirstLowInvalidHeapAttributeNumber@GOTPCREL(%rip), %rax
	subl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_bms_add_member
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r12d, %edi
	callq	_ReleaseSysCache
	jmp	LBB0_9
LBB0_1:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
LBB0_10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidAttrNumber,4,2          ## @InvalidAttrNumber
	.comm	_FirstLowInvalidHeapAttributeNumber,4,2 ## @FirstLowInvalidHeapAttributeNumber
	.comm	_RELOID,4,2                     ## @RELOID
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cache lookup failed for relation %u"

	.comm	_ATTNUM,4,2                     ## @ATTNUM
	.no_dead_strip	_fixup_whole_row_references
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fixup_whole_row_references
_fixup_whole_row_references:            ; @fixup_whole_row_references
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _InvalidAttrNumber@GOTPAGE
Lloh1:
	ldr	x8, [x8, _InvalidAttrNumber@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x24, _FirstLowInvalidHeapAttributeNumber@GOTPAGE
Lloh4:
	ldr	x24, [x24, _FirstLowInvalidHeapAttributeNumber@GOTPAGEOFF]
	ldr	w9, [x24]
	sub	w21, w8, w9
	mov	x0, x21
	bl	_bms_is_member
	cbz	w0, LBB0_9
; %bb.1:
Lloh5:
	adrp	x8, _RELOID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RELOID@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x22
	bl	_SearchSysCache1
	mov	x22, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_elog
LBB0_3:
	mov	x0, x22
	bl	_GETSTRUCT
	ldr	w23, [x0]
	mov	x0, x22
	bl	_ReleaseSysCache
	mov	x0, x20
	bl	_bms_copy
	mov	x1, x21
	bl	_bms_del_member
	mov	x20, x0
	cmp	w23, #1
	b.lt	LBB0_9
; %bb.4:
	neg	w25, w23
	mov	w21, #1
Lloh13:
	adrp	x26, _ATTNUM@GOTPAGE
Lloh14:
	ldr	x26, [x26, _ATTNUM@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w21, w21, #1
	add	w8, w25, w21
	cmp	w8, #1
	b.eq	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w22, [x26]
	mov	x0, x19
	bl	_ObjectIdGetDatum
	mov	x23, x0
	mov	x0, x21
	bl	_Int16GetDatum
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_SearchSysCache2
	mov	x22, x0
	bl	_HeapTupleIsValid
	cbz	w0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_GETSTRUCT
	ldr	x8, [x0]
	cbnz	x8, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x24]
	sub	w1, w21, w8
	mov	x0, x20
	bl	_bms_add_member
	mov	x20, x0
	mov	x0, x22
	bl	_ReleaseSysCache
	b	LBB0_5
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidAttrNumber,4,2          ; @InvalidAttrNumber
	.comm	_FirstLowInvalidHeapAttributeNumber,4,2 ; @FirstLowInvalidHeapAttributeNumber
	.comm	_RELOID,4,2                     ; @RELOID
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cache lookup failed for relation %u"

	.comm	_ATTNUM,4,2                     ; @ATTNUM
	.no_dead_strip	_fixup_whole_row_references
.subsections_via_symbols
