	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DropRelFileNodeAllLocalBuffers ## -- Begin function DropRelFileNodeAllLocalBuffers
	.p2align	4, 0x90
_DropRelFileNodeAllLocalBuffers:        ## @DropRelFileNodeAllLocalBuffers
	.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	%edi, -52(%rbp)                 ## 4-byte Spill
	movq	_NLocBuffer@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_10
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	4(%r13), %rdi
	movl	12(%r13), %esi
	callq	_CLEAR_BUFFERTAG
	movq	_BUF_USAGECOUNT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_BUF_FLAG_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	notl	%eax
	andl	%eax, %r14d
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_pg_atomic_unlocked_write_u32
	movq	_NLocBuffer@GOTPCREL(%rip), %r15
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_GetLocalBufferDescriptor
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_pg_atomic_read_u32
	movl	%eax, %r14d
	movq	_BM_TAG_VALID@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r13), %edi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_RelFileNodeEquals
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %r15
	addq	$4, %r15
	movq	_LocalRefCount@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	12(%r13), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	4(%r13), %edx
	movl	8(%r13), %edi
	movq	_MyBackendId@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_relpathbackend
	movq	(%r12), %rcx
	movq	(%rcx,%rbx,8), %r8
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	leaq	L_.str(%rip), %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_elog
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_LocalBufHash@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HASH_REMOVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	callq	_hash_search
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
	jmp	LBB0_8
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NLocBuffer,4,2                 ## @NLocBuffer
	.comm	_BM_TAG_VALID,4,2               ## @BM_TAG_VALID
	.comm	_LocalRefCount,8,3              ## @LocalRefCount
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"block %u of %s is still referenced (local %u)"

	.comm	_MyBackendId,4,2                ## @MyBackendId
	.comm	_LocalBufHash,4,2               ## @LocalBufHash
	.comm	_HASH_REMOVE,4,2                ## @HASH_REMOVE
L_.str.1:                               ## @.str.1
	.asciz	"local buffer hash table corrupted"

	.comm	_BUF_FLAG_MASK,4,2              ## @BUF_FLAG_MASK
	.comm	_BUF_USAGECOUNT_MASK,4,2        ## @BUF_USAGECOUNT_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DropRelFileNodeAllLocalBuffers ; -- Begin function DropRelFileNodeAllLocalBuffers
	.p2align	2
_DropRelFileNodeAllLocalBuffers:        ; @DropRelFileNodeAllLocalBuffers
	.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
Lloh0:
	adrp	x27, _NLocBuffer@GOTPAGE
Lloh1:
	ldr	x27, [x27, _NLocBuffer@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x19, x0
	mov	x20, #0
Lloh2:
	adrp	x28, _BM_TAG_VALID@GOTPAGE
Lloh3:
	ldr	x28, [x28, _BM_TAG_VALID@GOTPAGEOFF]
Lloh4:
	adrp	x21, _LocalRefCount@GOTPAGE
Lloh5:
	ldr	x21, [x21, _LocalRefCount@GOTPAGEOFF]
                                        ; implicit-def: $x23
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldur	x0, [x24, #4]
	ldr	w8, [x24, #12]
	and	x9, x23, #0xffffffff00000000
	orr	x23, x9, x8
	mov	x1, x23
	bl	_CLEAR_BUFFERTAG
Lloh6:
	adrp	x8, _BUF_FLAG_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BUF_FLAG_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _BUF_USAGECOUNT_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BUF_USAGECOUNT_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w1, w25, w8
	mov	x0, x24
	bl	_pg_atomic_unlocked_write_u32
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x27]
	cmp	x20, x8
	b.ge	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_GetLocalBufferDescriptor
	mov	x24, x0
	bl	_pg_atomic_read_u32
	ldr	w8, [x28]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x0
	ldr	w0, [x24, #8]
	mov	x1, x19
	bl	_RelFileNodeEquals
	cbz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8, x20, lsl #3]
	cbz	x8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh12:
	adrp	x8, _ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w26, [x8]
Lloh15:
	adrp	x8, _MyBackendId@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MyBackendId@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldp	w2, w0, [x24, #4]
	ldr	w22, [x24, #12]
	bl	_relpathbackend
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x21]
	ldr	x8, [x8, x20, lsl #3]
	stp	x0, x8, [sp, #8]
	str	x22, [sp]
	mov	x0, x26
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x1, x24, #4
Lloh20:
	adrp	x8, _LocalBufHash@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LocalBufHash@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x8, _HASH_REMOVE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _HASH_REMOVE@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x3, #0
	bl	_hash_search
	cbnz	x0, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh26:
	adrp	x8, _ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
	b	LBB0_2
LBB0_10:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_NLocBuffer,4,2                 ; @NLocBuffer
	.comm	_BM_TAG_VALID,4,2               ; @BM_TAG_VALID
	.comm	_LocalRefCount,8,3              ; @LocalRefCount
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"block %u of %s is still referenced (local %u)"

	.comm	_MyBackendId,4,2                ; @MyBackendId
	.comm	_LocalBufHash,4,2               ; @LocalBufHash
	.comm	_HASH_REMOVE,4,2                ; @HASH_REMOVE
l_.str.1:                               ; @.str.1
	.asciz	"local buffer hash table corrupted"

	.comm	_BUF_FLAG_MASK,4,2              ; @BUF_FLAG_MASK
	.comm	_BUF_USAGECOUNT_MASK,4,2        ; @BUF_USAGECOUNT_MASK
.subsections_via_symbols
