	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SharedFileSetInit              ## -- Begin function SharedFileSetInit
	.p2align	4, 0x90
_SharedFileSetInit:                     ## @SharedFileSetInit
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	addq	$28, %rdi
	callq	_SpinLockInit
	movl	$1, (%rbx)
	movq	_MyProcPid@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	_SharedFileSetInit.counter(%rip), %eax
	movl	%eax, 4(%rbx)
	incl	%eax
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%edx, _SharedFileSetInit.counter(%rip)
	xorl	%eax, %eax
	callq	_PrepareTempTablespaces
	movq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_lengthof
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_GetTempTablespaces
	movl	%eax, 8(%rbx)
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_DEFAULTTABLESPACE_OID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	$1, 8(%rbx)
LBB0_2:
	movq	_SharedFileSetOnDetach@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_PointerGetDatum
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_on_dsm_detach                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_SharedFileSetInit.counter,4,2 ## @SharedFileSetInit.counter
	.comm	_MyProcPid,4,2                  ## @MyProcPid
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_DEFAULTTABLESPACE_OID,4,2      ## @DEFAULTTABLESPACE_OID
	.comm	_SharedFileSetOnDetach,4,2      ## @SharedFileSetOnDetach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SharedFileSetInit              ; -- Begin function SharedFileSetInit
	.p2align	2
_SharedFileSetInit:                     ; @SharedFileSetInit
	.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, x1
	mov	x20, x0
	add	x0, x0, #28
	bl	_SpinLockInit
	mov	w22, #1
	str	w22, [x20]
Lloh0:
	adrp	x8, _MyProcPid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MyProcPid@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	adrp	x8, _SharedFileSetInit.counter@PAGE
	ldr	w9, [x8, _SharedFileSetInit.counter@PAGEOFF]
	str	w9, [x20, #4]
	add	w9, w9, #1
Lloh3:
	adrp	x10, _INT_MAX@GOTPAGE
Lloh4:
	ldr	x10, [x10, _INT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	sdiv	w11, w9, w10
	msub	w9, w11, w10, w9
	str	w9, [x8, _SharedFileSetInit.counter@PAGEOFF]
	bl	_PrepareTempTablespaces
	ldr	x21, [x20, #16]
	mov	x0, x21
	bl	_lengthof
	mov	x1, x0
	mov	x0, x21
	bl	_GetTempTablespaces
	str	w0, [x20, #8]
	cbnz	w0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _DEFAULTTABLESPACE_OID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DEFAULTTABLESPACE_OID@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [x20, #16]
	str	w8, [x9]
	str	w22, [x20, #8]
LBB0_2:
Lloh9:
	adrp	x8, _SharedFileSetOnDetach@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SharedFileSetOnDetach@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_PointerGetDatum
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	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
	b	_on_dsm_detach
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_SharedFileSetInit.counter,4,2 ; @SharedFileSetInit.counter
	.comm	_MyProcPid,4,2                  ; @MyProcPid
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_DEFAULTTABLESPACE_OID,4,2      ; @DEFAULTTABLESPACE_OID
	.comm	_SharedFileSetOnDetach,4,2      ; @SharedFileSetOnDetach
.subsections_via_symbols
