	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_binlog_headers
_load_binlog_headers:                   ## @load_binlog_headers
	.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
	movl	%edi, %r14d
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_assert
	movq	_binlog_headers@GOTPCREL(%rip), %r12
	movl	$0, (%r12)
	movq	_binlog_existed@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_ST@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_CONT@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_KHDR@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_cur_binlog_file_hash@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_log_headers_size@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_tot_crc32@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_tot_crc32_pos@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_lseek
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
LBB0_2:
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_56
LBB0_3:
	movq	_kfs_Hdr@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%r14d, %edi
	movl	$12288, %edx                    ## imm = 0x3000
	callq	_read
	testl	%eax, %eax
	je	LBB0_57
## %bb.4:
	movl	%eax, %r15d
	movq	_Binlog@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.5:
	cmpl	%r14d, (%rdi)
	jne	LBB0_7
## %bb.6:
	movq	_kfs_Hdr@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_kfs_buffer_crypt
LBB0_7:
	cmpl	$4096, %r15d                    ## imm = 0x1000
	jl	LBB0_17
## %bb.8:
	movq	_kfs_Hdr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	(%rdi), %rax
	movq	_KFS_MAGIC@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_17
## %bb.9:
	callq	_check_kfs_header_basic
	testq	%rax, %rax
	js	LBB0_25
## %bb.10:
	movq	_kfs_Hdr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	8(%rdi), %rax
	movq	_kfs_binlog@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_25
## %bb.11:
	incl	(%r12)
	cmpl	$8192, %r15d                    ## imm = 0x2000
	jb	LBB0_17
## %bb.12:
	movq	112(%rdi), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_17
## %bb.13:
	addq	$112, %rdi
	callq	_check_kfs_header_basic
	testq	%rax, %rax
	js	LBB0_54
## %bb.14:
	movq	_kfs_Hdr@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	120(%rsi), %rax
	cmpq	(%r13), %rax
	jne	LBB0_54
## %bb.15:
	incl	(%r12)
	movq	128(%rsi), %rax
	cmpq	16(%rsi), %rax
	jne	LBB0_17
## %bb.16:
	leaq	112(%rsi), %rdi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_memcmp
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
LBB0_17:
	movslq	(%r12), %rax
	movl	%eax, %ecx
	shll	$12, %ecx
	subl	%ecx, %r15d
	cmpl	$3, %r15d
	jg	LBB0_19
## %bb.18:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_55
LBB0_19:
	imulq	$112, %rax, %rbx
	movq	_kfs_Hdr@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	_binlog_zipped@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edx
	cmpl	$130, %edx
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	cmpl	$0, (%r12)
	sete	%al
	cmpl	$0, (%r13)
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	xorl	%edi, %edi
	cmpl	$8, %r15d
	setae	%dil
	callq	_assert
	movslq	(%r12), %rax
	imulq	$112, %rax, %rax
	movq	_kfs_Hdr@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	sete	%dil
	callq	_assert
	movq	(%rbx), %rbx
	movl	$36, %r15d
	jmp	LBB0_20
LBB0_22:
	cmpl	$129, %edx
	je	LBB0_26
## %bb.23:
	cmpl	$128, %edx
	movq	_cur_binlog_file_hash@GOTPCREL(%rip), %r13
	jne	LBB0_39
## %bb.24:
	xorl	%edi, %edi
	cmpl	$36, %r15d
	setae	%dil
	callq	_assert
	movq	_ST@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	movq	_log_start_pos@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	jmp	LBB0_27
LBB0_25:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_55
LBB0_26:
	xorl	%edi, %edi
	cmpl	$20, %r15d
	setae	%dil
	callq	_assert
	movq	_CONT@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	movl	(%rbx), %eax
	movq	_log_start_pos@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	4(%rbx), %eax
	movq	_cur_binlog_file_hash@GOTPCREL(%rip), %r13
	movl	%eax, (%r13)
LBB0_27:
	movq	_binlog_existed@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movslq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_40
## %bb.28:
	movq	_kfs_Hdr@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_KHDR@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
	cmpl	$2, %eax
	jl	LBB0_31
## %bb.29:
	movq	128(%rcx), %rdx
	cmpq	16(%rcx), %rdx
	jle	LBB0_31
## %bb.30:
	addq	$112, %rcx
	movq	_KHDR@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
