	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IsoRead                        ## -- Begin function IsoRead
	.p2align	4, 0x90
_IsoRead:                               ## @IsoRead
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_FsGetDeviceSpecific
	movq	%rax, %r13
	movq	_SECTORSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	movq	%r13, %r12
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_TRACE
	movq	%rbx, %rdi
	callq	_FsGetDeviceId
	movq	%rax, %r8
	movq	$0, (%r15)
	movl	(%r13), %ecx
	movslq	4(%r13), %rax
	cmpl	%ecx, %eax
	jle	LBB0_20
## %bb.1:
	movq	%r15, -120(%rbp)                ## 8-byte Spill
	movslq	%ecx, %rdx
	addq	%r14, %rdx
	movl	%eax, %esi
	subl	%ecx, %esi
	cmpq	%rax, %rdx
	movslq	%esi, %rdi
	cmovleq	%r14, %rdi
	movq	_SECTORSIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	%ecx, %eax
	cltd
	idivl	%esi
	testl	%edx, %edx
	je	LBB0_7
## %bb.2:
	movl	%edx, %r14d
	movslq	8(%r12), %rcx
	movslq	%eax, %rbx
	addq	%rcx, %rbx
	subl	%edx, %esi
	movq	%r15, %r13
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%r8, %r15
	callq	_min
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	$0, -88(%rbp)
	movslq	(%r13), %rax
	imulq	%rbx, %rax
	movq	%rax, -96(%rbp)
	movq	_SeekAbsolute@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-96(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ArcSeek
	movq	_ESUCCESS@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_22
## %bb.3:
	movq	_SECTORSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	movq	%r15, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_ArcRead
	cmpq	(%rbx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_SECTORSIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, -64(%rbp)
	jne	LBB0_5
## %bb.6:
	movslq	%r14d, %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rsi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_RtlCopyMemory
	movq	-120(%rbp), %rax                ## 8-byte Reload
	addq	%rbx, (%rax)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	subq	%rbx, %rdi
	movl	(%r12), %ecx
	addl	%ebx, %ecx
	movl	%ecx, (%r12)
	addq	%rbx, %r14
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	_SECTORSIZE@GOTPCREL(%rip), %r15
	movq	-104(%rbp), %r8                 ## 8-byte Reload
LBB0_7:
	testq	%rdi, %rdi
	jle	LBB0_19
## %bb.8:
	movslq	(%r15), %rsi
	movq	%rdi, %rax
	orq	%rsi, %rax
	movq	%r15, %rbx
	movq	%rdi, %r13
	shrq	$32, %rax
	je	LBB0_9
## %bb.10:
	movq	%rdi, %rax
	cqto
	idivq	%rsi
	jmp	LBB0_11
LBB0_9:
	movl	%edi, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_11:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movslq	8(%r12), %rdi
	movl	%ecx, %eax
	cltd
	idivl	%esi
	cltq
	addq	%rdi, %rax
	movq	$0, -88(%rbp)
	imulq	%rsi, %rax
	movq	%rax, -96(%rbp)
	movq	_SeekAbsolute@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-96(%rbp), %rsi
	movq	%r8, %rdi
	movq	%r8, %r14
	callq	_ArcSeek
	movq	_ESUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.12:
	movl	(%rbx), %edx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	imull	%r15d, %edx
	leaq	-64(%rbp), %rcx
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_ArcRead
	movq	_ESUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.13:
	movq	-64(%rbp), %rcx
	movslq	(%rbx), %rax
	imulq	%r15, %rax
	cmpq	%rax, %rcx
	jne	LBB0_5
## %bb.14:
	movq	-120(%rbp), %rax                ## 8-byte Reload
	addq	%rcx, (%rax)
	movl	(%r12), %eax
	addl	%ecx, %eax
	movl	%eax, (%r12)
	subq	%rcx, %r13
	movq	-104(%rbp), %r14                ## 8-byte Reload
	jle	LBB0_19
## %bb.15:
	movslq	(%rbx), %r15
	movslq	8(%r12), %rcx
	cltd
	idivl	%r15d
	cltq
	addq	%rcx, %rax
	movq	$0, -88(%rbp)
	imulq	%r15, %rax
	movq	%rax, -96(%rbp)
	movq	_SeekAbsolute@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-96(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ArcSeek
	movq	_ESUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.16:
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	movq	%rcx, %r15
	movl	(%rbx), %edx
	leaq	-64(%rbp), %rcx
	movq	%r14, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_ArcRead
	cmpq	(%r15), %rax
	jne	LBB0_5
## %bb.17:
	movslq	(%rbx), %rax
	cmpq	%rax, -64(%rbp)
	jne	LBB0_5
## %bb.18:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	imulq	-112(%rbp), %rdi                ## 8-byte Folded Reload
	addq	-72(%rbp), %rdi                 ## 8-byte Folded Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rbx
	movq	%r13, %rdx
	callq	_RtlCopyMemory
	movq	-120(%rbp), %rax                ## 8-byte Reload
	addq	%r13, (%rax)
	addl	%ebx, (%r12)
LBB0_19:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
LBB0_20:
	movq	_ESUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_5:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_21:
	movq	(%rax), %rax
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_24
## %bb.23:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SECTORSIZE,4,2                 ## @SECTORSIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IsoRead() Buffer = %p, N = %lu\n"

	.comm	_ESUCCESS,8,3                   ## @ESUCCESS
	.comm	_SeekAbsolute,4,2               ## @SeekAbsolute
	.comm	_EIO,8,3                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"IsoRead() done\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IsoRead                        ; -- Begin function IsoRead
	.p2align	2
_IsoRead:                               ; @IsoRead
	.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
	sub	sp, sp, #48
	mov	x19, x3
	mov	x24, x2
	mov	x21, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_FsGetDeviceSpecific
	mov	x20, x0
Lloh3:
	adrp	x26, _SECTORSIZE@GOTPAGE
Lloh4:
	ldr	x26, [x26, _SECTORSIZE@GOTPAGEOFF]
	ldr	w8, [x26]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	stp	x21, x24, [sp, #-16]!
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	add	sp, sp, #16
	mov	x0, x23
	bl	_FsGetDeviceId
	str	xzr, [x19]
	ldp	w8, w9, [x20]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	cmp	w9, w8
	b.le	LBB0_16
; %bb.1:
	mov	x23, x0
	sxtw	x10, w8
	sub	w11, w9, w8
	sxtw	x11, w11
	add	x10, x10, x24
	cmp	x10, x9
	csel	x24, x11, x24, gt
	ldr	w9, [x26]
	sdiv	w10, w8, w9
	msub	w27, w10, w9, w8
	cbz	w27, LBB0_6
; %bb.2:
	ldrsw	x8, [x20, #8]
	add	x28, x8, w10, sxtw
	sub	w1, w9, w27
	mov	x0, x24
	bl	_min
	mov	x25, x0
	ldrsw	x8, [x26]
	mul	x8, x8, x28
	stp	x8, xzr, [x29, #-104]
Lloh9:
	adrp	x8, _SeekAbsolute@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SeekAbsolute@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	sub	x1, x29, #104
	mov	x0, x23
	bl	_ArcSeek
Lloh12:
	adrp	x28, _ESUCCESS@GOTPAGE
Lloh13:
	ldr	x28, [x28, _ESUCCESS@GOTPAGEOFF]
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_19
; %bb.3:
	ldr	w2, [x26]
	sub	x3, x29, #112
	mov	x0, x23
	mov	x1, x22
	bl	_ArcRead
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.4:
	ldur	x8, [x29, #-112]
	ldrsw	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.5:
	sxtw	x8, w27
	add	x1, x22, x8, lsl #2
	mov	x0, x21
	mov	x2, x25
	bl	_RtlCopyMemory
	ldr	x8, [x19]
	add	x8, x8, x25
	str	x8, [x19]
	sub	x24, x24, x25
	ldr	w8, [x20]
	add	w8, w8, w25
	str	w8, [x20]
	add	x21, x25, x21
LBB0_6:
	cmp	x24, #1
	b.lt	LBB0_15
; %bb.7:
	ldrsw	x25, [x26]
	ldrsw	x9, [x20, #8]
	sdiv	w8, w8, w25
	add	x8, x9, w8, sxtw
	mul	x8, x8, x25
	stp	x8, xzr, [x29, #-104]
Lloh14:
	adrp	x28, _SeekAbsolute@GOTPAGE
Lloh15:
	ldr	x28, [x28, _SeekAbsolute@GOTPAGEOFF]
	ldr	w2, [x28]
	sub	x1, x29, #104
	mov	x0, x23
	bl	_ArcSeek
Lloh16:
	adrp	x27, _ESUCCESS@GOTPAGE
Lloh17:
	ldr	x27, [x27, _ESUCCESS@GOTPAGEOFF]
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_19
; %bb.8:
	sdiv	x25, x24, x25
	ldr	w8, [x26]
	mul	w2, w8, w25
	sub	x3, x29, #112
	mov	x0, x23
	mov	x1, x21
	bl	_ArcRead
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.9:
	ldur	x8, [x29, #-112]
	ldrsw	x9, [x26]
	mul	x9, x25, x9
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.10:
	ldr	x9, [x19]
	add	x9, x9, x8
	str	x9, [x19]
	sub	x10, x24, x8
	ldr	w9, [x20]
	add	w8, w9, w8
	str	w8, [x20]
	cmp	x10, #1
	b.lt	LBB0_15
; %bb.11:
	stur	x10, [x29, #-120]               ; 8-byte Folded Spill
	ldrsw	x24, [x26]
	ldrsw	x9, [x20, #8]
	sdiv	w8, w8, w24
	add	x8, x9, w8, sxtw
	mul	x8, x8, x24
	stp	x8, xzr, [x29, #-104]
	ldr	w2, [x28]
	sub	x1, x29, #104
	mov	x0, x23
	bl	_ArcSeek
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_19
; %bb.12:
	ldr	w2, [x26]
	sub	x3, x29, #112
	mov	x0, x23
	mov	x1, x22
	bl	_ArcRead
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.13:
	ldur	x8, [x29, #-112]
	ldrsw	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.14:
	madd	x0, x25, x24, x21
	mov	x1, x22
	ldur	x21, [x29, #-120]               ; 8-byte Folded Reload
	mov	x2, x21
	bl	_RtlCopyMemory
	ldr	x8, [x19]
	add	x8, x8, x21
	str	x8, [x19]
	ldr	w8, [x20]
	add	w8, w8, w21
	str	w8, [x20]
LBB0_15:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
LBB0_16:
Lloh20:
	adrp	x8, _ESUCCESS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ESUCCESS@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
Lloh22:
	adrp	x8, _EIO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_18:
	ldr	x0, [x8]
LBB0_19:
	ldur	x8, [x29, #-88]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	sub	sp, x29, #80
	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_21:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_SECTORSIZE,4,2                 ; @SECTORSIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IsoRead() Buffer = %p, N = %lu\n"

	.comm	_ESUCCESS,8,3                   ; @ESUCCESS
	.comm	_SeekAbsolute,4,2               ; @SeekAbsolute
	.comm	_EIO,8,3                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"IsoRead() done\n"

.subsections_via_symbols
