	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function simplify_function
_simplify_function:                     ## @simplify_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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	(%r9), %r14
	movq	_PROCOID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_ObjectIdGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCache1
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_elog
LBB0_2:
	movq	40(%rbp), %r13
	movl	%r12d, %edi
	callq	_GETSTRUCT
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	cmpl	$0, 24(%rbp)
	je	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_expand_function_arguments
	movq	_eval_const_expressions_mutator@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	movq	%r13, %rdx
	callq	_expression_tree_mutator
	movq	%rax, %r14
	movq	%rax, (%r15)
	jmp	LBB0_5
LBB0_3:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_5:
	subq	$8, %rsp
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %r8
	movq	%r14, %r9
	pushq	%r13
	pushq	%r12
	movl	16(%rbp), %r13d
	pushq	%r13
	callq	_evaluate_function
	addq	$32, %rsp
	movq	%rax, %rbx
	movl	32(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_11
## %bb.6:
	testq	%rbx, %rbx
	jne	LBB0_11
## %bb.7:
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	callq	_OidIsValid
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	_T_FuncExpr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -112(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -120(%rbp)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -128(%rbp)
	movl	4(%rbx), %eax
	movl	%eax, -132(%rbp)
	movl	%r13d, -168(%rbp)
	movq	_COERCE_EXPLICIT_CALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -136(%rbp)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -144(%rbp)
	movq	%r15, -152(%rbp)
	movq	%r14, -160(%rbp)
	movl	$-1, -164(%rbp)
	movq	_T_SupportRequestSimplify@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -92(%rbp)
	movq	40(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	leaq	-168(%rbp), %r15
	movq	%r15, -104(%rbp)
	movl	(%rbx), %ebx
	leaq	-104(%rbp), %rdi
	callq	_PointerGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_OidFunctionCall1
	movl	%eax, %edi
	callq	_DatumGetPointer
	movq	%rax, %rbx
	xorl	%edi, %edi
	cmpq	%rax, %r15
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	setne	%dil
	callq	_Assert
	jmp	LBB0_10
LBB0_8:
	xorl	%ebx, %ebx
LBB0_10:
	movl	32(%rbp), %eax
LBB0_11:
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	testq	%rbx, %rbx
	jne	LBB0_14
## %bb.13:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	movq	%r14, %r8
	movl	%r13d, %r9d
	pushq	40(%rbp)
	pushq	%r12
	callq	_inline_function
	addq	$16, %rsp
	movq	%rax, %rbx
LBB0_14:
	movl	%r12d, %edi
	callq	_ReleaseSysCache
	movq	%rbx, %rax
	addq	$136, %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"

	.comm	_eval_const_expressions_mutator,4,2 ## @eval_const_expressions_mutator
	.comm	_T_FuncExpr,4,2                 ## @T_FuncExpr
	.comm	_COERCE_EXPLICIT_CALL,4,2       ## @COERCE_EXPLICIT_CALL
	.comm	_T_SupportRequestSimplify,4,2   ## @T_SupportRequestSimplify
	.no_dead_strip	_simplify_function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function simplify_function
_simplify_function:                     ; @simplify_function
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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	x20, x7
	mov	x21, x6
	mov	x19, x5
	stp	x4, x3, [sp, #8]                ; 16-byte Folded Spill
	mov	x28, x2
	mov	x24, x1
	mov	x25, x0
	ldr	x8, [x29, #24]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	ldr	x26, [x5]
Lloh0:
	adrp	x8, _PROCOID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PROCOID@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x23
	bl	_SearchSysCache1
	mov	x23, 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, x25
	bl	_elog
LBB0_2:
	ldr	w22, [x29, #16]
	mov	x0, x23
	bl	_GETSTRUCT
	mov	x27, x0
	cbz	w20, LBB0_4
; %bb.3:
	mov	x0, x26
	mov	x1, x24
	mov	x2, x23
	bl	_expand_function_arguments
Lloh8:
	adrp	x8, _eval_const_expressions_mutator@GOTPAGE
Lloh9:
	ldr	x8, [x8, _eval_const_expressions_mutator@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	x20, [sp, #24]                  ; 8-byte Folded Reload
	mov	x2, x20
	bl	_expression_tree_mutator
	mov	x26, x0
	str	x0, [x19]
	b	LBB0_5
LBB0_4:
	ldr	x20, [sp, #24]                  ; 8-byte Folded Reload
LBB0_5:
	str	x20, [sp]
	mov	x0, x25
	mov	x1, x24
	mov	x2, x28
	ldp	x20, x3, [sp, #8]               ; 16-byte Folded Reload
	mov	x4, x20
	mov	x5, x26
	mov	x6, x21
	mov	x7, x23
	bl	_evaluate_function
	mov	x19, x0
	cbz	w22, LBB0_9
; %bb.6:
	cbnz	x19, LBB0_9
; %bb.7:
	ldr	w0, [x27]
	bl	_OidIsValid
	cbz	x0, LBB0_13
; %bb.8:
Lloh11:
	adrp	x8, _T_FuncExpr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _T_FuncExpr@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [sp, #88]
	stp	x24, x25, [sp, #72]
	ldr	w8, [x27, #4]
Lloh14:
	adrp	x9, _COERCE_EXPLICIT_CALL@GOTPAGE
Lloh15:
	ldr	x9, [x9, _COERCE_EXPLICIT_CALL@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #64]
	ldp	x8, x9, [sp, #16]               ; 16-byte Folded Reload
	stp	x20, x8, [sp, #48]
	str	x26, [sp, #40]
	mov	w8, #-1
	stp	w21, w8, [sp, #32]
Lloh17:
	adrp	x8, _T_SupportRequestSimplify@GOTPAGE
Lloh18:
	ldr	x8, [x8, _T_SupportRequestSimplify@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x9]
	stp	w9, w8, [sp, #104]
	add	x20, sp, #32
	str	x20, [sp, #96]
	ldr	w19, [x27]
	add	x0, sp, #96
	bl	_PointerGetDatum
	mov	x1, x0
	mov	x0, x19
	bl	_OidFunctionCall1
	bl	_DatumGetPointer
	mov	x19, x0
	cmp	x20, x0
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	cset	w0, ne
	bl	_Assert
LBB0_9:
	cbz	w22, LBB0_12
LBB0_10:
	cbnz	x19, LBB0_12
; %bb.11:
	mov	x0, x25
	mov	x1, x24
	ldp	x2, x7, [sp, #16]               ; 16-byte Folded Reload
	mov	x3, x20
	mov	x4, x26
	mov	x5, x21
	mov	x6, x23
	bl	_inline_function
	mov	x19, x0
LBB0_12:
	mov	x0, x23
	bl	_ReleaseSysCache
	mov	x0, x19
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_13:
	mov	x19, #0
	cbnz	w22, LBB0_10
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.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"

	.comm	_eval_const_expressions_mutator,4,2 ; @eval_const_expressions_mutator
	.comm	_T_FuncExpr,4,2                 ; @T_FuncExpr
	.comm	_COERCE_EXPLICIT_CALL,4,2       ; @COERCE_EXPLICIT_CALL
	.comm	_T_SupportRequestSimplify,4,2   ; @T_SupportRequestSimplify
	.no_dead_strip	_simplify_function
.subsections_via_symbols
