	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_record_type_from_argument
_get_record_type_from_argument:         ## @get_record_type_from_argument
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movl	(%rdi), %edi
	xorl	%esi, %esi
	callq	_get_fn_expr_argtype
	movl	%eax, 12(%rbx)
	movl	8(%rbx), %ecx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$-1, %edx
	xorl	%r8d, %r8d
	callq	_prepare_column_cache
	movq	(%rbx), %rax
	movq	_TYPECAT_COMPOSITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_TYPECAT_COMPOSITE_DOMAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_DATATYPE_MISMATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ereport                        ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPECAT_COMPOSITE,8,3          ## @TYPECAT_COMPOSITE
	.comm	_TYPECAT_COMPOSITE_DOMAIN,8,3   ## @TYPECAT_COMPOSITE_DOMAIN
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_DATATYPE_MISMATCH,4,2  ## @ERRCODE_DATATYPE_MISMATCH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"first argument of %s must be a row type"

	.no_dead_strip	_get_record_type_from_argument
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_record_type_from_argument
_get_record_type_from_argument:         ; @get_record_type_from_argument
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	mov	x19, x1
	ldr	w0, [x0]
	mov	w1, #0
	bl	_get_fn_expr_argtype
	mov	x1, x0
	str	w0, [x20, #12]
	ldr	w3, [x20, #8]
	mov	x0, x20
	mov	w2, #-1
	mov	w4, #0
	bl	_prepare_column_cache
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _TYPECAT_COMPOSITE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TYPECAT_COMPOSITE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _TYPECAT_COMPOSITE_DOMAIN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TYPECAT_COMPOSITE_DOMAIN@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh6:
	adrp	x8, _ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
Lloh9:
	adrp	x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_errcode
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ereport
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPECAT_COMPOSITE,8,3          ; @TYPECAT_COMPOSITE
	.comm	_TYPECAT_COMPOSITE_DOMAIN,8,3   ; @TYPECAT_COMPOSITE_DOMAIN
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_DATATYPE_MISMATCH,4,2  ; @ERRCODE_DATATYPE_MISMATCH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"first argument of %s must be a row type"

	.no_dead_strip	_get_record_type_from_argument
.subsections_via_symbols
