	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lookup_rowtype_tupdesc_internal
_lookup_rowtype_tupdesc_internal:       ## @lookup_rowtype_tupdesc_internal
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, -40(%rbp)
	movq	_RECORDOID@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_1
## %bb.4:
	movq	_RecordCacheArrayLen@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jbe	LBB0_6
## %bb.5:
	movq	_RecordCacheArray@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rsi,8), %r12
	testq	%r12, %r12
	jne	LBB0_12
LBB0_6:
	movq	_CurrentSession@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_9
## %bb.7:
	movl	(%rax), %edi
	leaq	-40(%rbp), %rsi
	xorl	%edx, %edx
	callq	_dshash_find
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rax, %r14
	movq	(%r12), %rax
	movl	4(%rax), %edi
	movl	(%r14), %esi
	callq	_dsa_get_address
	movq	%rax, %rbx
	movq	-40(%rbp), %rax
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	sete	%dil
	callq	_Assert
	movq	-40(%rbp), %rdi
	callq	_ensure_record_cache_typmod_slot_exists
	movq	_RecordCacheArray@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	-40(%rbp), %rcx
	movq	%rbx, (%rax,%rcx,8)
	xorl	%edi, %edi
	cmpl	$-1, 8(%rbx)
	sete	%dil
	callq	_Assert
	movq	_tupledesc_id_counter@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	incq	%rcx
	movq	%rcx, (%rax)
	movq	_RecordIdentifierArray@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-40(%rbp), %rdx
	movq	%rcx, (%rax,%rdx,8)
	movq	(%r12), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_dshash_release_lock
	movq	(%r15), %rax
	movq	-40(%rbp), %rcx
	movq	(%rax,%rcx,8), %r12
	jmp	LBB0_12
LBB0_1:
	movq	%rdi, %rbx
	movq	_TYPECACHE_TUPDESC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_lookup_type_cache
	movq	(%rax), %r12
	testl	%r15d, %r15d
	jne	LBB0_12
## %bb.2:
	testq	%r12, %r12
	jne	LBB0_12
## %bb.3:
	movq	%rax, %r14
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_WRONG_OBJECT_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	%rbx, %rdi
	callq	_format_type_be
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	(%r14), %r12
	jmp	LBB0_12
LBB0_9:
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.10:
	xorl	%r12d, %r12d
	jmp	LBB0_12
LBB0_11:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_WRONG_OBJECT_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_12:
	movq	%r12, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RECORDOID,8,3                  ## @RECORDOID
	.comm	_TYPECACHE_TUPDESC,4,2          ## @TYPECACHE_TUPDESC
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_WRONG_OBJECT_TYPE,4,2  ## @ERRCODE_WRONG_OBJECT_TYPE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"type %s is not composite"

	.comm	_RecordCacheArrayLen,8,3        ## @RecordCacheArrayLen
	.comm	_RecordCacheArray,8,3           ## @RecordCacheArray
	.comm	_CurrentSession,8,3             ## @CurrentSession
	.comm	_tupledesc_id_counter,8,3       ## @tupledesc_id_counter
	.comm	_RecordIdentifierArray,8,3      ## @RecordIdentifierArray
L_.str.1:                               ## @.str.1
	.asciz	"record type has not been registered"

	.no_dead_strip	_lookup_rowtype_tupdesc_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lookup_rowtype_tupdesc_internal
_lookup_rowtype_tupdesc_internal:       ; @lookup_rowtype_tupdesc_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	str	x1, [sp, #8]
Lloh0:
	adrp	x8, _RECORDOID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RECORDOID@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _RecordCacheArrayLen@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RecordCacheArrayLen@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ls	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _RecordCacheArray@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RecordCacheArray@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x0, [x8, x1, lsl #3]
	cbnz	x0, LBB0_12
LBB0_3:
Lloh9:
	adrp	x21, _CurrentSession@GOTPAGE
Lloh10:
	ldr	x21, [x21, _CurrentSession@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_9
; %bb.4:
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	w2, #0
	bl	_dshash_find
	cbz	x0, LBB0_9
; %bb.5:
	mov	x20, x0
	ldr	x8, [x21]
	ldr	w0, [x8, #4]
	ldr	w1, [x20]
	bl	_dsa_get_address
	mov	x19, x0
	ldr	x8, [sp, #8]
	ldr	x9, [x0]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldr	x0, [sp, #8]
	bl	_ensure_record_cache_typmod_slot_exists
Lloh11:
	adrp	x22, _RecordCacheArray@GOTPAGE
Lloh12:
	ldr	x22, [x22, _RecordCacheArray@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x9, [sp, #8]
	str	x19, [x8, x9, lsl #3]
	ldr	w8, [x19, #8]
	cmn	w8, #1
	cset	w0, eq
	bl	_Assert
Lloh13:
	adrp	x8, _tupledesc_id_counter@GOTPAGE
Lloh14:
	ldr	x8, [x8, _tupledesc_id_counter@GOTPAGEOFF]
	ldr	x9, [x8]
	add	x9, x9, #1
	str	x9, [x8]
Lloh15:
	adrp	x8, _RecordIdentifierArray@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RecordIdentifierArray@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	x10, [sp, #8]
	str	x9, [x8, x10, lsl #3]
	ldr	x8, [x21]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_dshash_release_lock
	ldr	x8, [x22]
	ldr	x9, [sp, #8]
	ldr	x0, [x8, x9, lsl #3]
	b	LBB0_12
LBB0_6:
	mov	x21, x0
Lloh18:
	adrp	x8, _TYPECACHE_TUPDESC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TYPECACHE_TUPDESC@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_lookup_type_cache
	mov	x20, x0
	ldr	x0, [x0]
	cbnz	w19, LBB0_12
; %bb.7:
	cbnz	x0, LBB0_12
; %bb.8:
Lloh21:
	adrp	x8, _ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w19, [x8]
Lloh24:
	adrp	x8, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x21
	bl	_format_type_be
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
	ldr	x0, [x20]
	b	LBB0_12
LBB0_9:
	cbnz	w19, LBB0_11
; %bb.10:
Lloh29:
	adrp	x8, _ERROR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh31:
	ldr	w19, [x8]
Lloh32:
	adrp	x8, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_errcode
Lloh35:
	adrp	x0, l_.str.1@PAGE
Lloh36:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
LBB0_11:
	mov	x0, #0
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_RECORDOID,8,3                  ; @RECORDOID
	.comm	_TYPECACHE_TUPDESC,4,2          ; @TYPECACHE_TUPDESC
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_WRONG_OBJECT_TYPE,4,2  ; @ERRCODE_WRONG_OBJECT_TYPE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"type %s is not composite"

	.comm	_RecordCacheArrayLen,8,3        ; @RecordCacheArrayLen
	.comm	_RecordCacheArray,8,3           ; @RecordCacheArray
	.comm	_CurrentSession,8,3             ; @CurrentSession
	.comm	_tupledesc_id_counter,8,3       ; @tupledesc_id_counter
	.comm	_RecordIdentifierArray,8,3      ; @RecordIdentifierArray
l_.str.1:                               ; @.str.1
	.asciz	"record type has not been registered"

	.no_dead_strip	_lookup_rowtype_tupdesc_internal
.subsections_via_symbols
