	.file	"extr_typcache.c_SharedRecordTypmodRegistryInit.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"cannot create duplicate shared record typmod"
	.text
	.p2align 4
	.globl	SharedRecordTypmodRegistryInit
	.type	SharedRecordTypmodRegistryInit, @function
SharedRecordTypmodRegistryInit:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	QWORD PTR 24[rsp], rsi
	mov	QWORD PTR 16[rsp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	call	IsParallelWorker@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	Assert@PLT
	mov	rax, QWORD PTR CurrentSession[rip]
	xor	edi, edi
	cmp	QWORD PTR [rax], 0
	sete	dil
	call	Assert@PLT
	mov	rax, QWORD PTR CurrentSession[rip]
	xor	edi, edi
	cmp	QWORD PTR 16[rax], 0
	sete	dil
	call	Assert@PLT
	mov	rax, QWORD PTR CurrentSession[rip]
	xor	edi, edi
	cmp	QWORD PTR 8[rax], 0
	sete	dil
	call	Assert@PLT
	mov	edi, DWORD PTR TopMemoryContext[rip]
	call	MemoryContextSwitchTo@PLT
	mov	rdx, r14
	lea	rsi, srtr_record_table_params[rip]
	mov	rdi, r14
	mov	r13d, eax
	call	dshash_create@PLT
	xor	edx, edx
	lea	rsi, srtr_typmod_table_params[rip]
	mov	rdi, r14
	mov	r12, rax
	call	dshash_create@PLT
	mov	edi, r13d
	mov	rbp, rax
	call	MemoryContextSwitchTo@PLT
	mov	rdi, r12
	call	dshash_get_hash_table_handle@PLT
	mov	rdi, rbp
	mov	QWORD PTR 16[rbx], rax
	call	dshash_get_hash_table_handle@PLT
	mov	rsi, QWORD PTR NextRecordTypmod[rip]
	mov	rdi, rbx
	mov	QWORD PTR 8[rbx], rax
	call	pg_atomic_init_u32@PLT
	cmp	QWORD PTR NextRecordTypmod[rip], 0
	je	.L2
	xor	r15d, r15d
	lea	r13, 44[rsp]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR [rsp]
	movdqu	xmm0, XMMWORD PTR [rbx]
	mov	rsi, r9
	mov	rdi, rbp
	mov	QWORD PTR 16[r9], rax
	movups	XMMWORD PTR 24[r9], xmm0
	call	dshash_release_lock@PLT
	lea	rsi, 48[rsp]
	mov	rdx, r13
	mov	rdi, r12
	mov	DWORD PTR 48[rsp], 0
	mov	QWORD PTR 56[rsp], rbx
	call	dshash_find_or_insert@PLT
	mov	rsi, rax
	mov	eax, DWORD PTR 44[rsp]
	test	eax, eax
	jne	.L6
	mov	rax, QWORD PTR [rsp]
	mov	DWORD PTR [rsi], 1
	mov	QWORD PTR 8[rsi], rax
.L6:
	mov	rdi, r12
	call	dshash_release_lock@PLT
.L4:
	add	r15, 1
	cmp	QWORD PTR NextRecordTypmod[rip], r15
	jbe	.L2
.L7:
	mov	rax, QWORD PTR RecordCacheArray[rip]
	mov	rbx, QWORD PTR [rax+r15*8]
	test	rbx, rbx
	je	.L4
	mov	rdx, r15
	mov	rsi, rbx
	mov	rdi, r14
	call	share_tupledesc@PLT
	mov	rdx, r13
	mov	rsi, rbx
	mov	rdi, rbp
	mov	QWORD PTR [rsp], rax
	call	dshash_find_or_insert@PLT
	mov	edx, DWORD PTR 44[rsp]
	mov	r9, rax
	test	edx, edx
	je	.L5
	mov	edi, DWORD PTR ERROR[rip]
	lea	rsi, .LC0[rip]
	mov	QWORD PTR 8[rsp], rax
	call	elog@PLT
	mov	r9, QWORD PTR 8[rsp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR CurrentSession[rip]
	mov	rcx, QWORD PTR 16[rsp]
	xor	edx, edx
	mov	esi, DWORD PTR shared_record_typmod_registry_detach[rip]
	mov	rdi, QWORD PTR 24[rsp]
	mov	QWORD PTR 16[rax], r12
	mov	QWORD PTR 8[rax], rbp
	mov	QWORD PTR [rax], rcx
	call	on_dsm_detach@PLT
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	SharedRecordTypmodRegistryInit, .-SharedRecordTypmodRegistryInit
	.comm	srtr_typmod_table_params,4,4
	.comm	srtr_record_table_params,4,4
	.comm	shared_record_typmod_registry_detach,4,4
	.comm	TopMemoryContext,4,4
	.comm	RecordCacheArray,8,8
	.comm	NextRecordTypmod,8,8
	.comm	ERROR,4,4
	.comm	CurrentSession,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_typcache.c_SharedRecordTypmodRegistryInit.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"cannot create duplicate shared record typmod\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	SharedRecordTypmodRegistryInit
	.syntax unified
	.arm
	.fpu softvfp
	.type	SharedRecordTypmodRegistryInit, %function
SharedRecordTypmodRegistryInit:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L19
	sub	sp, sp, #36
	str	r1, [sp, #12]
	str	r0, [sp, #8]
	mov	r8, r2
	mov	r5, r0
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	IsParallelWorker
	clz	r0, r0
	ldr	r4, .L19+4
	lsr	r0, r0, #5
	bl	Assert
	ldr	r3, [r4]
	ldr	r9, .L19+8
	ldr	r0, [r3]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	Assert
	ldr	r3, [r4]
	ldr	r0, [r3, #8]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	Assert
	ldr	r3, [r4]
	ldr	r0, [r3, #4]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	Assert
	ldr	r3, .L19+12
	ldr	r0, [r3]
	bl	MemoryContextSwitchTo
	mov	r2, r8
	mov	r4, r0
	ldr	r1, .L19+16
	mov	r0, r8
	bl	dshash_create
	mov	r2, #0
	ldr	r1, .L19+20
	mov	r7, r0
	mov	r0, r8
	bl	dshash_create
	mov	r6, r0
	mov	r0, r4
	bl	MemoryContextSwitchTo
	mov	r0, r7
	bl	dshash_get_hash_table_handle
	mov	r3, r0
	mov	r0, r6
	str	r3, [r5, #8]
	bl	dshash_get_hash_table_handle
	ldr	r1, [r9]
	str	r0, [r5, #4]
	mov	r0, r5
	bl	pg_atomic_init_u32
	ldr	r3, [r9]
	cmp	r3, #0
	beq	.L2
	mov	fp, #0
	ldr	r10, .L19+24
	b	.L7
.L5:
	add	r2, r3, #12
	ldm	r4, {r0, r1}
	stm	r2, {r0, r1}
	mov	r1, r3
	str	r5, [r3, #8]
	mov	r0, r6
	bl	dshash_release_lock
	mov	r3, #0
	add	r1, sp, #20
	mov	r0, r7
	add	r2, sp, #16
	str	r3, [sp, #20]
	str	r4, [sp, #24]
	bl	dshash_find_or_insert
	ldr	r3, [sp, #16]
	mov	r1, r0
	cmp	r3, #0
	moveq	r3, #1
	stmeq	r0, {r3, r5}
	mov	r0, r7
	bl	dshash_release_lock
.L4:
	ldr	r3, [r9]
	add	fp, fp, #1
	cmp	r3, fp
	bls	.L2
.L7:
	ldr	r3, [r10]
	ldr	r4, [r3, fp, lsl #2]
	cmp	r4, #0
	beq	.L4
	mov	r2, fp
	mov	r1, r4
	mov	r0, r8
	bl	share_tupledesc
	add	r2, sp, #16
	mov	r5, r0
	mov	r1, r4
	mov	r0, r6
	bl	dshash_find_or_insert
	ldr	r2, [sp, #16]
	mov	r3, r0
	cmp	r2, #0
	beq	.L5
	ldr	r3, .L19+28
	str	r0, [sp, #4]
	ldr	r1, .L19+32
	ldr	r0, [r3]
	bl	elog
	ldr	r3, [sp, #4]
	b	.L5
.L2:
	ldr	r3, .L19+4
	ldr	r1, [sp, #8]
	ldr	r3, [r3]
	ldr	r2, .L19+36
	str	r1, [r3]
	stmib	r3, {r6, r7}
	ldr	r1, [r2]
	ldr	r0, [sp, #12]
	mov	r2, #0
	bl	on_dsm_detach
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC1
	.word	CurrentSession
	.word	NextRecordTypmod
	.word	TopMemoryContext
	.word	srtr_record_table_params
	.word	srtr_typmod_table_params
	.word	RecordCacheArray
	.word	ERROR
	.word	.LC0
	.word	shared_record_typmod_registry_detach
	.size	SharedRecordTypmodRegistryInit, .-SharedRecordTypmodRegistryInit
	.comm	srtr_typmod_table_params,4,4
	.comm	srtr_record_table_params,4,4
	.comm	shared_record_typmod_registry_detach,4,4
	.comm	TopMemoryContext,4,4
	.comm	RecordCacheArray,4,4
	.comm	NextRecordTypmod,4,4
	.comm	ERROR,4,4
	.comm	CurrentSession,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
