	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ShmemInitStruct                ## -- Begin function ShmemInitStruct
	.p2align	4, 0x90
_ShmemInitStruct:                       ## @ShmemInitStruct
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_ShmemIndexLock@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	_ShmemIndex@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	testl	%edi, %edi
	je	LBB0_1
## %bb.5:
	movq	_HASH_ENTER_NULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	movq	%r12, %rcx
	callq	_hash_search
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	cmpl	$0, (%r12)
	je	LBB0_11
LBB0_8:
	cmpq	%rbx, (%r13)
	je	LBB0_10
## %bb.9:
	movq	_ShmemIndexLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LWLockRelease
	movq	_ERROR@GOTPCREL(%rip), %rax
	movq	%rbx, %rdx
	movl	(%rax), %ebx
	movq	(%r13), %rcx
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_10:
	movq	8(%r13), %rbx
	jmp	LBB0_14
LBB0_1:
	movq	_ShmemSegHdr@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_Assert
	movq	_IsUnderPostmaster@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	(%r14), %rax
	je	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_Assert
	movq	(%r14), %rbx
	movl	$1, %eax
	jmp	LBB0_4
LBB0_6:
	movq	_ShmemIndexLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LWLockRelease
	movq	_ERROR@GOTPCREL(%rip), %rax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %ebx
	movq	_ERRCODE_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_ereport
	cmpl	$0, (%r12)
	jne	LBB0_8
LBB0_11:
	movq	%rbx, %rdi
	callq	_ShmemAllocNoError
	movq	%rbx, %r12
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	movl	(%r14), %edi
	movq	_HASH_REMOVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	callq	_hash_search
	movq	_ShmemIndexLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LWLockRelease
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.3(%rip), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_13:
	movq	%r12, (%r13)
	movq	%rbx, 8(%r13)
LBB0_14:
	movq	_ShmemIndexLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LWLockRelease
	movq	%rbx, %rdi
	callq	_ShmemAddrIsValid
	movl	%eax, %edi
	callq	_Assert
	movq	%rbx, %rdi
	callq	_CACHELINEALIGN
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	sete	%dil
	callq	_Assert
	jmp	LBB0_15
LBB0_3:
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_Assert
	movq	%rbx, %rdi
	callq	_ShmemAlloc
	movq	%rax, %rbx
	movq	%rax, (%r14)
	xorl	%eax, %eax
LBB0_4:
	movl	%eax, (%r12)
	movl	(%r13), %edi
	callq	_LWLockRelease
LBB0_15:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ShmemIndexLock,4,2             ## @ShmemIndexLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_ShmemIndex,4,2                 ## @ShmemIndex
	.comm	_ShmemSegHdr,8,3                ## @ShmemSegHdr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ShmemIndex"

	.comm	_IsUnderPostmaster,8,3          ## @IsUnderPostmaster
	.comm	_HASH_ENTER_NULL,4,2            ## @HASH_ENTER_NULL
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_OUT_OF_MEMORY,4,2      ## @ERRCODE_OUT_OF_MEMORY
L_.str.1:                               ## @.str.1
	.asciz	"could not create ShmemIndex entry for data structure \"%s\""

L_.str.2:                               ## @.str.2
	.asciz	"ShmemIndex entry size is wrong for data structure \"%s\": expected %zu, actual %zu"

	.comm	_HASH_REMOVE,4,2                ## @HASH_REMOVE
L_.str.3:                               ## @.str.3
	.asciz	"not enough shared memory for data structure \"%s\" (%zu bytes requested)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ShmemInitStruct                ; -- Begin function ShmemInitStruct
	.p2align	2
_ShmemInitStruct:                       ; @ShmemInitStruct
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _ShmemIndexLock@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ShmemIndexLock@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh2:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_LWLockAcquire
Lloh5:
	adrp	x25, _ShmemIndex@GOTPAGE
Lloh6:
	ldr	x25, [x25, _ShmemIndex@GOTPAGEOFF]
	ldr	w0, [x25]
	cbz	w0, LBB0_6
; %bb.1:
Lloh7:
	adrp	x8, _HASH_ENTER_NULL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HASH_ENTER_NULL@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x1, x20
	mov	x3, x21
	bl	_hash_search
	mov	x22, x0
	cbz	x0, LBB0_8
