	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_index_version              ## -- Begin function get_index_version
	.p2align	4, 0x90
_get_index_version:                     ## @get_index_version
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_STATSX_INDEX_MAGIC_OLD@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_4
## %bb.1:
	movq	_custom_version_names@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.3:
	movq	_index_version@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_4:
	movl	%edi, %edx
	movq	_STATSX_INDEX_MAGIC_V1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%edi, %eax
	je	LBB0_6
## %bb.5:
	leal	1(%rax), %ecx
	cmpl	%edx, %ecx
	je	LBB0_6
## %bb.8:
	movq	_STATSX_INDEX_MAGIC_V2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%edx, %eax
	je	LBB0_10
## %bb.9:
	leal	1(%rax), %ecx
	cmpl	%edx, %ecx
	je	LBB0_10
## %bb.12:
	movq	_STATSX_INDEX_MAGIC_V3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%edx, %eax
	je	LBB0_14
## %bb.13:
	leal	1(%rax), %ecx
	cmpl	%edx, %ecx
	je	LBB0_14
## %bb.16:
	movq	_STATSX_INDEX_MAGIC_V4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%edx, %eax
	je	LBB0_18
## %bb.17:
	leal	1(%rax), %ecx
	cmpl	%edx, %ecx
	je	LBB0_18
