	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	(%rsi), %rax
	movq	_progname@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	leaq	L_.str(%rip), %rbx
	leaq	LJTI0_0(%rip), %r12
	movq	_optarg@GOTPCREL(%rip), %r13
	jmp	LBB0_2
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movq	_username@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_getopt
                                        ## kill: def $eax killed $eax def $rax
	leal	-104(%rax), %ecx
	cmpl	$14, %ecx
	ja	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r12,%rcx,4), %rax
	addq	%r12, %rax
	jmpq	*%rax
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	_copy_rem@GOTPCREL(%rip), %rdx
	movq	_copy_mod@GOTPCREL(%rip), %rcx
	callq	_sscanf
	cmpl	$2, %eax
	jne	LBB0_18
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_copy_rem@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	js	LBB0_18
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_copy_mod@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_2
	jmp	LBB0_18
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rdi
	callq	_atoll
	movq	_jump_log_pos@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_2
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rdi
	callq	_atoll
	movq	_log_limit_pos@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_2
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_positive_counter_fits@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_fits@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_2
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_verbosity@GOTPCREL(%rip), %rax
	movq	$1, (%rax)
	jmp	LBB0_2
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.12:
	movq	_copy_mod@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	js	LBB0_18
## %bb.13:
	movq	_optind@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	cmpl	%r15d, %eax
	jge	LBB0_18
## %bb.14:
	leal	2(%rax), %ecx
	cmpl	%r15d, %ecx
	jl	LBB0_18
## %bb.15:
	movq	_log_limit_pos@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	js	LBB0_21
## %bb.16:
	movq	_jump_log_pos@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rcx, %rdx
	jle	LBB0_21
## %bb.17:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_19
LBB0_18:
	xorl	%eax, %eax
	callq	_usage
LBB0_19:
	movl	$2, %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	_username@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.22:
	callq	_change_user
	testq	%rax, %rax
	js	LBB0_42
## %bb.23:
	movl	(%r13), %eax
LBB0_24:
	cltq
	movq	(%r14,%rax,8), %rdi
	movq	_binlogname@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	callq	_engine_preload_filelist
	testq	%rax, %rax
	js	LBB0_45
## %bb.25:
	movq	_engine_replica@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_jump_log_pos@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_open_binlog
	movq	_Binlog@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_48
## %bb.26:
	movq	(%rax), %rcx
	movq	(%rcx), %rdx
	movq	%rdx, (%r12)
	movq	_verbosity@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_28
## %bb.27:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	(%rax), %rax
	movl	8(%rax), %ecx
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_28:
	xorl	%eax, %eax
	callq	_clear_log
	movq	_jump_log_pos@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_init_log_data
	cmpq	$0, (%rbx)
	jle	LBB0_30
## %bb.29:
	xorl	%edi, %edi
	callq	_init_stats_data
LBB0_30:
	movslq	(%r13), %rax
	leal	1(%rax), %ecx
	cmpl	%r15d, %ecx
	jge	LBB0_33
## %bb.31:
	movq	8(%r14,%rax,8), %rdi
	movq	_targ_fname@GOTPCREL(%rip), %rbx
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movq	_O_APPEND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rdi, (%rbx)
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	$420, %edx                      ## imm = 0x1A4
	callq	_open
	movq	_targ_fd@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	js	LBB0_43
## %bb.32:
	movq	_SEEK_END@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_lseek
	movq	_targ_orig_size@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setg	%cl
	movq	_targ_existed@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	jmp	LBB0_34
LBB0_33:
	leaq	L_.str.9(%rip), %rax
	movq	_targ_fname@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_targ_fd@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_34:
	xorl	%edi, %edi
	movl	$1, %esi
	callq	_replay_log
	testl	%eax, %eax
	js	LBB0_49
## %bb.35:
	movq	_log_limit_pos@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	js	LBB0_37
