	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smgrdounlinkall                ## -- Begin function smgrdounlinkall
	.p2align	4, 0x90
_smgrdounlinkall:                       ## @smgrdounlinkall
	.cfi_startproc
## %bb.0:
	testl	%esi, %esi
	je	LBB0_17
## %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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r13d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	leal	(,%r13,4), %edi
	callq	_palloc
	movq	%rax, %r15
	testl	%r13d, %r13d
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_2
## %bb.3:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%r13d, %r12d
	xorl	%r14d, %r14d
	movq	_MAX_FORKNUM@GOTPCREL(%rip), %rdx
	movq	_smgrsw@GOTPCREL(%rip), %rsi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	cmpq	%r12, %r14
	je	LBB0_9
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	(%rcx,%r14,8), %rdi
	movl	4(%rdi), %eax
	movslq	(%rdi), %r12
	movl	%eax, (%r15,%r14,4)
	cmpl	$0, (%rdx)
	js	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rsi), %rax
	shlq	$4, %r12
	xorl	%esi, %esi
	callq	*8(%rax,%r12)
	movq	_smgrsw@GOTPCREL(%rip), %rsi
	movq	_MAX_FORKNUM@GOTPCREL(%rip), %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$0, (%rdx)
	jle	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rcx,%r14,8), %rdi
	movq	(%rsi), %rax
	movl	%ebx, %esi
	callq	*8(%rax,%r12)
	movq	_smgrsw@GOTPCREL(%rip), %rsi
	movq	_MAX_FORKNUM@GOTPCREL(%rip), %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leal	1(%rbx), %eax
	cmpl	(%rdx), %ebx
	movl	%eax, %ebx
	jl	LBB0_7
	jmp	LBB0_8
LBB0_9:
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_DropRelFileNodesAllBuffers
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%rbx,4), %edi
	callq	_CacheInvalidateSmgr
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_10
## %bb.11:
	movq	_MAX_FORKNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r13d, %r13d
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%r13
	cmpq	-72(%rbp), %r13                 ## 8-byte Folded Reload
	je	LBB0_16
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	testl	%eax, %eax
	movq	_smgrsw@GOTPCREL(%rip), %r14
	js	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r13,8), %rax
	movslq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$-1, %ebx
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incl	%ebx
	movq	(%r14), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	shlq	$4, %rcx
	movl	(%r12,%r13,4), %edi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	*(%rax,%rcx)
	movq	_MAX_FORKNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	jl	LBB0_14
	jmp	LBB0_15
LBB0_17:
	retq
LBB0_2:
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_DropRelFileNodesAllBuffers
LBB0_16:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_FORKNUM,4,2                ## @MAX_FORKNUM
	.comm	_smgrsw,8,3                     ## @smgrsw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smgrdounlinkall                ; -- Begin function smgrdounlinkall
	.p2align	2
_smgrdounlinkall:                       ; @smgrdounlinkall
	.cfi_startproc
; %bb.0:
	cbz	w1, LBB0_15
; %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
	.cfi_remember_state
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	lsl	w0, w1, #2
	bl	_palloc
	mov	x21, x0
	cmp	w22, #0
	b.le	LBB0_16
; %bb.2:
	mov	x27, #0
Lloh0:
	adrp	x24, _MAX_FORKNUM@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MAX_FORKNUM@GOTPAGEOFF]
Lloh2:
	adrp	x25, _smgrsw@GOTPAGE
Lloh3:
	ldr	x25, [x25, _smgrsw@GOTPAGEOFF]
	mov	w26, w22
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x27, x27, #1
	cmp	x27, x26
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x0, [x20, x27, lsl #3]
	ldp	w28, w8, [x0]
                                        ; kill: def $w28 killed $w28 def $x28
	sxtw	x28, w28
	str	w8, [x21, x27, lsl #2]
	ldr	w8, [x24]
	tbnz	w8, #31, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
	add	x8, x8, x28, lsl #4
	ldr	x8, [x8, #8]
	mov	w1, #0
	blr	x8
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w23, #1
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x20, x27, lsl #3]
	ldr	x8, [x25]
	add	x8, x8, x28, lsl #4
	ldr	x8, [x8, #8]
	mov	x1, x23
	blr	x8
	ldr	w8, [x24]
	add	w9, w23, #1
	cmp	w23, w8
	mov	x23, x9
	b.lt	LBB0_7
	b	LBB0_3
LBB0_8:
	mov	x0, x21
	mov	x1, x22
	bl	_DropRelFileNodesAllBuffers
	mov	x22, x26
	mov	x23, x21
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23], #4
	bl	_CacheInvalidateSmgr
	subs	x22, x22, #1
	b.ne	LBB0_9
; %bb.10:
	mov	x23, #0
	ldr	w8, [x24]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x23, x23, #1
	cmp	x23, x26
	b.eq	LBB0_17
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	tbnz	w8, #31, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x20, x23, lsl #3]
	ldrsw	x27, [x8]
	mov	w22, #-1
LBB0_14:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w22, w22, #1
	ldr	x8, [x25]
	lsl	x9, x27, #4
	ldr	x8, [x8, x9]
	ldr	w0, [x21, x23, lsl #2]
	mov	x1, x22
	mov	x2, x19
	blr	x8
	ldr	w8, [x24]
	cmp	w22, w8
	b.lt	LBB0_14
	b	LBB0_11
LBB0_15:
	.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
LBB0_16:
	.cfi_restore_state
	mov	x0, x21
	mov	x1, x22
	bl	_DropRelFileNodesAllBuffers
LBB0_17:
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_FORKNUM,4,2                ; @MAX_FORKNUM
	.comm	_smgrsw,8,3                     ; @smgrsw
.subsections_via_symbols