; %bb.2:
	ldr	w8, [x21]
	cbz	w8, LBB0_9
LBB0_3:
	ldr	x8, [x22]
	cmp	x8, x19
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x24]
	bl	_LWLockRelease
Lloh10:
	adrp	x8, _ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w21, [x8]
	ldr	x8, [x22]
	stp	x19, x8, [sp]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_5:
	ldr	x23, [x22, #8]
	b	LBB0_12
LBB0_6:
Lloh15:
	adrp	x8, _ShmemSegHdr@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ShmemSegHdr@GOTPAGEOFF]
Lloh17:
	ldr	x22, [x8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cmp	x0, #0
	cset	w0, eq
	bl	_Assert
Lloh20:
	adrp	x8, _IsUnderPostmaster@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IsUnderPostmaster@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x8]
	ldr	x8, [x22]
	cmp	x8, #0
	cbz	x9, LBB0_13
; %bb.7:
	cset	w0, ne
	bl	_Assert
	ldr	x23, [x22]
	mov	w8, #1
	b	LBB0_14
LBB0_8:
	ldr	w0, [x24]
	bl	_LWLockRelease
Lloh23:
	adrp	x8, _ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w23, [x8]
Lloh26:
	adrp	x8, _ERRCODE_OUT_OF_MEMORY@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ERRCODE_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_errcode
Lloh29:
	adrp	x0, l_.str.1@PAGE
Lloh30:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_errmsg
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
	ldr	w8, [x21]
	cbnz	w8, LBB0_3
LBB0_9:
	mov	x0, x19
	bl	_ShmemAllocNoError
	mov	x23, x0
	cbnz	x0, LBB0_11
; %bb.10:
	ldr	w0, [x25]
Lloh31:
	adrp	x8, _HASH_REMOVE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _HASH_REMOVE@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x1, x20
	mov	x3, #0
	bl	_hash_search
	ldr	w0, [x24]
	bl	_LWLockRelease
Lloh34:
	adrp	x8, _ERROR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh36:
	ldr	w21, [x8]
Lloh37:
	adrp	x8, _ERRCODE_OUT_OF_MEMORY@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ERRCODE_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	bl	_errcode
	str	x19, [sp]
Lloh40:
	adrp	x0, l_.str.3@PAGE
Lloh41:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_11:
	stp	x19, x23, [x22]
LBB0_12:
	ldr	w0, [x24]
	bl	_LWLockRelease
	mov	x0, x23
	bl	_ShmemAddrIsValid
	bl	_Assert
	mov	x0, x23
	bl	_CACHELINEALIGN
	cmp	x23, x0
	cset	w0, eq
	bl	_Assert
	b	LBB0_15
LBB0_13:
	cset	w0, eq
	bl	_Assert
	mov	x0, x19
	bl	_ShmemAlloc
	mov	x23, x0
	mov	w8, #0
	str	x0, [x22]
LBB0_14:
	str	w8, [x21]
	ldr	w0, [x24]
	bl	_LWLockRelease
LBB0_15:
	mov	x0, x23
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_ShmemIndexLock,4,2             ; @ShmemIndexLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_ShmemIndex,4,2                 ; @ShmemIndex
	.comm	_ShmemSegHdr,8,3                ; @ShmemSegHdr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ShmemIndex"

	.comm	_IsUnderPostmaster,8,3          ; @IsUnderPostmaster
	.comm	_HASH_ENTER_NULL,4,2            ; @HASH_ENTER_NULL
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_OUT_OF_MEMORY,4,2      ; @ERRCODE_OUT_OF_MEMORY
l_.str.1:                               ; @.str.1
	.asciz	"could not create ShmemIndex entry for data structure \"%s\""

l_.str.2:                               ; @.str.2
	.asciz	"ShmemIndex entry size is wrong for data structure \"%s\": expected %zu, actual %zu"

	.comm	_HASH_REMOVE,4,2                ; @HASH_REMOVE
l_.str.3:                               ; @.str.3
	.asciz	"not enough shared memory for data structure \"%s\" (%zu bytes requested)"

.subsections_via_symbols
