	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_update_binlog_buffer           ## -- Begin function update_binlog_buffer
	.p2align	4, 0x90
_update_binlog_buffer:                  ## @update_binlog_buffer
	.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	%rdi, %rbx
	movq	_BINLOG_POSITION@GOTPCREL(%rip), %r13
	xorl	%edi, %edi
	cmpq	%rbx, (%r13)
	setg	%dil
	callq	_assert
	movq	_BINLOG_BUFFER_WPTR@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_BINLOG_BUFFER_FPTR@GOTPCREL(%rip), %r12
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	sete	%dil
	callq	_assert
	movq	(%r13), %rsi
	movq	%rsi, %r14
	subq	%rbx, %r14
	movq	_BINLOG_BUFFER_SIZE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	subq	%r14, %rdx
	jge	LBB0_4
## %bb.1:
	xorl	%eax, %eax
	callq	_get_double_time_since_epoch
	movq	_STATS@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	subl	%eax, (%rcx)
	movq	_BINLOG_BUFFER_FD@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	(%r13), %rsi
	subq	(%rbx), %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_lseek
	movq	(%r13), %rcx
	subq	(%rbx), %rcx
	xorl	%edi, %edi
	cmpq	%rcx, %rax
	sete	%dil
	callq	_assert
	movl	(%r12), %edi
	movq	_BINLOG_BUFFER@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	movq	(%rbx), %rdx
	callq	_read
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	sete	%dil
	callq	_assert
	xorl	%eax, %eax
	callq	_get_double_time_since_epoch
	movq	(%r14), %rcx
	addl	%eax, (%rcx)
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$4, (%rax)
	jl	LBB0_3
## %bb.2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
LBB0_3:
	movq	(%rbx), %rax
	addq	(%r13), %rax
	movq	%rax, (%r15)
	movq	_BINLOG_BUFFER_FPTR@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_7
LBB0_4:
	movq	(%r15), %rax
	leaq	(%rax,%r14), %rcx
	movq	_BINLOG_BUFFER_END@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rcx
	jle	LBB0_6
## %bb.5:
	movq	_BINLOG_BUFFER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	subq	%rdx, %rax
	movq	%rax, %rsi
	callq	_memcpy
	xorl	%eax, %eax
	callq	_get_double_time_since_epoch
	movq	_STATS@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	subl	%eax, (%rcx)
	movq	(%rbx), %rax
	subq	%r14, %rax
	movq	_BINLOG_BUFFER@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, (%r15)
	movq	_BINLOG_BUFFER_FPTR@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	callq	_get_double_time_since_epoch
	movq	(%r12), %rcx
	movq	_BINLOG_BUFFER_FPTR@GOTPCREL(%rip), %r12
	addl	%eax, (%rcx)
	movq	(%r13), %rsi
LBB0_6:
	movq	_BINLOG_BUFFER_FD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	subq	%r14, %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_lseek
	movq	(%r13), %rcx
	subq	%r14, %rcx
	xorl	%edi, %edi
	cmpq	%rcx, %rax
	sete	%dil
	callq	_assert
	movl	(%rbx), %edi
	movq	(%r15), %rsi
	movq	%r14, %rdx
	callq	_read
	xorl	%edi, %edi
	cmpq	%r14, %rax
	sete	%dil
	callq	_assert
	addq	%r14, (%r15)
	addq	%r14, (%r12)
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$4, (%rax)
	jl	LBB0_7
## %bb.8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BINLOG_POSITION,8,3            ## @BINLOG_POSITION
	.comm	_BINLOG_BUFFER_WPTR,8,3         ## @BINLOG_BUFFER_WPTR
	.comm	_BINLOG_BUFFER_FPTR,8,3         ## @BINLOG_BUFFER_FPTR
	.comm	_BINLOG_BUFFER_SIZE,8,3         ## @BINLOG_BUFFER_SIZE
	.comm	_STATS,8,3                      ## @STATS
	.comm	_BINLOG_BUFFER_FD,4,2           ## @BINLOG_BUFFER_FD
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_BINLOG_BUFFER,8,3              ## @BINLOG_BUFFER
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read %lld bytes of replicating file\n"

	.comm	_BINLOG_BUFFER_END,8,3          ## @BINLOG_BUFFER_END
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_update_binlog_buffer           ; -- Begin function update_binlog_buffer
	.p2align	2
