	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mf_replay_logevent             ## -- Begin function mf_replay_logevent
	.p2align	4, 0x90
_mf_replay_logevent:                    ## @mf_replay_logevent
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_index_mode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.1:
	movq	__eventsLeft@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.2:
	decq	%rcx
	movq	%rcx, (%rax)
	je	LBB0_16
LBB0_3:
	xorl	%eax, %eax
	callq	_get_memory_used
	movq	_MEMORY_CHANGES_PERCENT@GOTPCREL(%rip), %rcx
	movq	_max_memory@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	imull	(%rcx), %edx
	cmpl	%edx, %eax
	jg	LBB0_16
LBB0_4:
	movl	(%r15), %ebx
	leal	-128(%rbx), %eax
	cmpl	$9, %eax
	ja	LBB0_14
## %bb.5:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:
	movq	%r15, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_default_replay_logevent        ## TAILCALL
LBB0_6:
	movl	$-2, %eax
	cmpl	$24, %r14d
	jl	LBB0_15
## %bb.7:
	movl	4(%r15), %ebx
	cmpl	$4096, %ebx                     ## imm = 0x1000
	ja	LBB0_15
## %bb.8:
	addl	$27, %ebx
	andl	$-4, %ebx
	cmpl	%r14d, %ebx
	ja	LBB0_15
## %bb.9:
	movq	%r15, %rdi
	callq	_mf_le_start
	testl	%eax, %eax
	movl	$-1, %eax
	cmovnsl	%ebx, %eax
	jmp	LBB0_15
LBB0_11:
	movq	_lev_mf@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_add_exception@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_STANDARD_LOG_EVENT_HANDLER
LBB0_12:
	movq	_lev_mf@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_del_exception@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_STANDARD_LOG_EVENT_HANDLER
LBB0_13:
	movq	_lev_mf@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_clear_exceptions@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_STANDARD_LOG_EVENT_HANDLER
	movl	(%r15), %ebx
LBB0_14:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_log_cur_pos
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_fprintf
	movl	$-1, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_newindexname@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_save_index
	movl	$13, %edi
	callq	_exit
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_6
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_11
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_index_mode,8,3                 ## @index_mode
	.comm	__eventsLeft,8,3                ## @_eventsLeft
	.comm	_MEMORY_CHANGES_PERCENT,4,2     ## @MEMORY_CHANGES_PERCENT
	.comm	_max_memory,4,2                 ## @max_memory
	.comm	_newindexname,4,2               ## @newindexname
	.comm	_lev_mf,4,2                     ## @lev_mf
	.comm	_add_exception,4,2              ## @add_exception
	.comm	_del_exception,4,2              ## @del_exception
	.comm	_clear_exceptions,4,2           ## @clear_exceptions
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown log event type %08x at position %lld\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mf_replay_logevent             ; -- Begin function mf_replay_logevent
	.p2align	2
_mf_replay_logevent:                    ; @mf_replay_logevent
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _index_mode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _index_mode@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, __eventsLeft@GOTPAGE
Lloh4:
	ldr	x8, [x8, __eventsLeft@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_3
; %bb.2:
	subs	x9, x9, #1
	str	x9, [x8]
	b.eq	LBB0_17
LBB0_3:
	bl	_get_memory_used
Lloh5:
	adrp	x8, _MEMORY_CHANGES_PERCENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MEMORY_CHANGES_PERCENT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _max_memory@GOTPAGE
Lloh9:
	ldr	x9, [x9, _max_memory@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	mul	w8, w9, w8
	cmp	w0, w8
	b.gt	LBB0_17
LBB0_4:
	ldr	w21, [x19]
	sub	w8, w21, #128
	cmp	w8, #9
	b.hi	LBB0_14
; %bb.5:
Lloh11:
	adrp	x9, lJTI0_0@PAGE
Lloh12:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	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	_default_replay_logevent
LBB0_7:
	cmp	w20, #24
	b.lt	LBB0_10
; %bb.8:
	ldr	w8, [x19, #4]
	cmp	w8, #1, lsl #12                 ; =4096
	b.hi	LBB0_10
; %bb.9:
	add	w8, w8, #27
	and	w21, w8, #0xfffffffc
	cmp	w21, w20
	b.ls	LBB0_16
LBB0_10:
	mov	w0, #-2
	b	LBB0_15
LBB0_11:
Lloh13:
	adrp	x8, _lev_mf@GOTPAGE
Lloh14:
	ldr	x8, [x8, _lev_mf@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x8, _add_exception@GOTPAGE
Lloh17:
	ldr	x8, [x8, _add_exception@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_STANDARD_LOG_EVENT_HANDLER
LBB0_12:
Lloh19:
	adrp	x8, _lev_mf@GOTPAGE
Lloh20:
	ldr	x8, [x8, _lev_mf@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x8, _del_exception@GOTPAGE
Lloh23:
	ldr	x8, [x8, _del_exception@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	bl	_STANDARD_LOG_EVENT_HANDLER
LBB0_13:
Lloh25:
	adrp	x8, _lev_mf@GOTPAGE
Lloh26:
	ldr	x8, [x8, _lev_mf@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x8, _clear_exceptions@GOTPAGE
Lloh29:
	ldr	x8, [x8, _clear_exceptions@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	bl	_STANDARD_LOG_EVENT_HANDLER
	ldr	w21, [x19]
LBB0_14:
Lloh31:
	adrp	x8, _stderr@GOTPAGE
Lloh32:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh33:
	ldr	w19, [x8]
	bl	_log_cur_pos
	mov	x3, x0
Lloh34:
	adrp	x1, l_.str@PAGE
Lloh35:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_fprintf
	mov	w0, #-1
LBB0_15:
	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
LBB0_16:
	mov	x0, x19
	bl	_mf_le_start
	cmp	w0, #0
	csinv	w0, w21, wzr, ge
	b	LBB0_15
LBB0_17:
Lloh36:
	adrp	x8, _newindexname@GOTPAGE
Lloh37:
	ldr	x8, [x8, _newindexname@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	bl	_save_index
	mov	w0, #13
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_12-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
                                        ; -- End function
	.comm	_index_mode,8,3                 ; @index_mode
	.comm	__eventsLeft,8,3                ; @_eventsLeft
	.comm	_MEMORY_CHANGES_PERCENT,4,2     ; @MEMORY_CHANGES_PERCENT
	.comm	_max_memory,4,2                 ; @max_memory
	.comm	_newindexname,4,2               ; @newindexname
	.comm	_lev_mf,4,2                     ; @lev_mf
	.comm	_add_exception,4,2              ; @add_exception
	.comm	_del_exception,4,2              ; @del_exception
	.comm	_clear_exceptions,4,2           ; @clear_exceptions
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown log event type %08x at position %lld\n"

.subsections_via_symbols
