	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function plpgsql_create_econtext
_plpgsql_create_econtext:               ## @plpgsql_create_econtext
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	jne	LBB0_4
## %bb.1:
	movq	_shared_simple_eval_estate@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_3
## %bb.2:
	movq	_TopTransactionContext@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_CreateExecutorState
	movq	%rax, (%rbx)
	movl	%r14d, %edi
	callq	_MemoryContextSwitchTo
	movq	(%rbx), %rdi
LBB0_3:
	movq	%rdi, 8(%r15)
LBB0_4:
	callq	_CreateExprContext
	movl	%eax, (%r15)
	movq	_TopTransactionContext@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$16, %esi
	callq	_MemoryContextAlloc
	movq	%rax, %rbx
	movl	(%r15), %eax
	movl	%eax, 12(%rbx)
	xorl	%eax, %eax
	callq	_GetCurrentSubTransactionId
	movl	%eax, 8(%rbx)
	movq	_simple_econtext_stack@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, (%rbx)
	movq	%rbx, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_shared_simple_eval_estate,8,3  ## @shared_simple_eval_estate
	.comm	_TopTransactionContext,4,2      ## @TopTransactionContext
	.comm	_simple_econtext_stack,8,3      ## @simple_econtext_stack
	.no_dead_strip	_plpgsql_create_econtext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function plpgsql_create_econtext
_plpgsql_create_econtext:               ; @plpgsql_create_econtext
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x21, _TopTransactionContext@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TopTransactionContext@GOTPAGEOFF]
	cbnz	x0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x22, _shared_simple_eval_estate@GOTPAGE
Lloh3:
	ldr	x22, [x22, _shared_simple_eval_estate@GOTPAGEOFF]
	ldr	x0, [x22]
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x21]
	bl	_MemoryContextSwitchTo
	mov	x20, x0
	bl	_CreateExecutorState
	str	x0, [x22]
	mov	x0, x20
	bl	_MemoryContextSwitchTo
	ldr	x0, [x22]
LBB0_3:
	str	x0, [x19, #8]
LBB0_4:
	bl	_CreateExprContext
	str	w0, [x19]
	ldr	w0, [x21]
	mov	w1, #16
	bl	_MemoryContextAlloc
	mov	x20, x0
	ldr	w8, [x19]
	str	w8, [x0, #12]
	bl	_GetCurrentSubTransactionId
	str	w0, [x20, #8]
Lloh4:
	adrp	x8, _simple_econtext_stack@GOTPAGE
Lloh5:
	ldr	x8, [x8, _simple_econtext_stack@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x9, [x20]
	str	x20, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_shared_simple_eval_estate,8,3  ; @shared_simple_eval_estate
	.comm	_TopTransactionContext,4,2      ; @TopTransactionContext
	.comm	_simple_econtext_stack,8,3      ; @simple_econtext_stack
	.no_dead_strip	_plpgsql_create_econtext
.subsections_via_symbols
