	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lookup_agg_function
_lookup_agg_function:                   ## @lookup_agg_function
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movl	%esi, %r14d
	movq	_NIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rax
	leaq	-88(%rbp), %rbx
	leaq	-92(%rbp), %r10
	leaq	-68(%rbp), %r11
	leaq	-56(%rbp), %r15
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %esi
	movl	%r14d, %ecx
	movq	%r13, %r8
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%rax
	pushq	%rbx
	pushq	%r10
	pushq	%r11
	pushq	%r12
	pushq	%r15
	pushq	$0
	callq	_func_get_detail
	addq	$64, %rsp
	movq	_FUNCDETAIL_NORMAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	-56(%rbp), %rdi
	callq	_OidIsValid
	testl	%eax, %eax
	jne	LBB0_3
LBB0_2:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_UNDEFINED_FUNCTION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	_NIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movq	%r13, %rcx
	callq	_func_signature_string
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_3:
	cmpl	$0, -68(%rbp)
	je	LBB0_5
## %bb.4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_DATATYPE_MISMATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	_NIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movq	%r13, %rcx
	callq	_func_signature_string
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_5:
	movq	_ANYOID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-80(%rbp), %rax                 ## 8-byte Folded Reload
	jne	LBB0_8
## %bb.6:
	cmpq	%rax, -88(%rbp)
	je	LBB0_8
## %bb.7:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_DATATYPE_MISMATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	_NIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movq	%r13, %rcx
	callq	_func_signature_string
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_8:
	movq	-64(%rbp), %rsi
	movq	(%r12), %rcx
	movq	%r13, %rdi
	movl	%r14d, %edx
	movl	$1, %r8d
	callq	_enforce_generic_type_consistency
	movq	%rax, (%r12)
	testl	%r14d, %r14d
	jle	LBB0_13
## %bb.9:
	movl	%r14d, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%r12
	cmpq	%r12, %r15
	je	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%r12,8), %rdi
	movq	-64(%rbp), %rax
	movq	(%rax,%r12,8), %rsi
	callq	_IsBinaryCoercible
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_DATATYPE_MISMATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	_NIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_func_signature_string
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_12
LBB0_13:
	movq	-56(%rbp), %rbx
	xorl	%eax, %eax
	callq	_GetUserId
	movq	_ACL_EXECUTE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_pg_proc_aclcheck
	movq	%rax, %rbx
	movq	_ACLCHECK_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_15
## %bb.14:
	movq	_OBJECT_FUNCTION@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-56(%rbp), %rdi
	callq	_get_func_name
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_aclcheck_error
LBB0_15:
	movq	-56(%rbp), %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIL,4,2                        ## @NIL
	.comm	_FUNCDETAIL_NORMAL,8,3          ## @FUNCDETAIL_NORMAL
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_UNDEFINED_FUNCTION,4,2 ## @ERRCODE_UNDEFINED_FUNCTION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"function %s does not exist"

	.comm	_ERRCODE_DATATYPE_MISMATCH,4,2  ## @ERRCODE_DATATYPE_MISMATCH
L_.str.1:                               ## @.str.1
	.asciz	"function %s returns a set"

	.comm	_ANYOID,8,3                     ## @ANYOID
L_.str.2:                               ## @.str.2
	.asciz	"function %s must accept VARIADIC ANY to be used in this aggregate"

L_.str.3:                               ## @.str.3
	.asciz	"function %s requires run-time type coercion"

	.comm	_ACL_EXECUTE,4,2                ## @ACL_EXECUTE
	.comm	_ACLCHECK_OK,8,3                ## @ACLCHECK_OK
	.comm	_OBJECT_FUNCTION,4,2            ## @OBJECT_FUNCTION
	.no_dead_strip	_lookup_agg_function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lookup_agg_function