## %bb.36:
	movq	_log_readto_pos@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpq	%rcx, %rdx
	jne	LBB0_50
LBB0_37:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_flush_out
	movq	_targ_fd@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	cmpl	$1, %edi
	je	LBB0_40
## %bb.38:
	callq	_fdatasync
	testq	%rax, %rax
	js	LBB0_52
## %bb.39:
	movl	(%r14), %edi
	callq	_close
LBB0_40:
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_20
## %bb.41:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_output_stats
	jmp	LBB0_20
LBB0_42:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_username@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	leaq	L_.str.4(%rip), %rdx
	cmovneq	%rax, %rdx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_44
LBB0_43:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	leaq	L_.str.8(%rip), %rsi
LBB0_44:
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %ebx
	jmp	LBB0_20
LBB0_45:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rdx
	testq	%rdx, %rdx
	jne	LBB0_47
## %bb.46:
	movslq	(%r13), %rax
	movq	(%r14,%rax,8), %rdx
LBB0_47:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_53
LBB0_48:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rax
	movq	(%rax), %rdx
	leaq	L_.str.6(%rip), %rsi
	xorl	%ecx, %ecx
	jmp	LBB0_51
LBB0_49:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_50:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.11(%rip), %rsi
LBB0_51:
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_52:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_targ_fname@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.12(%rip), %rsi
LBB0_53:
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_1, LBB0_1-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_18
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_9
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_1
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_progname,8,3                   ## @progname
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hvu:m:s:t:p"

	.comm	_positive_counter_fits,4,2      ## @positive_counter_fits
	.comm	_fits,4,2                       ## @fits
	.comm	_verbosity,8,3                  ## @verbosity
	.comm	_optarg,8,3                     ## @optarg
	.comm	_username,8,3                   ## @username
L_.str.1:                               ## @.str.1
	.asciz	"%d,%d"

	.comm	_copy_rem,8,3                   ## @copy_rem
	.comm	_copy_mod,8,3                   ## @copy_mod
	.comm	_jump_log_pos,8,3               ## @jump_log_pos
	.comm	_log_limit_pos,8,3              ## @log_limit_pos
	.comm	_optind,4,2                     ## @optind
	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"fatal: log start position %lld after stop position %lld\n"

L_.str.3:                               ## @.str.3
	.asciz	"fatal: cannot change user to %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"(none)"

	.comm	_binlogname,8,3                 ## @binlogname
L_.str.5:                               ## @.str.5
	.asciz	"cannot open binlog files for %s\n"

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

L_.str.7:                               ## @.str.7
	.asciz	"replaying binlog file %s (size %lld)\n"

	.comm	_targ_fname,8,3                 ## @targ_fname
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_APPEND,4,2                   ## @O_APPEND
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_targ_fd,4,2                    ## @targ_fd
L_.str.8:                               ## @.str.8
	.asciz	"cannot create %s: %m\n"

	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_targ_orig_size,8,3             ## @targ_orig_size
	.comm	_targ_existed,4,2               ## @targ_existed
L_.str.9:                               ## @.str.9
	.asciz	"stdout"

L_.str.10:                              ## @.str.10
	.asciz	"fatal: error reading binlog\n"

	.comm	_log_readto_pos,8,3             ## @log_readto_pos
L_.str.11:                              ## @.str.11
	.asciz	"fatal: binlog read up to position %lld instead of %lld\n"

L_.str.12:                              ## @.str.12
	.asciz	"error syncing %s: %m"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _progname@GOTPAGE
Lloh1:
	ldr	x9, [x9, _progname@GOTPAGEOFF]
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
Lloh4:
	adrp	x25, lJTI0_0@PAGE
Lloh5:
	add	x25, x25, lJTI0_0@PAGEOFF
Lloh6:
	adrp	x26, _optarg@GOTPAGE
Lloh7:
	ldr	x26, [x26, _optarg@GOTPAGEOFF]
