	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_datatype
_build_datatype:                        ## @build_datatype
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r12d
	movl	%esi, %r15d
	callq	_GETSTRUCT
	movslq	%eax, %rbx
	cmpl	$0, 40(%rbx)
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_ERRCODE_UNDEFINED_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	36(%rbx), %edi
	callq	_NameStr
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movl	$72, %edi
	callq	_palloc
	movq	%rax, %r13
	movl	36(%rbx), %edi
	callq	_NameStr
	movl	%eax, %edi
	callq	_pstrdup
	movl	%eax, 68(%r13)
	movq	(%rbx), %rax
	movq	%rax, (%r13)
	movl	8(%rbx), %edx
	leal	-128(%rdx), %ecx
	cmpl	$5, %ecx
	ja	LBB0_5
## %bb.3:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_4:
	movq	_PLPGSQL_TTYPE_SCALAR@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_elog
	jmp	LBB0_11
LBB0_6:
	movq	_RECORDOID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.7:
	movq	_PLPGSQL_TTYPE_PSEUDO@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movl	20(%rbx), %edi
	callq	_type_is_rowtype
	testl	%eax, %eax
	je	LBB0_4
LBB0_9:
	movq	_PLPGSQL_TTYPE_REC@GOTPCREL(%rip), %rax
LBB0_10:
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
LBB0_11:
	movl	12(%rbx), %eax
	movl	%eax, 16(%r13)
	movl	32(%rbx), %eax
	movl	%eax, 64(%r13)
	movl	8(%rbx), %eax
	movl	%eax, 20(%r13)
	movl	28(%rbx), %eax
	movl	%eax, 60(%r13)
	movl	%r12d, %edi
	callq	_OidIsValid
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movl	60(%r13), %edi
	callq	_OidIsValid
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movl	%r12d, 60(%r13)
LBB0_14:
	movl	8(%rbx), %eax
	cmpl	$131, %eax
	je	LBB0_18
## %bb.15:
	cmpl	$133, %eax
	jne	LBB0_27
## %bb.16:
	cmpl	$-1, 12(%rbx)
	jne	LBB0_27
## %bb.21:
	movl	24(%rbx), %edi
	callq	_OidIsValid
	testq	%rax, %rax
	je	LBB0_27
## %bb.22:
	cmpb	$112, 16(%rbx)
	jmp	LBB0_26
LBB0_18:
	cmpl	$-1, 12(%rbx)
	jne	LBB0_27
## %bb.23:
	cmpb	$112, 16(%rbx)
	jne	LBB0_25
LBB0_27:
	xorl	%eax, %eax
LBB0_28:
	movzbl	%al, %eax
	movl	%eax, 24(%r13)
	movl	%r15d, 56(%r13)
	movq	8(%r13), %rax
	movq	_PLPGSQL_TTYPE_REC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_30
## %bb.29:
	movq	(%r13), %rdi
	movq	_RECORDOID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_31
LBB0_30:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%r13)
	movq	$0, 48(%r13)
	jmp	LBB0_36
LBB0_31:
	movq	_TYPECACHE_TUPDESC@GOTPCREL(%rip), %rbx
	movq	_TYPECACHE_DOMAIN_BASE_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%rbx), %esi
	callq	_lookup_type_cache
	movq	%rax, %r15
	cmpl	$131, (%rax)
	jne	LBB0_33
## %bb.32:
	movq	8(%r15), %rdi
	movl	(%rbx), %esi
	callq	_lookup_type_cache
	movq	%rax, %r15
LBB0_33:
	cmpq	$0, 24(%r15)
	jne	LBB0_35
## %bb.34:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_ERRCODE_WRONG_OBJECT_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	(%r13), %rdi
	callq	_format_type_be
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_35:
	movq	%r14, 48(%r13)
	movq	%r15, 40(%r13)
	movq	16(%r15), %rax
	movq	%rax, 32(%r13)
