	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cread                          ## -- Begin function cread
	.p2align	4, 0x90
_cread:                                 ## @cread
	.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, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	%edi, %r12d
	movq	_cachesize@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_2
## %bb.1:
	movq	_sblock@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.4:
	movq	_DataBase@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_cinit
LBB0_6:
	movq	_BlockSize@GOTPCREL(%rip), %rax
	movslq	(%rax), %r8
	cmpq	%r14, %r8
	jbe	LBB0_2
## %bb.7:
	movl	%r8d, %eax
	negl	%eax
	movslq	%eax, %rcx
	leaq	(%r14,%rbx), %rax
	decq	%rax
	xorq	%rbx, %rax
	testq	%rcx, %rax
	je	LBB0_8
LBB0_2:
	movl	%r12d, %edi
	movq	%r15, %rsi
LBB0_3:
	movq	%r14, %rdx
	movq	%rbx, %rcx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pread                          ## TAILCALL
LBB0_8:
	movq	%rbx, %rax
	orq	%r8, %rax
	shrq	$32, %rax
	je	LBB0_9
## %bb.10:
	movq	%rbx, %rax
	xorl	%edx, %edx
	divq	%r8
	jmp	LBB0_11
LBB0_9:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%r8d
                                        ## kill: def $eax killed $eax def $rax
LBB0_11:
	movq	_HSize@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_12
## %bb.13:
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_14
LBB0_12:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_14:
	movq	_BlockHash@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movslq	%edx, %rdi
	leaq	(%rsi,%rdi,8), %rax
	movq	(%rsi,%rdi,8), %r13
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r15
	movq	(%r13), %rax
	movq	%rax, %rdx
	xorq	%rbx, %rdx
	testq	%rcx, %rdx
	je	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%r13, %rax
	movq	16(%r13), %rdx
	addq	$16, %rax
	movq	%rdx, %r13
	testq	%rdx, %rdx
	jne	LBB0_15
## %bb.17:
	movq	(%r15), %r13
	andq	%rbx, %rcx
	movq	%rcx, (%r13)
	movq	8(%r13), %rsi
	movl	%r12d, %edi
	movq	%r8, %rdx
	callq	_pread
	movq	_BlockSize@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_20
## %bb.18:
	movq	(%r13), %rax
LBB0_19:
	subq	%rax, %rbx
	addq	8(%r13), %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_memmove
	movq	16(%r13), %rax
	movq	%rax, (%r15)
	movq	_BlockHash@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rax,%rdx,8), %rcx
	movq	%rcx, 16(%r13)
	movq	%r13, (%rax,%rdx,8)
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	$-1, (%r13)
	movl	%r12d, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_cachesize,8,3                  ## @cachesize
	.comm	_sblock,8,3                     ## @sblock
	.comm	_DataBase,8,3                   ## @DataBase
	.comm	_BlockSize,4,2                  ## @BlockSize
	.comm	_HSize,8,3                      ## @HSize
	.comm	_BlockHash,8,3                  ## @BlockHash
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cread                          ; -- Begin function cread
	.p2align	2
_cread:                                 ; @cread
	.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	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _cachesize@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cachesize@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _sblock@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sblock@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.2:
Lloh6:
	adrp	x8, _DataBase@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DataBase@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbnz	x8, LBB0_4
; %bb.3:
	bl	_cinit
LBB0_4:
Lloh9:
	adrp	x26, _BlockSize@GOTPAGE
Lloh10:
	ldr	x26, [x26, _BlockSize@GOTPAGEOFF]
	ldrsw	x2, [x26]
	cmp	x2, x19
	b.ls	LBB0_6
; %bb.5:
	neg	w8, w2
	sxtw	x8, w8
	add	x9, x19, x20
	sub	x9, x9, #1
	eor	x9, x9, x20
	tst	x9, x8
	b.eq	LBB0_7
LBB0_6:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	mov	x3, x20
	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
	b	_pread
LBB0_7:
	udiv	x9, x20, x2
Lloh11:
	adrp	x10, _HSize@GOTPAGE
Lloh12:
	ldr	x10, [x10, _HSize@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	udiv	x11, x9, x10
Lloh14:
	adrp	x23, _BlockHash@GOTPAGE
Lloh15:
	ldr	x23, [x23, _BlockHash@GOTPAGEOFF]
	msub	x9, x11, x10, x9
	ldr	x10, [x23]
	lsl	x11, x9, #32
	sxtw	x24, w9
	add	x9, x10, x11, asr #29
	ldr	x25, [x9]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x27, x9
	ldr	x9, [x25]
	eor	x10, x9, x20
	tst	x10, x8
	b.eq	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x10, [x25, #16]!
	mov	x9, x25
	mov	x25, x10
	cbnz	x10, LBB0_8
; %bb.10:
	ldr	x25, [x27]
	and	x3, x8, x20
	str	x3, [x25]
	ldr	x1, [x25, #8]
	mov	x0, x22
	bl	_pread
	ldr	w8, [x26]
	cmp	w8, w0
	b.ne	LBB0_13
; %bb.11:
	ldr	x9, [x25]
LBB0_12:
	ldr	x8, [x25, #8]
	sub	x9, x20, x9
	add	x1, x8, x9
	mov	x0, x21
	mov	x2, x19
	bl	_memmove
	ldr	x8, [x25, #16]
	str	x8, [x27]
	ldr	x8, [x23]
	lsl	x9, x24, #3
	ldr	x10, [x8, x9]
	str	x10, [x25, #16]
	str	x25, [x8, x9]
	mov	x0, x19
	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
LBB0_13:
	mov	x8, #-1
	str	x8, [x25]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_cachesize,8,3                  ; @cachesize
	.comm	_sblock,8,3                     ; @sblock
	.comm	_DataBase,8,3                   ; @DataBase
	.comm	_BlockSize,4,2                  ; @BlockSize
	.comm	_HSize,8,3                      ; @HSize
	.comm	_BlockHash,8,3                  ; @BlockHash
.subsections_via_symbols
