	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function revalidate_rectypeid
_revalidate_rectypeid:                  ## @revalidate_rectypeid
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	movq	_RECORDOID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_10
## %bb.1:
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_Assert
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%rax), %rax
	cmpq	(%rbx), %rax
	je	LBB0_10
LBB0_3:
	movq	32(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	leaq	8(%rbx), %rdx
	leaq	24(%rbx), %rcx
	xorl	%edi, %edi
	callq	_typenameTypeIdAndMod
LBB0_5:
	movl	8(%rbx), %edi
	movq	_TYPECACHE_TUPDESC@GOTPCREL(%rip), %r15
	movq	_TYPECACHE_DOMAIN_BASE_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r15), %esi
	callq	_lookup_type_cache
	movq	%rax, %r12
	movq	8(%rax), %rax
	movq	_TYPTYPE_DOMAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movl	24(%r12), %edi
	movl	(%r15), %esi
	callq	_lookup_type_cache
	movq	%rax, %r12
LBB0_7:
	cmpq	$0, 16(%r12)
	jne	LBB0_9
## %bb.8:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_WRONG_OBJECT_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	8(%rbx), %edi
	callq	_format_type_be
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_9:
	movq	%r12, 16(%rbx)
	movq	(%r12), %rax
	movq	%rax, (%rbx)
	movl	8(%rbx), %eax
	movl	%eax, (%r14)
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RECORDOID,4,2                  ## @RECORDOID
	.comm	_TYPECACHE_TUPDESC,4,2          ## @TYPECACHE_TUPDESC
	.comm	_TYPECACHE_DOMAIN_BASE_INFO,4,2 ## @TYPECACHE_DOMAIN_BASE_INFO
	.comm	_TYPTYPE_DOMAIN,8,3             ## @TYPTYPE_DOMAIN
	.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"

	.no_dead_strip	_revalidate_rectypeid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function revalidate_rectypeid
_revalidate_rectypeid:                  ; @revalidate_rectypeid
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _RECORDOID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RECORDOID@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	x22, [x0, #8]
	cmp	x22, #0
	cset	w0, ne
	bl	_Assert
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_10
LBB0_3:
	ldr	x1, [x22, #32]
	cbz	x1, LBB0_5
; %bb.4:
	add	x2, x22, #8
	add	x3, x22, #24
	mov	x0, #0
	bl	_typenameTypeIdAndMod
LBB0_5:
Lloh3:
	adrp	x21, _TYPECACHE_TUPDESC@GOTPAGE
Lloh4:
	ldr	x21, [x21, _TYPECACHE_TUPDESC@GOTPAGEOFF]
	ldr	w0, [x22, #8]
	ldr	w8, [x21]
Lloh5:
	adrp	x9, _TYPECACHE_DOMAIN_BASE_INFO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TYPECACHE_DOMAIN_BASE_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_lookup_type_cache
	mov	x20, x0
	ldr	x8, [x0, #8]
Lloh8:
	adrp	x9, _TYPTYPE_DOMAIN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TYPTYPE_DOMAIN@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldr	w0, [x20, #24]
	ldr	w1, [x21]
	bl	_lookup_type_cache
	mov	x20, x0
LBB0_7:
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_9
; %bb.8:
Lloh11:
	adrp	x8, _ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
Lloh14:
	adrp	x8, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w0, [x22, #8]
	bl	_format_type_be
	mov	x1, x0
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_9:
	str	x20, [x22, #16]
	ldr	x8, [x20]
	str	x8, [x22]
	ldr	w8, [x22, #8]
	str	w8, [x19]
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_RECORDOID,4,2                  ; @RECORDOID
	.comm	_TYPECACHE_TUPDESC,4,2          ; @TYPECACHE_TUPDESC
	.comm	_TYPECACHE_DOMAIN_BASE_INFO,4,2 ; @TYPECACHE_DOMAIN_BASE_INFO
	.comm	_TYPTYPE_DOMAIN,8,3             ; @TYPTYPE_DOMAIN
	.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"

	.no_dead_strip	_revalidate_rectypeid
.subsections_via_symbols