## %bb.20:
	leaq	L_.str.1(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_vkprintf
	jmp	LBB0_21
LBB0_6:
	subl	%eax, %edx
	movq	_custom_version_names@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_2
## %bb.7:
	movq	_index_version@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movl	$1, %eax
	popq	%rbp
	retq
LBB0_10:
	subl	%eax, %edx
	movq	_custom_version_names@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_2
## %bb.11:
	movq	_index_version@GOTPCREL(%rip), %rax
	movl	$2, (%rax)
	movl	$2, %eax
	popq	%rbp
	retq
LBB0_14:
	subl	%eax, %edx
	movq	_custom_version_names@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_2
## %bb.15:
	movq	_index_version@GOTPCREL(%rip), %rax
	movl	$3, (%rax)
	movl	$3, %eax
	popq	%rbp
	retq
LBB0_18:
	subl	%eax, %edx
	movq	_custom_version_names@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_2
## %bb.19:
	movq	_index_version@GOTPCREL(%rip), %rax
	movl	$4, (%rax)
	movl	$4, %eax
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_vkprintf
LBB0_21:
	movl	$-1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATSX_INDEX_MAGIC_OLD,4,2     ## @STATSX_INDEX_MAGIC_OLD
	.comm	_custom_version_names,4,2       ## @custom_version_names
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"index file key [-x] is not as in index\n"

	.comm	_index_version,4,2              ## @index_version
	.comm	_STATSX_INDEX_MAGIC_V1,4,2      ## @STATSX_INDEX_MAGIC_V1
	.comm	_STATSX_INDEX_MAGIC_V2,4,2      ## @STATSX_INDEX_MAGIC_V2
	.comm	_STATSX_INDEX_MAGIC_V3,4,2      ## @STATSX_INDEX_MAGIC_V3
	.comm	_STATSX_INDEX_MAGIC_V4,4,2      ## @STATSX_INDEX_MAGIC_V4
L_.str.1:                               ## @.str.1
	.asciz	"Unknown index magic %x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_index_version              ; -- Begin function get_index_version
	.p2align	2
_get_index_version:                     ; @get_index_version
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _STATSX_INDEX_MAGIC_OLD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATSX_INDEX_MAGIC_OLD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _custom_version_names@GOTPAGE
Lloh4:
	ldr	x8, [x8, _custom_version_names@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbnz	w8, LBB0_15
; %bb.2:
	mov	w0, #0
Lloh6:
	adrp	x8, _index_version@GOTPAGE
Lloh7:
	ldr	x8, [x8, _index_version@GOTPAGEOFF]
Lloh8:
	str	wzr, [x8]
	b	LBB0_17
LBB0_3:
Lloh9:
	adrp	x8, _STATSX_INDEX_MAGIC_V1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STATSX_INDEX_MAGIC_V1@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	add	w9, w8, #1
	cmp	w8, w0
	ccmp	w9, w0, #4, ne
	b.ne	LBB0_6
; %bb.4:
Lloh12:
	adrp	x9, _custom_version_names@GOTPAGE
Lloh13:
	ldr	x9, [x9, _custom_version_names@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	sub	w8, w0, w8
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.5:
Lloh15:
	adrp	x8, _index_version@GOTPAGE
Lloh16:
	ldr	x8, [x8, _index_version@GOTPAGEOFF]
	mov	w0, #1
Lloh17:
	str	w0, [x8]
	b	LBB0_17
LBB0_6:
Lloh18:
	adrp	x8, _STATSX_INDEX_MAGIC_V2@GOTPAGE
Lloh19:
	ldr	x8, [x8, _STATSX_INDEX_MAGIC_V2@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	add	w9, w8, #1
	cmp	w8, w0
	ccmp	w9, w0, #4, ne
	b.ne	LBB0_9
; %bb.7:
Lloh21:
	adrp	x9, _custom_version_names@GOTPAGE
Lloh22:
	ldr	x9, [x9, _custom_version_names@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	sub	w8, w0, w8
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.8:
Lloh24:
	adrp	x8, _index_version@GOTPAGE
Lloh25:
	ldr	x8, [x8, _index_version@GOTPAGEOFF]
	mov	w0, #2
Lloh26:
	str	w0, [x8]
	b	LBB0_17
LBB0_9:
Lloh27:
	adrp	x8, _STATSX_INDEX_MAGIC_V3@GOTPAGE
Lloh28:
	ldr	x8, [x8, _STATSX_INDEX_MAGIC_V3@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	add	w9, w8, #1
	cmp	w8, w0
	ccmp	w9, w0, #4, ne
	b.ne	LBB0_12
; %bb.10:
Lloh30:
	adrp	x9, _custom_version_names@GOTPAGE
Lloh31:
	ldr	x9, [x9, _custom_version_names@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	sub	w8, w0, w8
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.11:
Lloh33:
	adrp	x8, _index_version@GOTPAGE
Lloh34:
	ldr	x8, [x8, _index_version@GOTPAGEOFF]
	mov	w0, #3
Lloh35:
	str	w0, [x8]
	b	LBB0_17
LBB0_12:
Lloh36:
	adrp	x8, _STATSX_INDEX_MAGIC_V4@GOTPAGE
Lloh37:
	ldr	x8, [x8, _STATSX_INDEX_MAGIC_V4@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	add	w9, w8, #1
	cmp	w8, w0
	ccmp	w9, w0, #4, ne
	b.ne	LBB0_18
; %bb.13:
Lloh39:
	adrp	x9, _custom_version_names@GOTPAGE
Lloh40:
	ldr	x9, [x9, _custom_version_names@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	sub	w8, w0, w8
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.14:
Lloh42:
	adrp	x8, _index_version@GOTPAGE
Lloh43:
	ldr	x8, [x8, _index_version@GOTPAGEOFF]
	mov	w0, #4
Lloh44:
	str	w0, [x8]
	b	LBB0_17
LBB0_15:
Lloh45:
	adrp	x1, l_.str@PAGE
Lloh46:
	add	x1, x1, l_.str@PAGEOFF
LBB0_16:
	mov	w0, #0
	bl	_vkprintf
	mov	w0, #-1
LBB0_17:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_18:
	str	x0, [sp]
Lloh47:
	adrp	x1, l_.str.1@PAGE
Lloh48:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotStr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotStr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_STATSX_INDEX_MAGIC_OLD,4,2     ; @STATSX_INDEX_MAGIC_OLD
	.comm	_custom_version_names,4,2       ; @custom_version_names
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"index file key [-x] is not as in index\n"

	.comm	_index_version,4,2              ; @index_version
	.comm	_STATSX_INDEX_MAGIC_V1,4,2      ; @STATSX_INDEX_MAGIC_V1
	.comm	_STATSX_INDEX_MAGIC_V2,4,2      ; @STATSX_INDEX_MAGIC_V2
	.comm	_STATSX_INDEX_MAGIC_V3,4,2      ; @STATSX_INDEX_MAGIC_V3
	.comm	_STATSX_INDEX_MAGIC_V4,4,2      ; @STATSX_INDEX_MAGIC_V4
l_.str.1:                               ; @.str.1
	.asciz	"Unknown index magic %x\n"

.subsections_via_symbols
