	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v_ecl_log
_v_ecl_log:                             ## @v_ecl_log
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_1
LBB0_3:
	movq	(%rbx), %rax
	xorl	%r12d, %r12d
	cmpq	(%r15), %rax
	je	LBB0_11
## %bb.4:
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_db_last
	movl	$1, %r12d
	testq	%rax, %rax
	jne	LBB0_11
## %bb.5:
	movq	-40(%rbp), %rsi
	testq	%rsi, %rsi
	jle	LBB0_10
## %bb.6:
	leaq	-56(%rbp), %rcx
	leaq	-48(%rbp), %r8
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_db_get
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movq	-48(%rbp), %rdx
	cmpq	(%r14), %rdx
	jne	LBB0_10
## %bb.8:
	movl	8(%r14), %edi
	movq	-56(%rbp), %rsi
	callq	_MEMCMP
	testl	%eax, %eax
	je	LBB0_9
LBB0_10:
	movq	-40(%rbp), %rdx
	movl	8(%r14), %ecx
	movq	(%r14), %r8
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_db_append
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_log_cursor
	jmp	LBB0_11
LBB0_1:
	movq	%rbx, %rdi
	callq	_v_ecl_init
	movl	$1, %r12d
	testq	%rax, %rax
	je	LBB0_2
LBB0_11:
	movl	%r12d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	8(%rbx), %rax
	movq	(%rax), %r15
	jmp	LBB0_3
LBB0_9:
	xorl	%r12d, %r12d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_v_ecl_log
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v_ecl_log
_v_ecl_log:                             ; @v_ecl_log
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	x19, [x8]
	cbz	x19, LBB0_9
LBB0_1:
	ldr	x8, [x21]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
	mov	w20, #0
	b	LBB0_11
LBB0_3:
	add	x1, sp, #24
	mov	x0, x19
	bl	_db_last
	cbnz	x0, LBB0_10
; %bb.4:
	ldr	x1, [sp, #24]
	cmp	x1, #1
	b.lt	LBB0_8
; %bb.5:
	add	x3, sp, #16
	add	x4, sp, #8
	mov	x0, x19
	mov	w2, #0
	bl	_db_get
	cbnz	w0, LBB0_8
; %bb.6:
	ldr	x2, [sp, #8]
	ldr	x8, [x20]
	cmp	x2, x8
	b.ne	LBB0_8
; %bb.7:
	ldr	w0, [x20, #8]
	ldr	x1, [sp, #16]
	bl	_MEMCMP
	cbz	w0, LBB0_2
LBB0_8:
	ldr	x2, [sp, #24]
	ldr	w3, [x20, #8]
	ldr	x4, [x20]
	mov	x0, x19
	mov	w1, #0
	bl	_db_append
	mov	x20, x0
	mov	x0, x19
	bl	_log_cursor
	b	LBB0_11
LBB0_9:
	mov	x0, x21
	bl	_v_ecl_init
	cbz	x0, LBB0_12
LBB0_10:
	mov	w20, #1
LBB0_11:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
LBB0_12:
	ldr	x8, [x21, #8]
	ldr	x19, [x8]
	b	LBB0_1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_v_ecl_log
.subsections_via_symbols