LBB0_36:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movl	20(%rbx), %edi
	callq	_get_base_element_type
	movl	%eax, %edi
	callq	_OidIsValid
	testq	%rax, %rax
LBB0_26:
	setne	%al
	jmp	LBB0_28
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_4
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_UNDEFINED_OBJECT,4,2   ## @ERRCODE_UNDEFINED_OBJECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"type \"%s\" is only a shell"

	.comm	_PLPGSQL_TTYPE_SCALAR,8,3       ## @PLPGSQL_TTYPE_SCALAR
	.comm	_PLPGSQL_TTYPE_REC,8,3          ## @PLPGSQL_TTYPE_REC
	.comm	_RECORDOID,8,3                  ## @RECORDOID
	.comm	_PLPGSQL_TTYPE_PSEUDO,8,3       ## @PLPGSQL_TTYPE_PSEUDO
L_.str.1:                               ## @.str.1
	.asciz	"unrecognized typtype: %d"

	.comm	_TYPECACHE_TUPDESC,4,2          ## @TYPECACHE_TUPDESC
	.comm	_TYPECACHE_DOMAIN_BASE_INFO,4,2 ## @TYPECACHE_DOMAIN_BASE_INFO
	.comm	_ERRCODE_WRONG_OBJECT_TYPE,4,2  ## @ERRCODE_WRONG_OBJECT_TYPE
