	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_preload_file_info              ## -- Begin function preload_file_info
	.p2align	4, 0x90
_preload_file_info:                     ## @preload_file_info
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r14d
	cmpl	$0, (%rdi)
	jne	LBB0_60
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_kfs_file_compute_initialization_vector
	testq	%rax, %rax
	js	LBB0_8
## %bb.3:
	movq	_START_BUFFER_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_malloc
	movl	%eax, (%rbx)
	movl	%eax, %edi
	callq	_assert
	movl	(%rbx), %esi
	movl	(%r15), %edx
	movl	%r14d, %edi
	callq	_read
	testl	%eax, %eax
	js	LBB0_10
## %bb.4:
	movl	%eax, %r12d
	movl	%eax, 20(%rbx)
	cmpq	$0, 88(%rbx)
	je	LBB0_14
## %bb.5:
	movq	72(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_12
## %bb.6:
	cmpq	$0, 8(%r15)
	setne	%al
	jmp	LBB0_13
LBB0_7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testb	$1, 16(%rbx)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	movq	8(%rbx), %rcx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_9
LBB0_8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testb	$1, 16(%rbx)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	movq	8(%rbx), %rcx
	leaq	L_.str.3(%rip), %rsi
LBB0_9:
	xorl	%eax, %eax
	callq	_fprintf
	movl	$-2, %r14d
	jmp	LBB0_60
LBB0_10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testb	$1, 16(%rbx)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	movq	8(%rbx), %rcx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_11:
	movl	%r14d, %edi
	callq	_close
	shrq	$63, %rax
	xorl	$1, %eax
	movl	%eax, %edi
	callq	_assert
	movl	(%rbx), %edi
	callq	_free
	movl	$0, (%rbx)
	movl	$-2, %r14d
	jmp	LBB0_60
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	movzbl	%al, %edi
	callq	_assert
	movq	8(%r15), %rdi
	movslq	(%rbx), %rdx
	movq	88(%rbx), %r8
	movq	%rdx, %rsi
	movl	%r12d, %ecx
	xorl	%r9d, %r9d
	callq	*(%rdi)
LBB0_14:
	movslq	(%rbx), %r13
	cmpl	$4096, %r12d                    ## imm = 0x1000
	jb	LBB0_23
## %bb.15:
	movq	(%r13), %rax
	movq	_KFS_MAGIC@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_23
## %bb.16:
	movq	%r13, %rdi
	callq	_check_kfs_header_basic
	testq	%rax, %rax
	js	LBB0_37
## %bb.17:
	cmpl	$8192, %r12d                    ## imm = 0x2000
	jb	LBB0_33
## %bb.18:
	movq	56(%r13), %rax
	cmpq	(%r15), %rax
	jne	LBB0_33
## %bb.19:
	leaq	56(%r13), %rdi
	movq	%rdi, %r15
	callq	_check_kfs_header_basic
	testq	%rax, %rax
	js	LBB0_62
## %bb.20:
	movq	8(%r13), %rax
	movq	64(%r13), %rcx
	cmpq	%rax, %rcx
	jne	LBB0_22
## %bb.21:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_memcmp
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movq	8(%r13), %rax
	movq	64(%r13), %rcx
LBB0_22:
	leaq	80(%rbx), %rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rcx
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rcx
	cmovleq	%r13, %rcx
	movq	%rcx, 80(%rbx)
	movl	$2, %r15d
	jmp	LBB0_34
LBB0_23:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	leaq	80(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	$0, 80(%rbx)
	movl	$1, %r13d
	movl	$1, %edi
	callq	_assert
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
LBB0_24:
	movl	%r13d, %edi
	callq	_assert
	movl	%r15d, 32(%rbx)
	movq	24(%rbx), %rax
	movq	_kfs_binlog@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_49
## %bb.25:
	movl	%r15d, %eax
	imulq	$56, %rax, %rax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rax), %rcx
	movl	%r15d, %r13d
	shll	$12, %r13d
	movl	(%rdx,%rax), %eax
	leal	-128(%rax), %edx
	cmpl	$2, %edx
	jae	LBB0_29
## %bb.26:
	testb	$16, 16(%rbx)
	jne	LBB0_35
## %bb.27:
	subl	%r13d, %r12d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	callq	_process_first36_bytes
	testl	%eax, %eax
	js	LBB0_28
LBB0_41:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_44
## %bb.42:
	movq	40(%rax), %r9
	movq	40(%rbx), %r8
	cmpq	%r8, %r9
	je	LBB0_45
## %bb.43:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rdx
	leaq	L_.str.11(%rip), %rsi
	movq	%r9, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_57
LBB0_29:
	cmpl	$130, %eax
	jne	LBB0_36
## %bb.30:
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_39
## %bb.31:
	testb	$16, 16(%rbx)
	jne	LBB0_40
## %bb.32:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rdx
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_56
LBB0_33:
	leaq	80(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, 80(%rbx)
	movl	$1, %r15d
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rcx
LBB0_34:
	movl	%r15d, %eax
	shll	$12, %eax
	addq	16(%rcx), %rax
	xorl	%edi, %edi
	cmpq	24(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	80(%rbx), %rax
	movq	32(%rax), %rax
	xorl	%r13d, %r13d
	cmpq	24(%rbx), %rax
	sete	%r13b
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_24
LBB0_35:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rdx
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_56
LBB0_36:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	8(%rbx), %rdx
	leaq	L_.str.10(%rip), %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_57
LBB0_37:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
LBB0_38:
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_11
LBB0_39:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rdx
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_56
LBB0_44:
	movq	40(%rbx), %r9
LBB0_45:
	movq	48(%rbx), %r10
	movq	56(%rbx), %r11
	cmpq	%r10, %r9
	jl	LBB0_61
## %bb.46:
	cmpq	%r11, %r9
	jg	LBB0_61
## %bb.47:
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_49
## %bb.48:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rdx
	movq	64(%rbx), %rcx
	movl	%r13d, %eax
	movq	%r9, %r12
	subq	%rax, %r12
	addq	%rcx, %r12
	subq	$8, %rsp
	leaq	L_.str.13(%rip), %rsi
	movl	%r15d, %r8d
	xorl	%eax, %eax
	pushq	%r11
	pushq	%r10
	pushq	%r12
	callq	_fprintf
	addq	$32, %rsp
LBB0_49:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_59
## %bb.50:
	movq	72(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_59
## %bb.51:
	movq	48(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_55
## %bb.52:
	movq	(%rax), %r8
	testq	%r8, %r8
	je	LBB0_58
## %bb.53:
	cmpq	%rcx, %r8
	je	LBB0_59
## %bb.54:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rdx
	leaq	L_.str.15(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_59
LBB0_55:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rdx
	leaq	L_.str.14(%rip), %rsi
LBB0_56:
	xorl	%eax, %eax
	callq	_fprintf
LBB0_57:
	movl	%r14d, %edi
	callq	_close
	shrq	$63, %rax
	xorl	$1, %eax
	movl	%eax, %edi
	callq	_assert
	movl	$-2, %r14d
	jmp	LBB0_60
LBB0_58:
	movq	%rcx, (%rax)
LBB0_59:
	shll	$12, %r15d
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_lseek
	xorl	%edi, %edi
	cmpl	%r15d, %eax
	sete	%dil
	callq	_assert
LBB0_60:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_61:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rdx
	leaq	L_.str.12(%rip), %rsi
	movq	%r9, %rcx
	movq	%r10, %r8
	movq	%r11, %r9
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_57
LBB0_40:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%rcx, %rdx
	callq	_process_binlog_zip_header
	testl	%eax, %eax
	jns	LBB0_41
LBB0_28:
	movl	$-2, %r14d
	jmp	LBB0_60
LBB0_62:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_38
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot open %s file %s: %m\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"binlog"

L_.str.3:                               ## @.str.3
	.asciz	"Cannot compute AES initialization vector for %s file %s.\n"

	.comm	_START_BUFFER_SIZE,4,2          ## @START_BUFFER_SIZE
L_.str.4:                               ## @.str.4
	.asciz	"Cannot read %s file %s: %m\n"

	.comm	_KFS_MAGIC,8,3                  ## @KFS_MAGIC
L_.str.5:                               ## @.str.5
	.asciz	"bad kfs header #0\n"

L_.str.6:                               ## @.str.6
	.asciz	"bad kfs header #1\n"

	.comm	_kfs_binlog,8,3                 ## @kfs_binlog
L_.str.7:                               ## @.str.7
	.asciz	"error: zipped binlog file '%s' starts from LEV_START or LEV_ROTATE_FROM.\n"

L_.str.8:                               ## @.str.8
	.asciz	"error: zipped binlog file '%s' contains KFS headers\n"

L_.str.9:                               ## @.str.9
	.asciz	"error: not zipped binlog file '%s' contains KFS_BINLOG_ZIP_MAGIC\n"

L_.str.10:                              ## @.str.10
	.asciz	"warning: binlog file %s begins with wrong entry type %08x\n"

L_.str.11:                              ## @.str.11
	.asciz	"warning: binlog file %s has different starting position in header (%lld) and starting record (%lld)\n"

L_.str.12:                              ## @.str.12
	.asciz	"warning: binlog file %s starts from position %lld (should be in %lld..%lld)\n"

	.comm	_verbosity,4,2                  ## @verbosity
L_.str.13:                              ## @.str.13
	.asciz	"preloaded binlog file info for %s (%lld bytes, %d headers), covering %lld..%lld, name corresponds to %lld..%lld\n"

L_.str.14:                              ## @.str.14
	.asciz	"warning: binlog file %s has zero replica_id_hash, skipping\n"

L_.str.15:                              ## @.str.15
	.asciz	"warning: binlog file %s has incorrect replica_id_hash %016llx != %016llx\n"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_preload_file_info              ; -- Begin function preload_file_info
	.p2align	2
_preload_file_info:                     ; @preload_file_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w19, #-1
	b	LBB0_60
LBB0_2:
	mov	x20, x0
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_open
	tbnz	w0, #31, LBB0_8
; %bb.3:
	mov	x19, x0
	mov	x0, x20
	bl	_kfs_file_compute_initialization_vector
	tbnz	x0, #63, LBB0_9
; %bb.4:
Lloh3:
	adrp	x21, _START_BUFFER_SIZE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _START_BUFFER_SIZE@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_malloc
	str	w0, [x20]
	bl	_assert
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_read
	tbnz	w0, #31, LBB0_11
; %bb.5:
	mov	x21, x0
	str	w0, [x20, #20]
	ldr	x8, [x20, #88]
	cbz	x8, LBB0_15
; %bb.6:
	ldr	x22, [x20, #72]
	cbz	x22, LBB0_13
; %bb.7:
	ldr	x8, [x22, #8]
	cmp	x8, #0
	cset	w0, ne
	b	LBB0_14
LBB0_8:
Lloh5:
	adrp	x8, _stderr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, l_.str.1@PAGE
Lloh9:
	add	x8, x8, l_.str.1@PAGEOFF
	ldr	w9, [x20, #16]
Lloh10:
	adrp	x10, l_.str.2@PAGE
Lloh11:
	add	x10, x10, l_.str.2@PAGEOFF
	tst	w9, #0x1
	csel	x8, x10, x8, eq
	ldr	x9, [x20, #8]
	stp	x8, x9, [sp]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh14:
	adrp	x8, _stderr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, l_.str.1@PAGE
Lloh18:
	add	x8, x8, l_.str.1@PAGEOFF
	ldr	w9, [x20, #16]
Lloh19:
	adrp	x10, l_.str.2@PAGE
Lloh20:
	add	x10, x10, l_.str.2@PAGEOFF
	tst	w9, #0x1
	csel	x8, x10, x8, eq
	ldr	x9, [x20, #8]
	stp	x8, x9, [sp]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_10:
	bl	_fprintf
	b	LBB0_59
LBB0_11:
Lloh23:
	adrp	x8, _stderr@GOTPAGE
Lloh24:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x8, l_.str.1@PAGE
Lloh27:
	add	x8, x8, l_.str.1@PAGEOFF
	ldr	w9, [x20, #16]
Lloh28:
	adrp	x10, l_.str.2@PAGE
Lloh29:
	add	x10, x10, l_.str.2@PAGEOFF
	tst	w9, #0x1
	csel	x8, x10, x8, eq
	ldr	x9, [x20, #8]
	stp	x8, x9, [sp]
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_12:
	bl	_fprintf
	mov	x0, x19
	bl	_close
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_assert
	ldr	w0, [x20]
	bl	_free
	str	wzr, [x20]
	b	LBB0_59
LBB0_13:
	mov	w0, #0
LBB0_14:
	bl	_assert
	ldr	x0, [x22, #8]
	ldr	x8, [x0]
	ldrsw	x1, [x20]
	ldr	x4, [x20, #88]
	mov	x2, x1
	mov	x3, x21
	mov	x5, #0
	blr	x8
LBB0_15:
	ldrsw	x22, [x20]
	cmp	w21, #1, lsl #12                ; =4096
	b.lo	LBB0_24
; %bb.16:
	ldr	x8, [x22]
Lloh32:
	adrp	x24, _KFS_MAGIC@GOTPAGE
Lloh33:
	ldr	x24, [x24, _KFS_MAGIC@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.17:
	mov	x0, x22
	bl	_check_kfs_header_basic
	tbnz	x0, #63, LBB0_37
; %bb.18:
	cmp	w21, #2, lsl #12                ; =8192
	b.lo	LBB0_33
; %bb.19:
	mov	x23, x22
	ldr	x8, [x23, #56]!
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_33
; %bb.20:
	mov	x0, x23
	bl	_check_kfs_header_basic
	tbnz	x0, #63, LBB0_61
; %bb.21:
	ldr	x8, [x22, #64]
	ldr	x9, [x22, #8]
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.22:
	mov	x0, x23
	mov	x1, x22
	mov	w2, #4096
	bl	_memcmp
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	ldr	x8, [x22, #64]
	ldr	x9, [x22, #8]
LBB0_23:
	cmp	x8, x9
	csel	x8, x23, x22, gt
	mov	x24, x20
	str	x8, [x24, #80]!
	mov	w23, #2
	b	LBB0_34
LBB0_24:
	mov	x24, x20
	str	xzr, [x24, #80]!
	mov	w25, #1
	mov	w0, #1
	bl	_assert
	mov	w23, #0
	mov	w0, #1
LBB0_25:
	bl	_assert
	str	w23, [x20, #32]
	ldr	x8, [x20, #24]
Lloh34:
	adrp	x9, _kfs_binlog@GOTPAGE
Lloh35:
	ldr	x9, [x9, _kfs_binlog@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_48
; %bb.26:
	mov	w8, #56
	umaddl	x3, w23, w8, x22
	lsl	w22, w23, #12
	ldr	w8, [x3]
	sub	w9, w8, #128
	cmp	w9, #2
	b.hs	LBB0_29
; %bb.27:
	ldrb	w8, [x20, #16]
	tbnz	w8, #4, LBB0_35
; %bb.28:
	sub	w2, w21, w22
	mov	x0, x20
	mov	x1, x19
	bl	_process_first36_bytes
	tbz	w0, #31, LBB0_40
	b	LBB0_59
LBB0_29:
	cmp	w8, #130
	b.ne	LBB0_36
; %bb.30:
	tbz	w25, #0, LBB0_38
; %bb.31:
	ldrb	w8, [x20, #16]
	tbnz	w8, #4, LBB0_39
; %bb.32:
Lloh37:
	adrp	x8, _stderr@GOTPAGE
Lloh38:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	ldr	x8, [x20, #8]
	str	x8, [sp]
Lloh40:
	adrp	x1, l_.str.9@PAGE
Lloh41:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_58
LBB0_33:
	mov	x24, x20
	str	x22, [x24, #80]!
	mov	w23, #1
	mov	x8, x22
LBB0_34:
	lsl	w9, w23, #12
	ldp	x10, x8, [x8, #16]
	add	x9, x10, x9
	cmp	x9, x8
	cset	w0, eq
	bl	_assert
	mov	w25, #0
	ldr	x8, [x20, #80]
	ldr	x8, [x8, #32]
	ldr	x9, [x20, #24]
	cmp	x8, x9
	cset	w0, eq
	b	LBB0_25
LBB0_35:
Lloh42:
	adrp	x8, _stderr@GOTPAGE
Lloh43:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	ldr	x8, [x20, #8]
	str	x8, [sp]
Lloh45:
	adrp	x1, l_.str.7@PAGE
Lloh46:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_58
LBB0_36:
Lloh47:
	adrp	x9, _stderr@GOTPAGE
Lloh48:
	ldr	x9, [x9, _stderr@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x9]
	ldr	x9, [x20, #8]
	stp	x9, x8, [sp]
Lloh50:
	adrp	x1, l_.str.10@PAGE
Lloh51:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_58
LBB0_37:
Lloh52:
	adrp	x8, _stderr@GOTPAGE
Lloh53:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh54:
	ldr	w0, [x8]
Lloh55:
	adrp	x1, l_.str.5@PAGE
Lloh56:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_12
LBB0_38:
Lloh57:
	adrp	x8, _stderr@GOTPAGE
Lloh58:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh59:
	ldr	w0, [x8]
	ldr	x8, [x20, #8]
	str	x8, [sp]
Lloh60:
	adrp	x1, l_.str.8@PAGE
Lloh61:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_58
LBB0_39:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x3
	bl	_process_binlog_zip_header
	tbnz	w0, #31, LBB0_59
LBB0_40:
	ldr	x8, [x24]
	cbz	x8, LBB0_43
; %bb.41:
	ldr	x8, [x8, #40]
	ldr	x9, [x20, #40]
	cmp	x8, x9
	b.eq	LBB0_44
; %bb.42:
Lloh62:
	adrp	x10, _stderr@GOTPAGE
Lloh63:
	ldr	x10, [x10, _stderr@GOTPAGEOFF]
Lloh64:
	ldr	w0, [x10]
	ldr	x10, [x20, #8]
	stp	x8, x9, [sp, #8]
	str	x10, [sp]
Lloh65:
	adrp	x1, l_.str.11@PAGE
Lloh66:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_58
LBB0_43:
	ldr	x8, [x20, #40]
LBB0_44:
	ldp	x9, x10, [x20, #48]
	cmp	x8, x9
	b.lt	LBB0_57
; %bb.45:
	cmp	x8, x10
	b.gt	LBB0_57
; %bb.46:
Lloh67:
	adrp	x11, _verbosity@GOTPAGE
Lloh68:
	ldr	x11, [x11, _verbosity@GOTPAGEOFF]
Lloh69:
	ldr	w11, [x11]
	cmp	w11, #2
	b.lt	LBB0_48
; %bb.47:
Lloh70:
	adrp	x11, _stderr@GOTPAGE
Lloh71:
	ldr	x11, [x11, _stderr@GOTPAGEOFF]
Lloh72:
	ldr	w0, [x11]
	ldr	x11, [x20, #8]
	ldr	x12, [x20, #64]
	sub	x13, x8, w22, uxtw
	add	x13, x13, x12
	stp	x9, x10, [sp, #40]
	stp	x8, x13, [sp, #24]
	stp	x12, x23, [sp, #8]
Lloh73:
	adrp	x1, l_.str.13@PAGE
Lloh74:
	add	x1, x1, l_.str.13@PAGEOFF
	str	x11, [sp]
	bl	_fprintf
LBB0_48:
	ldr	x8, [x24]
	cbz	x8, LBB0_56
; %bb.49:
	ldr	x9, [x20, #72]
	cbz	x9, LBB0_56
; %bb.50:
	ldr	x8, [x8, #48]
	cbz	x8, LBB0_54
; %bb.51:
	ldr	x10, [x9]
	cbz	x10, LBB0_55
; %bb.52:
	cmp	x10, x8
	b.eq	LBB0_56
; %bb.53:
Lloh75:
	adrp	x9, _stderr@GOTPAGE
Lloh76:
	ldr	x9, [x9, _stderr@GOTPAGEOFF]
Lloh77:
	ldr	w0, [x9]
	ldr	x9, [x20, #8]
	stp	x8, x10, [sp, #8]
	str	x9, [sp]
Lloh78:
	adrp	x1, l_.str.15@PAGE
Lloh79:
	add	x1, x1, l_.str.15@PAGEOFF
	bl	_fprintf
	b	LBB0_56
LBB0_54:
Lloh80:
	adrp	x8, _stderr@GOTPAGE
Lloh81:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh82:
	ldr	w0, [x8]
	ldr	x8, [x20, #8]
	str	x8, [sp]
Lloh83:
	adrp	x1, l_.str.14@PAGE
Lloh84:
	add	x1, x1, l_.str.14@PAGEOFF
	b	LBB0_58
LBB0_55:
	str	x8, [x9]
LBB0_56:
	lsl	w20, w23, #12
Lloh85:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh86:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh87:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_lseek
	cmp	w0, w20
	cset	w0, eq
	bl	_assert
	b	LBB0_60
LBB0_57:
Lloh88:
	adrp	x11, _stderr@GOTPAGE
Lloh89:
	ldr	x11, [x11, _stderr@GOTPAGEOFF]
Lloh90:
	ldr	w0, [x11]
	ldr	x11, [x20, #8]
	stp	x9, x10, [sp, #16]
	stp	x11, x8, [sp]
Lloh91:
	adrp	x1, l_.str.12@PAGE
Lloh92:
	add	x1, x1, l_.str.12@PAGEOFF
LBB0_58:
	bl	_fprintf
	mov	x0, x19
	bl	_close
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_assert
LBB0_59:
	mov	w19, #-2
LBB0_60:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_61:
Lloh93:
	adrp	x8, _stderr@GOTPAGE
Lloh94:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh95:
	ldr	w0, [x8]
Lloh96:
	adrp	x1, l_.str.6@PAGE
Lloh97:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpAdd	Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpAdd	Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpAdd	Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot open %s file %s: %m\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"binlog"

l_.str.3:                               ; @.str.3
	.asciz	"Cannot compute AES initialization vector for %s file %s.\n"

	.comm	_START_BUFFER_SIZE,4,2          ; @START_BUFFER_SIZE
l_.str.4:                               ; @.str.4
	.asciz	"Cannot read %s file %s: %m\n"

	.comm	_KFS_MAGIC,8,3                  ; @KFS_MAGIC
l_.str.5:                               ; @.str.5
	.asciz	"bad kfs header #0\n"

l_.str.6:                               ; @.str.6
	.asciz	"bad kfs header #1\n"

	.comm	_kfs_binlog,8,3                 ; @kfs_binlog
l_.str.7:                               ; @.str.7
	.asciz	"error: zipped binlog file '%s' starts from LEV_START or LEV_ROTATE_FROM.\n"

l_.str.8:                               ; @.str.8
	.asciz	"error: zipped binlog file '%s' contains KFS headers\n"

l_.str.9:                               ; @.str.9
	.asciz	"error: not zipped binlog file '%s' contains KFS_BINLOG_ZIP_MAGIC\n"

l_.str.10:                              ; @.str.10
	.asciz	"warning: binlog file %s begins with wrong entry type %08x\n"

l_.str.11:                              ; @.str.11
	.asciz	"warning: binlog file %s has different starting position in header (%lld) and starting record (%lld)\n"

l_.str.12:                              ; @.str.12
	.asciz	"warning: binlog file %s starts from position %lld (should be in %lld..%lld)\n"

	.comm	_verbosity,4,2                  ; @verbosity
l_.str.13:                              ; @.str.13
	.asciz	"preloaded binlog file info for %s (%lld bytes, %d headers), covering %lld..%lld, name corresponds to %lld..%lld\n"

l_.str.14:                              ; @.str.14
	.asciz	"warning: binlog file %s has zero replica_id_hash, skipping\n"

l_.str.15:                              ; @.str.15
	.asciz	"warning: binlog file %s has incorrect replica_id_hash %016llx != %016llx\n"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
.subsections_via_symbols
