	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brinGetTupleForHeapBlock       ## -- Begin function brinGetTupleForHeapBlock
	.p2align	4, 0x90
_brinGetTupleForHeapBlock:              ## @brinGetTupleForHeapBlock
	.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
	movl	%r9d, -60(%rbp)                 ## 4-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	16(%rdi), %r15d
	movq	(%rdi), %rcx
	movq	%rsi, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_3
LBB0_2:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_3:
	subq	%rdx, %r14
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_revmap_get_blkno
	movq	%rax, %rbx
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_5
## %bb.4:
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	jmp	LBB0_30
LBB0_5:
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	leaq	-44(%rbp), %rdi
	callq	_ItemPointerSetInvalid
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r13), %rdi
	movq	_BUFFER_LOCK_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LockBuffer
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movq	8(%r12), %rdi
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	callq	_BufferGetBlockNumber
	movq	8(%r12), %rdi
	cmpq	%rbx, %rax
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	callq	_ReleaseBuffer
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	xorl	%edi, %edi
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	setne	%dil
	callq	_Assert
	movl	16(%r12), %edi
	movq	%rbx, %rsi
	callq	_ReadBuffer
	movq	%rax, %rdi
	movq	%rax, 8(%r12)
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movq	_BUFFER_LOCK_SHARE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LockBuffer
	movq	8(%r12), %rdi
	callq	_BufferGetPage
	movl	%eax, %edi
	callq	_PageGetContents
	movq	(%rax), %rbx
	movq	(%r12), %rdi
	movq	%r14, %rsi
	callq	_HEAPBLK_TO_REVMAP_INDEX
	cltq
	leaq	(%rbx,%rax,4), %rbx
	movq	%rbx, %rdi
	callq	_ItemPointerIsValid
	testq	%rax, %rax
	je	LBB0_29
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	leaq	-44(%rbp), %rdi
	callq	_ItemPointerIsValid
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	leaq	-44(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_ItemPointerEquals
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_INDEX_CORRUPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg_internal
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%rbx), %eax
	movl	%eax, -44(%rbp)
	movq	%rbx, %rdi
	callq	_ItemPointerGetBlockNumber
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_ItemPointerGetOffsetNumber
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	8(%r12), %rdi
	movq	_BUFFER_LOCK_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LockBuffer
	movq	(%r13), %rdi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r13), %rdi
	callq	_BufferGetBlockNumber
	cmpq	%r14, %rax
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r13), %rdi
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r13), %rdi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r13), %rdi
	callq	_ReleaseBuffer
LBB0_21:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_ReadBuffer
	movq	%rax, %rdi
	movq	%rax, (%r13)
LBB0_22:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_LockBuffer
	movq	(%r13), %rdi
	callq	_BufferGetPage
	movl	%eax, %r14d
	movl	16(%rbp), %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_TestForOldSnapshot
	movl	%r14d, %edi
	callq	_BRIN_IS_REGULAR_PAGE
	testq	%rax, %rax
	je	LBB0_6
## %bb.23:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rbx
	movl	%r14d, %edi
	callq	_PageGetMaxOffsetNumber
	cmpq	%rax, %rbx
	jle	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INDEX_CORRUPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg_internal
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_25:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movl	%r14d, %edi
	callq	_PageGetItemId
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_ItemIdIsUsed
	testq	%rax, %rax
	je	LBB0_6
## %bb.26:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_PageGetItem
	movq	%rax, %rbx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, (%rbx)
	jne	LBB0_6
## %bb.27:
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_31
## %bb.28:
	movl	%r15d, %edi
	callq	_ItemIdGetLength
	movl	%eax, (%r14)
	jmp	LBB0_31
LBB0_29:
	movq	8(%r12), %rdi
	movq	_BUFFER_LOCK_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LockBuffer
LBB0_30:
	xorl	%ebx, %ebx
LBB0_31:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidBlockNumber,8,3         ## @InvalidBlockNumber
	.comm	_InvalidOffsetNumber,8,3        ## @InvalidOffsetNumber
	.comm	_InvalidBuffer,8,3              ## @InvalidBuffer
	.comm	_BUFFER_LOCK_SHARE,4,2          ## @BUFFER_LOCK_SHARE
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ## @BUFFER_LOCK_UNLOCK
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INDEX_CORRUPTED,4,2    ## @ERRCODE_INDEX_CORRUPTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"corrupted BRIN index: inconsistent range map"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brinGetTupleForHeapBlock       ; -- Begin function brinGetTupleForHeapBlock
	.p2align	2