L_.str.2:                               ## @.str.2
	.asciz	"type %s is not composite"

	.no_dead_strip	_build_datatype
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_datatype
_build_datatype:                        ; @build_datatype
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	bl	_GETSTRUCT
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x23, w0
	ldr	w8, [x23, #40]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w0, [x23, #36]
	bl	_NameStr
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_2:
	mov	w0, #72
	bl	_palloc
	mov	x20, x0
	ldr	w0, [x23, #36]
	bl	_NameStr
	bl	_pstrdup
	str	w0, [x20, #68]
	ldr	x8, [x23]
	str	x8, [x20]
	ldr	w2, [x23, #8]
	sub	w9, w2, #128
Lloh8:
	adrp	x24, _PLPGSQL_TTYPE_REC@GOTPAGE
Lloh9:
	ldr	x24, [x24, _PLPGSQL_TTYPE_REC@GOTPAGEOFF]
	cmp	w9, #5
	b.hi	LBB0_6
; %bb.3:
Lloh10:
	adrp	x10, lJTI0_0@PAGE
Lloh11:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_4
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_4:
Lloh12:
	adrp	x8, _PLPGSQL_TTYPE_SCALAR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PLPGSQL_TTYPE_SCALAR@GOTPAGEOFF]
LBB0_5:
	ldr	x8, [x8]
	b	LBB0_11
LBB0_6:
Lloh14:
	adrp	x8, _ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
	b	LBB0_12
LBB0_7:
Lloh19:
	adrp	x9, _RECORDOID@GOTPAGE
Lloh20:
	ldr	x9, [x9, _RECORDOID@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.8:
Lloh22:
	adrp	x8, _PLPGSQL_TTYPE_PSEUDO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PLPGSQL_TTYPE_PSEUDO@GOTPAGEOFF]
	b	LBB0_5
LBB0_9:
	ldr	w0, [x23, #20]
	bl	_type_is_rowtype
	cbz	w0, LBB0_4
LBB0_10:
	ldr	x8, [x24]
LBB0_11:
	str	x8, [x20, #8]
LBB0_12:
	ldr	w8, [x23, #32]
	str	w8, [x20, #64]
	ldr	d0, [x23, #8]
	rev64.2s	v0, v0
	str	d0, [x20, #16]
	ldr	w8, [x23, #28]
	str	w8, [x20, #60]
	mov	x0, x22
	bl	_OidIsValid
	cbz	x0, LBB0_15
; %bb.13:
	ldr	w0, [x20, #60]
	bl	_OidIsValid
	cbz	x0, LBB0_15
; %bb.14:
	str	w22, [x20, #60]
LBB0_15:
	ldr	w8, [x23, #8]
	cmp	w8, #131
	b.eq	LBB0_20
; %bb.16:
	cmp	w8, #133
	b.ne	LBB0_22
; %bb.17:
	ldr	w8, [x23, #12]
	cmn	w8, #1
	b.ne	LBB0_22
; %bb.18:
	ldr	w0, [x23, #24]
	bl	_OidIsValid
	cbz	x0, LBB0_22
; %bb.19:
	ldrb	w8, [x23, #16]
	cmp	w8, #112
	b	LBB0_33
LBB0_20:
	ldr	w8, [x23, #12]
	cmn	w8, #1
	b.ne	LBB0_22
; %bb.21:
	ldrb	w8, [x23, #16]
	cmp	w8, #112
	b.ne	LBB0_32
LBB0_22:
	mov	w8, #0
LBB0_23:
	str	w8, [x20, #24]
	str	w21, [x20, #56]
	ldr	x8, [x20, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.24:
	ldr	x0, [x20]
Lloh24:
	adrp	x8, _RECORDOID@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RECORDOID@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_26
LBB0_25:
	stp	xzr, xzr, [x20, #32]
	str	xzr, [x20, #48]
	b	LBB0_31
LBB0_26:
Lloh27:
	adrp	x22, _TYPECACHE_TUPDESC@GOTPAGE
Lloh28:
	ldr	x22, [x22, _TYPECACHE_TUPDESC@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh29:
	adrp	x9, _TYPECACHE_DOMAIN_BASE_INFO@GOTPAGE
Lloh30:
	ldr	x9, [x9, _TYPECACHE_DOMAIN_BASE_INFO@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_lookup_type_cache
	mov	x21, x0
	ldr	w8, [x0]
	cmp	w8, #131
	b.ne	LBB0_28
; %bb.27:
	ldr	x0, [x21, #8]
	ldr	w1, [x22]
	bl	_lookup_type_cache
	mov	x21, x0
LBB0_28:
	ldr	x8, [x21, #24]
	cbnz	x8, LBB0_30
; %bb.29:
Lloh32:
	adrp	x8, _ERROR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh34:
	ldr	w22, [x8]
Lloh35:
	adrp	x8, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	bl	_errcode
	ldr	x0, [x20]
	bl	_format_type_be
	mov	x1, x0
Lloh38:
	adrp	x0, l_.str.2@PAGE
Lloh39:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_30:
	str	x19, [x20, #48]
	ldr	x8, [x21, #16]
	stp	x8, x21, [x20, #32]
LBB0_31:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_32:
	ldr	w0, [x23, #20]
	bl	_get_base_element_type
	bl	_OidIsValid
	cmp	x0, #0
LBB0_33:
	cset	w8, ne
	b	LBB0_23
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_UNDEFINED_OBJECT,4,2   ; @ERRCODE_UNDEFINED_OBJECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"type \"%s\" is only a shell"

	.comm	_PLPGSQL_TTYPE_SCALAR,8,3       ; @PLPGSQL_TTYPE_SCALAR
	.comm	_PLPGSQL_TTYPE_REC,8,3          ; @PLPGSQL_TTYPE_REC
	.comm	_RECORDOID,8,3                  ; @RECORDOID
	.comm	_PLPGSQL_TTYPE_PSEUDO,8,3       ; @PLPGSQL_TTYPE_PSEUDO
l_.str.1:                               ; @.str.1
	.asciz	"unrecognized typtype: %d"

	.comm	_TYPECACHE_TUPDESC,4,2          ; @TYPECACHE_TUPDESC
	.comm	_TYPECACHE_DOMAIN_BASE_INFO,4,2 ; @TYPECACHE_DOMAIN_BASE_INFO
	.comm	_ERRCODE_WRONG_OBJECT_TYPE,4,2  ; @ERRCODE_WRONG_OBJECT_TYPE
l_.str.2:                               ; @.str.2
	.asciz	"type %s is not composite"

	.no_dead_strip	_build_datatype
.subsections_via_symbols