LBB0_31:
	shlq	$12, %rax
	addq	24(%rcx), %rax
	xorl	%edi, %edi
	cmpq	32(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	_KHDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	104(%rax), %rcx
	movq	_tot_crc32@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
	movslq	40(%rax), %rdx
	movq	24(%rax), %rcx
	addq	%rdx, %rcx
	movq	_tot_crc32_pos@GOTPCREL(%rip), %rsi
	movq	%rcx, (%rsi)
	cmpl	$-1, 44(%rax)
	je	LBB0_41
## %bb.32:
	movq	_ST@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_42
## %bb.33:
	movq	8(%rcx), %rsi
	cmpq	48(%rax), %rsi
	jne	LBB0_52
## %bb.34:
	movq	16(%rcx), %rsi
	cmpq	56(%rax), %rsi
	jne	LBB0_53
## %bb.35:
	movq	24(%rcx), %rsi
	cmpq	64(%rax), %rsi
	jne	LBB0_53
## %bb.36:
	movq	32(%rcx), %rcx
	cmpq	72(%rax), %rcx
	jne	LBB0_53
## %bb.37:
	testl	%edx, %edx
	je	LBB0_42
## %bb.38:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	jmp	LBB0_2
LBB0_39:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_2
LBB0_40:
	movq	_log_headers_size@GOTPCREL(%rip), %r15
	movl	$0, (%r15)
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_lseek
	xorl	%edi, %edi
	cmpl	(%r15), %eax
	sete	%dil
	callq	_assert
	jmp	LBB0_57
LBB0_41:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_55
LBB0_42:
	movq	_CONT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	testq	%rsi, %rsi
	je	LBB0_48
## %bb.43:
	movl	(%rsi), %ecx
	cmpl	%ecx, %edx
	jne	LBB0_58
## %bb.44:
	movl	80(%rax), %edx
	movl	8(%rsi), %ecx
	cmpl	%ecx, %edx
	jne	LBB0_59
## %bb.45:
	movl	84(%rax), %edx
	movl	4(%rsi), %ecx
	cmpl	%ecx, %edx
	jne	LBB0_62
## %bb.46:
	movl	88(%rax), %edx
	movl	12(%rsi), %ecx
	cmpl	%ecx, %edx
	jne	LBB0_63
## %bb.47:
	movl	92(%rax), %edx
	movl	16(%rsi), %ecx
	cmpl	%ecx, %edx
	jne	LBB0_64
LBB0_48:
	movl	(%r12), %esi
	shll	$12, %esi
	movq	_log_headers_size@GOTPCREL(%rip), %rbx
	movl	%esi, (%rbx)
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	callq	_lseek
	xorl	%edi, %edi
	cmpl	(%rbx), %eax
	sete	%dil
	callq	_assert
	movq	_KHDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_61
## %bb.49:
	movl	84(%rax), %ecx
	movl	%ecx, (%r13)
	movq	_cur_replica_hash@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ecx
	movl	96(%rax), %edx
	testl	%ecx, %ecx
	je	LBB0_60
## %bb.50:
	cmpl	%edx, %ecx
	je	LBB0_61
## %bb.51:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.14(%rip), %rsi
	jmp	LBB0_65
LBB0_52:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_55
LBB0_53:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_55
LBB0_54:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_55:
	xorl	%eax, %eax
	callq	_fprintf
LBB0_56:
	movl	$-1, %ebx
LBB0_57:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_58:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	jmp	LBB0_65
LBB0_59:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
	jmp	LBB0_65
LBB0_60:
	movl	%edx, (%rsi)
LBB0_61:
	movl	(%r12), %ebx
	jmp	LBB0_57
LBB0_62:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.11(%rip), %rsi
	jmp	LBB0_65
LBB0_63:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.12(%rip), %rsi
	jmp	LBB0_65
LBB0_64:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.13(%rip), %rsi
LBB0_65:
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_56
	.cfi_endproc
                                        ## -- End function
	.comm	_binlog_headers,4,2             ## @binlog_headers
	.comm	_binlog_existed,4,2             ## @binlog_existed
	.comm	_ST,8,3                         ## @ST
	.comm	_CONT,8,3                       ## @CONT
	.comm	_KHDR,8,3                       ## @KHDR
	.comm	_cur_binlog_file_hash,4,2       ## @cur_binlog_file_hash
	.comm	_log_headers_size,4,2           ## @log_headers_size
	.comm	_tot_crc32,8,3                  ## @tot_crc32
	.comm	_tot_crc32_pos,8,3              ## @tot_crc32_pos
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot lseek binlog file %d: %m\n"

	.comm	_kfs_Hdr,8,3                    ## @kfs_Hdr
	.comm	_Binlog,8,3                     ## @Binlog
	.comm	_KFS_MAGIC,8,3                  ## @KFS_MAGIC
	.comm	_kfs_binlog,8,3                 ## @kfs_binlog
L_.str.1:                               ## @.str.1
	.asciz	"bad kfs header #0\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"no first entry in binlog\n"

	.comm	_log_start_pos,4,2              ## @log_start_pos
	.comm	_binlog_zipped,4,2              ## @binlog_zipped
L_.str.4:                               ## @.str.4
	.asciz	"fatal: binlog file begins with wrong entry type %08x\n"

L_.str.5:                               ## @.str.5
	.asciz	"fatal: incomplete kfs file\n"

L_.str.6:                               ## @.str.6
	.asciz	"fatal: binlog schema id mismatch.\n"

L_.str.7:                               ## @.str.7
	.asciz	"fatal: binlog slice parameters mismatch.\n"

L_.str.8:                               ## @.str.8
	.asciz	"fatal: first binlog file has non-zero log_pos %lld\n"

L_.str.9:                               ## @.str.9
	.asciz	"fatal: continuation binlog file log_pos mismatch: %lld != %lld\n"

L_.str.10:                              ## @.str.10
	.asciz	"fatal: binlog file prev_log_hash mismatch: %016llx != %016llx\n"

L_.str.11:                              ## @.str.11
	.asciz	"fatal: binlog file file_id_hash mismatch: %016llx != %016llx\n"

L_.str.12:                              ## @.str.12
	.asciz	"fatal: binlog file crc32 mismatch: %08x != %08x\n"

L_.str.13:                              ## @.str.13
	.asciz	"fatal: binlog file file_id_hash mismatch: %d != %d\n"

	.comm	_cur_replica_hash,4,2           ## @cur_replica_hash
L_.str.14:                              ## @.str.14
	.asciz	"fatal: binlog file replica_hash mismatch: %016llx != %016llx\n"

	.no_dead_strip	_load_binlog_headers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_binlog_headers
_load_binlog_headers:                   ; @load_binlog_headers
	.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, x0
	mov	w0, #0
	bl	_assert
Lloh0:
	adrp	x21, _binlog_headers@GOTPAGE
Lloh1:
	ldr	x21, [x21, _binlog_headers@GOTPAGEOFF]
	str	wzr, [x21]
Lloh2:
	adrp	x23, _binlog_existed@GOTPAGE
Lloh3:
	ldr	x23, [x23, _binlog_existed@GOTPAGEOFF]
	str	wzr, [x23]
Lloh4:
	adrp	x8, _ST@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ST@GOTPAGEOFF]
