	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function summarize_range
_summarize_range:                       ## @summarize_range
	.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
	movl	%r8d, %ebx
	movl	%ecx, %r14d
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	12(%rsi), %edi
	leaq	-48(%rbp), %rdx
	movl	%ecx, %esi
	callq	_brin_form_placeholder_tuple
	movq	%rax, %r15
	movl	20(%r12), %edi
	movl	(%r12), %esi
	movl	16(%r12), %edx
	movl	-48(%rbp), %eax
	subq	$8, %rsp
	leaq	-44(%rbp), %rcx
	movl	%r14d, %r8d
	movq	%r15, %r9
	pushq	%rax
	callq	_brin_doinsert
	addq	$16, %rsp
	movl	%eax, -56(%rbp)
	movl	%r14d, %eax
	cltd
	idivl	(%r12)
	xorl	%edi, %edi
	testl	%edx, %edx
	sete	%dil
	callq	_Assert
	movl	(%r12), %eax
	leal	(%rax,%r14), %ecx
	cmpl	%ebx, %ecx
	jle	LBB0_2
## %bb.1:
	movl	%r13d, %edi
	callq	_RelationGetNumberOfBlocks
	subl	%r14d, %eax
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_Min
                                        ## kill: def $eax killed $eax def $rax
LBB0_2:
	movl	%r14d, 4(%r12)
	movl	20(%r12), %esi
	movq	_brinbuildCallback@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	subq	$8, %rsp
	movl	%r13d, %edi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	pushq	%r14
	callq	_table_index_build_range_scan
	addq	$48, %rsp
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_brin_copy_tuple
	movq	%rax, %r15
	movl	-44(%rbp), %edi
	movq	_BUFFER_LOCK_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LockBuffer
	movl	8(%r12), %esi
	movl	12(%r12), %edi
	movq	%r15, %rdx
	callq	_union_tuples
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movl	8(%r12), %edx
	movl	12(%r12), %edi
	movl	%r14d, %esi
	leaq	-52(%rbp), %rcx
	callq	_brin_form_tuple
	movq	%rax, %r13
	movl	-44(%rbp), %edi
	movl	-48(%rbp), %esi
	movl	-52(%rbp), %edx
	callq	_brin_can_do_samepage_update
                                        ## kill: def $eax killed $eax def $rax
	movl	20(%r12), %edi
	movl	(%r12), %esi
	movl	16(%r12), %edx
	movl	-44(%rbp), %r8d
	movl	-56(%rbp), %r9d
	movl	-48(%rbp), %r10d
	movl	-52(%rbp), %ebx
	subq	$8, %rsp
	movl	%r14d, %ecx
	pushq	%rax
	pushq	%rbx
	pushq	%r13
	pushq	%r10
	pushq	%r15
	callq	_brin_doupdate
	addq	$48, %rsp
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_brin_free_tuple
	movq	%r13, %rdi
	callq	_brin_free_tuple
	testl	%ebx, %ebx
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%r12), %edi
	movq	_BUFFER_LOCK_SHARE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	subq	$8, %rsp
	movl	%r14d, %esi
	leaq	-44(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	leaq	-48(%rbp), %r8
	pushq	$0
	callq	_brinGetTupleForHeapBlock
	addq	$16, %rsp
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
	jmp	LBB0_6
LBB0_7:
	movl	-44(%rbp), %edi
	callq	_ReleaseBuffer
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidBuffer,4,2              ## @InvalidBuffer
	.comm	_brinbuildCallback,4,2          ## @brinbuildCallback
	.comm	_BUFFER_LOCK_SHARE,4,2          ## @BUFFER_LOCK_SHARE
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"missing placeholder tuple"

	.comm	_BUFFER_LOCK_UNLOCK,4,2         ## @BUFFER_LOCK_UNLOCK
	.no_dead_strip	_summarize_range
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function summarize_range
_summarize_range:                       ; @summarize_range
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x24, x4
	mov	x19, x3
	mov	x23, x2
	mov	x20, x1
	mov	x22, x0
	ldr	w0, [x1, #12]
Lloh0:
	adrp	x8, _InvalidBuffer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _InvalidBuffer@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #44]
	add	x2, sp, #40
	mov	x1, x3
	bl	_brin_form_placeholder_tuple
	mov	x21, x0
	ldr	w1, [x20]
	ldp	w2, w0, [x20, #16]
	ldr	w6, [sp, #40]
	add	x3, sp, #44
	mov	x4, x19
	mov	x5, x21
	bl	_brin_doinsert
	str	w0, [sp, #36]
	ldr	w8, [x20]
	sdiv	w9, w19, w8
	msub	w8, w9, w8, w19
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	ldr	w7, [x20]
	add	w8, w7, w19
	cmp	w8, w24
	b.le	LBB0_2
; %bb.1:
	mov	x0, x23
	bl	_RelationGetNumberOfBlocks
	sub	w0, w0, w19
	ldr	w1, [x20]
	bl	_Min
	mov	x7, x0
LBB0_2:
	str	w19, [x20, #4]
	ldr	w1, [x20, #20]
Lloh3:
	adrp	x8, _brinbuildCallback@GOTPAGE
Lloh4:
	ldr	x8, [x8, _brinbuildCallback@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	x20, xzr, [sp, #8]
	str	w8, [sp]
	mov	x0, x23
	mov	x2, x22
	mov	w3, #0
	mov	w4, #1
	mov	w5, #0
	mov	x6, x19
	bl	_table_index_build_range_scan
Lloh6:
	adrp	x25, _BUFFER_LOCK_SHARE@GOTPAGE
Lloh7:
	ldr	x25, [x25, _BUFFER_LOCK_SHARE@GOTPAGEOFF]
Lloh8:
	adrp	x26, _ERROR@GOTPAGE
Lloh9:
	ldr	x26, [x26, _ERROR@GOTPAGEOFF]
Lloh10:
	adrp	x22, l_.str@PAGE
Lloh11:
	add	x22, x22, l_.str@PAGEOFF
Lloh12:
	adrp	x27, _BUFFER_LOCK_UNLOCK@GOTPAGE
Lloh13:
	ldr	x27, [x27, _BUFFER_LOCK_UNLOCK@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [sp, #40]
	mov	x0, x21
	mov	x2, #0
	mov	x3, #0
	bl	_brin_copy_tuple
	mov	x21, x0
	ldr	w0, [sp, #44]
	ldr	w1, [x27]
	bl	_LockBuffer
	ldp	w1, w0, [x20, #8]
	mov	x2, x21
	bl	_union_tuples
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	bl	_CHECK_FOR_INTERRUPTS
	ldp	w2, w0, [x20, #8]
	add	x3, sp, #32
	mov	x1, x19
	bl	_brin_form_tuple
	mov	x23, x0
	ldp	w1, w0, [sp, #40]
	ldr	w2, [sp, #32]
	bl	_brin_can_do_samepage_update
	ldr	w1, [x20]
	ldp	w2, w8, [x20, #16]
	ldp	w7, w4, [sp, #40]
	ldp	w9, w5, [sp, #32]
	stp	w9, w0, [sp, #8]
	str	x23, [sp]
	mov	x0, x8
	mov	x3, x19
	mov	x6, x21
	bl	_brin_doupdate
	mov	x24, x0
	mov	x0, x21
	bl	_brin_free_tuple
	mov	x0, x23
	bl	_brin_free_tuple
	cbnz	w24, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20, #16]
	ldr	w5, [x25]
	add	x2, sp, #44
	add	x3, sp, #36
	add	x4, sp, #40
	mov	x1, x19
	mov	x6, #0
	bl	_brinGetTupleForHeapBlock
	mov	x21, x0
	cbnz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x26]
	mov	x1, x22
	bl	_elog
	b	LBB0_3
LBB0_7:
	ldr	w0, [sp, #44]
	bl	_ReleaseBuffer
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidBuffer,4,2              ; @InvalidBuffer
	.comm	_brinbuildCallback,4,2          ; @brinbuildCallback
	.comm	_BUFFER_LOCK_SHARE,4,2          ; @BUFFER_LOCK_SHARE
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"missing placeholder tuple"

	.comm	_BUFFER_LOCK_UNLOCK,4,2         ; @BUFFER_LOCK_UNLOCK
	.no_dead_strip	_summarize_range
.subsections_via_symbols
