	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_index_type               ## -- Begin function check_index_type
	.p2align	4, 0x90
_check_index_type:                      ## @check_index_type
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	_SEEK_SET@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_lseek
	leaq	-28(%rbp), %rsi
	movl	%ebx, %edi
	movl	$4, %edx
	callq	_read
	movl	-28(%rbp), %edi
	callq	_get_index_version
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movl	(%r15), %edx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_lseek
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_index_type               ; -- Begin function check_index_type
	.p2align	2
_check_index_type:                      ; @check_index_type
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	w1, #0
	bl	_lseek
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #4
	bl	_read
	ldr	w0, [sp, #12]
	bl	_get_index_version
	tbnz	x0, #63, LBB0_2
; %bb.1:
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #0
	bl	_lseek
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
.subsections_via_symbols
