	.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, %r14
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movslq	%edx, %rax
	addq	%rcx, %rax
	xorl	%edi, %edi
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpq	32(%rbx), %rax
	setle	%dil
	callq	_assert
	cmpq	$0, 8(%rbx)
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, 16(%rbx)
	setne	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	callq	_assert
	testq	%r14, %r14
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.4:
	cmpq	%r14, 8(%rbx)
	jne	LBB0_5
## %bb.9:
	movq	16(%rbx), %r13
	xorl	%edi, %edi
	testq	%r13, %r13
	setne	%dil
	callq	_assert
	jmp	LBB0_10
LBB0_5:
	movq	24(%rbx), %r13
	movq	%r13, %rdi
	callq	_ALWAYS
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rbx
	cmpq	%r14, %rbx
	jg	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r13), %r13
	movq	%r13, %rdi
	callq	_ALWAYS
	testq	%rax, %rax
	jne	LBB0_7
LBB0_10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	movq	%r14, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_11
## %bb.12:
	movq	%r14, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_13
LBB0_11:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_13:
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	subl	%edx, %ecx
	movl	%r12d, %edi
	movq	%rcx, %r14
	movl	%r14d, %esi
	callq	_MIN
	movl	%eax, %ebx
	movslq	-56(%rbp), %rsi                 ## 4-byte Folded Reload
	shlq	$2, %rsi
	addq	(%r13), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_memcpy
	subl	%r14d, %r12d
	js	LBB0_17
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %r13
	testq	%r13, %r13
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	testl	%r12d, %r12d
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movslq	%ebx, %rax
	leaq	(%r15,%rax,4), %r15
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r14d
	movl	%r12d, %edi
	movl	%r14d, %esi
	callq	_MIN
	movl	%eax, %ebx
	movq	(%r13), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_memcpy
	subl	%r14d, %r12d
	jns	LBB0_14
LBB0_17:
	testq	%r13, %r13
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmoveq	%r13, %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rcx, 8(%rax)
	movq	%r13, 16(%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	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_SQLITE_IOERR_SHORT_READ,4,2    ## @SQLITE_IOERR_SHORT_READ
	.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	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	add	x25, x3, w2, sxtw
	ldr	x8, [x0, #32]
	cmp	x25, x8
	cset	w0, le
	bl	_assert
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	cbnz	x23, LBB0_3
	b	LBB0_5
LBB0_2:
	mov	w0, #1
	bl	_assert
	cbz	x23, LBB0_5
LBB0_3:
	ldr	x8, [x19, #8]
	cmp	x8, x23
	b.ne	LBB0_5
; %bb.4:
	ldr	x21, [x19, #16]
	cmp	x21, #0
	cset	w0, ne
	bl	_assert
	b	LBB0_9
LBB0_5:
	ldr	x21, [x19, #24]
	mov	x0, x21
	bl	_ALWAYS
	cbz	x0, LBB0_9
; %bb.6:
	mov	x24, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x24, x8, x24
	cmp	x24, x23
	b.gt	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x21, [x21, #8]
	mov	x0, x21
	bl	_ALWAYS
	cbnz	x0, LBB0_7
LBB0_9:
	ldr	x8, [x19]
	sdiv	x9, x23, x8
	msub	x9, x9, x8, x23
	lsl	x26, x9, #32
	sub	w24, w8, w9
	mov	x0, x22
	mov	x1, x24
	bl	_MIN
	mov	x23, x0
	ldr	x8, [x21]
	add	x1, x8, x26, asr #30
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x2, x23
	bl	_memcpy
	subs	w22, w22, w24
	b.mi	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x21, [x21, #8]
	cmp	x21, #0
	ccmp	w22, #0, #4, ne
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x20, x20, w23, sxtw #2
	ldr	w24, [x19]
	mov	x0, x22
	mov	x1, x24
	bl	_MIN
	mov	x23, x0
	ldr	x1, [x21]
	b	LBB0_10
LBB0_13:
	cmp	x21, #0
	csel	x8, xzr, x25, eq
	stp	x8, x21, [x19, #8]
Lloh0:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_SQLITE_IOERR_SHORT_READ,4,2    ; @SQLITE_IOERR_SHORT_READ
	.no_dead_strip	_memjrnlRead
.subsections_via_symbols