_brinGetTupleForHeapBlock:              ; @brinGetTupleForHeapBlock
	.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	x21, x6
	mov	x22, x5
	mov	x19, x4
	mov	x20, x3
	mov	x23, x2
	mov	x24, x0
	ldr	w25, [x0, #16]
	ldr	x8, [x0]
	sdiv	x9, x1, x8
	mul	x26, x9, x8
	mov	x1, x26
	bl	_revmap_get_blkno
Lloh0:
	adrp	x8, _InvalidBlockNumber@GOTPAGE
Lloh1:
	ldr	x8, [x8, _InvalidBlockNumber@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x19, #0
Lloh3:
	adrp	x8, _InvalidOffsetNumber@GOTPAGE
Lloh4:
	ldr	x8, [x8, _InvalidOffsetNumber@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x20]
	b	LBB0_27
LBB0_2:
	mov	x27, x0
	str	w21, [sp, #8]                   ; 4-byte Folded Spill
	str	x19, [sp]                       ; 8-byte Folded Spill
	add	x0, sp, #12
	bl	_ItemPointerSetInvalid
Lloh6:
	adrp	x21, _BUFFER_LOCK_UNLOCK@GOTPAGE
Lloh7:
	ldr	x21, [x21, _BUFFER_LOCK_UNLOCK@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x23]
	ldr	w1, [x21]
	bl	_LockBuffer
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	bl	_CHECK_FOR_INTERRUPTS
	ldr	x0, [x24, #8]
Lloh8:
	adrp	x8, _InvalidBuffer@GOTPAGE
Lloh9:
	ldr	x8, [x8, _InvalidBuffer@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_BufferGetBlockNumber
	mov	x8, x0
	ldr	x0, [x24, #8]
	cmp	x8, x27
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh11:
	adrp	x8, _InvalidBuffer@GOTPAGE
Lloh12:
	ldr	x8, [x8, _InvalidBuffer@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_ReleaseBuffer
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh14:
	adrp	x8, _InvalidBlockNumber@GOTPAGE
Lloh15:
	ldr	x8, [x8, _InvalidBlockNumber@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x27, x8
	cset	w0, ne
	bl	_Assert
	ldr	w0, [x24, #16]
	mov	x1, x27
	bl	_ReadBuffer
	str	x0, [x24, #8]
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh17:
	adrp	x8, _BUFFER_LOCK_SHARE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BUFFER_LOCK_SHARE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_LockBuffer
	ldr	x0, [x24, #8]
	bl	_BufferGetPage
	bl	_PageGetContents
	ldr	x19, [x0]
	ldr	x0, [x24]
	mov	x1, x26
	bl	_HEAPBLK_TO_REVMAP_INDEX
	add	x19, x19, w0, sxtw #2
	mov	x0, x19
	bl	_ItemPointerIsValid
	cbz	x0, LBB0_26
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #12
	bl	_ItemPointerIsValid
	cbz	x0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #12
	mov	x1, x19
	bl	_ItemPointerEquals
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh20:
	adrp	x8, _ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w28, [x8]
Lloh23:
	adrp	x8, _ERRCODE_INDEX_CORRUPTED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERRCODE_INDEX_CORRUPTED@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_errcode
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg_internal
	mov	x1, x0
	mov	x0, x28
	bl	_ereport
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	str	w8, [sp, #12]
	mov	x0, x19
	bl	_ItemPointerGetBlockNumber
	mov	x28, x0
	mov	x0, x19
	bl	_ItemPointerGetOffsetNumber
	str	x0, [x20]
	ldr	x0, [x24, #8]
	ldr	w1, [x21]
	bl	_LockBuffer
	ldr	x0, [x23]
	bl	_BufferIsValid
	cbz	x0, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x23]
	bl	_BufferGetBlockNumber
	cmp	x0, x28
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x23]
	b	LBB0_19
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x23]
	bl	_BufferIsValid
	cbz	x0, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x23]
	bl	_ReleaseBuffer
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	mov	x1, x28
	bl	_ReadBuffer
	str	x0, [x23]
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x22
	bl	_LockBuffer
	ldr	x0, [x23]
	bl	_BufferGetPage
	mov	x19, x0
	ldr	w0, [sp, #8]                    ; 4-byte Folded Reload
	mov	x1, x25
	mov	x2, x19
	bl	_TestForOldSnapshot
	mov	x0, x19
	bl	_BRIN_IS_REGULAR_PAGE
	cbz	x0, LBB0_3
; %bb.20:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x28, [x20]
	mov	x0, x19
	bl	_PageGetMaxOffsetNumber
	cmp	x28, x0
	b.le	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh28:
	adrp	x8, _ERROR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh30:
	ldr	w28, [x8]
Lloh31:
	adrp	x8, _ERRCODE_INDEX_CORRUPTED@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ERRCODE_INDEX_CORRUPTED@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_errcode
Lloh34:
	adrp	x0, l_.str@PAGE
Lloh35:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg_internal
	mov	x1, x0
	mov	x0, x28
	bl	_ereport
LBB0_22:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x20]
	mov	x0, x19
	bl	_PageGetItemId
	mov	x28, x0
	bl	_ItemIdIsUsed
	cbz	x0, LBB0_3
; %bb.23:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x28
	bl	_PageGetItem
	ldr	x8, [x0]
	cmp	x8, x26
	b.ne	LBB0_3
; %bb.24:
	mov	x19, x0
	ldr	x20, [sp]                       ; 8-byte Folded Reload
	cbz	x20, LBB0_27
; %bb.25:
	mov	x0, x28
	bl	_ItemIdGetLength
	str	w0, [x20]
	b	LBB0_27
LBB0_26:
	ldr	x0, [x24, #8]
	ldr	w1, [x21]
	bl	_LockBuffer
	mov	x19, #0
LBB0_27:
	mov	x0, 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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidBlockNumber,8,3         ; @InvalidBlockNumber
	.comm	_InvalidOffsetNumber,8,3        ; @InvalidOffsetNumber
	.comm	_InvalidBuffer,8,3              ; @InvalidBuffer
	.comm	_BUFFER_LOCK_SHARE,4,2          ; @BUFFER_LOCK_SHARE
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ; @BUFFER_LOCK_UNLOCK
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INDEX_CORRUPTED,4,2    ; @ERRCODE_INDEX_CORRUPTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"corrupted BRIN index: inconsistent range map"

.subsections_via_symbols