_update_binlog_buffer:                  ; @update_binlog_buffer
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x23, _BINLOG_POSITION@GOTPAGE
Lloh1:
	ldr	x23, [x23, _BINLOG_POSITION@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x8, x0
	cset	w0, gt
	bl	_assert
Lloh2:
	adrp	x21, _BINLOG_BUFFER_WPTR@GOTPAGE
Lloh3:
	ldr	x21, [x21, _BINLOG_BUFFER_WPTR@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh4:
	adrp	x20, _BINLOG_BUFFER_FPTR@GOTPAGE
Lloh5:
	ldr	x20, [x20, _BINLOG_BUFFER_FPTR@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	x8, [x23]
Lloh6:
	adrp	x22, _BINLOG_BUFFER_SIZE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _BINLOG_BUFFER_SIZE@GOTPAGEOFF]
	ldr	x9, [x22]
	sub	x19, x8, x19
	subs	x2, x9, x19
	b.ge	LBB0_4
; %bb.1:
	bl	_get_double_time_since_epoch
Lloh8:
	adrp	x24, _STATS@GOTPAGE
Lloh9:
	ldr	x24, [x24, _STATS@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	w9, [x8]
	sub	w9, w9, w0
	str	w9, [x8]
Lloh10:
	adrp	x19, _BINLOG_BUFFER_FD@GOTPAGE
Lloh11:
	ldr	x19, [x19, _BINLOG_BUFFER_FD@GOTPAGEOFF]
	ldr	w0, [x19]
	ldr	x8, [x23]
	ldr	x9, [x22]
	sub	x1, x8, x9
Lloh12:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_lseek
	ldr	x8, [x23]
	ldr	x9, [x22]
	sub	x8, x8, x9
	cmp	x0, x8
	cset	w0, eq
	bl	_assert
	ldr	w0, [x19]
Lloh15:
	adrp	x19, _BINLOG_BUFFER@GOTPAGE
Lloh16:
	ldr	x19, [x19, _BINLOG_BUFFER@GOTPAGEOFF]
	ldr	x1, [x19]
	ldr	x2, [x22]
	bl	_read
	ldr	x8, [x22]
	cmp	x0, x8
	cset	w0, eq
	bl	_assert
	bl	_get_double_time_since_epoch
	ldr	x8, [x24]
	ldr	w9, [x8]
	add	w9, w9, w0
	str	w9, [x8]
Lloh17:
	adrp	x8, _verbosity@GOTPAGE
Lloh18:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w8, #4
	b.lt	LBB0_3
; %bb.2:
Lloh20:
	adrp	x8, _stderr@GOTPAGE
Lloh21:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldr	x2, [x22]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_3:
	ldr	x8, [x19]
	ldr	x9, [x22]
	add	x8, x9, x8
	str	x8, [x21]
	str	x8, [x20]
	b	LBB0_8
LBB0_4:
	ldr	x9, [x21]
Lloh25:
	adrp	x10, _BINLOG_BUFFER_END@GOTPAGE
Lloh26:
	ldr	x10, [x10, _BINLOG_BUFFER_END@GOTPAGEOFF]
Lloh27:
	ldr	x10, [x10]
	add	x11, x9, x19
	cmp	x11, x10
	b.le	LBB0_6
; %bb.5:
Lloh28:
	adrp	x24, _BINLOG_BUFFER@GOTPAGE
Lloh29:
	ldr	x24, [x24, _BINLOG_BUFFER@GOTPAGEOFF]
	ldr	x0, [x24]
	sub	x1, x9, x2
	bl	_memcpy
	bl	_get_double_time_since_epoch
Lloh30:
	adrp	x25, _STATS@GOTPAGE
Lloh31:
	ldr	x25, [x25, _STATS@GOTPAGEOFF]
	ldr	x8, [x25]
	ldr	w9, [x8]
	sub	w9, w9, w0
	str	w9, [x8]
	ldr	x8, [x24]
	ldr	x9, [x22]
	sub	x9, x9, x19
	add	x8, x9, x8
	str	x8, [x21]
	str	x8, [x20]
	bl	_get_double_time_since_epoch
	ldr	x8, [x25]
	ldr	w9, [x8]
	add	w9, w9, w0
	str	w9, [x8]
	ldr	x8, [x23]
LBB0_6:
Lloh32:
	adrp	x22, _BINLOG_BUFFER_FD@GOTPAGE
Lloh33:
	ldr	x22, [x22, _BINLOG_BUFFER_FD@GOTPAGEOFF]
	ldr	w0, [x22]
	sub	x1, x8, x19
Lloh34:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	bl	_lseek
	ldr	x8, [x23]
	sub	x8, x8, x19
	cmp	x0, x8
	cset	w0, eq
	bl	_assert
	ldr	w0, [x22]
	ldr	x1, [x21]
	mov	x2, x19
	bl	_read
	cmp	x0, x19
	cset	w0, eq
	bl	_assert
	ldr	x8, [x21]
	add	x8, x8, x19
	str	x8, [x21]
	ldr	x8, [x20]
	add	x8, x8, x19
	str	x8, [x20]
Lloh37:
	adrp	x8, _verbosity@GOTPAGE
Lloh38:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	cmp	w8, #4
	b.lt	LBB0_8
; %bb.7:
Lloh40:
	adrp	x8, _stderr@GOTPAGE
Lloh41:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
Lloh43:
	adrp	x1, l_.str@PAGE
Lloh44:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_fprintf
LBB0_8:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_BINLOG_POSITION,8,3            ; @BINLOG_POSITION
	.comm	_BINLOG_BUFFER_WPTR,8,3         ; @BINLOG_BUFFER_WPTR
	.comm	_BINLOG_BUFFER_FPTR,8,3         ; @BINLOG_BUFFER_FPTR
	.comm	_BINLOG_BUFFER_SIZE,8,3         ; @BINLOG_BUFFER_SIZE
	.comm	_STATS,8,3                      ; @STATS
	.comm	_BINLOG_BUFFER_FD,4,2           ; @BINLOG_BUFFER_FD
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_BINLOG_BUFFER,8,3              ; @BINLOG_BUFFER
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read %lld bytes of replicating file\n"

	.comm	_BINLOG_BUFFER_END,8,3          ; @BINLOG_BUFFER_END
.subsections_via_symbols
