	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_of_type                  ## -- Begin function check_of_type
	.p2align	4, 0x90
_check_of_type:                         ## @check_of_type
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_GETSTRUCT
	movslq	%eax, %rbx
	movq	(%rbx), %rax
	movq	_TYPTYPE_COMPOSITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movl	12(%rbx), %edi
	callq	_OidIsValid
	movl	%eax, %edi
	callq	_Assert
	movl	12(%rbx), %edi
	movq	_AccessShareLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_relation_open
	movq	(%rax), %rcx
	movq	(%rcx), %r14
	movq	_RELKIND_COMPOSITE_TYPE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r15
	movq	_NoLock@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_relation_close
	cmpq	%r15, %r14
	jne	LBB0_3
## %bb.2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	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	%r14d, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ereport                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPTYPE_COMPOSITE,8,3          ## @TYPTYPE_COMPOSITE
	.comm	_AccessShareLock,4,2            ## @AccessShareLock
	.comm	_RELKIND_COMPOSITE_TYPE,8,3     ## @RELKIND_COMPOSITE_TYPE
	.comm	_NoLock,4,2                     ## @NoLock
	.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 a composite type"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_of_type                  ; -- Begin function check_of_type
	.p2align	2
_check_of_type:                         ; @check_of_type
	.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
	bl	_GETSTRUCT
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x20, w0
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _TYPTYPE_COMPOSITE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TYPTYPE_COMPOSITE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x20, #12]
	bl	_OidIsValid
	bl	_Assert
	ldr	w0, [x20, #12]
Lloh3:
	adrp	x8, _AccessShareLock@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AccessShareLock@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_relation_open
	ldr	x8, [x0]
	ldr	x19, [x8]
Lloh6:
	adrp	x8, _RELKIND_COMPOSITE_TYPE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RELKIND_COMPOSITE_TYPE@GOTPAGEOFF]
Lloh8:
	ldr	x21, [x8]
Lloh9:
	adrp	x8, _NoLock@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NoLock@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_relation_close
	cmp	x19, x21
	b.ne	LBB0_3
; %bb.2:
	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
LBB0_3:
Lloh12:
	adrp	x8, _ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w19, [x8]
Lloh15:
	adrp	x8, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w0, [x20, #8]
	bl	_format_type_be
	mov	x1, x0
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	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
	b	_ereport
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPTYPE_COMPOSITE,8,3          ; @TYPTYPE_COMPOSITE
	.comm	_AccessShareLock,4,2            ; @AccessShareLock
	.comm	_RELKIND_COMPOSITE_TYPE,8,3     ; @RELKIND_COMPOSITE_TYPE
	.comm	_NoLock,4,2                     ; @NoLock
	.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 a composite type"

.subsections_via_symbols
