	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smgrdounlink                   ## -- Begin function smgrdounlink
	.p2align	4, 0x90
_smgrdounlink:                          ## @smgrdounlink
	.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	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	4(%rdi), %eax
	movl	%eax, -44(%rbp)
	movslq	(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_MAX_FORKNUM@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	js	LBB0_3
## %bb.1:
	movq	%rdi, %r15
	movq	$-1, %rbx
	movq	_smgrsw@GOTPCREL(%rip), %r14
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	shlq	$4, %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	incq	%rbx
	movq	(%r14), %rax
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	*8(%rax,%r12)
	cmpq	(%r13), %rbx
	jl	LBB0_2
LBB0_3:
	leaq	-44(%rbp), %rdi
	movl	$1, %esi
	callq	_DropRelFileNodesAllBuffers
	movl	-44(%rbp), %edi
	callq	_CacheInvalidateSmgr
	movq	_smgrsw@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	shlq	$4, %rbx
	movl	-44(%rbp), %edi
	movq	_InvalidForkNumber@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	*(%rax,%rbx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_FORKNUM,8,3                ## @MAX_FORKNUM
	.comm	_smgrsw,8,3                     ## @smgrsw
	.comm	_InvalidForkNumber,4,2          ## @InvalidForkNumber
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smgrdounlink                   ; -- Begin function smgrdounlink
	.p2align	2
_smgrdounlink:                          ; @smgrdounlink
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	ldp	w22, w8, [x0]
                                        ; kill: def $w22 killed $w22 def $x22
	sxtw	x22, w22
	str	w8, [sp, #12]
Lloh0:
	adrp	x24, _MAX_FORKNUM@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MAX_FORKNUM@GOTPAGEOFF]
	ldr	x8, [x24]
Lloh2:
	adrp	x23, _smgrsw@GOTPAGE
Lloh3:
	ldr	x23, [x23, _smgrsw@GOTPAGEOFF]
	tbnz	x8, #63, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x21, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x21, x21, #1
	ldr	x8, [x23]
	add	x8, x8, x22, lsl #4
	ldr	x8, [x8, #8]
	mov	x0, x20
	mov	x1, x21
	blr	x8
	ldr	x8, [x24]
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_3:
	add	x0, sp, #12
	mov	w1, #1
	bl	_DropRelFileNodesAllBuffers
	ldr	w0, [sp, #12]
	bl	_CacheInvalidateSmgr
	ldr	x8, [x23]
	lsl	x9, x22, #4
	ldr	x8, [x8, x9]
	ldr	w0, [sp, #12]
Lloh4:
	adrp	x9, _InvalidForkNumber@GOTPAGE
Lloh5:
	ldr	x9, [x9, _InvalidForkNumber@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x9]
	mov	x2, x19
	blr	x8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_FORKNUM,8,3                ; @MAX_FORKNUM
	.comm	_smgrsw,8,3                     ; @smgrsw
	.comm	_InvalidForkNumber,4,2          ; @InvalidForkNumber
.subsections_via_symbols
