	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smgrclose                      ## -- Begin function smgrclose
	.p2align	4, 0x90
_smgrclose:                             ## @smgrclose
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_MAX_FORKNUM@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	js	LBB0_3
## %bb.1:
	movq	$-1, %rbx
	movq	_smgrsw@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	incq	%rbx
	movq	(%r12), %rax
	movq	(%r14), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	*(%rax,%rcx,8)
	cmpq	(%r15), %rbx
	jl	LBB0_2
LBB0_3:
	movq	16(%r14), %rbx
	testq	%rbx, %rbx
	jne	LBB0_5
## %bb.4:
	leaq	12(%r14), %rdi
	callq	_dlist_delete
LBB0_5:
	movq	_SMgrRelationHash@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %r14
	movq	_HASH_REMOVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_hash_search
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	testq	%rbx, %rbx
	je	LBB0_9
LBB0_8:
	movq	$0, (%rbx)
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
	testq	%rbx, %rbx
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_FORKNUM,8,3                ## @MAX_FORKNUM
	.comm	_smgrsw,8,3                     ## @smgrsw
	.comm	_SMgrRelationHash,4,2           ## @SMgrRelationHash
	.comm	_HASH_REMOVE,4,2                ## @HASH_REMOVE
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SMgrRelation hashtable corrupted"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smgrclose                      ; -- Begin function smgrclose
	.p2align	2
_smgrclose:                             ; @smgrclose
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _MAX_FORKNUM@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MAX_FORKNUM@GOTPAGEOFF]
	ldr	x8, [x21]
	tbnz	x8, #63, LBB0_3
; %bb.1:
	mov	x20, #-1
Lloh2:
	adrp	x22, _smgrsw@GOTPAGE
Lloh3:
	ldr	x22, [x22, _smgrsw@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x20, x20, #1
	ldr	x8, [x22]
	ldr	x9, [x19]
	ldr	x8, [x8, x9, lsl #3]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	ldr	x8, [x21]
	cmp	x20, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	x20, [x19, #16]
	cbnz	x20, LBB0_5
; %bb.4:
	add	x0, x19, #12
	bl	_dlist_delete
LBB0_5:
Lloh4:
	adrp	x8, _SMgrRelationHash@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SMgrRelationHash@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	add	x1, x19, #8
Lloh7:
	adrp	x8, _HASH_REMOVE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HASH_REMOVE@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x3, #0
	bl	_hash_search
	cbz	x0, LBB0_9
; %bb.6:
	cbz	x20, LBB0_8
LBB0_7:
	str	xzr, [x20]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh10:
	adrp	x8, _ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
	cbnz	x20, LBB0_7
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_FORKNUM,8,3                ; @MAX_FORKNUM
	.comm	_smgrsw,8,3                     ; @smgrsw
	.comm	_SMgrRelationHash,4,2           ; @SMgrRelationHash
	.comm	_HASH_REMOVE,4,2                ; @HASH_REMOVE
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SMgrRelation hashtable corrupted"

.subsections_via_symbols