Lloh6:
	str	xzr, [x8]
Lloh7:
	adrp	x8, _CONT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CONT@GOTPAGEOFF]
Lloh9:
	str	xzr, [x8]
Lloh10:
	adrp	x8, _KHDR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _KHDR@GOTPAGEOFF]
Lloh12:
	str	xzr, [x8]
Lloh13:
	adrp	x8, _cur_binlog_file_hash@GOTPAGE
Lloh14:
	ldr	x8, [x8, _cur_binlog_file_hash@GOTPAGEOFF]
Lloh15:
	str	wzr, [x8]
Lloh16:
	adrp	x8, _log_headers_size@GOTPAGE
Lloh17:
	ldr	x8, [x8, _log_headers_size@GOTPAGEOFF]
Lloh18:
	str	wzr, [x8]
Lloh19:
	adrp	x22, _tot_crc32@GOTPAGE
Lloh20:
	ldr	x22, [x22, _tot_crc32@GOTPAGEOFF]
	str	xzr, [x22]
Lloh21:
	adrp	x28, _tot_crc32_pos@GOTPAGE
Lloh22:
	ldr	x28, [x28, _tot_crc32_pos@GOTPAGEOFF]
	str	xzr, [x28]
Lloh23:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_lseek
	cbz	w0, LBB0_4
; %bb.1:
Lloh26:
	adrp	x8, _stderr@GOTPAGE
Lloh27:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	bl	_fprintf
	mov	w0, #-1
LBB0_3:
	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_4:
Lloh31:
	adrp	x24, _kfs_Hdr@GOTPAGE
