	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dso_cache__read
_dso_cache__read:                       ## @dso_cache__read
	.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
	movl	%r8d, %r12d
	movq	%rcx, %rbx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	callq	_dso__data_fd
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movl	%eax, %r15d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_DSO__DATA_CACHE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	$12, %rdi
	callq	_zalloc
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movq	_DSO__DATA_CACHE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	andl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	movl	%r12d, %esi
	callq	_lseek
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.3:
	movl	8(%r14), %esi
	movq	_DSO__DATA_CACHE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	%r15d, %edi
	callq	_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jle	LBB0_7
## %bb.4:
	movl	%r12d, (%r14)
	movl	%ebx, 4(%r14)
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_dso_cache__insert
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_dso_cache__memcpy
	movl	%eax, %ebx
	testl	%ebx, %ebx
	jg	LBB0_8
	jmp	LBB0_7
LBB0_5:
	movl	$-1, %ebx
	jmp	LBB0_9
LBB0_6:
	negl	%ebx
	testl	%ebx, %ebx
	jg	LBB0_8
LBB0_7:
	movq	%r14, %rdi
	callq	_free
LBB0_8:
	movl	%r15d, %edi
	callq	_close
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DSO__DATA_CACHE_SIZE,8,3       ## @DSO__DATA_CACHE_SIZE
	.comm	_DSO__DATA_CACHE_MASK,4,2       ## @DSO__DATA_CACHE_MASK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_dso_cache__read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dso_cache__read
_dso_cache__read:                       ; @dso_cache__read
	.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	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x0
	bl	_dso__data_fd
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
Lloh3:
	adrp	x25, _DSO__DATA_CACHE_SIZE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _DSO__DATA_CACHE_SIZE@GOTPAGEOFF]
	ldr	x8, [x25]
	add	x0, x8, #12
	bl	_zalloc
	mov	x20, x0
	cbz	x0, LBB0_6
; %bb.2:
Lloh5:
	adrp	x8, _DSO__DATA_CACHE_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DSO__DATA_CACHE_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w26, w8, w23
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w27, [x8]
Lloh11:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x26
	bl	_lseek
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.3:
	ldr	w1, [x20, #8]
	ldr	x2, [x25]
	mov	x0, x19
	bl	_read
	mov	x25, x0
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.4:
	stp	w26, w25, [x20]
	mov	x0, x24
	mov	x1, x20
	bl	_dso_cache__insert
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	bl	_dso_cache__memcpy
	mov	x25, x0
	cmp	w25, #0
	b.gt	LBB0_8
	b	LBB0_7
LBB0_5:
	mov	w25, #-1
	b	LBB0_9
LBB0_6:
	neg	w25, w26
	cmp	w25, #0
	b.gt	LBB0_8
LBB0_7:
	mov	x0, x20
	bl	_free
LBB0_8:
	mov	x0, x19
	bl	_close
LBB0_9:
	mov	x0, x25
	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_10:
	neg	w25, w27
	cmp	w25, #0
	b.gt	LBB0_8
	b	LBB0_7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DSO__DATA_CACHE_SIZE,8,3       ; @DSO__DATA_CACHE_SIZE
	.comm	_DSO__DATA_CACHE_MASK,4,2       ; @DSO__DATA_CACHE_MASK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_dso_cache__read
.subsections_via_symbols
