	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_log_seek                       ## -- Begin function log_seek
	.p2align	4, 0x90
_log_seek:                              ## @log_seek
	.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, %r15
	movq	_log_start_pos@GOTPCREL(%rip), %rcx
	movq	%rdi, %rax
	subq	(%rcx), %rax
	movq	_log_headers_size@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	js	LBB0_8
## %bb.1:
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	_binlog_zipped@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jne	LBB0_3
## %bb.2:
	movq	_binlog_fd@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rsi
	callq	_lseek
	testq	%rax, %rax
	js	LBB0_8
LBB0_3:
	xorl	%eax, %eax
	callq	_clear_read_log
	movq	_log_last_ts@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	movq	_log_read_until@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	movq	_log_first_ts@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	movq	_log_pos@GOTPCREL(%rip), %rax
	movq	%r15, (%rax)
	movq	_R@GOTPCREL(%rip), %rax
	movq	%r15, (%rax)
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:
	testl	%r14d, %r14d
	jne	LBB0_5
## %bb.6:
	movq	_disable_crc32@GOTPCREL(%rip), %rax
	movl	$7, (%rax)
	jmp	LBB0_7
LBB0_5:
	movq	_log_crc32_pos@GOTPCREL(%rip), %rax
	movq	%r15, (%rax)
	notl	%r14d
	movq	_log_crc32_complement@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_binlog_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_log_start_pos,8,3              ## @log_start_pos
	.comm	_log_headers_size,8,3           ## @log_headers_size
	.comm	_binlog_zipped,4,2              ## @binlog_zipped
	.comm	_binlog_fd,4,2                  ## @binlog_fd
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot seek file position %lld in binlog file %d: %m\n"

	.comm	_log_last_ts,4,2                ## @log_last_ts
	.comm	_log_read_until,4,2             ## @log_read_until
	.comm	_log_first_ts,4,2               ## @log_first_ts
	.comm	_log_pos,8,3                    ## @log_pos
	.comm	_R,8,3                          ## @R
	.comm	_log_crc32_pos,8,3              ## @log_crc32_pos
	.comm	_log_crc32_complement,4,2       ## @log_crc32_complement
	.comm	_disable_crc32,4,2              ## @disable_crc32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_log_seek                       ; -- Begin function log_seek
	.p2align	2
_log_seek:                              ; @log_seek
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _log_start_pos@GOTPAGE
Lloh1:
	ldr	x8, [x8, _log_start_pos@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _log_headers_size@GOTPAGE
Lloh4:
	ldr	x9, [x9, _log_headers_size@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	sub	x8, x0, x8
	adds	x1, x8, x9
	b.mi	LBB0_8
; %bb.1:
	mov	x20, x2
Lloh6:
	adrp	x8, _binlog_zipped@GOTPAGE
Lloh7:
	ldr	x8, [x8, _binlog_zipped@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cbnz	w8, LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _binlog_fd@GOTPAGE
Lloh10:
	ldr	x8, [x8, _binlog_fd@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_lseek
	tbnz	x0, #63, LBB0_8
LBB0_3:
	bl	_clear_read_log
Lloh15:
	adrp	x8, _log_last_ts@GOTPAGE
Lloh16:
	ldr	x8, [x8, _log_last_ts@GOTPAGEOFF]
Lloh17:
	str	w21, [x8]
Lloh18:
	adrp	x8, _log_read_until@GOTPAGE
Lloh19:
	ldr	x8, [x8, _log_read_until@GOTPAGEOFF]
Lloh20:
	str	w21, [x8]
Lloh21:
	adrp	x8, _log_first_ts@GOTPAGE
Lloh22:
	ldr	x8, [x8, _log_first_ts@GOTPAGEOFF]
Lloh23:
	str	w21, [x8]
Lloh24:
	adrp	x8, _log_pos@GOTPAGE
Lloh25:
	ldr	x8, [x8, _log_pos@GOTPAGEOFF]
Lloh26:
	str	x19, [x8]
Lloh27:
	adrp	x8, _R@GOTPAGE
Lloh28:
	ldr	x8, [x8, _R@GOTPAGEOFF]
Lloh29:
	str	x19, [x8]
	cbz	x19, LBB0_6
; %bb.4:
	cbnz	w20, LBB0_6
; %bb.5:
Lloh30:
	adrp	x8, _disable_crc32@GOTPAGE
Lloh31:
	ldr	x8, [x8, _disable_crc32@GOTPAGEOFF]
	mov	w9, #7
Lloh32:
	str	w9, [x8]
	b	LBB0_7
LBB0_6:
Lloh33:
	adrp	x8, _log_crc32_pos@GOTPAGE
Lloh34:
	ldr	x8, [x8, _log_crc32_pos@GOTPAGEOFF]
Lloh35:
	str	x19, [x8]
	mvn	w8, w20
Lloh36:
	adrp	x9, _log_crc32_complement@GOTPAGE
Lloh37:
	ldr	x9, [x9, _log_crc32_complement@GOTPAGEOFF]
Lloh38:
	str	w8, [x9]
LBB0_7:
	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_8:
Lloh39:
	adrp	x8, _stderr@GOTPAGE
Lloh40:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
Lloh42:
	adrp	x8, _binlog_fd@GOTPAGE
Lloh43:
	ldr	x8, [x8, _binlog_fd@GOTPAGEOFF]
Lloh44:
	ldr	w3, [x8]
Lloh45:
	adrp	x1, l_.str@PAGE
Lloh46:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotStr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotStr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_log_start_pos,8,3              ; @log_start_pos
	.comm	_log_headers_size,8,3           ; @log_headers_size
	.comm	_binlog_zipped,4,2              ; @binlog_zipped
	.comm	_binlog_fd,4,2                  ; @binlog_fd
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot seek file position %lld in binlog file %d: %m\n"

	.comm	_log_last_ts,4,2                ; @log_last_ts
	.comm	_log_read_until,4,2             ; @log_read_until
	.comm	_log_first_ts,4,2               ; @log_first_ts
	.comm	_log_pos,8,3                    ; @log_pos
	.comm	_R,8,3                          ; @R
	.comm	_log_crc32_pos,8,3              ; @log_crc32_pos
	.comm	_log_crc32_complement,4,2       ; @log_crc32_complement
	.comm	_disable_crc32,4,2              ; @disable_crc32
.subsections_via_symbols
