	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_binlog_data                ## -- Begin function get_binlog_data
	.p2align	4, 0x90
_get_binlog_data:                       ## @get_binlog_data
	.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	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%edi, %edi
	testl	%edx, %edx
	setg	%dil
	callq	_assert
	movslq	%r15d, %rax
	addq	%rbx, %rax
	movq	_BINLOG_POSITION@GOTPCREL(%rip), %r13
	xorl	%edi, %edi
	cmpq	(%r13), %rax
	setle	%dil
	callq	_assert
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$4, (%rax)
	jl	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_2:
	movq	(%r13), %rax
	movq	%rax, %rdx
	subq	%rbx, %rdx
	movq	_BINLOG_BUFFER@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rdx
	movq	_BINLOG_BUFFER_WPTR@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movq	_verbosity@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpq	%rsi, %rdx
	jle	LBB0_3
## %bb.6:
	cmpl	$4, %ecx
	jl	LBB0_8
## %bb.7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_8:
	xorl	%eax, %eax
	callq	_get_double_time_since_epoch
	movq	_STATS@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	subl	%eax, (%rcx)
	movq	_BINLOG_BUFFER_FD@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_lseek
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	sete	%dil
	callq	_assert
	movl	(%r12), %edi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_read
	xorl	%edi, %edi
	cmpl	%r15d, %eax
	sete	%dil
	callq	_assert
	xorl	%eax, %eax
	callq	_get_double_time_since_epoch
	movq	(%r13), %rcx
	addl	%eax, (%rcx)
	jmp	LBB0_9
LBB0_3:
	cmpl	$4, %ecx
	jl	LBB0_5
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%r12), %rsi
	movq	(%r13), %rax
LBB0_5:
	addq	%rbx, %rsi
	subq	%rax, %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_memcpy
LBB0_9:
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$4, (%rax)
	jl	LBB0_11
## %bb.10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_11:
	xorl	%eax, %eax
	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	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get_binlog_data: pos = %lld, len = %d\n"

	.comm	_BINLOG_BUFFER,8,3              ## @BINLOG_BUFFER
	.comm	_BINLOG_BUFFER_WPTR,8,3         ## @BINLOG_BUFFER_WPTR
L_.str.1:                               ## @.str.1
	.asciz	"copying from buffer\n"

L_.str.2:                               ## @.str.2
	.asciz	"reading from file\n"

	.comm	_STATS,8,3                      ## @STATS
	.comm	_BINLOG_BUFFER_FD,4,2           ## @BINLOG_BUFFER_FD
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.3:                               ## @.str.3
	.asciz	"copied data successfully\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_binlog_data                ; -- Begin function get_binlog_data
	.p2align	2
_get_binlog_data:                       ; @get_binlog_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	cmp	w2, #0
	cset	w0, gt
	bl	_assert
	add	x8, x21, w19, sxtw
Lloh0:
	adrp	x23, _BINLOG_POSITION@GOTPAGE
Lloh1:
	ldr	x23, [x23, _BINLOG_POSITION@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	cset	w0, le
	bl	_assert
Lloh2:
	adrp	x22, _verbosity@GOTPAGE
Lloh3:
	ldr	x22, [x22, _verbosity@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #4
	b.lt	LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _stderr@GOTPAGE
Lloh5:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	stp	x21, x19, [sp]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_2:
	ldr	x8, [x23]
Lloh9:
	adrp	x9, _BINLOG_BUFFER@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BINLOG_BUFFER@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	sub	x10, x8, x21
	add	x11, x10, x9
Lloh12:
	adrp	x24, _BINLOG_BUFFER_WPTR@GOTPAGE
Lloh13:
	ldr	x24, [x24, _BINLOG_BUFFER_WPTR@GOTPAGEOFF]
	ldr	x9, [x24]
	ldr	w10, [x22]
	cmp	x11, x9
	b.le	LBB0_6
; %bb.3:
	cmp	w10, #4
	b.lt	LBB0_5
; %bb.4:
Lloh14:
	adrp	x8, _stderr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
LBB0_5:
	bl	_get_double_time_since_epoch
Lloh19:
	adrp	x23, _STATS@GOTPAGE
Lloh20:
	ldr	x23, [x23, _STATS@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	w9, [x8]
	sub	w9, w9, w0
	str	w9, [x8]
Lloh21:
	adrp	x24, _BINLOG_BUFFER_FD@GOTPAGE
Lloh22:
	ldr	x24, [x24, _BINLOG_BUFFER_FD@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh23:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_lseek
	cmp	x0, x21
	cset	w0, eq
	bl	_assert
	ldr	w0, [x24]
	mov	x1, x20
	mov	x2, x19
	bl	_read
	cmp	w0, w19
	cset	w0, eq
	bl	_assert
	bl	_get_double_time_since_epoch
	ldr	x8, [x23]
	ldr	w9, [x8]
	add	w9, w9, w0
	str	w9, [x8]
	b	LBB0_9
LBB0_6:
	cmp	w10, #4
	b.lt	LBB0_8
; %bb.7:
Lloh26:
	adrp	x8, _stderr@GOTPAGE
Lloh27:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	ldr	x9, [x24]
	ldr	x8, [x23]
LBB0_8:
	add	x9, x9, x21
	sub	x1, x9, x8
	mov	x0, x20
	mov	x2, x19
	bl	_memcpy
LBB0_9:
	ldr	w8, [x22]
	cmp	w8, #4
	b.lt	LBB0_11
; %bb.10:
Lloh31:
	adrp	x8, _stderr@GOTPAGE
Lloh32:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x1, l_.str.3@PAGE
Lloh35:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
LBB0_11:
	mov	w0, #0
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_BINLOG_POSITION,8,3            ; @BINLOG_POSITION
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get_binlog_data: pos = %lld, len = %d\n"

	.comm	_BINLOG_BUFFER,8,3              ; @BINLOG_BUFFER
	.comm	_BINLOG_BUFFER_WPTR,8,3         ; @BINLOG_BUFFER_WPTR
l_.str.1:                               ; @.str.1
	.asciz	"copying from buffer\n"

l_.str.2:                               ; @.str.2
	.asciz	"reading from file\n"

	.comm	_STATS,8,3                      ; @STATS
	.comm	_BINLOG_BUFFER_FD,4,2           ; @BINLOG_BUFFER_FD
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.3:                               ; @.str.3
	.asciz	"copied data successfully\n"

.subsections_via_symbols
