	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_binlog                   ## -- Begin function check_binlog
	.p2align	4, 0x90
_check_binlog:                          ## @check_binlog
	.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, %rbx
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	40(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_hostname_len@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	cmpq	%rdx, (%rax)
	jbe	LBB0_5
## %bb.3:
	movq	8(%rax), %rdi
	movq	_hostname@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	40(%rbx), %rax
	movq	8(%rax), %rax
	movq	(%r15), %rcx
	xorl	%r14d, %r14d
	cmpb	$58, (%rax,%rcx)
	sete	%r14b
LBB0_5:
	movl	%r14d, %edi
	callq	_assert
	movq	24(%rbx), %rax
	movq	40(%rbx), %rcx
	movq	8(%rcx), %rcx
	movq	_hostname_len@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	leaq	1(%rcx,%rdx), %r14
	movq	%r14, (%rbx)
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%r14, %rdi
	callq	_valid_binlog_path
	testl	%eax, %eax
	je	LBB0_6
## %bb.9:
	movq	_workers@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_8
## %bb.10:
	xorl	%esi, %esi
	testb	$4, 8(%rbx)
	sete	%sil
	movq	%r14, %rdi
	callq	_open_replica
	movl	%eax, 32(%rbx)
	movq	_sigrtmax_cnt@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%rbx)
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	$-1, 12(%rbx)
	movq	$0, 16(%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_load_binlog_data               ## TAILCALL
LBB0_6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%rbx), %rax
	movq	8(%rax), %rcx
	leaq	L_.str(%rip), %rsi
LBB0_7:
	movq	%r14, %rdx
	callq	_fprintf
LBB0_8:
	movl	$-1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%rbx), %rax
	movq	8(%rax), %rcx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_hostname_len,8,3               ## @hostname_len
	.comm	_hostname,4,2                   ## @hostname
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"local binlog path %s for binlog %s is invalid, ignoring entry\n"

	.comm	_workers,8,3                    ## @workers
	.comm	_sigrtmax_cnt,4,2               ## @sigrtmax_cnt
L_.str.1:                               ## @.str.1
	.asciz	"error: cannot open kfs replica %s for binlog tag %s, ignoring entry\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_binlog                   ; -- Begin function check_binlog
	.p2align	2
_check_binlog:                          ; @check_binlog
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _hostname_len@GOTPAGE
Lloh1:
	ldr	x20, [x20, _hostname_len@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x9, [x8]
	ldr	x2, [x20]
	cmp	x9, x2
	b.ls	LBB0_4
; %bb.3:
	ldr	x0, [x8, #8]
Lloh2:
	adrp	x8, _hostname@GOTPAGE
Lloh3:
	ldr	x8, [x8, _hostname@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_memcmp
	cbz	w0, LBB0_13
LBB0_4:
	mov	w0, #0
LBB0_5:
	bl	_assert
	ldr	x8, [x19, #40]
	ldr	x8, [x8, #8]
	ldr	x9, [x20]
	add	x8, x8, x9
	add	x20, x8, #1
	str	x20, [x19]
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	x0, x20
	bl	_valid_binlog_path
	cbz	w0, LBB0_9
; %bb.6:
Lloh5:
	adrp	x8, _workers@GOTPAGE
Lloh6:
	ldr	x8, [x8, _workers@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbnz	x8, LBB0_11
; %bb.7:
	ldr	w8, [x19, #8]
	mov	w9, #1
	bic	w1, w9, w8, lsr #2
	mov	x0, x20
	bl	_open_replica
Lloh8:
	adrp	x8, _sigrtmax_cnt@GOTPAGE
Lloh9:
	ldr	x8, [x8, _sigrtmax_cnt@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	stp	w0, w8, [x19, #32]
	cbz	w0, LBB0_12
; %bb.8:
	mov	w8, #-1
	str	w8, [x19, #12]
	str	xzr, [x19, #16]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_load_binlog_data
LBB0_9:
Lloh11:
	adrp	x8, _stderr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	x8, [x19, #24]
	ldr	x3, [x8, #8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
LBB0_10:
	mov	x2, x20
	bl	_fprintf
LBB0_11:
	mov	w0, #-1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh16:
	adrp	x8, _stderr@GOTPAGE
Lloh17:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldr	x8, [x19, #24]
	ldr	x3, [x8, #8]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_13:
	ldr	x8, [x19, #40]
	ldr	x8, [x8, #8]
	ldr	x9, [x20]
	ldrb	w8, [x8, x9]
	cmp	w8, #58
	cset	w0, eq
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_hostname_len,8,3               ; @hostname_len
	.comm	_hostname,4,2                   ; @hostname
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"local binlog path %s for binlog %s is invalid, ignoring entry\n"

	.comm	_workers,8,3                    ; @workers
	.comm	_sigrtmax_cnt,4,2               ; @sigrtmax_cnt
l_.str.1:                               ; @.str.1
	.asciz	"error: cannot open kfs replica %s for binlog tag %s, ignoring entry\n"

.subsections_via_symbols
