	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Com_InitJournaling             ## -- Begin function Com_InitJournaling
	.p2align	4, 0x90
_Com_InitJournaling:                    ## @Com_InitJournaling
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	leaq	L_.str(%rip), %rbx
	movq	%rbx, %rdi
	callq	_Com_StartupVariable
	movq	_CVAR_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_Cvar_Get
	movq	_com_journal@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	cmpl	$2, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	callq	_Com_Printf
	leaq	L_.str.3(%rip), %rdi
	callq	_FS_FOpenFileWrite
	movq	_com_journalFile@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	leaq	L_.str.4(%rip), %rdi
	callq	_FS_FOpenFileWrite
	movq	_com_journalDataFile@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.5(%rip), %rdi
	callq	_Com_Printf
	movq	_qtrue@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str.3(%rip), %rdi
	movq	_com_journalFile@GOTPCREL(%rip), %rsi
	callq	_FS_FOpenFileRead
	movl	(%rbx), %edx
	leaq	L_.str.4(%rip), %rdi
	movq	_com_journalDataFile@GOTPCREL(%rip), %rsi
	callq	_FS_FOpenFileRead
LBB0_5:
	movq	_com_journalFile@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	movq	_com_journalDataFile@GOTPCREL(%rip), %r14
	je	LBB0_8
## %bb.6:
	cmpq	$0, (%r14)
	je	LBB0_8
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str.6(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_Cvar_Set
	movq	$0, (%rbx)
	movq	$0, (%r14)
	leaq	L_.str.7(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_Com_Printf                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"journal"

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

	.comm	_CVAR_INIT,4,2                  ## @CVAR_INIT
	.comm	_com_journal,8,3                ## @com_journal
L_.str.2:                               ## @.str.2
	.asciz	"Journaling events\n"

L_.str.3:                               ## @.str.3
	.asciz	"journal.dat"

	.comm	_com_journalFile,8,3            ## @com_journalFile
L_.str.4:                               ## @.str.4
	.asciz	"journaldata.dat"

	.comm	_com_journalDataFile,8,3        ## @com_journalDataFile
L_.str.5:                               ## @.str.5
	.asciz	"Replaying journaled events\n"

	.comm	_qtrue,4,2                      ## @qtrue
L_.str.6:                               ## @.str.6
	.asciz	"com_journal"

L_.str.7:                               ## @.str.7
	.asciz	"Couldn't open journal files\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Com_InitJournaling             ; -- Begin function Com_InitJournaling
	.p2align	2
_Com_InitJournaling:                    ; @Com_InitJournaling
	.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	x19, l_.str@PAGE
Lloh1:
	add	x19, x19, l_.str@PAGEOFF
	mov	x0, x19
	bl	_Com_StartupVariable
Lloh2:
	adrp	x8, _CVAR_INIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CVAR_INIT@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_Cvar_Get
Lloh7:
	adrp	x8, _com_journal@GOTPAGE
Lloh8:
	ldr	x8, [x8, _com_journal@GOTPAGEOFF]
Lloh9:
	str	x0, [x8]
	ldr	w8, [x0]
	cbz	w8, LBB0_7
; %bb.1:
Lloh10:
	adrp	x19, _com_journalFile@GOTPAGE
Lloh11:
	ldr	x19, [x19, _com_journalFile@GOTPAGEOFF]
Lloh12:
	adrp	x20, _com_journalDataFile@GOTPAGE
Lloh13:
	ldr	x20, [x20, _com_journalDataFile@GOTPAGEOFF]
	cmp	w8, #2
	b.eq	LBB0_4
; %bb.2:
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.3:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_Com_Printf
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_FS_FOpenFileWrite
	str	x0, [x19]
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_FS_FOpenFileWrite
	str	x0, [x20]
	b	LBB0_5
LBB0_4:
Lloh20:
	adrp	x0, l_.str.5@PAGE
Lloh21:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_Com_Printf
Lloh22:
	adrp	x21, _qtrue@GOTPAGE
Lloh23:
	ldr	x21, [x21, _qtrue@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
Lloh26:
	adrp	x1, _com_journalFile@GOTPAGE
Lloh27:
	ldr	x1, [x1, _com_journalFile@GOTPAGEOFF]
	bl	_FS_FOpenFileRead
	ldr	w2, [x21]
Lloh28:
	adrp	x0, l_.str.4@PAGE
Lloh29:
	add	x0, x0, l_.str.4@PAGEOFF
Lloh30:
	adrp	x1, _com_journalDataFile@GOTPAGE
Lloh31:
	ldr	x1, [x1, _com_journalDataFile@GOTPAGEOFF]
	bl	_FS_FOpenFileRead
LBB0_5:
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x8, #0
	ccmp	x9, #0, #4, ne
	b.ne	LBB0_7
; %bb.6:
Lloh32:
	adrp	x0, l_.str.6@PAGE
Lloh33:
	add	x0, x0, l_.str.6@PAGEOFF
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_Cvar_Set
	str	xzr, [x19]
	str	xzr, [x20]
Lloh36:
	adrp	x0, l_.str.7@PAGE
Lloh37:
	add	x0, x0, l_.str.7@PAGEOFF
	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
	b	_Com_Printf
LBB0_7:
	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 AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"journal"

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

	.comm	_CVAR_INIT,4,2                  ; @CVAR_INIT
	.comm	_com_journal,8,3                ; @com_journal
l_.str.2:                               ; @.str.2
	.asciz	"Journaling events\n"

l_.str.3:                               ; @.str.3
	.asciz	"journal.dat"

	.comm	_com_journalFile,8,3            ; @com_journalFile
l_.str.4:                               ; @.str.4
	.asciz	"journaldata.dat"

	.comm	_com_journalDataFile,8,3        ; @com_journalDataFile
l_.str.5:                               ; @.str.5
	.asciz	"Replaying journaled events\n"

	.comm	_qtrue,4,2                      ; @qtrue
l_.str.6:                               ; @.str.6
	.asciz	"com_journal"

l_.str.7:                               ; @.str.7
	.asciz	"Couldn't open journal files\n"

.subsections_via_symbols
