	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_assign_record_type_typmod      ## -- Begin function assign_record_type_typmod
	.p2align	4, 0x90
_assign_record_type_typmod:             ## @assign_record_type_typmod
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -32(%rbp)
	movq	(%rdi), %rax
	movq	_RECORDOID@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movq	_RecordCacheHash@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_3
## %bb.1:
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_MemSet
	movabsq	$34359738376, %rax              ## imm = 0x800000008
	movq	%rax, -48(%rbp)
	movq	_record_type_typmod_hash@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	_HASH_ELEM@GOTPCREL(%rip), %rax
	movq	_HASH_FUNCTION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_record_type_typmod_compare@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_HASH_COMPARE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	leaq	L_.str(%rip), %rdi
	movl	$64, %esi
	movq	%r14, %rdx
	callq	_hash_create
	movq	%rax, %rdi
	movq	%rax, (%rbx)
	movq	_CacheMemoryContext@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_CreateCacheMemoryContext
	movq	(%rbx), %rdi
LBB0_3:
	movq	_HASH_ENTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rsi
	leaq	-48(%rbp), %rcx
	callq	_hash_search
	movq	%rax, %r15
	cmpl	$0, -48(%rbp)
	je	LBB0_6
## %bb.4:
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	8(%rax), %rax
	movq	-32(%rbp), %rcx
	movq	%rax, 8(%rcx)
	jmp	LBB0_10
LBB0_6:
	movq	$0, (%r15)
	movq	_CacheMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r14d
	movq	-32(%rbp), %rdi
	callq	_find_or_make_matching_shared_tupledesc
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, %rbx
	movq	8(%rax), %rdi
	jmp	LBB0_9
LBB0_8:
	movq	-32(%rbp), %rdi
	callq	_CreateTupleDescCopy
	movq	%rax, %rbx
	movl	$1, 16(%rax)
	movq	_NextRecordTypmod@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	leal	1(%rdi), %ecx
	movl	%ecx, (%rax)
	movq	%rdi, 8(%rbx)
LBB0_9:
	callq	_ensure_record_cache_typmod_slot_exists
	movq	_RecordCacheArray@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movq	%rbx, (%rax,%rcx,8)
	movq	%rbx, (%r15)
	movq	_tupledesc_id_counter@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	incq	%rdx
	movq	%rdx, (%rax)
	movq	_RecordIdentifierArray@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rdx, (%rax,%rcx,8)
	movq	8(%rbx), %rax
	movq	-32(%rbp), %rcx
	movq	%rax, 8(%rcx)
	movl	%r14d, %edi
	callq	_MemoryContextSwitchTo
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RECORDOID,8,3                  ## @RECORDOID
	.comm	_RecordCacheHash,8,3            ## @RecordCacheHash
	.comm	_record_type_typmod_hash,4,2    ## @record_type_typmod_hash
	.comm	_record_type_typmod_compare,4,2 ## @record_type_typmod_compare
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Record information cache"

	.comm	_HASH_ELEM,4,2                  ## @HASH_ELEM
	.comm	_HASH_FUNCTION,4,2              ## @HASH_FUNCTION
	.comm	_HASH_COMPARE,4,2               ## @HASH_COMPARE
	.comm	_CacheMemoryContext,4,2         ## @CacheMemoryContext
	.comm	_HASH_ENTER,4,2                 ## @HASH_ENTER
	.comm	_NextRecordTypmod,4,2           ## @NextRecordTypmod
	.comm	_RecordCacheArray,8,3           ## @RecordCacheArray
	.comm	_tupledesc_id_counter,8,3       ## @tupledesc_id_counter
	.comm	_RecordIdentifierArray,8,3      ## @RecordIdentifierArray
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_assign_record_type_typmod      ; -- Begin function assign_record_type_typmod
	.p2align	2
