	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EmitErrorReport                ## -- Begin function EmitErrorReport
	.p2align	4, 0x90
_EmitErrorReport:                       ## @EmitErrorReport
	.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	_errordata@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_errordata_stack_depth@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,2), %rbx
	leaq	(,%rbx,8), %r12
	addq	%r13, %r12
	movq	_recursion_depth@GOTPCREL(%rip), %r15
	incl	(%r15)
	xorl	%eax, %eax
	callq	_CHECK_STACK_DEPTH
	movl	16(%r13,%rbx,8), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r14d
	cmpq	$0, 8(%r13,%rbx,8)
	je	LBB0_3
## %bb.1:
	leaq	8(,%rbx,8), %rbx
	addq	%r13, %rbx
	movq	%r12, %rdi
	callq	_emit_log_hook
	cmpq	$0, (%rbx)
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	callq	_send_message_to_server_log
LBB0_3:
	cmpq	$0, (%r12)
	je	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	_send_message_to_frontend
LBB0_5:
	movl	%r14d, %edi
	callq	_MemoryContextSwitchTo
	decl	(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errordata,8,3                  ## @errordata
	.comm	_errordata_stack_depth,8,3      ## @errordata_stack_depth
	.comm	_recursion_depth,4,2            ## @recursion_depth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EmitErrorReport                ; -- Begin function EmitErrorReport
	.p2align	2
_EmitErrorReport:                       ; @EmitErrorReport
	.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	x8, _errordata@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errordata@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _errordata_stack_depth@GOTPAGE
Lloh4:
	ldr	x9, [x9, _errordata_stack_depth@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	mov	w10, #24
	madd	x19, x9, x10, x8
Lloh6:
	adrp	x21, _recursion_depth@GOTPAGE
Lloh7:
	ldr	x21, [x21, _recursion_depth@GOTPAGEOFF]
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	bl	_CHECK_STACK_DEPTH
	ldr	w0, [x19, #16]
	bl	_MemoryContextSwitchTo
	mov	x20, x0
	mov	x22, x19
	ldr	x8, [x22, #8]!
	cbz	x8, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_emit_log_hook
	ldr	x8, [x22]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_send_message_to_server_log
LBB0_3:
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_send_message_to_frontend
LBB0_5:
	mov	x0, x20
	bl	_MemoryContextSwitchTo
	ldr	w8, [x21]
	sub	w8, w8, #1
	str	w8, [x21]
	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	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_errordata,8,3                  ; @errordata
	.comm	_errordata_stack_depth,8,3      ; @errordata_stack_depth
	.comm	_recursion_depth,4,2            ; @recursion_depth
.subsections_via_symbols
