	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_plpgsql_compile                ## -- Begin function plpgsql_compile
	.p2align	4, 0x90
_plpgsql_compile:                       ## @plpgsql_compile
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movl	8(%rax), %r14d
	movq	_PROCOID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_ObjectIdGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCache1
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_elog
LBB0_2:
	movq	%rbx, %rdi
	callq	_GETSTRUCT
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rax
	movq	(%rax), %rcx
	leaq	-60(%rbp), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %r15
	movq	%rcx, %r12
	testq	%rcx, %rcx
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_compute_function_hashkey
	movq	%r14, %rdi
	callq	_plpgsql_HashTableLookup
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %r13
	movl	4(%rbx), %edi
	callq	_HeapTupleHeaderGetRawXmin
	cmpq	%rax, %r13
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	16(%r12), %rdi
	movq	%rbx, %rsi
	callq	_ItemPointerEquals
	testq	%rax, %rax
	jne	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_delete_function
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$0, %ecx
	testq	%r15, %r15
	jne	LBB0_3
LBB0_11:
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmoveq	%r12, %rcx
	movq	%rcx, %r12
	testq	%r15, %r15
	je	LBB0_12
## %bb.13:
	leaq	-60(%rbp), %rdx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %ecx
	callq	_compute_function_hashkey
	jmp	LBB0_14
LBB0_8:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_5:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	xorl	%r12d, %r12d
	jmp	LBB0_14
LBB0_12:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	-44(%rbp), %r15d                ## 4-byte Reload
LBB0_14:
	leaq	-60(%rbp), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movl	%r15d, %r8d
	callq	_do_compile
	movq	%rax, %r12
LBB0_15:
	movq	%rbx, %rdi
	callq	_ReleaseSysCache
	movq	(%r14), %rax
	movq	%r12, (%rax)
	movq	%r12, %rax
	addq	$40, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cache lookup failed for function %u"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_plpgsql_compile                ; -- Begin function plpgsql_compile
	.p2align	2
_plpgsql_compile:                       ; @plpgsql_compile
	.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	x19, x0
	ldr	x8, [x0]
	ldr	w22, [x8, #8]
Lloh0:
	adrp	x8, _PROCOID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PROCOID@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x22
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x21
	bl	_SearchSysCache1
	mov	x21, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_elog
LBB0_2:
	mov	x0, x21
	bl	_GETSTRUCT
	mov	x22, x0
	ldr	x8, [x19]
	ldr	x9, [x8]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x24, x9
	mov	x23, x9
	cbnz	x9, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x22
	mov	x3, x20
	bl	_compute_function_hashkey
	add	x0, sp, #12
	bl	_plpgsql_HashTableLookup
	mov	x23, x0
	cbz	x0, LBB0_11
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x25, [x23]
	ldr	w0, [x21, #4]
	bl	_HeapTupleHeaderGetRawXmin
	cmp	x25, x0
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x23, #16
	mov	x1, x21
	bl	_ItemPointerEquals
	cbnz	x0, LBB0_12
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_delete_function
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x9, #0
	cbnz	x24, LBB0_3
LBB0_9:
	cmp	x8, #0
	csel	x23, x23, xzr, eq
	cbz	x24, LBB0_11
; %bb.10:
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x22
	mov	x3, x20
	bl	_compute_function_hashkey
LBB0_11:
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	mov	x4, x20
	bl	_do_compile
	mov	x23, x0
LBB0_12:
	mov	x0, x21
	bl	_ReleaseSysCache
	ldr	x8, [x19]
	str	x23, [x8]
	mov	x0, x23
	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	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PROCOID,4,2                    ; @PROCOID
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cache lookup failed for function %u"

.subsections_via_symbols