Lloh8:
	adrp	x24, _copy_rem@GOTPAGE
Lloh9:
	ldr	x24, [x24, _copy_rem@GOTPAGEOFF]
Lloh10:
	adrp	x23, _copy_mod@GOTPAGE
Lloh11:
	ldr	x23, [x23, _copy_mod@GOTPAGEOFF]
Lloh12:
	adrp	x27, _positive_counter_fits@GOTPAGE
Lloh13:
	ldr	x27, [x27, _positive_counter_fits@GOTPAGEOFF]
Lloh14:
	adrp	x28, _fits@GOTPAGE
Lloh15:
	ldr	x28, [x28, _fits@GOTPAGEOFF]
Lloh16:
	str	x8, [x9]
	mov	w22, #1
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x26]
Lloh17:
	adrp	x9, _username@GOTPAGE
Lloh18:
	ldr	x9, [x9, _username@GOTPAGEOFF]
Lloh19:
	str	x8, [x9]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_getopt
	sub	w8, w0, #104
	cmp	w8, #14
	b.hi	LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	adr	x9, LBB0_1
	ldrb	w10, [x25, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x26]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x24
	mov	x3, x23
	bl	_sscanf
	cmp	w0, #2
	b.ne	LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24]
	tbnz	x8, #63, LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x23]
	cmp	x8, x9
	b.lt	LBB0_2
	b	LBB0_14
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x26]
	bl	_atoll
Lloh22:
	adrp	x8, _jump_log_pos@GOTPAGE
Lloh23:
	ldr	x8, [x8, _jump_log_pos@GOTPAGEOFF]
Lloh24:
	str	x0, [x8]
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x26]
	bl	_atoll
Lloh25:
	adrp	x8, _log_limit_pos@GOTPAGE
Lloh26:
	ldr	x8, [x8, _log_limit_pos@GOTPAGEOFF]
Lloh27:
	str	x0, [x8]
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x27]
	str	w8, [x28]
	b	LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh28:
	adrp	x8, _verbosity@GOTPAGE
Lloh29:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh30:
	str	x22, [x8]
	b	LBB0_2
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.12:
	ldr	x8, [x23]
	tbnz	x8, #63, LBB0_14
; %bb.13:
Lloh31:
	adrp	x21, _optind@GOTPAGE
Lloh32:
	ldr	x21, [x21, _optind@GOTPAGEOFF]
	ldr	w8, [x21]
	add	w9, w8, #2
	cmp	w8, w20
	ccmp	w9, w20, #8, lt
	b.ge	LBB0_17
LBB0_14:
	bl	_usage
LBB0_15:
	mov	w0, #2
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_17:
Lloh33:
	adrp	x9, _log_limit_pos@GOTPAGE
