	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_index                     ## -- Begin function load_index
	.p2align	4, 0x90
_load_index:                            ## @load_index
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$32, %rsp
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	(%rdi), %edi
	leaq	-32(%rbp), %rsi
	movl	$32, %edx
	callq	_read
	movq	-32(%rbp), %rax
	movq	_STATSX_INDEX_MAGIC_V1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	je	LBB0_7
## %bb.3:
	movq	_STATSX_INDEX_MAGIC_OLD@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_7
## %bb.4:
	incq	%rcx
	cmpq	%rcx, %rax
	je	LBB0_7
## %bb.5:
	movq	_STATSX_INDEX_MAGIC_V2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movl	$-1, %eax
	jmp	LBB0_8
LBB0_1:
	movq	_jump_log_ts@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_jump_log_pos@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_jump_log_crc32@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_7:
	movq	-8(%rbp), %rax
	movq	_jump_log_ts@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	-24(%rbp), %rax
	movq	-16(%rbp), %rcx
	movq	_jump_log_pos@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
	movq	_jump_log_crc32@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	$1, %eax
LBB0_8:
	addq	$32, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jump_log_ts,8,3                ## @jump_log_ts
	.comm	_jump_log_pos,8,3               ## @jump_log_pos
	.comm	_jump_log_crc32,8,3             ## @jump_log_crc32
	.comm	_STATSX_INDEX_MAGIC_V1,8,3      ## @STATSX_INDEX_MAGIC_V1
	.comm	_STATSX_INDEX_MAGIC_OLD,8,3     ## @STATSX_INDEX_MAGIC_OLD
	.comm	_STATSX_INDEX_MAGIC_V2,8,3      ## @STATSX_INDEX_MAGIC_V2
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"index file is not for statsx\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_index                     ; -- Begin function load_index
	.p2align	2
_load_index:                            ; @load_index
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w0, [x0]
	mov	x1, sp
	mov	w2, #32
	bl	_read
	ldr	x8, [sp]
Lloh0:
	adrp	x9, _STATSX_INDEX_MAGIC_V1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STATSX_INDEX_MAGIC_V1@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _STATSX_INDEX_MAGIC_OLD@GOTPAGE
Lloh4:
	ldr	x10, [x10, _STATSX_INDEX_MAGIC_OLD@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _STATSX_INDEX_MAGIC_V2@GOTPAGE
Lloh7:
	ldr	x11, [x11, _STATSX_INDEX_MAGIC_V2@GOTPAGEOFF]
	add	x12, x9, #1
Lloh8:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x12, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [sp, #24]
Lloh9:
	adrp	x9, _jump_log_ts@GOTPAGE
Lloh10:
	ldr	x9, [x9, _jump_log_ts@GOTPAGEOFF]
Lloh11:
	str	x8, [x9]
Lloh12:
	adrp	x8, _jump_log_pos@GOTPAGE
Lloh13:
	ldr	x8, [x8, _jump_log_pos@GOTPAGEOFF]
	ldp	x10, x9, [sp, #8]
Lloh14:
	str	x9, [x8]
Lloh15:
	adrp	x8, _jump_log_crc32@GOTPAGE
Lloh16:
	ldr	x8, [x8, _jump_log_crc32@GOTPAGEOFF]
Lloh17:
	str	x10, [x8]
	mov	w0, #1
	b	LBB0_5
LBB0_3:
Lloh18:
	adrp	x8, _jump_log_ts@GOTPAGE
Lloh19:
	ldr	x8, [x8, _jump_log_ts@GOTPAGEOFF]
Lloh20:
	str	xzr, [x8]
Lloh21:
	adrp	x8, _jump_log_pos@GOTPAGE
Lloh22:
	ldr	x8, [x8, _jump_log_pos@GOTPAGEOFF]
Lloh23:
	str	xzr, [x8]
Lloh24:
	adrp	x8, _jump_log_crc32@GOTPAGE
Lloh25:
	ldr	x8, [x8, _jump_log_crc32@GOTPAGEOFF]
Lloh26:
	str	xzr, [x8]
	b	LBB0_5
LBB0_4:
Lloh27:
	adrp	x8, _stderr@GOTPAGE
Lloh28:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str@PAGE
Lloh31:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_jump_log_ts,8,3                ; @jump_log_ts
	.comm	_jump_log_pos,8,3               ; @jump_log_pos
	.comm	_jump_log_crc32,8,3             ; @jump_log_crc32
	.comm	_STATSX_INDEX_MAGIC_V1,8,3      ; @STATSX_INDEX_MAGIC_V1
	.comm	_STATSX_INDEX_MAGIC_OLD,8,3     ; @STATSX_INDEX_MAGIC_OLD
	.comm	_STATSX_INDEX_MAGIC_V2,8,3      ; @STATSX_INDEX_MAGIC_V2
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"index file is not for statsx\n"

.subsections_via_symbols
