	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_play_binlog                    ## -- Begin function play_binlog
	.p2align	4, 0x90
_play_binlog:                           ## @play_binlog
	.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
	movq	%rdi, %r14
	movl	_play_binlog.replaying_step(%rip), %ebx
	incl	%ebx
	movl	%ebx, _play_binlog.replaying_step(%rip)
	movl	%ebx, %edi
	callq	_ending
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_vkprintf
	movq	_now@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_engine_replica@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_jump_log_pos@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	callq	_open_binlog
	movq	_Binlog@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rax), %rax
	movl	4(%rax), %edx
	movq	_binlogname@GOTPCREL(%rip), %rcx
	movl	%edx, (%rcx)
	movl	(%rax), %ecx
	movq	(%r15), %r8
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_vkprintf
	xorl	%eax, %eax
	callq	_mytime
	negl	%eax
	movq	_binlog_load_time@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	callq	_clear_log
	movq	(%r15), %rdi
	movq	_jump_log_ts@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_jump_log_crc32@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_init_log_data
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_vkprintf
	xorl	%edi, %edi
	movl	$1, %esi
	callq	_replay_log
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_vkprintf
	xorl	%eax, %eax
	callq	_mytime
	addl	%eax, (%rbx)
	movq	_log_readto_pos@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	subq	(%r15), %rax
	movq	_binlog_loaded_size@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	callq	_clear_write_log
	movq	(%r14), %rdi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_close_binlog                   ## TAILCALL
LBB0_1:
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	(%r15), %rdx
	leaq	L_.str.1(%rip), %rdi
	callq	_kprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_play_binlog.replaying_step,4,2 ## @play_binlog.replaying_step
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Start %d%s replaying binlog step (%s)\n"

	.comm	_now,8,3                        ## @now
	.comm	_engine_replica,8,3             ## @engine_replica
	.comm	_jump_log_pos,8,3               ## @jump_log_pos
	.comm	_Binlog,8,3                     ## @Binlog
L_.str.1:                               ## @.str.1
	.asciz	"fatal: cannot find binlog for %s, log position %lld\n"

	.comm	_binlogname,4,2                 ## @binlogname
L_.str.2:                               ## @.str.2
	.asciz	"replaying binlog file %s (size %lld) from position %lld\n"

	.comm	_binlog_load_time,4,2           ## @binlog_load_time
	.comm	_jump_log_ts,4,2                ## @jump_log_ts
	.comm	_jump_log_crc32,4,2             ## @jump_log_crc32
L_.str.3:                               ## @.str.3
	.asciz	"replay log events started\n"

L_.str.4:                               ## @.str.4
	.asciz	"replay log events finished\n"

	.comm	_log_readto_pos,4,2             ## @log_readto_pos
	.comm	_binlog_loaded_size,8,3         ## @binlog_loaded_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_play_binlog                    ; -- Begin function play_binlog
	.p2align	2
_play_binlog:                           ; @play_binlog
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	adrp	x8, _play_binlog.replaying_step@PAGE
	ldr	w9, [x8, _play_binlog.replaying_step@PAGEOFF]
	add	w20, w9, #1
	str	w20, [x8, _play_binlog.replaying_step@PAGEOFF]
	mov	x0, x20
	bl	_ending
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x0, x19, [sp, #8]
	str	x20, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_vkprintf
Lloh2:
	adrp	x8, _now@GOTPAGE
Lloh3:
	ldr	x8, [x8, _now@GOTPAGEOFF]
Lloh4:
	str	xzr, [x8]
Lloh5:
	adrp	x21, _engine_replica@GOTPAGE
Lloh6:
	ldr	x21, [x21, _engine_replica@GOTPAGEOFF]
	ldr	x0, [x21]
Lloh7:
	adrp	x19, _jump_log_pos@GOTPAGE
Lloh8:
	ldr	x19, [x19, _jump_log_pos@GOTPAGEOFF]
	ldr	x1, [x19]
	bl	_open_binlog
Lloh9:
	adrp	x20, _Binlog@GOTPAGE
Lloh10:
	ldr	x20, [x20, _Binlog@GOTPAGEOFF]
	str	x0, [x20]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x0]
	ldr	w9, [x8, #4]
Lloh11:
	adrp	x10, _binlogname@GOTPAGE
Lloh12:
	ldr	x10, [x10, _binlogname@GOTPAGEOFF]
Lloh13:
	str	w9, [x10]
	ldr	x10, [x19]
	ldr	w8, [x8]
	stp	x8, x10, [sp, #8]
	str	x9, [sp]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_vkprintf
	bl	_mytime
	neg	w8, w0
Lloh16:
	adrp	x21, _binlog_load_time@GOTPAGE
Lloh17:
	ldr	x21, [x21, _binlog_load_time@GOTPAGEOFF]
	str	w8, [x21]
	bl	_clear_log
	ldr	x0, [x19]
Lloh18:
	adrp	x8, _jump_log_ts@GOTPAGE
Lloh19:
	ldr	x8, [x8, _jump_log_ts@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _jump_log_crc32@GOTPAGE
Lloh22:
	ldr	x8, [x8, _jump_log_crc32@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	bl	_init_log_data
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_vkprintf
	mov	w0, #0
	mov	w1, #1
	bl	_replay_log
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_vkprintf
	bl	_mytime
	ldr	w8, [x21]
	add	w8, w8, w0
	str	w8, [x21]
Lloh28:
	adrp	x8, _log_readto_pos@GOTPAGE
Lloh29:
	ldr	x8, [x8, _log_readto_pos@GOTPAGEOFF]
Lloh30:
	ldrsw	x8, [x8]
	ldr	x9, [x19]
	sub	x8, x8, x9
Lloh31:
	adrp	x9, _binlog_loaded_size@GOTPAGE
Lloh32:
	ldr	x9, [x9, _binlog_loaded_size@GOTPAGEOFF]
Lloh33:
	str	x8, [x9]
	bl	_clear_write_log
	ldr	x0, [x20]
	mov	w1, #1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_close_binlog
LBB0_2:
	ldr	x8, [x21]
	ldr	w1, [x8]
	ldr	x2, [x19]
Lloh34:
	adrp	x0, l_.str.1@PAGE
Lloh35:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_kprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_play_binlog.replaying_step,4,2 ; @play_binlog.replaying_step
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Start %d%s replaying binlog step (%s)\n"

	.comm	_now,8,3                        ; @now
	.comm	_engine_replica,8,3             ; @engine_replica
	.comm	_jump_log_pos,8,3               ; @jump_log_pos
	.comm	_Binlog,8,3                     ; @Binlog
l_.str.1:                               ; @.str.1
	.asciz	"fatal: cannot find binlog for %s, log position %lld\n"

	.comm	_binlogname,4,2                 ; @binlogname
l_.str.2:                               ; @.str.2
	.asciz	"replaying binlog file %s (size %lld) from position %lld\n"

	.comm	_binlog_load_time,4,2           ; @binlog_load_time
	.comm	_jump_log_ts,4,2                ; @jump_log_ts
	.comm	_jump_log_crc32,4,2             ; @jump_log_crc32
l_.str.3:                               ; @.str.3
	.asciz	"replay log events started\n"

l_.str.4:                               ; @.str.4
	.asciz	"replay log events finished\n"

	.comm	_log_readto_pos,4,2             ; @log_readto_pos
	.comm	_binlog_loaded_size,8,3         ; @binlog_loaded_size
.subsections_via_symbols
