	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DropRelFileNodesAllBuffers     ## -- Begin function DropRelFileNodesAllBuffers
	.p2align	4, 0x90
_DropRelFileNodesAllBuffers:            ## @DropRelFileNodesAllBuffers
	.cfi_startproc
## %bb.0:
	testl	%esi, %esi
	je	LBB0_24
## %bb.1:
	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	%esi, %r15d
	movq	%rdi, %r12
	leal	(,%r15,4), %edi
	callq	_palloc
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testl	%r15d, %r15d
	jle	LBB0_23
## %bb.2:
	movl	%r15d, %r14d
	shlq	$4, %r14
	xorl	%ebx, %ebx
	movq	_MyBackendId@GOTPCREL(%rip), %r13
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r12,%rbx), %eax
	movslq	%r15d, %rcx
	incl	%r15d
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx,%rcx,4)
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$16, %rbx
	cmpq	%rbx, %r14
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rbx), %rdi
	movl	8(%r12,%rbx), %esi
	callq	_RelFileNodeBackendIsTemp
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12,%rbx), %rax
	cmpq	(%r13), %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r12,%rbx), %edi
	callq	_DropRelFileNodeAllLocalBuffers
	jmp	LBB0_7
LBB0_8:
	testl	%r15d, %r15d
	je	LBB0_23
## %bb.9:
	movq	_DROP_RELS_BSEARCH_THRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %r15d
	jle	LBB0_11
## %bb.10:
	movq	_rnode_comparator@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	$4, %edx
	callq	_pg_qsort
LBB0_11:
	movq	_NBuffers@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_23
## %bb.12:
	movl	%r15d, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	callq	_InvalidateBuffer
LBB0_22:                                ##   in Loop: Header=BB0_13 Depth=1
	incl	%r12d
	movq	_NBuffers@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jge	LBB0_23
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	movl	%r12d, %edi
	callq	_GetBufferDescriptor
	movq	%rax, %r13
	cmpl	-52(%rbp), %r15d                ## 4-byte Folded Reload
	jle	LBB0_14
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_rnode_comparator@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	movl	$4, %ecx
	callq	_bsearch
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_22
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r13, %rdi
	callq	_LockBufHdr
	movl	%eax, %ebx
	movl	(%r13), %edi
	movl	(%r14), %esi
	callq	_RelFileNodeEquals
	movq	%r13, %rdi
	testq	%rax, %rax
	jne	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	%ebx, %esi
	callq	_UnlockBufHdr
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_13 Depth=1
	testl	%r15d, %r15d
	jle	LBB0_22
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %edi
	movl	(%r14), %esi
	callq	_RelFileNodeEquals
	testq	%rax, %rax
	jne	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	addq	$4, %r14
	decq	%rbx
	jne	LBB0_16
	jmp	LBB0_22
LBB0_23:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pfree                          ## TAILCALL
LBB0_24:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MyBackendId,8,3                ## @MyBackendId
	.comm	_DROP_RELS_BSEARCH_THRESHOLD,4,2 ## @DROP_RELS_BSEARCH_THRESHOLD
	.comm	_rnode_comparator,4,2           ## @rnode_comparator
	.comm	_NBuffers,4,2                   ## @NBuffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DropRelFileNodesAllBuffers     ; -- Begin function DropRelFileNodesAllBuffers
	.p2align	2
_DropRelFileNodesAllBuffers:            ; @DropRelFileNodesAllBuffers
	.cfi_startproc
; %bb.0:
	cbz	w1, LBB0_24
; %bb.1:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x1
	mov	x22, x0
	lsl	w0, w1, #2
	bl	_palloc
	mov	x19, x0
	cmp	w21, #1
	b.lt	LBB0_23
; %bb.2:
	mov	w20, #0
	add	x22, x22, #8
Lloh0:
	adrp	x23, _MyBackendId@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MyBackendId@GOTPAGEOFF]
	mov	w21, w21
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x22]
	str	w8, [x19, w20, sxtw #2]
	add	w20, w20, #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #16
	subs	x21, x21, #1
	b.eq	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x0, x1, [x22, #-8]
	bl	_RelFileNodeBackendIsTemp
	cbz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	x8, [x22, #-8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x22]
	bl	_DropRelFileNodeAllLocalBuffers
	b	LBB0_4
LBB0_8:
	cbz	w20, LBB0_23
; %bb.9:
Lloh2:
	adrp	x8, _DROP_RELS_BSEARCH_THRESHOLD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DROP_RELS_BSEARCH_THRESHOLD@GOTPAGEOFF]
Lloh4:
	ldr	w25, [x8]
Lloh5:
	adrp	x26, _rnode_comparator@GOTPAGE
Lloh6:
	ldr	x26, [x26, _rnode_comparator@GOTPAGEOFF]
	cmp	w20, w25
	b.le	LBB0_11
; %bb.10:
	ldr	w3, [x26]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #4
	bl	_pg_qsort
LBB0_11:
Lloh7:
	adrp	x27, _NBuffers@GOTPAGE
Lloh8:
	ldr	x27, [x27, _NBuffers@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.12:
	mov	w21, #0
	mov	w28, w20
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x22
	bl	_InvalidateBuffer
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	w21, w21, #1
	ldr	w8, [x27]
	cmp	w21, w8
	b.ge	LBB0_23
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
	mov	x0, x21
	bl	_GetBufferDescriptor
	mov	x22, x0
	cmp	w20, w25
	b.le	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w4, [x26]
	mov	x0, x22
	mov	x1, x19
	mov	x2, x20
	mov	w3, #4
	bl	_bsearch
	mov	x23, x0
	cbz	x0, LBB0_14
LBB0_17:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x22
	bl	_LockBufHdr
	mov	x24, x0
	ldr	w0, [x22]
	ldr	w1, [x23]
	bl	_RelFileNodeEquals
	cbnz	x0, LBB0_13
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x22
	mov	x1, x24
	bl	_UnlockBufHdr
	b	LBB0_14
LBB0_19:                                ;   in Loop: Header=BB0_15 Depth=1
	cmp	w20, #1
	b.lt	LBB0_14
; %bb.20:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x24, x28
	mov	x23, x19
LBB0_21:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x22]
	ldr	w1, [x23]
	bl	_RelFileNodeEquals
	cbnz	x0, LBB0_17
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=2
	add	x23, x23, #4
	subs	x24, x24, #1
	b.ne	LBB0_21
	b	LBB0_14
LBB0_23:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_pfree
LBB0_24:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	.cfi_same_value w25
	.cfi_same_value w26
	.cfi_same_value w27
	.cfi_same_value w28
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MyBackendId,8,3                ; @MyBackendId
	.comm	_DROP_RELS_BSEARCH_THRESHOLD,4,2 ; @DROP_RELS_BSEARCH_THRESHOLD
	.comm	_rnode_comparator,4,2           ; @rnode_comparator
	.comm	_NBuffers,4,2                   ; @NBuffers
.subsections_via_symbols