_assign_record_type_typmod:             ; @assign_record_type_typmod
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	str	x0, [sp, #24]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _RECORDOID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RECORDOID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
Lloh3:
	adrp	x19, _RecordCacheHash@GOTPAGE
Lloh4:
	ldr	x19, [x19, _RecordCacheHash@GOTPAGEOFF]
	ldr	x0, [x19]
	cbnz	x0, LBB0_3
; %bb.1:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #16
	bl	_MemSet
	movi.2s	v0, #8
Lloh5:
	adrp	x8, _record_type_typmod_hash@GOTPAGE
Lloh6:
	ldr	x8, [x8, _record_type_typmod_hash@GOTPAGEOFF]
	str	d0, [sp, #8]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _record_type_typmod_compare@GOTPAGE
Lloh9:
	ldr	x9, [x9, _record_type_typmod_compare@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #16]
Lloh11:
	adrp	x8, _HASH_ELEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HASH_ELEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _HASH_FUNCTION@GOTPAGE
Lloh15:
	ldr	x9, [x9, _HASH_FUNCTION@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _HASH_COMPARE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _HASH_COMPARE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w3, w8, w9
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	w1, #64
	bl	_hash_create
	str	x0, [x19]
Lloh22:
	adrp	x8, _CacheMemoryContext@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CacheMemoryContext@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cbnz	w8, LBB0_3
; %bb.2:
	bl	_CreateCacheMemoryContext
	ldr	x0, [x19]
LBB0_3:
Lloh25:
	adrp	x8, _HASH_ENTER@GOTPAGE
Lloh26:
	ldr	x8, [x8, _HASH_ENTER@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	add	x1, sp, #24
	add	x3, sp, #8
	bl	_hash_search
	mov	x19, x0
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_6
; %bb.4:
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x8, [x8, #8]
	ldr	x9, [sp, #24]
	str	x8, [x9, #8]
	b	LBB0_10
LBB0_6:
	str	xzr, [x19]
Lloh28:
	adrp	x8, _CacheMemoryContext@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CacheMemoryContext@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_MemoryContextSwitchTo
	mov	x20, x0
	ldr	x0, [sp, #24]
	bl	_find_or_make_matching_shared_tupledesc
	cbz	x0, LBB0_8
; %bb.7:
	mov	x21, x0
	ldr	x0, [x0, #8]
	b	LBB0_9
LBB0_8:
	ldr	x0, [sp, #24]
	bl	_CreateTupleDescCopy
	mov	x21, x0
	mov	w8, #1
	str	w8, [x0, #16]
Lloh31:
	adrp	x8, _NextRecordTypmod@GOTPAGE
Lloh32:
	ldr	x8, [x8, _NextRecordTypmod@GOTPAGEOFF]
	ldrsw	x0, [x8]
	add	w9, w0, #1
	str	w9, [x8]
	str	x0, [x21, #8]
LBB0_9:
	bl	_ensure_record_cache_typmod_slot_exists
Lloh33:
	adrp	x8, _RecordCacheArray@GOTPAGE
Lloh34:
	ldr	x8, [x8, _RecordCacheArray@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	ldr	x9, [x21, #8]
	lsl	x9, x9, #3
	str	x21, [x8, x9]
Lloh36:
	adrp	x8, _tupledesc_id_counter@GOTPAGE
Lloh37:
	ldr	x8, [x8, _tupledesc_id_counter@GOTPAGEOFF]
	str	x21, [x19]
	ldr	x10, [x8]
	add	x10, x10, #1
	str	x10, [x8]
Lloh38:
	adrp	x8, _RecordIdentifierArray@GOTPAGE
Lloh39:
	ldr	x8, [x8, _RecordIdentifierArray@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	str	x10, [x8, x9]
	ldr	x8, [x21, #8]
	ldr	x9, [sp, #24]
	str	x8, [x9, #8]
	mov	x0, x20
	bl	_MemoryContextSwitchTo
LBB0_10:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_RECORDOID,8,3                  ; @RECORDOID
	.comm	_RecordCacheHash,8,3            ; @RecordCacheHash
	.comm	_record_type_typmod_hash,4,2    ; @record_type_typmod_hash
	.comm	_record_type_typmod_compare,4,2 ; @record_type_typmod_compare
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Record information cache"

	.comm	_HASH_ELEM,4,2                  ; @HASH_ELEM
	.comm	_HASH_FUNCTION,4,2              ; @HASH_FUNCTION
	.comm	_HASH_COMPARE,4,2               ; @HASH_COMPARE
	.comm	_CacheMemoryContext,4,2         ; @CacheMemoryContext
	.comm	_HASH_ENTER,4,2                 ; @HASH_ENTER
	.comm	_NextRecordTypmod,4,2           ; @NextRecordTypmod
	.comm	_RecordCacheArray,8,3           ; @RecordCacheArray
	.comm	_tupledesc_id_counter,8,3       ; @tupledesc_id_counter
	.comm	_RecordIdentifierArray,8,3      ; @RecordIdentifierArray
.subsections_via_symbols
