	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brinvacuumcleanup              ## -- Begin function brinvacuumcleanup
	.p2align	4, 0x90
_brinvacuumcleanup:                     ## @brinvacuumcleanup
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	cmpq	$0, 8(%rdi)
	jne	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	testq	%r14, %r14
	jne	LBB0_3
## %bb.2:
	movl	$8, %edi
	callq	_palloc0
	movq	%rax, %r14
LBB0_3:
	movl	(%rbx), %edi
	callq	_RelationGetNumberOfBlocks
	movl	%eax, 4(%r14)
	movl	(%rbx), %edi
	callq	_RelationGetRelid
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_IndexGetRelation
	movq	_AccessShareLock@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_table_open
	movl	%eax, %r15d
	movl	(%rbx), %edi
	movl	4(%rbx), %esi
	callq	_brin_vacuum_scan
	movl	(%rbx), %edi
	movq	_BRIN_ALL_BLOCKRANGES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %esi
	xorl	%ecx, %ecx
	movq	%r14, %r8
	movq	%r14, %r9
	callq	_brinsummarize
	movl	(%r12), %esi
	movl	%r15d, %edi
	callq	_table_close
LBB0_4:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AccessShareLock,4,2            ## @AccessShareLock
	.comm	_BRIN_ALL_BLOCKRANGES,4,2       ## @BRIN_ALL_BLOCKRANGES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brinvacuumcleanup              ; -- Begin function brinvacuumcleanup
	.p2align	2
_brinvacuumcleanup:                     ; @brinvacuumcleanup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_4
; %bb.1:
	mov	x20, x0
	cbnz	x19, LBB0_3
; %bb.2:
	mov	w0, #8
	bl	_palloc0
	mov	x19, x0
LBB0_3:
	ldr	w0, [x20]
	bl	_RelationGetNumberOfBlocks
	str	w0, [x19, #4]
	ldr	w0, [x20]
	bl	_RelationGetRelid
	mov	w1, #0
	bl	_IndexGetRelation
Lloh0:
	adrp	x22, _AccessShareLock@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AccessShareLock@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_table_open
	mov	x21, x0
	ldp	w0, w1, [x20]
	bl	_brin_vacuum_scan
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _BRIN_ALL_BLOCKRANGES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BRIN_ALL_BLOCKRANGES@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x1, x21
	mov	w3, #0
	mov	x4, x19
	mov	x5, x19
	bl	_brinsummarize
	ldr	w1, [x22]
	mov	x0, x21
	bl	_table_close
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AccessShareLock,4,2            ; @AccessShareLock
	.comm	_BRIN_ALL_BLOCKRANGES,4,2       ; @BRIN_ALL_BLOCKRANGES
.subsections_via_symbols
