	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crash_read
_crash_read:                            ## @crash_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	(%rcx), %rdi
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movq	%rdi, %rax
	shrq	%cl, %rax
	addq	%rdi, %rdx
	decq	%rdx
	shrq	%cl, %rdx
	cmpq	%rdx, %rax
	jne	LBB0_1
## %bb.3:
	movq	%rsi, %r15
	leaq	-32(%rbp), %rsi
	callq	_map_virtual
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	callq	_copy_to_user
	movq	%rax, %r15
	movq	-32(%rbp), %rdi
	callq	_unmap_virtual
	testq	%r15, %r15
	je	LBB0_6
LBB0_4:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	addq	%rbx, (%r14)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_EFAULT,8,3                     ## @EFAULT
	.no_dead_strip	_crash_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crash_read
_crash_read:                            ; @crash_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x0, [x3]
Lloh0:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	lsr	x9, x0, x8
	add	x10, x2, x0
	sub	x10, x10, #1
	lsr	x8, x10, x8
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.1:
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	add	x1, sp, #8
	bl	_map_virtual
	cbz	x0, LBB0_3
; %bb.2:
	mov	x1, x0
	mov	x0, x21
	mov	x2, x19
	bl	_copy_to_user
	mov	x21, x0
	ldr	x0, [sp, #8]
	bl	_unmap_virtual
	cbz	x21, LBB0_7
LBB0_3:
Lloh3:
	adrp	x8, _EFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
	ldr	x8, [x20]
	add	x8, x8, x19
	str	x8, [x20]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_EFAULT,8,3                     ; @EFAULT
	.no_dead_strip	_crash_read
.subsections_via_symbols
