	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Sys_ErrorDialog                ## -- Begin function Sys_ErrorDialog
	.p2align	4, 0x90
_Sys_ErrorDialog:                       ## @Sys_ErrorDialog
	.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	$1032, %rsp                     ## imm = 0x408
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rsi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_DT_YES_NO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	callq	_va
	leaq	L_.str.1(%rip), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_Sys_Dialog
	movq	_DR_YES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.1:
	movq	_GMEM_MOVEABLE@GOTPCREL(%rip), %rax
	movq	_GMEM_DDESHARE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_CON_LogSize
	leaq	1(%rax), %rsi
	movl	%ebx, %edi
	callq	_GlobalAlloc
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_GlobalLock
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	%rax, %r15
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_CON_LogRead
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %r13d
	leaq	-1072(%rbp), %r12
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_Com_Memcpy
	movl	%r13d, %eax
	addq	%rax, %rbx
	movq	%r12, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_CON_LogRead
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_5
	jmp	LBB0_6
LBB0_3:
	movq	%r15, %rbx
LBB0_6:
	movb	$0, (%rbx)
	xorl	%edi, %edi
	callq	_OpenClipboard
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	xorl	%eax, %eax
	callq	_EmptyClipboard
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_CF_TEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_SetClipboardData
LBB0_9:
	movq	%r15, %rdi
	callq	_GlobalUnlock
	xorl	%eax, %eax
	callq	_CloseClipboard
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$1032, %rsp                     ## imm = 0x408
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DT_YES_NO,4,2                  ## @DT_YES_NO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s. Copy console log to clipboard?"

L_.str.1:                               ## @.str.1
	.asciz	"Error"

	.comm	_DR_YES,8,3                     ## @DR_YES
	.comm	_GMEM_MOVEABLE,4,2              ## @GMEM_MOVEABLE
	.comm	_GMEM_DDESHARE,4,2              ## @GMEM_DDESHARE
	.comm	_CF_TEXT,4,2                    ## @CF_TEXT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Sys_ErrorDialog                ; -- Begin function Sys_ErrorDialog
	.p2align	2
_Sys_ErrorDialog:                       ; @Sys_ErrorDialog
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 w27, -56
	.cfi_offset w28, -64
	sub	sp, sp, #1040
	mov	x1, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _DT_YES_NO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DT_YES_NO@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_va
	mov	x1, x0
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_Sys_Dialog
Lloh10:
	adrp	x8, _DR_YES@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DR_YES@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.1:
Lloh13:
	adrp	x8, _GMEM_MOVEABLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GMEM_MOVEABLE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _GMEM_DDESHARE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _GMEM_DDESHARE@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w19, w9, w8
	bl	_CON_LogSize
	add	x1, x0, #1
	mov	x0, x19
	bl	_GlobalAlloc
	mov	x19, x0
	bl	_GlobalLock
	cbz	x0, LBB0_10
; %bb.2:
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #1024
	bl	_CON_LogRead
	cbz	w0, LBB0_5
; %bb.3:
	mov	x22, x0
	mov	x21, x20
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, x22
	bl	_Com_Memcpy
	add	x21, x21, w22, uxtw
	add	x0, sp, #8
	mov	w1, #1024
	bl	_CON_LogRead
	mov	x22, x0
	cbnz	w0, LBB0_4
	b	LBB0_6
LBB0_5:
	mov	x21, x20
LBB0_6:
	strb	wzr, [x21]
	mov	x0, #0
	bl	_OpenClipboard
	cbz	x0, LBB0_9
; %bb.7:
	bl	_EmptyClipboard
	cbz	x0, LBB0_9
; %bb.8:
Lloh19:
	adrp	x8, _CF_TEXT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CF_TEXT@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_SetClipboardData
LBB0_9:
	mov	x0, x20
	bl	_GlobalUnlock
	bl	_CloseClipboard
LBB0_10:
	ldur	x8, [x29, #-56]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_DT_YES_NO,4,2                  ; @DT_YES_NO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s. Copy console log to clipboard?"

l_.str.1:                               ; @.str.1
	.asciz	"Error"

	.comm	_DR_YES,8,3                     ; @DR_YES
	.comm	_GMEM_MOVEABLE,4,2              ; @GMEM_MOVEABLE
	.comm	_GMEM_DDESHARE,4,2              ; @GMEM_DDESHARE
	.comm	_CF_TEXT,4,2                    ; @CF_TEXT
.subsections_via_symbols
