	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function memjrnlRead
_memjrnlRead:                           ## @memjrnlRead
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movslq	%edx, %rax
	addq	%rcx, %rax
	xorl	%edi, %edi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpq	24(%rbx), %rax
	setle	%dil
	callq	_assert
	testq	%r13, %r13
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	cmpq	%r13, (%rbx)
	jne	LBB0_2
## %bb.6:
	movq	8(%rbx), %r14
	jmp	LBB0_7
LBB0_2:
	movq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_ALWAYS
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_JOURNAL_CHUNKSIZE@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	cmpq	%r13, %rbx
	jg	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r14), %r14
	movq	%r14, %rdi
	callq	_ALWAYS
	testq	%rax, %rax
	jne	LBB0_4
LBB0_7:
	movq	_JOURNAL_CHUNKSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r13, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_8
## %bb.9:
	movq	%r13, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_10
LBB0_8:
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_10:
	movslq	%edx, %rbx
	subq	%rbx, %rcx
	movl	%r12d, %edi
	movq	%rcx, %rsi
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	callq	_MIN
	movl	%eax, %r13d
	shlq	$2, %rbx
	addq	(%r14), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_memcpy
	subl	-48(%rbp), %r12d                ## 4-byte Folded Reload
	js	LBB0_14
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %r14
	testq	%r14, %r14
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	testl	%r12d, %r12d
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movslq	%r13d, %rax
	leaq	(%r15,%rax,4), %r15
	movq	_JOURNAL_CHUNKSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_MIN
	movl	%eax, %r13d
	movq	(%r14), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_memcpy
	subl	%ebx, %r12d
	jns	LBB0_11
LBB0_14:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movq	%r14, 8(%rax)
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_JOURNAL_CHUNKSIZE,8,3          ## @JOURNAL_CHUNKSIZE
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.no_dead_strip	_memjrnlRead
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function memjrnlRead
_memjrnlRead:                           ; @memjrnlRead
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	add	x25, x3, w2, sxtw
	ldr	x8, [x0, #24]
	cmp	x25, x8
	cset	w0, le
	bl	_assert
Lloh0:
	adrp	x26, _JOURNAL_CHUNKSIZE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _JOURNAL_CHUNKSIZE@GOTPAGEOFF]
	cbz	x23, LBB0_3
; %bb.1:
	ldr	x8, [x19]
	cmp	x8, x23
	b.ne	LBB0_3
; %bb.2:
	ldr	x21, [x19, #8]
	b	LBB0_7
LBB0_3:
	ldr	x21, [x19, #16]
	mov	x0, x21
	bl	_ALWAYS
	cbz	x0, LBB0_7
; %bb.4:
	mov	x24, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	add	x24, x8, x24
	cmp	x24, x23
	b.gt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x21, [x21, #8]
	mov	x0, x21
	bl	_ALWAYS
	cbnz	x0, LBB0_5
LBB0_7:
	ldr	x8, [x26]
	sdiv	x9, x23, x8
	msub	x9, x9, x8, x23
	lsl	x27, x9, #32
	sub	x24, x8, w9, sxtw
	mov	x0, x22
	mov	x1, x24
	bl	_MIN
	mov	x23, x0
	ldr	x8, [x21]
	add	x1, x8, x27, asr #30
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x2, x23
	bl	_memcpy
	subs	w22, w22, w24
	b.mi	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x21, [x21, #8]
	cmp	x21, #0
	ccmp	w22, #0, #4, ne
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x20, x20, w23, sxtw #2
	ldr	x24, [x26]
	mov	x0, x22
	mov	x1, x24
	bl	_MIN
	mov	x23, x0
	ldr	x1, [x21]
	b	LBB0_8
LBB0_11:
	stp	x25, x21, [x19]
Lloh2:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_JOURNAL_CHUNKSIZE,8,3          ; @JOURNAL_CHUNKSIZE
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.no_dead_strip	_memjrnlRead
.subsections_via_symbols
