	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_idx_fake_readpos               ## -- Begin function idx_fake_readpos
	.p2align	4, 0x90
_idx_fake_readpos:                      ## @idx_fake_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_RBuffEnd@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	movq	_RBuff@GOTPCREL(%rip), %r15
	subq	(%r15), %rbx
	leaq	(%rbx,%rdi), %r12
	movq	_idx_bytes@GOTPCREL(%rip), %rax
	shrq	$63, %rdi
	xorl	$1, %edi
	xorl	%ecx, %ecx
	cmpq	(%rax), %r12
	cmovgl	%ecx, %edi
	testq	%rbx, %rbx
	cmovlel	%ecx, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_assert
	movq	_idx_read_pos@GOTPCREL(%rip), %rax
	movq	%r12, (%rax)
	movq	_idx_metafile_pos@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	movq	_read_crc32_acc@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
	movq	(%r15), %rax
	movq	_idx_ptr_crc@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_idx_rptr@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	(%r14), %rax
	movq	_idx_wptr@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RBuffEnd,8,3                   ## @RBuffEnd
	.comm	_RBuff,8,3                      ## @RBuff
	.comm	_idx_bytes,8,3                  ## @idx_bytes
	.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	_idx_ptr_crc,8,3                ## @idx_ptr_crc
	.comm	_idx_rptr,8,3                   ## @idx_rptr
	.comm	_idx_wptr,8,3                   ## @idx_wptr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_idx_fake_readpos               ; -- Begin function idx_fake_readpos
	.p2align	2
_idx_fake_readpos:                      ; @idx_fake_readpos
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x19, _RBuffEnd@GOTPAGE
Lloh1:
	ldr	x19, [x19, _RBuffEnd@GOTPAGEOFF]
Lloh2:
	adrp	x20, _RBuff@GOTPAGE
Lloh3:
	ldr	x20, [x20, _RBuff@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x9, [x20]
	sub	x21, x8, x9
	add	x22, x21, x0
Lloh4:
	adrp	x8, _idx_bytes@GOTPAGE
Lloh5:
	ldr	x8, [x8, _idx_bytes@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x22, x8
	ccmp	x21, #1, #8, le
	lsr	x8, x0, #63
	eor	w8, w8, #0x1
	csel	w0, wzr, w8, lt
	bl	_assert
Lloh7:
	adrp	x8, _idx_read_pos@GOTPAGE
Lloh8:
	ldr	x8, [x8, _idx_read_pos@GOTPAGEOFF]
Lloh9:
	str	x22, [x8]
Lloh10:
	adrp	x8, _idx_metafile_pos@GOTPAGE
Lloh11:
	ldr	x8, [x8, _idx_metafile_pos@GOTPAGEOFF]
Lloh12:
	str	x21, [x8]
Lloh13:
	adrp	x8, _read_crc32_acc@GOTPAGE
Lloh14:
	ldr	x8, [x8, _read_crc32_acc@GOTPAGEOFF]
	mov	w9, #-1
Lloh15:
	str	w9, [x8]
	ldr	x8, [x20]
Lloh16:
	adrp	x9, _idx_ptr_crc@GOTPAGE
Lloh17:
	ldr	x9, [x9, _idx_ptr_crc@GOTPAGEOFF]
Lloh18:
	adrp	x10, _idx_rptr@GOTPAGE
Lloh19:
	ldr	x10, [x10, _idx_rptr@GOTPAGEOFF]
Lloh20:
	str	x8, [x9]
Lloh21:
	str	x8, [x10]
	ldr	x8, [x19]
Lloh22:
	adrp	x9, _idx_wptr@GOTPAGE
Lloh23:
	ldr	x9, [x9, _idx_wptr@GOTPAGEOFF]
Lloh24:
	str	x8, [x9]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RBuffEnd,8,3                   ; @RBuffEnd
	.comm	_RBuff,8,3                      ; @RBuff
	.comm	_idx_bytes,8,3                  ; @idx_bytes
	.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	_idx_ptr_crc,8,3                ; @idx_ptr_crc
	.comm	_idx_rptr,8,3                   ; @idx_rptr
	.comm	_idx_wptr,8,3                   ; @idx_wptr
.subsections_via_symbols
