	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prefix_check                   ## -- Begin function prefix_check
	.p2align	4, 0x90
_prefix_check:                          ## @prefix_check
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rdi), %edx
	movl	(%rsi), %ecx
	cmpl	%ecx, %edx
	jge	LBB0_2
## %bb.1:
	movl	4(%r14), %esi
	movl	4(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_kprintf
	movl	$-2, %eax
	jmp	LBB0_17
LBB0_2:
	movl	$-1, %eax
	cmpl	$20, %edx
	jl	LBB0_17
## %bb.3:
	cmpl	$20, %ecx
	jl	LBB0_17
## %bb.4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_head_check
	testl	%eax, %eax
	js	LBB0_17
## %bb.5:
	movslq	(%rbx), %r15
	movq	_STORAGE_LEV_START_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_7
## %bb.6:
	movq	_local_id@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_16:
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_7:
	addq	$-16, %r15
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movl	$16, %edx
	movq	%r15, %rcx
	callq	_vk_pread
	testq	%rax, %rax
	js	LBB0_8
## %bb.9:
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$16, %edx
	movq	%r15, %rcx
	callq	_vk_pread
	testq	%rax, %rax
	js	LBB0_10
## %bb.11:
	movl	-40(%rbp), %eax
	notl	%eax
	movq	_crc32_complement@GOTPCREL(%rip), %r12
	movl	%eax, (%r12)
	movq	-48(%rbp), %rax
	movq	_LEV_CRC32@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.13:
	leaq	-48(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	movl	$16, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_kprintf
	movl	$-6, %eax
	jmp	LBB0_17
LBB0_8:
	movl	$-3, %eax
	jmp	LBB0_17
LBB0_10:
	movl	$-4, %eax
	jmp	LBB0_17
LBB0_12:
	movl	4(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_kprintf
	movl	$-5, %eax
LBB0_17:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	4(%r14), %ecx
	movl	4(%rbx), %r8d
	leaq	L_.str.3(%rip), %rsi
	movl	$3, %edi
	movl	$16, %edx
	callq	_vkprintf
	movl	(%r12), %edx
	leaq	-48(%rbp), %rdi
	movl	$16, %esi
	callq	_crc32_partial
	movl	%eax, (%r12)
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s is smaller than %s\n"

	.comm	_STORAGE_LEV_START_SIZE,4,2     ## @STORAGE_LEV_START_SIZE
	.comm	_local_id,8,3                   ## @local_id
	.comm	_crc32_complement,4,2           ## @crc32_complement
	.comm	_LEV_CRC32,8,3                  ## @LEV_CRC32
L_.str.1:                               ## @.str.1
	.asciz	"didn't find LEV_CRC32 record in %s at offset %lld\n"

L_.str.2:                               ## @.str.2
	.asciz	"last lev_crc32 record don't matched.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Last %d bytes are equal (%s, %s).\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prefix_check                   ; -- Begin function prefix_check
	.p2align	2
_prefix_check:                          ; @prefix_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
	ldr	w9, [x1]
	cmp	w8, w9
	b.ge	LBB0_2
; %bb.1:
	ldr	w8, [x20, #4]
	ldr	w9, [x19, #4]
	stp	x8, x9, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_kprintf
	mov	w0, #-2
	b	LBB0_16
LBB0_2:
	cmp	w8, #20
	ccmp	w9, #20, #8, ge
	b.ge	LBB0_4
; %bb.3:
	mov	w0, #-1
	b	LBB0_16
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_head_check
	tbnz	w0, #31, LBB0_16
; %bb.5:
	ldrsw	x8, [x19]
Lloh2:
	adrp	x9, _STORAGE_LEV_START_SIZE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _STORAGE_LEV_START_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.6:
	mov	w0, #0
Lloh5:
	adrp	x8, _local_id@GOTPAGE
Lloh6:
	ldr	x8, [x8, _local_id@GOTPAGEOFF]
Lloh7:
	str	xzr, [x8]
	b	LBB0_16
LBB0_7:
	sub	x21, x8, #16
	add	x1, sp, #32
	mov	x0, x20
	mov	w2, #16
	mov	x3, x21
	bl	_vk_pread
	tbnz	x0, #63, LBB0_12
; %bb.8:
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #16
	mov	x3, x21
	bl	_vk_pread
	tbnz	x0, #63, LBB0_13
; %bb.9:
	ldr	w8, [sp, #40]
	mvn	w8, w8
Lloh8:
	adrp	x22, _crc32_complement@GOTPAGE
Lloh9:
	ldr	x22, [x22, _crc32_complement@GOTPAGEOFF]
	str	w8, [x22]
	ldr	x8, [sp, #32]
Lloh10:
	adrp	x9, _LEV_CRC32@GOTPAGE
Lloh11:
	ldr	x9, [x9, _LEV_CRC32@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.10:
	add	x0, sp, #32
	add	x1, sp, #16
	mov	w2, #16
	bl	_memcmp
	cbz	x0, LBB0_15
; %bb.11:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_kprintf
	mov	w0, #-6
	b	LBB0_16
LBB0_12:
	mov	w0, #-3
	b	LBB0_16
LBB0_13:
	mov	w0, #-4
	b	LBB0_16
LBB0_14:
	ldr	w8, [x20, #4]
	stp	x8, x21, [sp]
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_kprintf
	mov	w0, #-5
	b	LBB0_16
LBB0_15:
	ldr	w3, [x20, #4]
	ldr	w4, [x19, #4]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #3
	mov	w2, #16
	bl	_vkprintf
	ldr	w2, [x22]
	add	x0, sp, #32
	mov	w1, #16
	bl	_crc32_partial
	mov	x8, x0
	mov	w0, #0
	str	w8, [x22]
LBB0_16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s is smaller than %s\n"

	.comm	_STORAGE_LEV_START_SIZE,4,2     ; @STORAGE_LEV_START_SIZE
	.comm	_local_id,8,3                   ; @local_id
	.comm	_crc32_complement,4,2           ; @crc32_complement
	.comm	_LEV_CRC32,8,3                  ; @LEV_CRC32
l_.str.1:                               ; @.str.1
	.asciz	"didn't find LEV_CRC32 record in %s at offset %lld\n"

l_.str.2:                               ; @.str.2
	.asciz	"last lev_crc32 record don't matched.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Last %d bytes are equal (%s, %s).\n"

.subsections_via_symbols
