	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sts_initialize                 ## -- Begin function sts_initialize
	.p2align	4, 0x90
_sts_initialize:                        ## @sts_initialize
	.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
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r15d
	movq	%rcx, %r13
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	16(%rbp), %rbx
	xorl	%edi, %edi
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	cmpl	%esi, %edx
	setl	%dil
	callq	_Assert
	movl	%r12d, (%r14)
	movq	%r13, 8(%r14)
	movl	%r15d, 16(%r14)
	movq	%rbx, %rdi
	callq	_strlen
	cmpl	$4, %eax
	jb	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_2:
	movl	32(%r14), %edi
	movq	%rbx, %rsi
	callq	_strcpy
	addq	$4, %r13
	movq	_STS_CHUNK_DATA_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jb	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
LBB0_4:
	testl	%r12d, %r12d
	jle	LBB0_7
## %bb.5:
	movl	%r12d, %ecx
	movq	24(%r14), %rax
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,2), %r15
	xorl	%ebx, %ebx
	movq	_LWTRANCHE_SHARED_TUPLESTORE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rax,%rbx), %rdi
	addq	$16, %rdi
	movl	(%r12), %esi
	callq	_LWLockInitialize
	movq	24(%r14), %rax
	movq	$0, 8(%rax,%rbx)
	movl	$0, (%rax,%rbx)
	addq	$24, %rbx
	cmpq	%rbx, %r15
	jne	LBB0_6
LBB0_7:
	movl	$24, %edi
	callq	_palloc0
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movq	%r14, 16(%rax)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 8(%rax)
	movq	_CurrentMemoryContext@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SharedTuplestore name too long"

	.comm	_STS_CHUNK_DATA_SIZE,8,3        ## @STS_CHUNK_DATA_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"meta-data too long"

	.comm	_LWTRANCHE_SHARED_TUPLESTORE,4,2 ## @LWTRANCHE_SHARED_TUPLESTORE
	.comm	_CurrentMemoryContext,4,2       ## @CurrentMemoryContext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sts_initialize                 ; -- Begin function sts_initialize
	.p2align	2
_sts_initialize:                        ; @sts_initialize
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x6
	mov	x19, x5
	mov	x25, x4
	mov	x23, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	cmp	w2, w1
	cset	w0, lt
	bl	_Assert
	str	w22, [x21]
	str	x23, [x21, #8]
	str	w25, [x21, #16]
	mov	x0, x24
	bl	_strlen
Lloh0:
	adrp	x25, _ERROR@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ERROR@GOTPAGEOFF]
	cmp	w0, #4
	b.lo	LBB0_2
; %bb.1:
	ldr	w0, [x25]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_2:
	ldr	w0, [x21, #32]
	mov	x1, x24
	bl	_strcpy
	add	x8, x23, #4
Lloh4:
	adrp	x9, _STS_CHUNK_DATA_SIZE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _STS_CHUNK_DATA_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lo	LBB0_4
; %bb.3:
	ldr	w0, [x25]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
LBB0_4:
	cmp	w22, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x23, #0
	ldr	x8, [x21, #24]
	mov	w9, #24
	umull	x22, w22, w9
Lloh9:
	adrp	x24, _LWTRANCHE_SHARED_TUPLESTORE@GOTPAGE
Lloh10:
	ldr	x24, [x24, _LWTRANCHE_SHARED_TUPLESTORE@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x23
	add	x0, x8, #16
	ldr	w1, [x24]
	bl	_LWLockInitialize
	ldr	x8, [x21, #24]
	add	x9, x8, x23
	str	xzr, [x9, #8]
	str	wzr, [x9]
	add	x23, x23, #24
	cmp	x22, x23
	b.ne	LBB0_6
LBB0_7:
	mov	w0, #24
	bl	_palloc0
	str	w20, [x0]
	stp	x19, x21, [x0, #8]
Lloh11:
	adrp	x8, _CurrentMemoryContext@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CurrentMemoryContext@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x0, #4]
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SharedTuplestore name too long"

	.comm	_STS_CHUNK_DATA_SIZE,8,3        ; @STS_CHUNK_DATA_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"meta-data too long"

	.comm	_LWTRANCHE_SHARED_TUPLESTORE,4,2 ; @LWTRANCHE_SHARED_TUPLESTORE
	.comm	_CurrentMemoryContext,4,2       ; @CurrentMemoryContext
.subsections_via_symbols
