	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_idx_set_readpos                ## -- Begin function idx_set_readpos
	.p2align	4, 0x90
_idx_set_readpos:                       ## @idx_set_readpos
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_idx_bytes@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	setge	%al
	testq	%rdi, %rdi
	setns	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	_idx_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_lseek
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	sete	%dil
	callq	_assert
	movq	_idx_read_pos@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	movq	_idx_metafile_pos@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_read_crc32_acc@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
	movq	_RBuff@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_idx_ptr_crc@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_idx_wptr@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_idx_rptr@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_idx_bytes,8,3                  ## @idx_bytes
	.comm	_idx_fd,4,2                     ## @idx_fd
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_idx_read_pos,8,3               ## @idx_read_pos
	.comm	_idx_metafile_pos,8,3           ## @idx_metafile_pos
	.comm	_read_crc32_acc,4,2             ## @read_crc32_acc
	.comm	_RBuff,4,2                      ## @RBuff
	.comm	_idx_ptr_crc,4,2                ## @idx_ptr_crc
	.comm	_idx_wptr,4,2                   ## @idx_wptr
	.comm	_idx_rptr,4,2                   ## @idx_rptr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_idx_set_readpos                ; -- Begin function idx_set_readpos
	.p2align	2
_idx_set_readpos:                       ; @idx_set_readpos
	.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, x0
Lloh0:
	adrp	x8, _idx_bytes@GOTPAGE
Lloh1:
	ldr	x8, [x8, _idx_bytes@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, #0
	ccmp	x8, x0, #8, ge
	cset	w0, ge
	bl	_assert
Lloh3:
	adrp	x8, _idx_fd@GOTPAGE
Lloh4:
	ldr	x8, [x8, _idx_fd@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_lseek
	cmp	x0, x19
	cset	w0, eq
	bl	_assert
Lloh9:
	adrp	x8, _idx_read_pos@GOTPAGE
Lloh10:
	ldr	x8, [x8, _idx_read_pos@GOTPAGEOFF]
Lloh11:
	adrp	x9, _idx_metafile_pos@GOTPAGE
Lloh12:
	ldr	x9, [x9, _idx_metafile_pos@GOTPAGEOFF]
Lloh13:
	str	x19, [x8]
Lloh14:
	str	xzr, [x9]
Lloh15:
	adrp	x8, _read_crc32_acc@GOTPAGE
Lloh16:
	ldr	x8, [x8, _read_crc32_acc@GOTPAGEOFF]
	mov	w9, #-1
Lloh17:
	str	w9, [x8]
Lloh18:
	adrp	x8, _RBuff@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RBuff@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _idx_ptr_crc@GOTPAGE
Lloh22:
	ldr	x9, [x9, _idx_ptr_crc@GOTPAGEOFF]
Lloh23:
	str	w8, [x9]
Lloh24:
	adrp	x9, _idx_wptr@GOTPAGE
Lloh25:
	ldr	x9, [x9, _idx_wptr@GOTPAGEOFF]
Lloh26:
	str	w8, [x9]
Lloh27:
	adrp	x9, _idx_rptr@GOTPAGE
Lloh28:
	ldr	x9, [x9, _idx_rptr@GOTPAGEOFF]
Lloh29:
	str	w8, [x9]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_idx_bytes,8,3                  ; @idx_bytes
	.comm	_idx_fd,4,2                     ; @idx_fd
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_idx_read_pos,8,3               ; @idx_read_pos
	.comm	_idx_metafile_pos,8,3           ; @idx_metafile_pos
	.comm	_read_crc32_acc,4,2             ; @read_crc32_acc
	.comm	_RBuff,4,2                      ; @RBuff
	.comm	_idx_ptr_crc,4,2                ; @idx_ptr_crc
	.comm	_idx_wptr,4,2                   ; @idx_wptr
	.comm	_idx_rptr,4,2                   ; @idx_rptr
.subsections_via_symbols
