	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%edi, %edi
	cmpl	$131072, %ecx                   ## imm = 0x20000
	setb	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpl	$3, (%rbx)
	setge	%dil
	callq	_assert
	movl	(%rbx), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_lseek
	movl	$-1, %edi
	callq	_SimulateIOError
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_storeLastErrno
	movl	$-1, %eax
	popq	%rbx
	popq	%r14
	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	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	cmp	w3, #32, lsl #12                ; =131072
	cset	w0, lo
	bl	_assert
	ldr	w8, [x20]
	cmp	w8, #2
	cset	w0, gt
	bl	_assert
	ldr	w0, [x20]
Lloh0:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_lseek
	mov	w0, #-1
	bl	_SimulateIOError
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	mov	x0, x20
	bl	_storeLastErrno
	mov	w0, #-1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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