_lookup_agg_function:                   ; @lookup_agg_function
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x4
	mov	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x25, _NIL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _NIL@GOTPAGEOFF]
	ldr	w1, [x25]
	add	x8, sp, #48
	stp	x8, xzr, [sp, #32]
	add	x8, sp, #56
	add	x9, sp, #64
	stp	x9, x8, [sp, #16]
	add	x8, sp, #68
	add	x7, sp, #72
	stp	x4, x8, [sp]
	mov	x2, x1
	mov	x3, x20
	mov	x4, x19
	mov	w5, #0
	mov	w6, #0
	bl	_func_get_detail
Lloh2:
	adrp	x8, _FUNCDETAIL_NORMAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FUNCDETAIL_NORMAL@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x26, _ERROR@GOTPAGE
Lloh6:
	ldr	x26, [x26, _ERROR@GOTPAGEOFF]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [sp, #72]
	bl	_OidIsValid
	cbnz	w0, LBB0_3
LBB0_2:
	ldr	w24, [x26]
Lloh7:
	adrp	x8, _ERRCODE_UNDEFINED_FUNCTION@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERRCODE_UNDEFINED_FUNCTION@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w2, [x25]
	mov	x0, x21
	mov	x1, x20
	mov	x3, x19
	bl	_func_signature_string
	mov	x1, x0
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_3:
	ldr	w8, [sp, #68]
Lloh12:
	adrp	x27, _ERRCODE_DATATYPE_MISMATCH@GOTPAGE
Lloh13:
	ldr	x27, [x27, _ERRCODE_DATATYPE_MISMATCH@GOTPAGEOFF]
	cbz	w8, LBB0_5
; %bb.4:
	ldr	w24, [x26]
	ldr	w0, [x27]
	bl	_errcode
	ldr	w2, [x25]
	mov	x0, x21
	mov	x1, x20
	mov	x3, x19
	bl	_func_signature_string
	mov	x1, x0
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_5:
Lloh16:
	adrp	x8, _ANYOID@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ANYOID@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	x9, [sp, #56]
	cmp	x8, x23
	ccmp	x9, x8, #4, eq
	b.eq	LBB0_7
; %bb.6:
	ldr	w23, [x26]
	ldr	w0, [x27]
	bl	_errcode
	ldr	w2, [x25]
	mov	x0, x21
	mov	x1, x20
	mov	x3, x19
	bl	_func_signature_string
	mov	x1, x0
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
LBB0_7:
	ldr	x1, [sp, #48]
	ldr	x3, [x22]
	mov	x0, x19
	mov	x2, x20
	mov	w4, #1
	bl	_enforce_generic_type_consistency
	str	x0, [x22]
	cmp	w20, #1
	b.lt	LBB0_12
; %bb.8:
	mov	x24, #0
	mov	w8, w20
	lsl	x28, x8, #3
Lloh21:
	adrp	x22, l_.str.3@PAGE
Lloh22:
	add	x22, x22, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x24, x24, #8
	cmp	x28, x24
	b.eq	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, x24]
	ldr	x8, [sp, #48]
	ldr	x1, [x8, x24]
	bl	_IsBinaryCoercible
	cbnz	w0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w23, [x26]
	ldr	w0, [x27]
	bl	_errcode
	ldr	w2, [x25]
	ldr	x3, [sp, #48]
	mov	x0, x21
	mov	x1, x20
	bl	_func_signature_string
	mov	x1, x0
	mov	x0, x22
	bl	_errmsg
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
	b	LBB0_9
LBB0_12:
	ldr	x19, [sp, #72]
	bl	_GetUserId
	mov	x1, x0
Lloh23:
	adrp	x8, _ACL_EXECUTE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ACL_EXECUTE@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_pg_proc_aclcheck
Lloh26:
	adrp	x8, _ACLCHECK_OK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ACLCHECK_OK@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_14
; %bb.13:
	mov	x19, x0
Lloh29:
	adrp	x8, _OBJECT_FUNCTION@GOTPAGE
Lloh30:
	ldr	x8, [x8, _OBJECT_FUNCTION@GOTPAGEOFF]
Lloh31:
	ldr	w20, [x8]
	ldr	x0, [sp, #72]
	bl	_get_func_name
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_aclcheck_error
LBB0_14:
	ldr	x0, [sp, #72]
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_NIL,4,2                        ; @NIL
	.comm	_FUNCDETAIL_NORMAL,8,3          ; @FUNCDETAIL_NORMAL
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_UNDEFINED_FUNCTION,4,2 ; @ERRCODE_UNDEFINED_FUNCTION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"function %s does not exist"

	.comm	_ERRCODE_DATATYPE_MISMATCH,4,2  ; @ERRCODE_DATATYPE_MISMATCH
l_.str.1:                               ; @.str.1
	.asciz	"function %s returns a set"

	.comm	_ANYOID,8,3                     ; @ANYOID
l_.str.2:                               ; @.str.2
	.asciz	"function %s must accept VARIADIC ANY to be used in this aggregate"

l_.str.3:                               ; @.str.3
	.asciz	"function %s requires run-time type coercion"

	.comm	_ACL_EXECUTE,4,2                ; @ACL_EXECUTE
	.comm	_ACLCHECK_OK,8,3                ; @ACLCHECK_OK
	.comm	_OBJECT_FUNCTION,4,2            ; @OBJECT_FUNCTION
	.no_dead_strip	_lookup_agg_function
.subsections_via_symbols
