	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Com_GetRealEvent               ## -- Begin function Com_GetRealEvent
	.p2align	4, 0x90
_Com_GetRealEvent:                      ## @Com_GetRealEvent
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	_com_journal@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	cmpl	$2, (%rax)
	jne	LBB0_6
## %bb.1:
	movq	_com_journalFile@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	-24(%rbp), %rdi
	movl	$16, %esi
	callq	_FS_Read
	cmpl	$16, %eax
	je	LBB0_3
## %bb.2:
	movq	_ERR_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_Com_Error
LBB0_3:
	movl	-24(%rbp), %edi
	testl	%edi, %edi
	je	LBB0_13
## %bb.4:
	callq	_Z_Malloc
	movq	%rax, -16(%rbp)
	movl	-24(%rbp), %esi
	movl	(%rbx), %edx
	movq	%rax, %rdi
	callq	_FS_Read
	cmpl	-24(%rbp), %eax
	je	LBB0_13
## %bb.5:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_12
LBB0_6:
	xorl	%eax, %eax
	callq	_Sys_GetEvent
	movl	%eax, -24(%rbp)
	movq	%rdx, -16(%rbp)
	movq	(%rbx), %rax
	cmpl	$1, (%rax)
	jne	LBB0_13
## %bb.7:
	movq	_com_journalFile@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	-24(%rbp), %rdi
	movl	$16, %esi
	callq	_FS_Write
	cmpl	$16, %eax
	je	LBB0_9
## %bb.8:
	movq	_ERR_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_Com_Error
LBB0_9:
	movl	-24(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_13
## %bb.10:
	movq	-16(%rbp), %rdi
	movl	(%rbx), %edx
	callq	_FS_Write
	cmpl	-24(%rbp), %eax
	je	LBB0_13
## %bb.11:
	leaq	L_.str.1(%rip), %rsi
LBB0_12:
	movq	_ERR_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_Com_Error
LBB0_13:
	movl	-24(%rbp), %eax
	movq	-16(%rbp), %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_com_journal,8,3                ## @com_journal
	.comm	_com_journalFile,4,2            ## @com_journalFile
	.comm	_ERR_FATAL,4,2                  ## @ERR_FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error reading from journal file"

L_.str.1:                               ## @.str.1
	.asciz	"Error writing to journal file"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Com_GetRealEvent               ; -- Begin function Com_GetRealEvent
	.p2align	2
_Com_GetRealEvent:                      ; @Com_GetRealEvent
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x19, _com_journal@GOTPAGE
Lloh1:
	ldr	x19, [x19, _com_journal@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	w8, #2
	b.ne	LBB0_6
; %bb.1:
Lloh2:
	adrp	x19, _com_journalFile@GOTPAGE
Lloh3:
	ldr	x19, [x19, _com_journalFile@GOTPAGEOFF]
	ldr	w2, [x19]
	mov	x0, sp
	mov	w1, #16
	bl	_FS_Read
	cmp	w0, #16
	b.eq	LBB0_3
; %bb.2:
Lloh4:
	adrp	x8, _ERR_FATAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ERR_FATAL@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_Com_Error
LBB0_3:
	ldr	w0, [sp]
	cbz	w0, LBB0_13
; %bb.4:
	bl	_Z_Malloc
	str	x0, [sp, #8]
	ldr	w1, [sp]
	ldr	w2, [x19]
	bl	_FS_Read
	ldr	w8, [sp]
	cmp	w0, w8
	b.eq	LBB0_13
; %bb.5:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_6:
	bl	_Sys_GetEvent
	stp	x0, x1, [sp]
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_13
; %bb.7:
Lloh11:
	adrp	x19, _com_journalFile@GOTPAGE
Lloh12:
	ldr	x19, [x19, _com_journalFile@GOTPAGEOFF]
	ldr	w2, [x19]
	mov	x0, sp
	mov	w1, #16
	bl	_FS_Write
	cmp	w0, #16
	b.eq	LBB0_9
; %bb.8:
Lloh13:
	adrp	x8, _ERR_FATAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERR_FATAL@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_Com_Error
LBB0_9:
	ldr	w1, [sp]
	cbz	w1, LBB0_13
; %bb.10:
	ldr	x0, [sp, #8]
	ldr	w2, [x19]
	bl	_FS_Write
	ldr	w8, [sp]
	cmp	w0, w8
	b.eq	LBB0_13
; %bb.11:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_12:
Lloh20:
	adrp	x8, _ERR_FATAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERR_FATAL@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_Com_Error
LBB0_13:
	ldp	x0, x1, [sp]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_com_journal,8,3                ; @com_journal
	.comm	_com_journalFile,4,2            ; @com_journalFile
	.comm	_ERR_FATAL,4,2                  ; @ERR_FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error reading from journal file"

l_.str.1:                               ; @.str.1
	.asciz	"Error writing to journal file"

.subsections_via_symbols
