	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_start_binlog                   ## -- Begin function start_binlog
	.p2align	4, 0x90
_start_binlog:                          ## @start_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %r14d
	xorl	%r12d, %r12d
	movl	$0, %eax
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	incl	%eax
LBB0_2:
	cmpl	$1, %eax
	cmovnel	%eax, %r12d
	movq	_binlog_existed@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_15
## %bb.3:
	movq	_ST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	xorl	%edi, %edi
	cmpl	%r14d, (%rax)
	jne	LBB0_8
## %bb.5:
	movq	8(%rax), %rcx
	movq	_split_mod@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.6:
	movq	16(%rax), %rcx
	movq	_split_min@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.7:
	movq	24(%rax), %rax
	movq	_split_max@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
LBB0_8:
	callq	_assert
LBB0_9:
	movq	_KHDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.10:
	xorl	%edi, %edi
	cmpl	%r14d, (%rax)
	jne	LBB0_14
## %bb.11:
	movq	8(%rax), %rcx
	movq	_split_mod@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_14
## %bb.12:
	movq	16(%rax), %rcx
	movq	_split_min@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_14
## %bb.13:
	movq	24(%rax), %rax
	movq	_split_max@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_assert                         ## TAILCALL
LBB0_15:
	leal	3(%rax), %ecx
	andl	$-4, %ecx
	xorl	%ebx, %ebx
	cmpl	$1, %eax
	cmovnel	%ecx, %ebx
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_create_binlog_headers0
	leal	44(%rbx), %edi
	callq	_write_alloc
	movq	_LEV_START@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 40(%rax)
	movl	%r14d, (%rax)
	movl	%ebx, 4(%rax)
	movq	_split_mod@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 32(%rax)
	movq	_split_rem@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 24(%rax)
	incq	%rcx
	movq	%rcx, 16(%rax)
	testl	%r12d, %r12d
	je	LBB0_16
## %bb.17:
	movl	8(%rax), %edi
	movq	%r15, %rsi
	movl	%r12d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_binlog_existed,8,3             ## @binlog_existed
	.comm	_ST,8,3                         ## @ST
	.comm	_split_mod,8,3                  ## @split_mod
	.comm	_split_min,8,3                  ## @split_min
	.comm	_split_max,8,3                  ## @split_max
	.comm	_KHDR,8,3                       ## @KHDR
	.comm	_LEV_START,4,2                  ## @LEV_START
	.comm	_split_rem,8,3                  ## @split_rem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_start_binlog                   ; -- Begin function start_binlog
	.p2align	2
_start_binlog:                          ; @start_binlog
	.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	x20, x1
	mov	x19, x0
	cbz	x1, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_strlen
	add	w8, w0, #1
	b	LBB0_3
LBB0_2:
	mov	w8, #0
LBB0_3:
	cmp	w8, #1
	csel	w21, wzr, w8, eq
Lloh0:
	adrp	x9, _binlog_existed@GOTPAGE
Lloh1:
	ldr	x9, [x9, _binlog_existed@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cbz	x9, LBB0_9
; %bb.4:
Lloh3:
	adrp	x8, _ST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ST@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.5:
	ldr	w9, [x8]
	cmp	w9, w19
	b.ne	LBB0_11
; %bb.6:
	ldr	x9, [x8, #8]
Lloh6:
	adrp	x10, _split_mod@GOTPAGE
Lloh7:
	ldr	x10, [x10, _split_mod@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_11
; %bb.7:
	ldr	x9, [x8, #16]
Lloh9:
	adrp	x10, _split_min@GOTPAGE
Lloh10:
	ldr	x10, [x10, _split_min@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_11
; %bb.8:
	ldr	x8, [x8, #24]
Lloh12:
	adrp	x9, _split_max@GOTPAGE
Lloh13:
	ldr	x9, [x9, _split_max@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	b	LBB0_12
LBB0_9:
	add	w9, w8, #3
	and	w9, w9, #0xfffffffc
	cmp	w8, #1
	csel	w22, wzr, w9, eq
	mov	x0, x19
	mov	x1, x20
	bl	_create_binlog_headers0
	add	w0, w22, #44
	bl	_write_alloc
Lloh15:
	adrp	x8, _LEV_START@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LEV_START@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x0, #40]
	stp	w19, w22, [x0]
Lloh18:
	adrp	x8, _split_mod@GOTPAGE
Lloh19:
	ldr	x8, [x8, _split_mod@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	x8, [x0, #32]
Lloh21:
	adrp	x8, _split_rem@GOTPAGE
Lloh22:
	ldr	x8, [x8, _split_rem@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	add	x9, x8, #1
	stp	x9, x8, [x0, #16]
	cbz	w21, LBB0_18
; %bb.10:
	ldr	w0, [x0, #8]
	mov	x1, x20
	mov	x2, x21
	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
	b	_memcpy
LBB0_11:
	mov	w0, #0
LBB0_12:
	bl	_assert
LBB0_13:
Lloh24:
	adrp	x8, _KHDR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _KHDR@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cbz	x8, LBB0_18
; %bb.14:
	ldr	w9, [x8]
	cmp	w9, w19
	b.ne	LBB0_19
; %bb.15:
	ldr	x9, [x8, #8]
Lloh27:
	adrp	x10, _split_mod@GOTPAGE
Lloh28:
	ldr	x10, [x10, _split_mod@GOTPAGEOFF]
Lloh29:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_19
; %bb.16:
	ldr	x9, [x8, #16]
Lloh30:
	adrp	x10, _split_min@GOTPAGE
Lloh31:
	ldr	x10, [x10, _split_min@GOTPAGEOFF]
Lloh32:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_19
; %bb.17:
	ldr	x8, [x8, #24]
Lloh33:
	adrp	x9, _split_max@GOTPAGE
Lloh34:
	ldr	x9, [x9, _split_max@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	b	LBB0_20
LBB0_18:
	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_19:
	mov	w0, #0
LBB0_20:
	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
	b	_assert
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_binlog_existed,8,3             ; @binlog_existed
	.comm	_ST,8,3                         ; @ST
	.comm	_split_mod,8,3                  ; @split_mod
	.comm	_split_min,8,3                  ; @split_min
	.comm	_split_max,8,3                  ; @split_max
	.comm	_KHDR,8,3                       ; @KHDR
	.comm	_LEV_START,4,2                  ; @LEV_START
	.comm	_split_rem,8,3                  ; @split_rem
.subsections_via_symbols
