	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SharedRecordTypmodRegistryInit ## -- Begin function SharedRecordTypmodRegistryInit
	.p2align	4, 0x90
_SharedRecordTypmodRegistryInit:        ## @SharedRecordTypmodRegistryInit
	.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	$56, %rsp
	.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, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_IsParallelWorker
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movq	_CurrentSession@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	callq	_Assert
	movq	(%rbx), %rax
	xorl	%edi, %edi
	cmpq	$0, 16(%rax)
	sete	%dil
	callq	_Assert
	movq	(%rbx), %rax
	xorl	%edi, %edi
	cmpq	$0, 8(%rax)
	sete	%dil
	callq	_Assert
	movq	_TopMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r14d
	movq	_srtr_record_table_params@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	movq	%r12, %rdx
	callq	_dshash_create
	movq	%rax, %rbx
	movq	_srtr_typmod_table_params@GOTPCREL(%rip), %rsi
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_dshash_create
	movq	%rax, %r12
	movl	%r14d, %edi
	callq	_MemoryContextSwitchTo
	movq	%rbx, %rdi
	callq	_dshash_get_hash_table_handle
	movq	%rax, 16(%r15)
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_dshash_get_hash_table_handle
	movq	%rax, 8(%r15)
	movq	_NextRecordTypmod@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_pg_atomic_init_u32
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	xorl	%r14d, %r14d
	leaq	-44(%rbp), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_dshash_release_lock
	movq	_NextRecordTypmod@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	cmpq	%rax, %r14
	jae	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_RecordCacheArray@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r14,8), %r15
	testq	%r15, %r15
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_share_tupledesc
	movq	%rax, %r12
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_dshash_find_or_insert
	movq	%rax, %r13
	cmpl	$0, -44(%rbp)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movups	(%r15), %xmm0
	movups	%xmm0, 24(%r13)
	movq	%r12, 16(%r13)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_dshash_release_lock
	movl	$0, -96(%rbp)
	movq	%r15, -88(%rbp)
	movq	%rbx, %rdi
	leaq	-96(%rbp), %rsi
	leaq	-44(%rbp), %r13
	movq	%r13, %rdx
	callq	_dshash_find_or_insert
	cmpl	$0, -44(%rbp)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, (%rax)
	movq	%r12, 8(%rax)
	jmp	LBB0_7
LBB0_9:
	movq	_CurrentSession@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rbx, 16(%rax)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 8(%rax)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movq	_shared_record_typmod_registry_detach@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_on_dsm_detach
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CurrentSession,8,3             ## @CurrentSession
	.comm	_TopMemoryContext,4,2           ## @TopMemoryContext
	.comm	_srtr_record_table_params,4,2   ## @srtr_record_table_params
	.comm	_srtr_typmod_table_params,4,2   ## @srtr_typmod_table_params
	.comm	_NextRecordTypmod,8,3           ## @NextRecordTypmod
	.comm	_RecordCacheArray,8,3           ## @RecordCacheArray
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot create duplicate shared record typmod"

	.comm	_shared_record_typmod_registry_detach,4,2 ## @shared_record_typmod_registry_detach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SharedRecordTypmodRegistryInit ; -- Begin function SharedRecordTypmodRegistryInit
	.p2align	2
_SharedRecordTypmodRegistryInit:        ; @SharedRecordTypmodRegistryInit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	str	x1, [sp, #16]                   ; 8-byte Folded Spill
	mov	x20, x0
	bl	_IsParallelWorker
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
Lloh0:
	adrp	x19, _CurrentSession@GOTPAGE
Lloh1:
	ldr	x19, [x19, _CurrentSession@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
Lloh2:
	adrp	x8, _TopMemoryContext@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TopMemoryContext@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_MemoryContextSwitchTo
	mov	x24, x0
Lloh5:
	adrp	x1, _srtr_record_table_params@GOTPAGE
Lloh6:
	ldr	x1, [x1, _srtr_record_table_params@GOTPAGEOFF]
	mov	x0, x21
	mov	x2, x21
	bl	_dshash_create
	mov	x22, x0
Lloh7:
	adrp	x1, _srtr_typmod_table_params@GOTPAGE
Lloh8:
	ldr	x1, [x1, _srtr_typmod_table_params@GOTPAGEOFF]
	mov	x0, x21
	mov	x2, #0
	bl	_dshash_create
	mov	x23, x0
	mov	x0, x24
	bl	_MemoryContextSwitchTo
	mov	x0, x22
	bl	_dshash_get_hash_table_handle
	str	x0, [x20, #16]
	mov	x0, x23
	bl	_dshash_get_hash_table_handle
	str	x0, [x20, #8]
Lloh9:
	adrp	x19, _NextRecordTypmod@GOTPAGE
Lloh10:
	ldr	x19, [x19, _NextRecordTypmod@GOTPAGEOFF]
	ldr	x1, [x19]
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	mov	x0, x20
	bl	_pg_atomic_init_u32
	ldr	x8, [x19]
	cbz	x8, LBB0_9
; %bb.1:
	mov	x24, #0
Lloh11:
	adrp	x20, _RecordCacheArray@GOTPAGE
Lloh12:
	ldr	x20, [x20, _RecordCacheArray@GOTPAGEOFF]
Lloh13:
	adrp	x25, l_.str@PAGE
Lloh14:
	add	x25, x25, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_dshash_release_lock
	ldr	x8, [x19]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	cmp	x24, x8
	b.hs	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	ldr	x27, [x9, x24, lsl #3]
	cbz	x27, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x27
	mov	x2, x24
	bl	_share_tupledesc
	mov	x26, x0
	add	x2, sp, #28
	mov	x0, x23
	mov	x1, x27
	bl	_dshash_find_or_insert
	mov	x28, x0
	ldr	w8, [sp, #28]
	cbz	w8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh15:
	adrp	x8, _ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x25
	bl	_elog
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	q0, [x27]
	stur	q0, [x28, #24]
	str	x26, [x28, #16]
	mov	x0, x23
	mov	x1, x28
	bl	_dshash_release_lock
	str	wzr, [sp, #32]
	str	x27, [sp, #40]
	add	x1, sp, #32
	add	x2, sp, #28
	mov	x0, x22
	bl	_dshash_find_or_insert
	mov	x1, x0
	ldr	w8, [sp, #28]
	cbnz	w8, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #1
	str	w8, [x1]
	str	x26, [x1, #8]
	b	LBB0_2
LBB0_9:
Lloh18:
	adrp	x8, _CurrentSession@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CurrentSession@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	stp	x23, x22, [x8, #8]
	ldp	x9, x0, [sp, #8]                ; 16-byte Folded Reload
	str	x9, [x8]
Lloh21:
	adrp	x8, _shared_record_typmod_registry_detach@GOTPAGE
Lloh22:
	ldr	x8, [x8, _shared_record_typmod_registry_detach@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_on_dsm_detach
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_CurrentSession,8,3             ; @CurrentSession
	.comm	_TopMemoryContext,4,2           ; @TopMemoryContext
	.comm	_srtr_record_table_params,4,2   ; @srtr_record_table_params
	.comm	_srtr_typmod_table_params,4,2   ; @srtr_typmod_table_params
	.comm	_NextRecordTypmod,8,3           ; @NextRecordTypmod
	.comm	_RecordCacheArray,8,3           ; @RecordCacheArray
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot create duplicate shared record typmod"

	.comm	_shared_record_typmod_registry_detach,4,2 ; @shared_record_typmod_registry_detach
.subsections_via_symbols