Lloh32:
	ldr	x24, [x24, _kfs_Hdr@GOTPAGEOFF]
	ldr	x1, [x24]
	mov	x0, x19
	mov	w2, #12288
	bl	_read
	cbz	w0, LBB0_3
; %bb.5:
	mov	x20, x0
Lloh33:
	adrp	x8, _Binlog@GOTPAGE
Lloh34:
	ldr	x8, [x8, _Binlog@GOTPAGEOFF]
Lloh35:
	ldr	x0, [x8]
	cbz	x0, LBB0_8
; %bb.6:
	ldr	w8, [x0]
	cmp	w8, w19
	b.ne	LBB0_8
; %bb.7:
	ldr	x1, [x24]
	mov	x2, x20
	mov	x3, #0
	bl	_kfs_buffer_crypt
LBB0_8:
	cmp	w20, #1, lsl #12                ; =4096
	b.lt	LBB0_18
; %bb.9:
	ldr	x0, [x24]
	ldr	x8, [x0]
Lloh36:
	adrp	x25, _KFS_MAGIC@GOTPAGE
Lloh37:
	ldr	x25, [x25, _KFS_MAGIC@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.10:
	bl	_check_kfs_header_basic
	tbnz	x0, #63, LBB0_26
; %bb.11:
	ldr	x0, [x24]
	ldr	x8, [x0, #8]
Lloh38:
	adrp	x26, _kfs_binlog@GOTPAGE
Lloh39:
	ldr	x26, [x26, _kfs_binlog@GOTPAGEOFF]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.12:
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	cmp	w20, #2, lsl #12                ; =8192
	b.lo	LBB0_18
; %bb.13:
	ldr	x8, [x0, #112]!
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.14:
	bl	_check_kfs_header_basic
	tbnz	x0, #63, LBB0_55
; %bb.15:
	ldr	x1, [x24]
	ldr	x8, [x1, #120]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_55
; %bb.16:
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	ldr	x8, [x1, #128]
	ldr	x9, [x1, #16]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.17:
	add	x0, x1, #112
	mov	w2, #4096
	bl	_memcmp
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
LBB0_18:
	ldrsw	x8, [x21]
	sub	w25, w20, w8, lsl #12
	cmp	w25, #3
	b.gt	LBB0_20
; %bb.19:
Lloh40:
	adrp	x8, _stderr@GOTPAGE
Lloh41:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
Lloh43:
	adrp	x1, l_.str.3@PAGE
Lloh44:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_2
LBB0_20:
	ldr	x9, [x24]
	mov	w26, #112
	madd	x20, x8, x26, x9
Lloh45:
	adrp	x27, _binlog_zipped@GOTPAGE
Lloh46:
	ldr	x27, [x27, _binlog_zipped@GOTPAGEOFF]
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	cmp	w8, #130
	b.ne	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	w8, [x21]
	cmp	w8, #0
	ldr	w8, [x27]
	ccmp	w8, #0, #4, eq
	cset	w0, ne
	bl	_assert
	cmp	w25, #7
	cset	w0, hi
	bl	_assert
	ldr	x8, [x24]
	ldrsw	x9, [x21]
	madd	x8, x9, x26, x8
	cmp	x20, x8
	cset	w0, eq
	bl	_assert
	ldr	x20, [x20]
	mov	w25, #36
	b	LBB0_21
LBB0_23:
	cmp	w8, #129
	b.eq	LBB0_27
; %bb.24:
	cmp	w8, #128
Lloh47:
	adrp	x26, _cur_binlog_file_hash@GOTPAGE
Lloh48:
	ldr	x26, [x26, _cur_binlog_file_hash@GOTPAGEOFF]
Lloh49:
	adrp	x27, _log_headers_size@GOTPAGE
Lloh50:
	ldr	x27, [x27, _log_headers_size@GOTPAGEOFF]
	b.ne	LBB0_40
; %bb.25:
	cmp	w25, #35
	cset	w0, hi
	bl	_assert
Lloh51:
	adrp	x8, _ST@GOTPAGE
Lloh52:
	ldr	x8, [x8, _ST@GOTPAGEOFF]
Lloh53:
	str	x20, [x8]
Lloh54:
	adrp	x8, _log_start_pos@GOTPAGE
Lloh55:
	ldr	x8, [x8, _log_start_pos@GOTPAGEOFF]
Lloh56:
	str	wzr, [x8]
	b	LBB0_28
LBB0_26:
Lloh57:
	adrp	x8, _stderr@GOTPAGE
Lloh58:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh59:
	ldr	w0, [x8]
Lloh60:
	adrp	x1, l_.str.1@PAGE
Lloh61:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_27:
	cmp	w25, #19
	cset	w0, hi
	bl	_assert
Lloh62:
	adrp	x8, _CONT@GOTPAGE
Lloh63:
	ldr	x8, [x8, _CONT@GOTPAGEOFF]
Lloh64:
	str	x20, [x8]
Lloh65:
	adrp	x8, _log_start_pos@GOTPAGE
Lloh66:
	ldr	x8, [x8, _log_start_pos@GOTPAGEOFF]
	ldp	w9, w10, [x20]
Lloh67:
	str	w9, [x8]
Lloh68:
	adrp	x26, _cur_binlog_file_hash@GOTPAGE
Lloh69:
	ldr	x26, [x26, _cur_binlog_file_hash@GOTPAGEOFF]
	str	w10, [x26]
Lloh70:
	adrp	x27, _log_headers_size@GOTPAGE
Lloh71:
	ldr	x27, [x27, _log_headers_size@GOTPAGEOFF]
LBB0_28:
	mov	w8, #1
	str	w8, [x23]
	ldrsw	x8, [x21]
	cbz	w8, LBB0_41
; %bb.29:
	ldr	x9, [x24]
Lloh72:
	adrp	x10, _KHDR@GOTPAGE
Lloh73:
	ldr	x10, [x10, _KHDR@GOTPAGEOFF]
Lloh74:
	str	x9, [x10]
	cmp	w8, #2
	b.lt	LBB0_32
; %bb.30:
	ldr	x10, [x9, #128]
	ldr	x11, [x9, #16]
	cmp	x10, x11
	b.le	LBB0_32
; %bb.31:
	add	x9, x9, #112
Lloh75:
	adrp	x10, _KHDR@GOTPAGE
Lloh76:
	ldr	x10, [x10, _KHDR@GOTPAGEOFF]
Lloh77:
	str	x9, [x10]
LBB0_32:
	ldp	x10, x9, [x9, #24]
	add	x8, x10, x8, lsl #12
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
Lloh78:
	adrp	x8, _KHDR@GOTPAGE
Lloh79:
	ldr	x8, [x8, _KHDR@GOTPAGEOFF]
Lloh80:
	ldr	x8, [x8]
	ldr	x9, [x8, #104]
	str	x9, [x22]
	ldr	x10, [x8, #24]
	ldp	w9, w11, [x8, #40]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	x10, x10, x9
	str	x10, [x28]
	cmn	w11, #1
	b.eq	LBB0_42
; %bb.33:
Lloh81:
	adrp	x10, _ST@GOTPAGE
Lloh82:
	ldr	x10, [x10, _ST@GOTPAGEOFF]
Lloh83:
	ldr	x10, [x10]
	cbz	x10, LBB0_43
; %bb.34:
	ldr	x11, [x10, #8]
	ldr	x12, [x8, #48]
	cmp	x11, x12
	b.ne	LBB0_53
; %bb.35:
	ldr	x11, [x10, #16]
	ldr	x12, [x8, #56]
	cmp	x11, x12
	b.ne	LBB0_54
; %bb.36:
	ldr	x11, [x10, #24]
	ldr	x12, [x8, #64]
	cmp	x11, x12
	b.ne	LBB0_54
; %bb.37:
	ldr	x10, [x10, #32]
	ldr	x11, [x8, #72]
	cmp	x10, x11
	b.ne	LBB0_54
; %bb.38:
	cbz	w9, LBB0_43
; %bb.39:
Lloh84:
	adrp	x8, _stderr@GOTPAGE
Lloh85:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh86:
	ldr	w0, [x8]
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	str	x9, [sp]
Lloh87:
	adrp	x1, l_.str.8@PAGE
Lloh88:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_2
LBB0_40:
Lloh89:
	adrp	x9, _stderr@GOTPAGE
Lloh90:
	ldr	x9, [x9, _stderr@GOTPAGEOFF]
Lloh91:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh92:
	adrp	x1, l_.str.4@PAGE
Lloh93:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_2
LBB0_41:
	str	wzr, [x27]
Lloh94:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh95:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh96:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_lseek
	ldr	w8, [x27]
	cmp	w0, w8
	cset	w0, eq
	bl	_assert
	mov	w0, #0
	b	LBB0_3
LBB0_42:
Lloh97:
	adrp	x8, _stderr@GOTPAGE
Lloh98:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh99:
	ldr	w0, [x8]
Lloh100:
	adrp	x1, l_.str.5@PAGE
Lloh101:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_2
LBB0_43:
Lloh102:
	adrp	x10, _CONT@GOTPAGE
Lloh103:
	ldr	x10, [x10, _CONT@GOTPAGEOFF]
Lloh104:
	ldr	x10, [x10]
	cbz	x10, LBB0_49
; %bb.44:
	ldr	w11, [x10]
	cmp	w9, w11
	b.ne	LBB0_56
; %bb.45:
	ldr	w9, [x8, #80]
	ldr	w11, [x10, #8]
	cmp	w9, w11
	b.ne	LBB0_57
; %bb.46:
	ldr	w9, [x8, #84]
	ldr	w11, [x10, #4]
	cmp	w9, w11
	b.ne	LBB0_60
; %bb.47:
	ldr	w9, [x8, #88]
	ldr	w11, [x10, #12]
	cmp	w9, w11
	b.ne	LBB0_61
; %bb.48:
	ldr	w8, [x8, #92]
	ldr	w9, [x10, #16]
	cmp	w8, w9
	b.ne	LBB0_62
LBB0_49:
	ldr	w8, [x21]
	lsl	w1, w8, #12
	str	w1, [x27]
Lloh105:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh106:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh107:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_lseek
	ldr	w8, [x27]
	cmp	w0, w8
	cset	w0, eq
	bl	_assert
Lloh108:
	adrp	x8, _KHDR@GOTPAGE
Lloh109:
	ldr	x8, [x8, _KHDR@GOTPAGEOFF]
Lloh110:
	ldr	x8, [x8]
	cbz	x8, LBB0_59
; %bb.50:
	ldr	w9, [x8, #84]
	str	w9, [x26]
Lloh111:
	adrp	x10, _cur_replica_hash@GOTPAGE
Lloh112:
	ldr	x10, [x10, _cur_replica_hash@GOTPAGEOFF]
	ldr	w9, [x10]
	ldr	w8, [x8, #96]
	cbz	w9, LBB0_58
; %bb.51:
	cmp	w9, w8
	b.eq	LBB0_59
; %bb.52:
Lloh113:
	adrp	x10, _stderr@GOTPAGE
Lloh114:
	ldr	x10, [x10, _stderr@GOTPAGEOFF]
Lloh115:
	ldr	w0, [x10]
	stp	x8, x9, [sp]
Lloh116:
	adrp	x1, l_.str.14@PAGE
Lloh117:
	add	x1, x1, l_.str.14@PAGEOFF
	b	LBB0_2
LBB0_53:
Lloh118:
	adrp	x8, _stderr@GOTPAGE
Lloh119:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh120:
	ldr	w0, [x8]
Lloh121:
	adrp	x1, l_.str.6@PAGE
Lloh122:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_2
LBB0_54:
Lloh123:
	adrp	x8, _stderr@GOTPAGE
Lloh124:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh125:
	ldr	w0, [x8]
Lloh126:
	adrp	x1, l_.str.7@PAGE
Lloh127:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_2
LBB0_55:
Lloh128:
	adrp	x8, _stderr@GOTPAGE
Lloh129:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh130:
	ldr	w0, [x8]
Lloh131:
	adrp	x1, l_.str.2@PAGE
Lloh132:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_56:
Lloh133:
	adrp	x8, _stderr@GOTPAGE
Lloh134:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh135:
	ldr	w0, [x8]
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	stp	x9, x11, [sp]
Lloh136:
	adrp	x1, l_.str.9@PAGE
Lloh137:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_2
LBB0_57:
Lloh138:
	adrp	x8, _stderr@GOTPAGE
Lloh139:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh140:
	ldr	w0, [x8]
	stp	x9, x11, [sp]
Lloh141:
	adrp	x1, l_.str.10@PAGE
Lloh142:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_2
LBB0_58:
	str	w8, [x10]
LBB0_59:
	ldr	w0, [x21]
	b	LBB0_3
LBB0_60:
Lloh143:
	adrp	x8, _stderr@GOTPAGE
Lloh144:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh145:
	ldr	w0, [x8]
	stp	x9, x11, [sp]
Lloh146:
	adrp	x1, l_.str.11@PAGE
Lloh147:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_2
LBB0_61:
Lloh148:
	adrp	x8, _stderr@GOTPAGE
Lloh149:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh150:
	ldr	w0, [x8]
	stp	x9, x11, [sp]
Lloh151:
	adrp	x1, l_.str.12@PAGE
Lloh152:
	add	x1, x1, l_.str.12@PAGEOFF
	b	LBB0_2
LBB0_62:
Lloh153:
	adrp	x10, _stderr@GOTPAGE
Lloh154:
	ldr	x10, [x10, _stderr@GOTPAGEOFF]
Lloh155:
	ldr	w0, [x10]
	stp	x8, x9, [sp]
Lloh156:
	adrp	x1, l_.str.13@PAGE
Lloh157:
	add	x1, x1, l_.str.13@PAGEOFF
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotStr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotStr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGotStr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotStr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotStr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotStr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpAdd	Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpAdd	Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGot	Lloh111, Lloh112
	.loh AdrpAdd	Lloh116, Lloh117
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpAdd	Lloh121, Lloh122
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.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	Lloh141, Lloh142
	.loh AdrpLdrGotLdr	Lloh138, Lloh139, Lloh140
	.loh AdrpAdd	Lloh146, Lloh147
	.loh AdrpLdrGotLdr	Lloh143, Lloh144, Lloh145
	.loh AdrpAdd	Lloh151, Lloh152
	.loh AdrpLdrGotLdr	Lloh148, Lloh149, Lloh150
	.loh AdrpAdd	Lloh156, Lloh157
	.loh AdrpLdrGotLdr	Lloh153, Lloh154, Lloh155
	.cfi_endproc
                                        ; -- End function
	.comm	_binlog_headers,4,2             ; @binlog_headers
	.comm	_binlog_existed,4,2             ; @binlog_existed
	.comm	_ST,8,3                         ; @ST
	.comm	_CONT,8,3                       ; @CONT
	.comm	_KHDR,8,3                       ; @KHDR
	.comm	_cur_binlog_file_hash,4,2       ; @cur_binlog_file_hash
	.comm	_log_headers_size,4,2           ; @log_headers_size
	.comm	_tot_crc32,8,3                  ; @tot_crc32
	.comm	_tot_crc32_pos,8,3              ; @tot_crc32_pos
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot lseek binlog file %d: %m\n"

	.comm	_kfs_Hdr,8,3                    ; @kfs_Hdr
	.comm	_Binlog,8,3                     ; @Binlog
	.comm	_KFS_MAGIC,8,3                  ; @KFS_MAGIC
	.comm	_kfs_binlog,8,3                 ; @kfs_binlog
l_.str.1:                               ; @.str.1
	.asciz	"bad kfs header #0\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"no first entry in binlog\n"

	.comm	_log_start_pos,4,2              ; @log_start_pos
	.comm	_binlog_zipped,4,2              ; @binlog_zipped
l_.str.4:                               ; @.str.4
	.asciz	"fatal: binlog file begins with wrong entry type %08x\n"

l_.str.5:                               ; @.str.5
	.asciz	"fatal: incomplete kfs file\n"

l_.str.6:                               ; @.str.6
	.asciz	"fatal: binlog schema id mismatch.\n"

l_.str.7:                               ; @.str.7
	.asciz	"fatal: binlog slice parameters mismatch.\n"

l_.str.8:                               ; @.str.8
	.asciz	"fatal: first binlog file has non-zero log_pos %lld\n"

l_.str.9:                               ; @.str.9
	.asciz	"fatal: continuation binlog file log_pos mismatch: %lld != %lld\n"

l_.str.10:                              ; @.str.10
	.asciz	"fatal: binlog file prev_log_hash mismatch: %016llx != %016llx\n"

l_.str.11:                              ; @.str.11
	.asciz	"fatal: binlog file file_id_hash mismatch: %016llx != %016llx\n"

l_.str.12:                              ; @.str.12
	.asciz	"fatal: binlog file crc32 mismatch: %08x != %08x\n"

l_.str.13:                              ; @.str.13
	.asciz	"fatal: binlog file file_id_hash mismatch: %d != %d\n"

	.comm	_cur_replica_hash,4,2           ; @cur_replica_hash
l_.str.14:                              ; @.str.14
	.asciz	"fatal: binlog file replica_hash mismatch: %016llx != %016llx\n"

	.no_dead_strip	_load_binlog_headers
.subsections_via_symbols
