	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_flush_client             ## -- Begin function check_flush_client
	.p2align	4, 0x90
_check_flush_client:                    ## @check_flush_client
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_CLOCK_MONOTONIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_utime
	movq	(%rbx), %rdx
	movq	_MAX_CLIENT_UNFLUSHED_BYTES@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jge	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.2:
	movsd	8(%rbx), %xmm1                  ## xmm1 = mem[0],zero
	movq	_MAX_FLUSH_INTERVAL@GOTPCREL(%rip), %rcx
	addsd	(%rcx), %xmm1
	ucomisd	%xmm1, %xmm0
	jbe	LBB0_4
LBB0_3:
	movq	16(%rbx), %r14
	movq	(%r14), %rax
	movq	8(%rax), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movsd	%xmm0, -24(%rbp)                ## 8-byte Spill
	callq	_vkprintf
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_fsync
	shrq	$63, %rax
	xorl	$1, %eax
	movl	%eax, %edi
	callq	_assert
	movl	(%rbx), %eax
	movq	_tot_unflushed_bytes@GOTPCREL(%rip), %rcx
	subl	%eax, (%rcx)
	movq	$0, (%rbx)
	movsd	-24(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	%xmm0, 8(%rbx)
	movl	$1, %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CLOCK_MONOTONIC,4,2            ## @CLOCK_MONOTONIC
	.comm	_MAX_CLIENT_UNFLUSHED_BYTES,8,3 ## @MAX_CLIENT_UNFLUSHED_BYTES
	.comm	_MAX_FLUSH_INTERVAL,8,3         ## @MAX_FLUSH_INTERVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%lld unflushed bytes pending in binlog slice %s, syncing...\n"

	.comm	_tot_unflushed_bytes,4,2        ## @tot_unflushed_bytes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_flush_client             ; -- Begin function check_flush_client
	.p2align	2
_check_flush_client:                    ; @check_flush_client
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -40
	.cfi_offset b9, -48
	mov	x19, x0
Lloh0:
	adrp	x8, _CLOCK_MONOTONIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CLOCK_MONOTONIC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_get_utime
	fmov	d8, d0
	ldr	x2, [x19]
Lloh3:
	adrp	x8, _MAX_CLIENT_UNFLUSHED_BYTES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_CLIENT_UNFLUSHED_BYTES@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ge	LBB0_3
; %bb.1:
	cbz	x2, LBB0_4
; %bb.2:
	ldr	d0, [x19, #8]
Lloh6:
	adrp	x8, _MAX_FLUSH_INTERVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_FLUSH_INTERVAL@GOTPAGEOFF]
Lloh8:
	ldr	d1, [x8]
	fadd	d0, d0, d1
	fcmp	d8, d0
	b.le	LBB0_4
LBB0_3:
	ldr	x20, [x19, #16]
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	w3, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_vkprintf
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_fsync
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_assert
	ldr	w8, [x19]
Lloh11:
	adrp	x9, _tot_unflushed_bytes@GOTPAGE
Lloh12:
	ldr	x9, [x9, _tot_unflushed_bytes@GOTPAGEOFF]
	ldr	w10, [x9]
	sub	w8, w10, w8
	str	w8, [x9]
	str	xzr, [x19]
	str	d8, [x19, #8]
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CLOCK_MONOTONIC,4,2            ; @CLOCK_MONOTONIC
	.comm	_MAX_CLIENT_UNFLUSHED_BYTES,8,3 ; @MAX_CLIENT_UNFLUSHED_BYTES
	.comm	_MAX_FLUSH_INTERVAL,8,3         ; @MAX_FLUSH_INTERVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%lld unflushed bytes pending in binlog slice %s, syncing...\n"

	.comm	_tot_unflushed_bytes,4,2        ; @tot_unflushed_bytes
.subsections_via_symbols
