	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CheckFunctionValidatorAccess   ## -- Begin function CheckFunctionValidatorAccess
	.p2align	4, 0x90
_CheckFunctionValidatorAccess:          ## @CheckFunctionValidatorAccess
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_PROCOID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rsi, %rdi
	callq	_ObjectIdGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCache1
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_UNDEFINED_FUNCTION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movl	%r15d, %edi
	callq	_GETSTRUCT
	movq	%rax, %r13
	movq	_LANGOID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r13), %rdi
	callq	_ObjectIdGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCache1
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r13), %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
LBB0_4:
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_GETSTRUCT
	movq	%rax, %r14
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rbx, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	(%r13), %rdx
	movq	(%r14), %rcx
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_errmsg
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_ereport
LBB0_6:
	movq	(%r13), %rbx
	xorl	%eax, %eax
	callq	_GetUserId
	movq	_ACL_USAGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_pg_language_aclcheck
	movq	%rax, %rbx
	movq	_ACLCHECK_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_8
## %bb.7:
	movq	_OBJECT_LANGUAGE@GOTPCREL(%rip), %rax
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	%r15d, %r12d
	movl	(%rax), %r15d
	movl	8(%r14), %edi
	callq	_NameStr
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r12d, %r15d
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_aclcheck_error
LBB0_8:
	xorl	%eax, %eax
	callq	_GetUserId
	movq	_ACL_EXECUTE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_pg_proc_aclcheck
	movq	%rax, %rbx
	movq	_ACLCHECK_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_10
## %bb.9:
	movq	_OBJECT_FUNCTION@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	8(%r13), %edi
	callq	_NameStr
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_aclcheck_error
LBB0_10:
	movl	%r15d, %edi
	callq	_ReleaseSysCache
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_ReleaseSysCache
	movl	$1, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PROCOID,4,2                    ## @PROCOID
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_UNDEFINED_FUNCTION,4,2 ## @ERRCODE_UNDEFINED_FUNCTION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"function with OID %u does not exist"

	.comm	_LANGOID,4,2                    ## @LANGOID
L_.str.1:                               ## @.str.1
	.asciz	"cache lookup failed for language %u"

	.comm	_ERRCODE_INSUFFICIENT_PRIVILEGE,4,2 ## @ERRCODE_INSUFFICIENT_PRIVILEGE
L_.str.2:                               ## @.str.2
	.asciz	"language validation function %u called for language %u instead of %u"

	.comm	_ACL_USAGE,4,2                  ## @ACL_USAGE
	.comm	_ACLCHECK_OK,8,3                ## @ACLCHECK_OK
	.comm	_OBJECT_LANGUAGE,4,2            ## @OBJECT_LANGUAGE
	.comm	_ACL_EXECUTE,4,2                ## @ACL_EXECUTE
	.comm	_OBJECT_FUNCTION,4,2            ## @OBJECT_FUNCTION
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CheckFunctionValidatorAccess   ; -- Begin function CheckFunctionValidatorAccess
	.p2align	2
_CheckFunctionValidatorAccess:          ; @CheckFunctionValidatorAccess
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _PROCOID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PROCOID@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	mov	x0, x1
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x19
	bl	_SearchSysCache1
	mov	x19, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
Lloh6:
	adrp	x8, _ERRCODE_UNDEFINED_FUNCTION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERRCODE_UNDEFINED_FUNCTION@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_errcode
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_2:
	mov	x0, x19
	bl	_GETSTRUCT
	mov	x22, x0
Lloh11:
	adrp	x8, _LANGOID@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LANGOID@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
	ldr	x0, [x0]
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x21
	bl	_SearchSysCache1
	mov	x21, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_4
; %bb.3:
Lloh14:
	adrp	x8, _ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	x2, [x22]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
LBB0_4:
	mov	x0, x21
	bl	_GETSTRUCT
	mov	x24, x0
	ldr	x8, [x0]
	cmp	x8, x23
	b.eq	LBB0_6
; %bb.5:
Lloh19:
	adrp	x8, _ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w25, [x8]
Lloh22:
	adrp	x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_errcode
	ldr	x8, [x22]
	ldr	x9, [x24]
	stp	x8, x9, [sp]
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x23
	bl	_errmsg
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
LBB0_6:
	ldr	x23, [x22]
	bl	_GetUserId
	mov	x1, x0
Lloh27:
	adrp	x8, _ACL_USAGE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ACL_USAGE@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x23
	bl	_pg_language_aclcheck
Lloh30:
	adrp	x26, _ACLCHECK_OK@GOTPAGE
Lloh31:
	ldr	x26, [x26, _ACLCHECK_OK@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.7:
	mov	x23, x0
Lloh32:
	adrp	x8, _OBJECT_LANGUAGE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _OBJECT_LANGUAGE@GOTPAGEOFF]
Lloh34:
	ldr	w25, [x8]
	ldr	w0, [x24, #8]
	bl	_NameStr
	mov	x2, x0
	mov	x0, x23
	mov	x1, x25
	bl	_aclcheck_error
LBB0_8:
	bl	_GetUserId
	mov	x1, x0
Lloh35:
	adrp	x8, _ACL_EXECUTE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ACL_EXECUTE@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_pg_proc_aclcheck
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_10
; %bb.9:
	mov	x20, x0
Lloh38:
	adrp	x8, _OBJECT_FUNCTION@GOTPAGE
Lloh39:
	ldr	x8, [x8, _OBJECT_FUNCTION@GOTPAGEOFF]
Lloh40:
	ldr	w23, [x8]
	ldr	w0, [x22, #8]
	bl	_NameStr
	mov	x2, x0
	mov	x0, x20
	mov	x1, x23
	bl	_aclcheck_error
LBB0_10:
	mov	x0, x19
	bl	_ReleaseSysCache
	mov	x0, x21
	bl	_ReleaseSysCache
	mov	w0, #1
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_PROCOID,4,2                    ; @PROCOID
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_UNDEFINED_FUNCTION,4,2 ; @ERRCODE_UNDEFINED_FUNCTION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"function with OID %u does not exist"

	.comm	_LANGOID,4,2                    ; @LANGOID
l_.str.1:                               ; @.str.1
	.asciz	"cache lookup failed for language %u"

	.comm	_ERRCODE_INSUFFICIENT_PRIVILEGE,4,2 ; @ERRCODE_INSUFFICIENT_PRIVILEGE
l_.str.2:                               ; @.str.2
	.asciz	"language validation function %u called for language %u instead of %u"

	.comm	_ACL_USAGE,4,2                  ; @ACL_USAGE
	.comm	_ACLCHECK_OK,8,3                ; @ACLCHECK_OK
	.comm	_OBJECT_LANGUAGE,4,2            ; @OBJECT_LANGUAGE
	.comm	_ACL_EXECUTE,4,2                ; @ACL_EXECUTE
	.comm	_OBJECT_FUNCTION,4,2            ; @OBJECT_FUNCTION
.subsections_via_symbols