Lloh34:
	ldr	x9, [x9, _log_limit_pos@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	tbnz	x9, #63, LBB0_20
; %bb.18:
Lloh36:
	adrp	x10, _jump_log_pos@GOTPAGE
Lloh37:
	ldr	x10, [x10, _jump_log_pos@GOTPAGEOFF]
Lloh38:
	ldr	x10, [x10]
	cmp	x10, x9
	b.le	LBB0_20
; %bb.19:
Lloh39:
	adrp	x8, _stderr@GOTPAGE
Lloh40:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	stp	x10, x9, [sp]
Lloh42:
	adrp	x1, l_.str.2@PAGE
Lloh43:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	b	LBB0_15
LBB0_20:
Lloh44:
	adrp	x9, _username@GOTPAGE
Lloh45:
	ldr	x9, [x9, _username@GOTPAGEOFF]
Lloh46:
	ldr	x0, [x9]
	cbz	x0, LBB0_23
; %bb.21:
	bl	_change_user
	tbnz	x0, #63, LBB0_42
; %bb.22:
	ldr	w8, [x21]
LBB0_23:
	ldr	x0, [x19, w8, sxtw #3]
Lloh47:
	adrp	x22, _binlogname@GOTPAGE
Lloh48:
	ldr	x22, [x22, _binlogname@GOTPAGEOFF]
	ldr	x1, [x22]
	bl	_engine_preload_filelist
	tbnz	x0, #63, LBB0_45
; %bb.24:
Lloh49:
	adrp	x23, _engine_replica@GOTPAGE
Lloh50:
	ldr	x23, [x23, _engine_replica@GOTPAGEOFF]
	ldr	x0, [x23]
Lloh51:
	adrp	x8, _jump_log_pos@GOTPAGE
Lloh52:
	ldr	x8, [x8, _jump_log_pos@GOTPAGEOFF]
Lloh53:
	ldr	x1, [x8]
	bl	_open_binlog
Lloh54:
	adrp	x8, _Binlog@GOTPAGE
Lloh55:
	ldr	x8, [x8, _Binlog@GOTPAGEOFF]
Lloh56:
	str	x0, [x8]
	cbz	x0, LBB0_48
; %bb.25:
	ldr	x8, [x0]
	ldr	x9, [x8]
	str	x9, [x22]
Lloh57:
	adrp	x8, _verbosity@GOTPAGE
Lloh58:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh59:
	ldr	x8, [x8]
	cbz	x8, LBB0_27
; %bb.26:
Lloh60:
	adrp	x8, _stderr@GOTPAGE
Lloh61:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh62:
	ldr	w8, [x8]
	ldr	x10, [x0]
	ldr	w10, [x10, #8]
	stp	x9, x10, [sp]
Lloh63:
	adrp	x1, l_.str.7@PAGE
Lloh64:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x8
	bl	_fprintf
LBB0_27:
	bl	_clear_log
Lloh65:
	adrp	x22, _jump_log_pos@GOTPAGE
Lloh66:
	ldr	x22, [x22, _jump_log_pos@GOTPAGEOFF]
	ldr	x0, [x22]
	mov	w1, #0
	mov	w2, #0
	bl	_init_log_data
	ldr	x8, [x22]
	cmp	x8, #1
	b.lt	LBB0_29
; %bb.28:
	mov	w0, #0
	bl	_init_stats_data
LBB0_29:
	ldrsw	x8, [x21]
	add	x8, x8, #1
Lloh67:
	adrp	x21, _targ_fd@GOTPAGE
Lloh68:
	ldr	x21, [x21, _targ_fd@GOTPAGEOFF]
	cmp	w8, w20
	b.ge	LBB0_32
; %bb.30:
	ldr	x0, [x19, x8, lsl #3]
Lloh69:
	adrp	x19, _targ_fname@GOTPAGE
Lloh70:
	ldr	x19, [x19, _targ_fname@GOTPAGEOFF]
	str	x0, [x19]
Lloh71:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh72:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh73:
	ldr	w8, [x8]
Lloh74:
	adrp	x9, _O_APPEND@GOTPAGE
Lloh75:
	ldr	x9, [x9, _O_APPEND@GOTPAGEOFF]
Lloh76:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh77:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh78:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh79:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	w2, #420
	bl	_open
	str	w0, [x21]
	tbnz	w0, #31, LBB0_43
; %bb.31:
Lloh80:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh81:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh82:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_lseek
Lloh83:
	adrp	x8, _targ_orig_size@GOTPAGE
Lloh84:
	ldr	x8, [x8, _targ_orig_size@GOTPAGEOFF]
Lloh85:
	str	x0, [x8]
	cmp	x0, #0
	cset	w8, gt
Lloh86:
	adrp	x9, _targ_existed@GOTPAGE
Lloh87:
	ldr	x9, [x9, _targ_existed@GOTPAGEOFF]
Lloh88:
	str	w8, [x9]
	b	LBB0_33
LBB0_32:
Lloh89:
	adrp	x8, _targ_fname@GOTPAGE
Lloh90:
	ldr	x8, [x8, _targ_fname@GOTPAGEOFF]
Lloh91:
	adrp	x9, l_.str.9@PAGE
Lloh92:
	add	x9, x9, l_.str.9@PAGEOFF
Lloh93:
	str	x9, [x8]
	mov	w8, #1
	str	w8, [x21]
LBB0_33:
	mov	w0, #0
	mov	w1, #1
	bl	_replay_log
	tbnz	w0, #31, LBB0_49
; %bb.34:
Lloh94:
	adrp	x8, _log_limit_pos@GOTPAGE
Lloh95:
	ldr	x8, [x8, _log_limit_pos@GOTPAGEOFF]
Lloh96:
	ldr	x8, [x8]
	tbnz	x8, #63, LBB0_36
; %bb.35:
Lloh97:
	adrp	x9, _log_readto_pos@GOTPAGE
Lloh98:
	ldr	x9, [x9, _log_readto_pos@GOTPAGEOFF]
Lloh99:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_50
LBB0_36:
	bl	_flush_out
	ldr	w0, [x21]
	cmp	w0, #1
	b.eq	LBB0_39
; %bb.37:
	bl	_fdatasync
	tbnz	x0, #63, LBB0_51
; %bb.38:
	ldr	w0, [x21]
	bl	_close
LBB0_39:
Lloh100:
	adrp	x8, _verbosity@GOTPAGE
Lloh101:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh102:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_41
; %bb.40:
	bl	_output_stats
LBB0_41:
	mov	w0, #0
	b	LBB0_16
LBB0_42:
Lloh103:
	adrp	x8, _stderr@GOTPAGE
Lloh104:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh105:
	ldr	w0, [x8]
Lloh106:
	adrp	x8, _username@GOTPAGE
Lloh107:
	ldr	x8, [x8, _username@GOTPAGEOFF]
Lloh108:
	ldr	x8, [x8]
Lloh109:
	adrp	x9, l_.str.4@PAGE
Lloh110:
	add	x9, x9, l_.str.4@PAGEOFF
	cmp	x8, #0
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh111:
	adrp	x1, l_.str.3@PAGE
Lloh112:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_44
LBB0_43:
Lloh113:
	adrp	x8, _stderr@GOTPAGE
Lloh114:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh115:
	ldr	w0, [x8]
	ldr	x8, [x19]
	str	x8, [sp]
Lloh116:
	adrp	x1, l_.str.8@PAGE
Lloh117:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_44:
	bl	_fprintf
	mov	w0, #1
	b	LBB0_16
LBB0_45:
Lloh118:
	adrp	x8, _stderr@GOTPAGE
Lloh119:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh120:
	ldr	w0, [x8]
	ldr	x8, [x22]
	cbnz	x8, LBB0_47
; %bb.46:
	ldrsw	x8, [x21]
	ldr	x8, [x19, x8, lsl #3]
LBB0_47:
	str	x8, [sp]
Lloh121:
	adrp	x1, l_.str.5@PAGE
Lloh122:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_52
LBB0_48:
Lloh123:
	adrp	x8, _stderr@GOTPAGE
Lloh124:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh125:
	ldr	w0, [x8]
	ldr	x8, [x23]
	ldr	x8, [x8]
	stp	x8, xzr, [sp]
Lloh126:
	adrp	x1, l_.str.6@PAGE
Lloh127:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_52
LBB0_49:
Lloh128:
	adrp	x8, _stderr@GOTPAGE
Lloh129:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh130:
	ldr	w0, [x8]
Lloh131:
	adrp	x1, l_.str.10@PAGE
Lloh132:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_52
LBB0_50:
Lloh133:
	adrp	x10, _stderr@GOTPAGE
Lloh134:
	ldr	x10, [x10, _stderr@GOTPAGEOFF]
Lloh135:
	ldr	w0, [x10]
	stp	x9, x8, [sp]
Lloh136:
	adrp	x1, l_.str.11@PAGE
Lloh137:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_52
LBB0_51:
Lloh138:
	adrp	x8, _stderr@GOTPAGE
Lloh139:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh140:
	ldr	w0, [x8]
Lloh141:
	adrp	x8, _targ_fname@GOTPAGE
Lloh142:
	ldr	x8, [x8, _targ_fname@GOTPAGEOFF]
Lloh143:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh144:
	adrp	x1, l_.str.12@PAGE
Lloh145:
	add	x1, x1, l_.str.12@PAGEOFF
LBB0_52:
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh16
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotStr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGotStr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotStr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpAdd	Lloh91, Lloh92
	.loh AdrpLdrGotStr	Lloh89, Lloh90, Lloh93
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpAdd	Lloh111, Lloh112
	.loh AdrpAdd	Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpAdd	Lloh116, Lloh117
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.loh AdrpAdd	Lloh121, Lloh122
	.loh AdrpAdd	Lloh126, Lloh127
	.loh AdrpLdrGotLdr	Lloh123, Lloh124, Lloh125
	.loh AdrpAdd	Lloh131, Lloh132
	.loh AdrpLdrGotLdr	Lloh128, Lloh129, Lloh130
	.loh AdrpAdd	Lloh136, Lloh137
	.loh AdrpLdrGotLdr	Lloh133, Lloh134, Lloh135
	.loh AdrpAdd	Lloh144, Lloh145
	.loh AdrpLdrGotLdr	Lloh141, Lloh142, Lloh143
	.loh AdrpLdrGotLdr	Lloh138, Lloh139, Lloh140
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_14-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_4-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_7-LBB0_1)>>2
	.byte	(LBB0_8-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_10-LBB0_1)>>2
                                        ; -- End function
	.comm	_progname,8,3                   ; @progname
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hvu:m:s:t:p"

	.comm	_positive_counter_fits,4,2      ; @positive_counter_fits
	.comm	_fits,4,2                       ; @fits
	.comm	_verbosity,8,3                  ; @verbosity
	.comm	_optarg,8,3                     ; @optarg
	.comm	_username,8,3                   ; @username
l_.str.1:                               ; @.str.1
	.asciz	"%d,%d"

	.comm	_copy_rem,8,3                   ; @copy_rem
	.comm	_copy_mod,8,3                   ; @copy_mod
	.comm	_jump_log_pos,8,3               ; @jump_log_pos
	.comm	_log_limit_pos,8,3              ; @log_limit_pos
	.comm	_optind,4,2                     ; @optind
	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"fatal: log start position %lld after stop position %lld\n"

l_.str.3:                               ; @.str.3
	.asciz	"fatal: cannot change user to %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"(none)"

	.comm	_binlogname,8,3                 ; @binlogname
l_.str.5:                               ; @.str.5
	.asciz	"cannot open binlog files for %s\n"

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

l_.str.7:                               ; @.str.7
	.asciz	"replaying binlog file %s (size %lld)\n"

	.comm	_targ_fname,8,3                 ; @targ_fname
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_APPEND,4,2                   ; @O_APPEND
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_targ_fd,4,2                    ; @targ_fd
l_.str.8:                               ; @.str.8
	.asciz	"cannot create %s: %m\n"

	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_targ_orig_size,8,3             ; @targ_orig_size
	.comm	_targ_existed,4,2               ; @targ_existed
l_.str.9:                               ; @.str.9
	.asciz	"stdout"

l_.str.10:                              ; @.str.10
	.asciz	"fatal: error reading binlog\n"

	.comm	_log_readto_pos,8,3             ; @log_readto_pos
l_.str.11:                              ; @.str.11
	.asciz	"fatal: binlog read up to position %lld instead of %lld\n"

l_.str.12:                              ; @.str.12
	.asciz	"error syncing %s: %m"

.subsections_via_symbols
