	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetErrorContextStack           ## -- Begin function GetErrorContextStack
	.p2align	4, 0x90
_GetErrorContextStack:                  ## @GetErrorContextStack
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_recursion_depth@GOTPCREL(%rip), %r14
	incl	(%r14)
	movq	_errordata_stack_depth@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	incq	%rbx
	movq	%rbx, (%r15)
	movq	_ERRORDATA_STACK_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jl	LBB0_2
## %bb.1:
	movq	$-1, (%r15)
	movq	_PANIC@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	callq	_errmsg_internal
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	(%r15), %rbx
LBB0_2:
	movq	_errordata@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	shlq	$4, %rbx
	leaq	(%rbx,%r13), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_MemSet
	movq	_CurrentMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13,%rbx)
	movq	_error_context_stack@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	callq	*8(%rbx)
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_3
LBB0_5:
	decq	(%r15)
	decl	(%r14)
	movq	(%r12), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_recursion_depth,4,2            ## @recursion_depth
	.comm	_errordata_stack_depth,8,3      ## @errordata_stack_depth
	.comm	_ERRORDATA_STACK_SIZE,8,3       ## @ERRORDATA_STACK_SIZE
	.comm	_PANIC,4,2                      ## @PANIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERRORDATA_STACK_SIZE exceeded"

	.comm	_errordata,8,3                  ## @errordata
	.comm	_CurrentMemoryContext,4,2       ## @CurrentMemoryContext
	.comm	_error_context_stack,8,3        ## @error_context_stack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetErrorContextStack           ; -- Begin function GetErrorContextStack
	.p2align	2
_GetErrorContextStack:                  ; @GetErrorContextStack
	.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
Lloh0:
	adrp	x20, _recursion_depth@GOTPAGE
Lloh1:
	ldr	x20, [x20, _recursion_depth@GOTPAGEOFF]
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
Lloh2:
	adrp	x21, _errordata_stack_depth@GOTPAGE
Lloh3:
	ldr	x21, [x21, _errordata_stack_depth@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x8, x8, #1
	str	x8, [x21]
Lloh4:
	adrp	x9, _ERRORDATA_STACK_SIZE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ERRORDATA_STACK_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_2
; %bb.1:
	mov	x8, #-1
	str	x8, [x21]
Lloh7:
	adrp	x8, _PANIC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PANIC@GOTPAGEOFF]
Lloh9:
	ldr	w19, [x8]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg_internal
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
	ldr	x8, [x21]
LBB0_2:
Lloh12:
	adrp	x9, _errordata@GOTPAGE
Lloh13:
	ldr	x9, [x9, _errordata@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x19, x9, x8, lsl #4
	mov	x0, x19
	mov	w1, #0
	mov	w2, #16
	bl	_MemSet
Lloh15:
	adrp	x8, _CurrentMemoryContext@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CurrentMemoryContext@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh18:
	adrp	x8, _error_context_stack@GOTPAGE
Lloh19:
	ldr	x8, [x8, _error_context_stack@GOTPAGEOFF]
Lloh20:
	ldr	x22, [x8]
	cbz	x22, LBB0_4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	w0, [x22]
	blr	x8
	ldr	x22, [x22, #16]
	cbnz	x22, LBB0_3
LBB0_4:
	ldr	x8, [x21]
	sub	x8, x8, #1
	str	x8, [x21]
	ldr	w8, [x20]
	sub	w8, w8, #1
	str	w8, [x20]
	ldr	x0, [x19]
	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 AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_recursion_depth,4,2            ; @recursion_depth
	.comm	_errordata_stack_depth,8,3      ; @errordata_stack_depth
	.comm	_ERRORDATA_STACK_SIZE,8,3       ; @ERRORDATA_STACK_SIZE
	.comm	_PANIC,4,2                      ; @PANIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERRORDATA_STACK_SIZE exceeded"

	.comm	_errordata,8,3                  ; @errordata
	.comm	_CurrentMemoryContext,4,2       ; @CurrentMemoryContext
	.comm	_error_context_stack,8,3        ; @error_context_stack
.subsections_via_symbols
