	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brin_evacuate_page             ## -- Begin function brin_evacuate_page
	.p2align	4, 0x90
_brin_evacuate_page:                    ## @brin_evacuate_page
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movl	$0, -56(%rbp)
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %edi
	callq	_BufferGetPage
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_BrinPageFlags
	movq	_BRIN_EVACUATE_PAGE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, %edi
	callq	_Assert
	movl	%r13d, %edi
	callq	_PageGetMaxOffsetNumber
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r15
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %r15
	jle	LBB0_1
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	1(%r15), %rax
	cmpq	-72(%rbp), %r15                 ## 8-byte Folded Reload
	movq	%rax, %r15
	jge	LBB0_4
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movl	%r13d, %edi
	movq	%r15, %rsi
	callq	_PageGetItemId
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_ItemIdIsUsed
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r14d, %edi
	callq	_ItemIdGetLength
	movl	%eax, %r12d
	movl	%r13d, %edi
	movl	%r14d, %esi
	callq	_PageGetItem
	movq	%rax, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	leaq	-56(%rbp), %rcx
	callq	_brin_copy_tuple
	movq	%rax, %rbx
	movq	_BUFFER_LOCK_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	_LockBuffer
	movl	(%rbx), %ecx
	subq	$8, %rsp
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%r14d, %r8d
	movq	%r15, %r9
	pushq	$0
	pushq	%r12
	pushq	%rbx
	pushq	%r12
	pushq	%rbx
	callq	_brin_doupdate
	addq	$48, %rsp
	cmpl	$1, %eax
	sbbq	$0, %r15
	movq	_BUFFER_LOCK_SHARE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_LockBuffer
	movl	%r13d, %edi
	callq	_BRIN_IS_REGULAR_PAGE
	testl	%eax, %eax
	jne	LBB0_3
LBB0_4:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_UnlockReleaseBuffer
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRIN_EVACUATE_PAGE,4,2         ## @BRIN_EVACUATE_PAGE
	.comm	_FirstOffsetNumber,8,3          ## @FirstOffsetNumber
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ## @BUFFER_LOCK_UNLOCK
	.comm	_BUFFER_LOCK_SHARE,4,2          ## @BUFFER_LOCK_SHARE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brin_evacuate_page             ; -- Begin function brin_evacuate_page
	.p2align	2
_brin_evacuate_page:                    ; @brin_evacuate_page
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	str	wzr, [sp, #28]
	mov	x0, x3
	bl	_BufferGetPage
	mov	x23, x0
	bl	_BrinPageFlags
Lloh0:
	adrp	x8, _BRIN_EVACUATE_PAGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BRIN_EVACUATE_PAGE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w0, w8, w0
	bl	_Assert
	mov	x0, x23
	bl	_PageGetMaxOffsetNumber
Lloh3:
	adrp	x8, _FirstOffsetNumber@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FirstOffsetNumber@GOTPAGEOFF]
Lloh5:
	ldr	x25, [x8]
	cmp	x25, x0
	b.gt	LBB0_6
; %bb.1:
	mov	x24, x0
Lloh6:
	adrp	x28, _BUFFER_LOCK_SHARE@GOTPAGE
Lloh7:
	ldr	x28, [x28, _BUFFER_LOCK_SHARE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	x25, x25, x26
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x25, #1
	cmp	x25, x24
	mov	x25, x8
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	bl	_CHECK_FOR_INTERRUPTS
	mov	x0, x23
	mov	x1, x25
	bl	_PageGetItemId
	mov	x26, x0
	bl	_ItemIdIsUsed
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	bl	_ItemIdGetLength
	mov	x27, x0
	mov	x0, x23
	mov	x1, x26
	bl	_PageGetItem
	add	x3, sp, #28
	mov	x1, x27
	mov	x2, #0
	bl	_brin_copy_tuple
	mov	x26, x0
Lloh8:
	adrp	x8, _BUFFER_LOCK_UNLOCK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BUFFER_LOCK_UNLOCK@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_LockBuffer
	ldr	w3, [x26]
	stp	w27, wzr, [sp, #8]
	str	x26, [sp]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x4, x19
	mov	x5, x25
	mov	x6, x26
	mov	x7, x27
	bl	_brin_doupdate
	cmp	w0, #0
	cset	w26, eq
	ldr	w1, [x28]
	mov	x0, x19
	bl	_LockBuffer
	mov	x0, x23
	bl	_BRIN_IS_REGULAR_PAGE
	cbnz	w0, LBB0_2
LBB0_6:
	mov	x0, x19
	bl	_UnlockReleaseBuffer
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_BRIN_EVACUATE_PAGE,4,2         ; @BRIN_EVACUATE_PAGE
	.comm	_FirstOffsetNumber,8,3          ; @FirstOffsetNumber
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ; @BUFFER_LOCK_UNLOCK
	.comm	_BUFFER_LOCK_SHARE,4,2          ; @BUFFER_LOCK_SHARE
.subsections_via_symbols
