	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brininsert                     ## -- Begin function brininsert
	.p2align	4, 0x90
_brininsert:                            ## @brininsert
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r13
	movq	%rsi, -152(%rbp)                ## 8-byte Spill
	movq	%rdi, %rbx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_CurrentMemoryContext@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	callq	_BrinGetAutoSummarize
	movl	%eax, %r14d
	leaq	-80(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_brinRevmapInitialize
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	%r15d, -108(%rbp)               ## 4-byte Spill
	movl	%r15d, %edi
	callq	_ItemPointerGetBlockNumber
	movl	%eax, %esi
	cltd
	idivl	-80(%rbp)
	subl	%edx, %esi
	testl	%r14d, %r14d
	setne	%al
	testl	%esi, %esi
	setg	%cl
	testl	%edx, %edx
	sete	%dl
	andb	%al, %dl
	andb	%cl, %dl
	movb	%dl, -45(%rbp)                  ## 1-byte Spill
	movq	%rsi, -136(%rbp)                ## 8-byte Spill
	leal	-1(%rsi), %r12d
	xorl	%ebx, %ebx
	movq	%r13, -160(%rbp)                ## 8-byte Spill
	movl	%r12d, -112(%rbp)               ## 4-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	cmpb	$0, -45(%rbp)                   ## 1-byte Folded Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-108(%rbp), %edi                ## 4-byte Reload
	callq	_ItemPointerGetOffsetNumber
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_BUFFER_LOCK_SHARE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	subq	$8, %rsp
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	leaq	-44(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	xorl	%r8d, %r8d
	pushq	$0
	callq	_brinGetTupleForHeapBlock
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %edi
	movq	_BUFFER_LOCK_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LockBuffer
	jmp	LBB0_7
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_AVW_BRINSummarizeRange@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_RelationGetRelid
	movl	%r14d, %edi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_AutoVacuumRequestWork
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_PROGRAM_LIMIT_EXCEEDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_RelationGetRelationName
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_errmsg
	movl	%r14d, %edi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_ereport
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_BUFFER_LOCK_SHARE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	subq	$8, %rsp
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-136(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	leaq	-44(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	xorl	%r8d, %r8d
	pushq	$0
	callq	_brinGetTupleForHeapBlock
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_19
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r15
	testq	%r14, %r14
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	testq	%rbx, %rbx
	je	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%r15, -144(%rbp)                ## 8-byte Spill
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_brin_deform_tuple
	movq	%rax, %rcx
	movq	(%r14), %rax
	cmpl	$0, (%rax)
	jle	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, -168(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	1(%r12), %rsi
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	(%rcx), %r13
	addq	%rbx, %r13
	movq	_BRIN_PROCNUM_ADDVALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_index_getprocinfo
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	movq	(%r14), %rax
	movl	(%rax,%r12,4), %eax
	movl	%eax, -116(%rbp)                ## 4-byte Spill
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_PointerGetDatum
	movl	%eax, %r14d
	movq	%r13, %rdi
	movq	-160(%rbp), %r13                ## 8-byte Reload
	callq	_PointerGetDatum
	movq	-152(%rbp), %rcx                ## 8-byte Reload
	movl	(%rcx,%r12,4), %r8d
	movl	(%r13,%r12,4), %r9d
	movq	-176(%rbp), %rdi                ## 8-byte Reload
	movl	-116(%rbp), %esi                ## 4-byte Reload
	movl	%r14d, %edx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	_FunctionCall4Coll
	movl	%eax, %edi
	callq	_DatumGetBool
	movq	-168(%rbp), %rcx                ## 8-byte Reload
	orl	%eax, %r15d
	movq	(%r14), %rax
	movslq	(%rax), %rax
	addq	$8, %rbx
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movq	%rdx, %r12
	cmpq	%rax, %rdx
	jl	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%r15d, %r15d
	je	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %edi
	movq	%rcx, %rbx
	callq	_BufferGetPage
	movl	-52(%rbp), %esi
	movl	%eax, %edi
	callq	_PageGetItemId
	movl	%eax, %edi
	callq	_ItemIdGetLength
	movl	%eax, %r12d
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_brin_copy_tuple
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	movq	-136(%rbp), %r15                ## 8-byte Reload
	movl	%r15d, %esi
	movq	%rbx, %rdx
	leaq	-76(%rbp), %rcx
	callq	_brin_form_tuple
	movq	%rax, %r14
	movl	-44(%rbp), %edi
	movl	-76(%rbp), %edx
	movl	%r12d, %esi
	callq	_brin_can_do_samepage_update
	movl	%eax, %ebx
	movl	-44(%rbp), %edi
	movq	_BUFFER_LOCK_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LockBuffer
	movl	-80(%rbp), %esi
	movl	-44(%rbp), %r8d
	movl	-52(%rbp), %r9d
	movl	-76(%rbp), %eax
	subq	$8, %rsp
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movl	%r15d, %ecx
	pushq	%rbx
	pushq	%rax
	pushq	%r14
	pushq	%r12
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	callq	_brin_doupdate
	addq	$48, %rsp
	testl	%eax, %eax
	jne	LBB0_18
## %bb.24:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_MemoryContextResetAndDeleteChildren
	movl	-112(%rbp), %r12d               ## 4-byte Reload
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%rbp), %rax
	movq	8(%rax), %rdi
	callq	_MemoryContextSwitchTo
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_brin_build_desc
	movq	%rax, %r14
	movq	16(%rbp), %rax
	movq	%r14, (%rax)
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	callq	_MemoryContextSwitchTo
	testq	%rbx, %rbx
	jne	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_CurrentMemoryContext@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_ALLOCSET_DEFAULT_SIZES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_AllocSetContextCreate
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_MemoryContextSwitchTo
	jmp	LBB0_12
LBB0_16:
	movl	-44(%rbp), %edi
	movq	_BUFFER_LOCK_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LockBuffer
LBB0_18:
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
LBB0_19:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_brinRevmapTerminate
	movl	-44(%rbp), %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movl	-44(%rbp), %edi
	callq	_ReleaseBuffer
LBB0_21:
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	callq	_MemoryContextSwitchTo
	testq	%rbx, %rbx
	je	LBB0_23
## %bb.22:
	movq	%rbx, %rdi
	callq	_MemoryContextDelete
LBB0_23:
	xorl	%eax, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidBuffer,4,2              ## @InvalidBuffer
	.comm	_CurrentMemoryContext,8,3       ## @CurrentMemoryContext
	.comm	_FirstOffsetNumber,8,3          ## @FirstOffsetNumber
	.comm	_BUFFER_LOCK_SHARE,4,2          ## @BUFFER_LOCK_SHARE
	.comm	_AVW_BRINSummarizeRange,4,2     ## @AVW_BRINSummarizeRange
	.comm	_LOG,4,2                        ## @LOG
	.comm	_ERRCODE_PROGRAM_LIMIT_EXCEEDED,4,2 ## @ERRCODE_PROGRAM_LIMIT_EXCEEDED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"request for BRIN range summarization for index \"%s\" page %u was not recorded"

	.comm	_BUFFER_LOCK_UNLOCK,4,2         ## @BUFFER_LOCK_UNLOCK
L_.str.1:                               ## @.str.1
	.asciz	"brininsert cxt"

	.comm	_ALLOCSET_DEFAULT_SIZES,4,2     ## @ALLOCSET_DEFAULT_SIZES
	.comm	_BRIN_PROCNUM_ADDVALUE,4,2      ## @BRIN_PROCNUM_ADDVALUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brininsert                     ; -- Begin function brininsert
	.p2align	2
_brininsert:                            ; @brininsert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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	x20, x3
	mov	x25, x2
	str	x1, [sp, #80]                   ; 8-byte Folded Spill
	mov	x27, x0
	str	x6, [sp, #16]                   ; 8-byte Folded Spill
	ldr	x24, [x6]
Lloh0:
	adrp	x8, _InvalidBuffer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _InvalidBuffer@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stur	w8, [x29, #-88]
Lloh3:
	adrp	x8, _CurrentMemoryContext@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CurrentMemoryContext@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	bl	_BrinGetAutoSummarize
	mov	x19, x0
	sub	x1, x29, #84
	mov	x0, x27
	mov	x2, #0
	bl	_brinRevmapInitialize
	mov	x21, x0
	str	w20, [sp, #32]                  ; 4-byte Folded Spill
	mov	x0, x20
	bl	_ItemPointerGetBlockNumber
	mov	x23, #0
	ldur	w8, [x29, #-84]
	sdiv	w9, w0, w8
	mul	w9, w9, w8
	sub	w8, w0, w9
	cmp	w19, #0
	ccmp	w9, #0, #4, ne
	ccmp	w8, #0, #0, gt
	cset	w8, eq
	str	w8, [sp, #52]                   ; 4-byte Folded Spill
	str	w9, [sp, #76]                   ; 4-byte Folded Spill
	sub	w20, w9, #1
Lloh6:
	adrp	x22, _BRIN_PROCNUM_ADDVALUE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _BRIN_PROCNUM_ADDVALUE@GOTPAGEOFF]
	str	x21, [sp, #40]                  ; 8-byte Folded Spill
	str	w20, [sp, #36]                  ; 4-byte Folded Spill
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	bl	_CHECK_FOR_INTERRUPTS
	ldr	w8, [sp, #52]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_7
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [sp, #32]                   ; 4-byte Folded Reload
	bl	_ItemPointerGetOffsetNumber
Lloh8:
	adrp	x8, _FirstOffsetNumber@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FirstOffsetNumber@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh11:
	adrp	x8, _BUFFER_LOCK_SHARE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BUFFER_LOCK_SHARE@GOTPAGEOFF]
Lloh13:
	ldr	w5, [x8]
	sub	x2, x29, #88
	sub	x3, x29, #92
	mov	x0, x21
	mov	x1, x20
	mov	x4, #0
	mov	x6, #0
	bl	_brinGetTupleForHeapBlock
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldur	w0, [x29, #-88]
Lloh14:
	adrp	x8, _BUFFER_LOCK_UNLOCK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BUFFER_LOCK_UNLOCK@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_LockBuffer
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
Lloh17:
	adrp	x8, _AVW_BRINSummarizeRange@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AVW_BRINSummarizeRange@GOTPAGEOFF]
Lloh19:
	ldr	w19, [x8]
	mov	x0, x27
	bl	_RelationGetRelid
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_AutoVacuumRequestWork
	cbnz	w0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh20:
	adrp	x8, _LOG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh22:
	ldr	w19, [x8]
Lloh23:
	adrp	x8, _ERRCODE_PROGRAM_LIMIT_EXCEEDED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERRCODE_PROGRAM_LIMIT_EXCEEDED@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x27
	bl	_RelationGetRelationName
	mov	x1, x0
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
Lloh28:
	adrp	x8, _BUFFER_LOCK_SHARE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _BUFFER_LOCK_SHARE@GOTPAGEOFF]
Lloh30:
	ldr	w5, [x8]
	sub	x2, x29, #88
	sub	x3, x29, #92
	mov	x0, x21
	ldr	w1, [sp, #76]                   ; 4-byte Folded Reload
	mov	x4, #0
	mov	x6, #0
	bl	_brinGetTupleForHeapBlock
	cbz	x0, LBB0_20
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x28, x0
	cbz	x24, LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	x23, LBB0_17
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x24
	str	x28, [sp, #56]                  ; 8-byte Folded Spill
	mov	x1, x28
	mov	x2, #0
	bl	_brin_deform_tuple
	str	x24, [sp, #96]                  ; 8-byte Folded Spill
	ldr	x8, [x24]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_1 Depth=1
	str	x23, [sp, #64]                  ; 8-byte Folded Spill
	mov	x23, #0
	mov	x19, #0
	mov	w24, #0
	str	x0, [sp, #88]                   ; 8-byte Folded Spill
LBB0_12:                                ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x0]
	add	x21, x19, #1
	add	x8, x8, x23
	str	x8, [sp, #104]                  ; 8-byte Folded Spill
	ldr	w2, [x22]
	mov	x0, x27
	mov	x1, x21
	bl	_index_getprocinfo
	mov	x20, x0
	ldr	x8, [x27]
	mov	x22, x27
	mov	x27, x25
	lsl	x25, x19, #2
	ldr	w28, [x8, x25]
	ldr	x26, [sp, #96]                  ; 8-byte Folded Reload
	mov	x0, x26
	bl	_PointerGetDatum
	mov	x19, x0
	ldr	x0, [sp, #104]                  ; 8-byte Folded Reload
	bl	_PointerGetDatum
	mov	x3, x0
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	ldr	w4, [x8, x25]
	ldr	w5, [x27, x25]
	mov	x25, x27
	mov	x27, x22
Lloh31:
	adrp	x22, _BRIN_PROCNUM_ADDVALUE@GOTPAGE
Lloh32:
	ldr	x22, [x22, _BRIN_PROCNUM_ADDVALUE@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x28
	mov	x2, x19
	bl	_FunctionCall4Coll
	bl	_DatumGetBool
	orr	w24, w0, w24
	ldr	x0, [sp, #88]                   ; 8-byte Folded Reload
	ldr	x8, [x26]
	ldrsw	x8, [x8]
	add	x23, x23, #8
	mov	x19, x21
	cmp	x21, x8
	b.lt	LBB0_12
; %bb.13:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x23, [sp, #64]                  ; 8-byte Folded Reload
	ldr	x21, [sp, #40]                  ; 8-byte Folded Reload
	cbz	w24, LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x20, x23
	mov	x22, x0
	ldur	w0, [x29, #-88]
	bl	_BufferGetPage
	ldur	w1, [x29, #-92]
	bl	_PageGetItemId
	bl	_ItemIdGetLength
	mov	x19, x0
	ldr	x0, [sp, #56]                   ; 8-byte Folded Reload
	mov	x1, x19
	mov	x2, #0
	mov	x3, #0
	bl	_brin_copy_tuple
	mov	x26, x0
	sub	x3, x29, #96
	ldr	x24, [sp, #96]                  ; 8-byte Folded Reload
	mov	x0, x24
	ldr	w28, [sp, #76]                  ; 4-byte Folded Reload
	mov	x1, x28
	mov	x2, x22
	bl	_brin_form_tuple
	mov	x23, x21
	mov	x21, x0
	ldur	w0, [x29, #-88]
	ldur	w2, [x29, #-96]
	mov	x1, x19
	bl	_brin_can_do_samepage_update
	mov	x22, x0
	ldur	w0, [x29, #-88]
Lloh33:
	adrp	x8, _BUFFER_LOCK_UNLOCK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _BUFFER_LOCK_UNLOCK@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	bl	_LockBuffer
	ldp	w4, w1, [x29, #-88]
	ldp	w8, w5, [x29, #-96]
	stp	w8, w22, [sp, #8]
	str	x21, [sp]
	mov	x21, x23
	mov	x0, x27
	mov	x2, x23
	mov	x3, x28
	mov	x6, x26
	mov	x7, x19
	bl	_brin_doupdate
	cbnz	w0, LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x23, x20
	mov	x0, x20
	bl	_MemoryContextResetAndDeleteChildren
	ldr	w20, [sp, #36]                  ; 4-byte Folded Reload
Lloh36:
	adrp	x22, _BRIN_PROCNUM_ADDVALUE@GOTPAGE
Lloh37:
	ldr	x22, [x22, _BRIN_PROCNUM_ADDVALUE@GOTPAGEOFF]
	b	LBB0_1
LBB0_16:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
	ldr	x0, [x19, #8]
	bl	_MemoryContextSwitchTo
	mov	x0, x27
	bl	_brin_build_desc
	mov	x24, x0
	str	x0, [x19]
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_MemoryContextSwitchTo
	cbnz	x23, LBB0_10
LBB0_17:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh38:
	adrp	x8, _CurrentMemoryContext@GOTPAGE
Lloh39:
	ldr	x8, [x8, _CurrentMemoryContext@GOTPAGEOFF]
Lloh40:
	ldr	x0, [x8]
Lloh41:
	adrp	x8, _ALLOCSET_DEFAULT_SIZES@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ALLOCSET_DEFAULT_SIZES@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
Lloh44:
	adrp	x1, l_.str.1@PAGE
Lloh45:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_AllocSetContextCreate
	mov	x23, x0
	bl	_MemoryContextSwitchTo
	b	LBB0_10
LBB0_18:
	ldur	w0, [x29, #-88]
Lloh46:
	adrp	x8, _BUFFER_LOCK_UNLOCK@GOTPAGE
Lloh47:
	ldr	x8, [x8, _BUFFER_LOCK_UNLOCK@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	bl	_LockBuffer
	b	LBB0_20
LBB0_19:
	mov	x23, x20
LBB0_20:
	mov	x0, x21
	bl	_brinRevmapTerminate
	ldur	w0, [x29, #-88]
	bl	_BufferIsValid
	cbz	x0, LBB0_22
; %bb.21:
	ldur	w0, [x29, #-88]
	bl	_ReleaseBuffer
LBB0_22:
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_MemoryContextSwitchTo
	cbz	x23, LBB0_24
; %bb.23:
	mov	x0, x23
	bl	_MemoryContextDelete
LBB0_24:
	mov	w0, #0
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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 AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidBuffer,4,2              ; @InvalidBuffer
	.comm	_CurrentMemoryContext,8,3       ; @CurrentMemoryContext
	.comm	_FirstOffsetNumber,8,3          ; @FirstOffsetNumber
	.comm	_BUFFER_LOCK_SHARE,4,2          ; @BUFFER_LOCK_SHARE
	.comm	_AVW_BRINSummarizeRange,4,2     ; @AVW_BRINSummarizeRange
	.comm	_LOG,4,2                        ; @LOG
	.comm	_ERRCODE_PROGRAM_LIMIT_EXCEEDED,4,2 ; @ERRCODE_PROGRAM_LIMIT_EXCEEDED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"request for BRIN range summarization for index \"%s\" page %u was not recorded"

	.comm	_BUFFER_LOCK_UNLOCK,4,2         ; @BUFFER_LOCK_UNLOCK
l_.str.1:                               ; @.str.1
	.asciz	"brininsert cxt"

	.comm	_ALLOCSET_DEFAULT_SIZES,4,2     ; @ALLOCSET_DEFAULT_SIZES
	.comm	_BRIN_PROCNUM_ADDVALUE,4,2      ; @BRIN_PROCNUM_ADDVALUE
.subsections_via_symbols
