	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function seekAndRead
_seekAndRead:                           ## @seekAndRead
	.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	%ecx, %r14d
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	xorl	%edi, %edi
	cmpl	$131072, %ecx                   ## imm = 0x20000
	setb	%dil
	callq	_assert
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %esi
	callq	_lseek
	movl	%eax, %r13d
	leal	-1(%r13), %ebx
	movl	%eax, %edi
	callq	_SimulateIOError
	cmpl	%r12d, %ebx
	jne	LBB0_4
## %bb.1:
	andl	$131071, %r14d                  ## imm = 0x1FFFF
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_EINTR@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_11
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %esi
	callq	_lseek
	movl	%eax, %r13d
	movl	%r12d, %ebx
	leal	-1(%r13), %r14d
	movl	%eax, %edi
	callq	_SimulateIOError
	cmpl	%r12d, %r14d
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	jne	LBB0_4
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_osRead
	movl	%r14d, %ecx
	subl	%eax, %ecx
	je	LBB0_3
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	js	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	addl	%eax, %r12d
	addl	%eax, -44(%rbp)                 ## 4-byte Folded Spill
	movl	%eax, %eax
	addq	%rax, %r15
	movl	%ecx, %r14d
	jmp	LBB0_16
LBB0_4:
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	$0, 8(%rax)
	jmp	LBB0_7
LBB0_5:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%rcx)
LBB0_7:
	movl	$-1, %r14d
	jmp	LBB0_8
LBB0_3:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_12
LBB0_14:
	xorl	%r14d, %r14d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_12
LBB0_11:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rcx, 8(%rdx)
	xorl	%ecx, %ecx
	movl	%eax, %r14d
LBB0_12:
	addl	%ecx, %r14d
	movq	_TIMER_ELAPSED@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	callq	_OSTRACE
LBB0_8:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TIMER_START,4,2                ## @TIMER_START
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_TIMER_END,4,2                  ## @TIMER_END
	.comm	_TIMER_ELAPSED,4,2              ## @TIMER_ELAPSED
	.no_dead_strip	_seekAndRead
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function seekAndRead
_seekAndRead:                           ; @seekAndRead
	.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	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	cmp	w3, #32, lsl #12                ; =131072
	cset	w0, lo
	bl	_assert
	ldr	w0, [x19]
Lloh0:
	adrp	x25, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x1, x21
	bl	_lseek
	mov	x23, x0
	sub	w24, w0, #1
	bl	_SimulateIOError
	cmp	w24, w21
	b.ne	LBB0_8
; %bb.1:
	mov	w24, #0
	and	w22, w22, #0x1ffff
Lloh2:
	adrp	x26, _errno@GOTPAGE
Lloh3:
	ldr	x26, [x26, _errno@GOTPAGEOFF]
Lloh4:
	adrp	x27, _EINTR@GOTPAGE
Lloh5:
	ldr	x27, [x27, _EINTR@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x26]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_13
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19]
	ldr	w2, [x25]
	mov	x1, x21
	bl	_lseek
	mov	x23, x0
	sub	w28, w0, #1
	bl	_SimulateIOError
	cmp	w28, w21
	b.ne	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	mov	x1, x20
	mov	x2, x22
	bl	_osRead
	subs	w8, w22, w0
	b.eq	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x0
	tbnz	w0, #31, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w23, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w23, w21
	add	w24, w23, w24
	mov	x22, x8
	add	x20, x20, w23, uxtw
	b	LBB0_3
LBB0_8:
	cbz	w23, LBB0_10
; %bb.9:
	str	xzr, [x19, #8]
	b	LBB0_11
LBB0_10:
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_11:
	mov	w0, #-1
	b	LBB0_15
LBB0_12:
	mov	x23, x22
	b	LBB0_14
LBB0_13:
	mov	w24, #0
	str	x8, [x19, #8]
LBB0_14:
Lloh9:
	adrp	x8, _TIMER_ELAPSED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TIMER_ELAPSED@GOTPAGEOFF]
Lloh11:
	ldrsw	x0, [x8]
	bl	_OSTRACE
	add	w0, w24, w23
LBB0_15:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_TIMER_START,4,2                ; @TIMER_START
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_TIMER_END,4,2                  ; @TIMER_END
	.comm	_TIMER_ELAPSED,4,2              ; @TIMER_ELAPSED
	.no_dead_strip	_seekAndRead
.subsections_via_symbols
